|
|
@@ -4,29 +4,156 @@
|
|
|
* @Author: dream
|
|
|
* @Date: 2021-03-26 14:32:52
|
|
|
* @LastEditors: dream
|
|
|
- * @LastEditTime: 2021-03-26 14:33:17
|
|
|
+ * @LastEditTime: 2021-04-08 16:36:57
|
|
|
-->
|
|
|
<template>
|
|
|
- <view>Orders Detail</view>
|
|
|
+ <view class="order-detail-main" :style="{ paddingBottom: `${pagePaddingBottom}px`}">
|
|
|
+ <view class="head-area"><text class="status-title">待支付</text></view>
|
|
|
+ <view class="delivery-list">
|
|
|
+ <block v-for="(item, index) in deliveryList" :key="index">
|
|
|
+ <view class="card u-m-t-16">
|
|
|
+ <iph-order-good-card :showType="2" :value="item" />
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ <view class="order-info iph-bg-fff">
|
|
|
+ <view class="u-flex u-row-between">
|
|
|
+ <view>订单号:</view>
|
|
|
+ <view>38742738239932</view>
|
|
|
+ </view>
|
|
|
+ <view class="u-m-t-32 u-flex u-row-between">
|
|
|
+ <view>商品总数:</view>
|
|
|
+ <view>共5项商品</view>
|
|
|
+ </view>
|
|
|
+ <view class="u-m-t-32 u-flex u-row-between">
|
|
|
+ <view>商品合计金额:</view>
|
|
|
+ <view>¥3214</view>
|
|
|
+ </view>
|
|
|
+ <view class="u-m-t-32 u-flex u-row-between">
|
|
|
+ <view>总配送费:</view>
|
|
|
+ <view>¥200</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <iph-fixed-bottom @getHeight="getFooterHeight">
|
|
|
+ <view class="footer u-flex iph-bg-fff">
|
|
|
+ <view class="u-flex-1">
|
|
|
+ <text class="u-m-b-8 u-font-32 u-line-44 text-weight-500 price-color">¥</text>
|
|
|
+ <text class="total-price price-color">1607</text>
|
|
|
+ </view>
|
|
|
+ <button class="pay-btn">立即支付</button>
|
|
|
+ </view>
|
|
|
+ </iph-fixed-bottom>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import IphFixedBottom from '@/components/iphFixedBottom.vue'
|
|
|
+import IphOrderGoodCard from './components/iphOrderGoodCard.vue'
|
|
|
export default {
|
|
|
+ components: { IphOrderGoodCard, IphFixedBottom },
|
|
|
name: 'orderDetail',
|
|
|
data () {
|
|
|
return {
|
|
|
-
|
|
|
+ pagePaddingBottom: 0,
|
|
|
+ deliveryList: [{
|
|
|
+ warehouseName: '云东仓',
|
|
|
+ totalPrice: 140700,
|
|
|
+ feePrice: 20000,
|
|
|
+ goodList: [{
|
|
|
+ img: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=288400877,2749955263&fm=26&gp=0.jpg',
|
|
|
+ name: '华硕天选',
|
|
|
+ spce: '一件',
|
|
|
+ salesPrice: 46800,
|
|
|
+ num: 1
|
|
|
+ }]
|
|
|
+ }, {
|
|
|
+ warehouseName: '浙江仓',
|
|
|
+ totalPrice: 140700,
|
|
|
+ feePrice: 20000,
|
|
|
+ goodList: [{
|
|
|
+ img: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=288400877,2749955263&fm=26&gp=0.jpg',
|
|
|
+ name: '华硕天选',
|
|
|
+ spce: '一件',
|
|
|
+ salesPrice: 46900,
|
|
|
+ num: 1
|
|
|
+ }, {
|
|
|
+ img: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=288400877,2749955263&fm=26&gp=0.jpg',
|
|
|
+ name: '两排文案两排文案两排文案两排文案两排文案两排文案两排文案两排文案',
|
|
|
+ spce: '1件/1000套',
|
|
|
+ salesPrice: 46900,
|
|
|
+ num: 1
|
|
|
+ }]
|
|
|
+ }]
|
|
|
}
|
|
|
},
|
|
|
onLoad () {
|
|
|
|
|
|
},
|
|
|
+ onPageScroll (obj) {
|
|
|
+ if (obj.scrollTop < 48) {
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#ffffff',
|
|
|
+ backgroundColor: '#1677FF',
|
|
|
+ animation: { duration: 0.5, timingFunc: 'linear' }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#ffffff',
|
|
|
+ animation: { duration: 0.5, timingFunc: 'linear' }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
-
|
|
|
+ getFooterHeight (val) {
|
|
|
+ this.pagePaddingBottom = val + 8
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
+.order-detail-main {
|
|
|
+ .head-area {
|
|
|
+ padding: 0 24px;
|
|
|
+ height: 282px;
|
|
|
+ background: linear-gradient(180deg, $u-type-primary 0%, $iph-type-light 55%, $iph-base-bg 100%);
|
|
|
+ .status-title {
|
|
|
+ font-size: 56px;
|
|
|
+ font-weight: 500;
|
|
|
+ line-height: 80px;
|
|
|
+ color: $iph-standby-text;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .delivery-list {
|
|
|
+ padding: 0 24px;
|
|
|
+ margin-top: -200px;
|
|
|
+ .card {
|
|
|
+ border-radius: 12px;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-info {
|
|
|
+ margin: 24px 24px 0;
|
|
|
+ padding: 32px;
|
|
|
+ border-radius: 12px;
|
|
|
+ }
|
|
|
+ .footer {
|
|
|
+ padding: 24px 32px;
|
|
|
+ .total-price {
|
|
|
+ font-size: 52px;
|
|
|
+ line-height: 74px;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .pay-btn {
|
|
|
+ padding: 16px 56px;
|
|
|
+ line-height: 40px;
|
|
|
+ color: $iph-standby-text;
|
|
|
+ font-size: 28px;
|
|
|
+ font-weight: 500;
|
|
|
+ border-radius: 38px;
|
|
|
+ background-color: $u-type-primary;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|