You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
233 lines
7.0 KiB
233 lines
7.0 KiB
<template>
|
|
<view class="body">
|
|
<view class="details_title">
|
|
<view class="shipped" v-if="details_index==0">
|
|
<view class="shipped_left">
|
|
<image src="../../static/img/order_shipped.png" mode=""></image>
|
|
</view>
|
|
<view>
|
|
<text class="shipped_right_text">Ready for shipment</text>
|
|
<view>The buyer has paid,Waiting for the merchant to deliver</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cancelled" v-if="details_index==1">
|
|
<view class="cancelled_left">
|
|
<image src="../../static/img/close2.png" mode=""></image>
|
|
<view class="cancelled_left_info">
|
|
<text class="shipped_right_text">Deal’s off</text>
|
|
<view>The transaction has been closed, looking forward to your re-selection</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="cancelled completed" v-if="details_index==2">
|
|
<view class="cancelled_left">
|
|
<image src="../../static/img/completed.png" mode=""></image>
|
|
<view class="cancelled_left_info">
|
|
<text class="shipped_right_text">Signed for</text>
|
|
<view>2022-04-27 21:15:55</view>
|
|
</view>
|
|
</view>
|
|
<view class="cancelled_right">
|
|
<image src="../../static/img/right2.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cancelled toPaid" v-if="details_index==3">
|
|
<view class="cancelled_left">
|
|
<view >
|
|
<text class="shipped_right_text">Waiting for payment</text>
|
|
<view>The timeout order will be closed automatically</view>
|
|
</view>
|
|
</view>
|
|
<view class="cancelled_right">
|
|
<text class="shipped_right_text">23:59:58</text>
|
|
<view>T-minus payment</view>
|
|
</view>
|
|
</view>
|
|
<navigator url="/pages/order/logisticsDetails" class="cancelled transit" v-if="details_index==4">
|
|
<view class="cancelled_left">
|
|
<image src="../../static/img/transit.png" mode=""></image>
|
|
<view class="cancelled_left_info">
|
|
<view class="shipped_right_text">【New York】Has arrived statesHas arrived states</view>
|
|
<view>2022-04-27 21:15:55</view>
|
|
</view>
|
|
</view>
|
|
<view class="cancelled_right">
|
|
<image src="../../static/img/right2.png" mode=""></image>
|
|
</view>
|
|
</navigator>
|
|
|
|
</view>
|
|
<view class="address">
|
|
<view class="address_left">
|
|
<view class="address_title">
|
|
<image src="../../static/img/address.png" mode=""></image>
|
|
<view class="address_title_name">{{goodsDate.consignee}}</view>
|
|
<text>{{goodsDate.mobile}}</text>
|
|
</view>
|
|
<view class="address_content">
|
|
<text>{{goodsDate.sign_building}}</text>
|
|
<view >{{goodsDate.address_detail}}</view>
|
|
</view>
|
|
</view>
|
|
<image src="../../static/img/right.png" class="address_more"></image>
|
|
<image src="../../static/img/address_xian.png" class="address_xian" mode=""></image>
|
|
</view>
|
|
|
|
<view class="order_popup_commodity">
|
|
<view class="good_info" v-for="(item,index) in goods_list " :key="index">
|
|
<view class="good_info_left ">
|
|
<view class="good_info_image" >
|
|
<image :src="item.goods_thumb" mode=""></image>
|
|
</view>
|
|
<view class="left_info">
|
|
<view class="info_name">{{item.goods_name}}</view>
|
|
<view class="left_info_bottom">
|
|
<view class="info_lable">
|
|
<text>{{item.goods_attr |goodsAttr}}</text>
|
|
<image src="/static/img/bottom.png" mode=""></image>
|
|
</view>
|
|
<text>x{{item.goods_number}}</text>
|
|
</view>
|
|
<view class="info_price">
|
|
<text>US${{item.subtotal}}</text>
|
|
<button v-if="details_index!=3 && details_index!=1">RREFUND</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="summary">
|
|
<view class="summary_title">Order summary</view>
|
|
<view class="summary_item">
|
|
<view>
|
|
Subtotal
|
|
<text :class="details_index==4?'summary_item_text1':'summary_item_text'">(Tax included)</text>
|
|
</view>
|
|
<view class="summary_item_right">US${{goodsDate.goods_amount}}</view>
|
|
</view>
|
|
<view class="summary_item">
|
|
<view>Shipping</view>
|
|
<view class="summary_item_right">US${{goodsDate.shipping_fee}}</view>
|
|
</view>
|
|
<view class="summary_item">
|
|
<view>Coupon</view>
|
|
<view class="summary_item_right1">-US${{goodsDate.discount}}</view>
|
|
</view>
|
|
<view class="summary_item">
|
|
<view>Order total</view>
|
|
<view>US${{goodsDate.order_amount}}</view>
|
|
</view>
|
|
<view class="summary_tips" v-if="details_index==3">
|
|
<image src="../../static/img/gantan1.png" mode=""></image>
|
|
<text>Reward {{goodsDate.integral}} points</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="summary">
|
|
<view class="summary_title">Order information</view>
|
|
<view class="summary_item">
|
|
<view>Order id</view>
|
|
<view class="summary_item_right">
|
|
<text>{{goodsDate.order_sn}}</text>
|
|
<button>copy</button>
|
|
</view>
|
|
</view>
|
|
<view class="summary_item">
|
|
<view>Shipping</view>
|
|
<view class="summary_item_right">{{goodsDate.shipping_name}}</view>
|
|
</view>
|
|
<view class="summary_item">
|
|
<view>Order Time</view>
|
|
<view class="summary_item_right">{{goodsDate.formated_add_time}}</view>
|
|
</view>
|
|
<view class="summary_item" v-if="details_index!=3 && goodsDate.formated_pay_time">
|
|
<view>Payment time</view>
|
|
<view class="summary_item_right">{{goodsDate.pay_time}}</view>
|
|
</view>
|
|
<template v-if="details_index==2">
|
|
<view class="summary_item">
|
|
<view>Delivery time</view>
|
|
<view class="summary_item_right">{{goodsDate.shipping_time}}</view>
|
|
</view>
|
|
<view class="summary_item">
|
|
<view>Completion time</view>
|
|
<view class="summary_item_right">{{goodsDate.confirm_time}}</view>
|
|
</view>
|
|
</template>
|
|
<view class="summary_item" v-if="details_index==1">
|
|
<view>Cancel time</view>
|
|
<view class="summary_item_right">{{goodsDate.pay_time}}</view>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="details_footer" v-if="details_index!=0">
|
|
<button class="white" v-if="details_index==2 || details_index==4">LOGISTICS</button>
|
|
<button class="white" v-if="details_index==1 || details_index==2">DELETE ORDER</button>
|
|
<button class="black" v-if="details_index==2">COMMENT</button>
|
|
|
|
<button class="white" v-if="details_index==3 ">CANCEL ORDER</button>
|
|
<button class="black" v-if="details_index==3">PAY NOW</button>
|
|
|
|
<button class="black" v-if="details_index==4">CONFIRM RECEIPT</button>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {defaultRequest2} from '../../api/index.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
// 0、待发货 1、已取消 2、已完成 3、待支付 4、运输中
|
|
details_index:4,
|
|
query:{
|
|
_action:'getorder',
|
|
order_id:'',
|
|
order_sn:''
|
|
},
|
|
goodsDate:{},
|
|
goods_list:[]
|
|
}
|
|
},
|
|
methods:{
|
|
getDate(){
|
|
defaultRequest2(this.query).then(res=>{
|
|
console.info(res)
|
|
if(res.error==0){
|
|
this.goodsDate=res.data
|
|
this.goods_list=res.goods_list
|
|
}
|
|
})
|
|
}
|
|
},
|
|
onLoad(e){
|
|
console.info(e)
|
|
this.details_index=e.details_index
|
|
this.query.order_id=e.id
|
|
this.getDate()
|
|
},
|
|
filters:{
|
|
goodsAttr(e){
|
|
return e.replace(/\s\n/g,';');
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import "@/common/scss/order.scss";
|
|
page{
|
|
|
|
}
|
|
.body{
|
|
padding-bottom: 130rpx;
|
|
}
|
|
|
|
</style>
|