|
|
@ -8,20 +8,20 @@ |
|
|
<skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true"> |
|
|
<skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true"> |
|
|
|
|
|
|
|
|
<view class="flex justify-between align-start padding-top-sm padding-lr"> |
|
|
<view class="flex justify-between align-start padding-top-sm padding-lr"> |
|
|
<image src="@/static/tu.png" mode="aspectFill" style="width: 150rpx; height: 150rpx;"></image> |
|
|
|
|
|
|
|
|
<image :src="orderDetails.goods.cover" mode="aspectFill" style="width: 150rpx; height: 150rpx;"></image> |
|
|
<view class="flex-sub padding-left-sm"> |
|
|
<view class="flex-sub padding-left-sm"> |
|
|
<view class="bref-box margin-top-xs"> |
|
|
|
|
|
网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季 |
|
|
|
|
|
|
|
|
<view class="bref-box margin-top-xs" v-if="orderDetails.goods.name"> |
|
|
|
|
|
{{orderDetails.goods.name}} |
|
|
</view> |
|
|
</view> |
|
|
<text class="block margin-top-sm text-gray text-sm">数量 <text class="margin-left text-gray">x1</text></text> |
|
|
|
|
|
|
|
|
<text class="block margin-top-sm text-gray text-sm">数量 <text class="margin-left text-gray">x{{orderDetails.amount}}</text></text> |
|
|
|
|
|
|
|
|
<view class="flex justify-between margin-top-sm"> |
|
|
<view class="flex justify-between margin-top-sm"> |
|
|
<view class="text-red text-price text-lg"> |
|
|
<view class="text-red text-price text-lg"> |
|
|
<amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount> |
|
|
|
|
|
|
|
|
<amount :value="Number(orderDetails.goods.selling_price || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<button v-if="true" class="cu-btn line-orange round margin-left-sm text-sm" @tap="$routerGo('/pages/order/apply-refund')">申请退款</button> |
|
|
|
|
|
<button v-else class="cu-btn line-gray bg-white border round margin-left-sm text-sm">退款中</button> |
|
|
|
|
|
|
|
|
<button v-if="orderDetails.state == 2" class="cu-btn line-orange round margin-left-sm text-sm" @tap="$routerGo('/pages/order/apply-refund')">申请退款</button> |
|
|
|
|
|
<button v-if="orderDetails.state == 5" class="cu-btn line-gray bg-white border round margin-left-sm text-sm">退款中</button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -36,21 +36,21 @@ |
|
|
<view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> |
|
|
<view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> |
|
|
<text class="text-gray">订单编号</text> |
|
|
<text class="text-gray">订单编号</text> |
|
|
<view> |
|
|
<view> |
|
|
<text class="margin-right">67432428794847982374</text> |
|
|
|
|
|
<text class="text-orange text-sm" @click="copy('67432428794847982374')">复制</text> |
|
|
|
|
|
|
|
|
<text class="margin-right">{{orderDetails.order_sn}}</text> |
|
|
|
|
|
<text class="text-orange text-sm" @click="copy(orderDetails.order_sn)">复制</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="cu-bar padding-lr solid-bottom"> |
|
|
<view class="cu-bar padding-lr solid-bottom"> |
|
|
<text class="text-gray">下单时间</text> |
|
|
<text class="text-gray">下单时间</text> |
|
|
<text>2021-6-17 15:35:46</text> |
|
|
|
|
|
|
|
|
<text>{{orderDetails.created_at_text}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="cu-bar padding-lr solid-bottom"> |
|
|
|
|
|
|
|
|
<view class="cu-bar padding-lr solid-bottom" v-if="orderDetails.payment_at_text != ''"> |
|
|
<text class="text-gray">付款时间</text> |
|
|
<text class="text-gray">付款时间</text> |
|
|
<text>微信支付</text> |
|
|
|
|
|
|
|
|
<text>{{orderDetails.payment_at_text}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="cu-bar padding-lr solid-bottom"> |
|
|
|
|
|
|
|
|
<view class="cu-bar padding-lr solid-bottom" v-if="orderDetails.payment_type != ''"> |
|
|
<text class="text-gray">支付方式</text> |
|
|
<text class="text-gray">支付方式</text> |
|
|
<text>2021-6-17 15:35:46</text> |
|
|
|
|
|
|
|
|
<text>{{orderDetails.payment_type}}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
@ -58,37 +58,40 @@ |
|
|
<view class="bg-white"> |
|
|
<view class="bg-white"> |
|
|
<view class="cu-bar padding-lr solid-bottom"> |
|
|
<view class="cu-bar padding-lr solid-bottom"> |
|
|
<text class="text-gray">优惠</text> |
|
|
<text class="text-gray">优惠</text> |
|
|
<text>暂无优惠</text> |
|
|
|
|
|
|
|
|
<text v-if="orderDetails.coupons == null">暂无优惠</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<self-line/> |
|
|
|
|
|
<view class="bg-white flex flex-direction justify-around align-center text-center padding-tb"> |
|
|
|
|
|
<view> |
|
|
|
|
|
<image src="../../static/tu.png" mode="widthFix" style="height: 150px;width: 150px;"></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="flex justify-around align-center text-center margin-top-sm"> |
|
|
|
|
|
|
|
|
<view v-if="orderDetails.state!=1"> |
|
|
|
|
|
<self-line/> |
|
|
|
|
|
<view class="bg-white flex flex-direction justify-around align-center text-center padding-tb"> |
|
|
<view> |
|
|
<view> |
|
|
<image class="margin-right" src="@/static/images/system/refresh.png" mode="widthFix" style="width: 20px;height: 20px;"></image> |
|
|
|
|
|
|
|
|
<image src="../../static/tu.png" mode="widthFix" style="height: 150px;width: 150px;"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view class="text-lg">SP738644872</view> |
|
|
|
|
|
<view class="text-orange text-sm margin-left" @tap="copy('SP738644872')">复制</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="margin-top-sm text-green text-sm"> |
|
|
|
|
|
待使用 |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="padding-lr padding-tb-sm bg-white flex justify-between align-center solid-top"> |
|
|
|
|
|
<view class="flex align-center"> |
|
|
|
|
|
<text class="text-gray text-sm">已付款:</text> |
|
|
|
|
|
<view class="text-lg text-price text-red"> |
|
|
|
|
|
<amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount> |
|
|
|
|
|
|
|
|
<view class="flex justify-around align-center text-center margin-top-sm"> |
|
|
|
|
|
<view> |
|
|
|
|
|
<image class="margin-right" src="@/static/images/system/refresh.png" mode="widthFix" style="width: 20px;height: 20px;"></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="text-lg">SP738644872</view> |
|
|
|
|
|
<view class="text-orange text-sm margin-left" @tap="copy('SP738644872')">复制</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="margin-top-sm text-green text-sm"> |
|
|
|
|
|
待使用 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
|
|
|
已付款 |
|
|
|
|
|
|
|
|
<view class="padding-lr padding-tb-sm bg-white flex justify-between align-center solid-top"> |
|
|
|
|
|
<view class="flex align-center"> |
|
|
|
|
|
<text class="text-gray text-sm">已付款:</text> |
|
|
|
|
|
<view class="text-lg text-price text-red"> |
|
|
|
|
|
<amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view> |
|
|
|
|
|
已付款 |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</mescroll-body> |
|
|
</mescroll-body> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
@ -101,32 +104,37 @@ |
|
|
return { |
|
|
return { |
|
|
base64Img: '', // |
|
|
base64Img: '', // |
|
|
skeletonLoading: true, |
|
|
skeletonLoading: true, |
|
|
payCur: 0, //支付方式下标 |
|
|
|
|
|
loading: false, |
|
|
loading: false, |
|
|
address: {}, |
|
|
|
|
|
shopData: {}, |
|
|
|
|
|
num: 0, |
|
|
|
|
|
payPwd: '', |
|
|
|
|
|
price: '', //价格 |
|
|
|
|
|
|
|
|
orderId:1, |
|
|
|
|
|
orderDetails: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
disabled() { |
|
|
|
|
|
// 必须输入 邮箱和验证码 才能点击下一步 |
|
|
|
|
|
if (this.payPwd) return false |
|
|
|
|
|
return true |
|
|
|
|
|
}, |
|
|
|
|
|
total(){ |
|
|
total(){ |
|
|
return this.num * this.price |
|
|
return this.num * this.price |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(e) { |
|
|
onLoad(e) { |
|
|
|
|
|
this.orderId = e.orderid |
|
|
|
|
|
if(this.orderId) { |
|
|
|
|
|
this.getOrderDetails() |
|
|
|
|
|
} |
|
|
setTimeout(()=>{ |
|
|
setTimeout(()=>{ |
|
|
this.skeletonLoading = false |
|
|
this.skeletonLoading = false |
|
|
this.mescroll.endSuccess(); // 请求成功,隐藏加载状态 |
|
|
|
|
|
},1000) |
|
|
},1000) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getOrderDetails() { |
|
|
|
|
|
this.$http(this.API.API_ORDER_DETAILS, {order_id: this.orderId}).then(res => { |
|
|
|
|
|
if(res.code == 0) { |
|
|
|
|
|
this.orderDetails = res.data |
|
|
|
|
|
console.log(this.orderDetails) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
// 点击复制 |
|
|
// 点击复制 |
|
|
copy(text) { |
|
|
copy(text) { |
|
|
uni.setClipboardData({ |
|
|
uni.setClipboardData({ |
|
|
@ -136,13 +144,9 @@ |
|
|
submit(){ |
|
|
submit(){ |
|
|
this.$routerGo('/pages/order/order?type=all') |
|
|
this.$routerGo('/pages/order/order?type=all') |
|
|
}, |
|
|
}, |
|
|
//下拉刷新 |
|
|
|
|
|
downCallback() { |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
this.mescroll.endSuccess(); // 请求成功,隐藏加载状态 |
|
|
|
|
|
this.mescroll.endErr(); // 请求失败,隐藏加载状态 |
|
|
|
|
|
},1000) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|