|
|
|
@ -37,7 +37,7 @@ |
|
|
|
|
|
|
|
<view class="method_item" v-for="(item,index) in shipping_list " :key="index"> |
|
|
|
<view class="method_item_image" @click="cartselectshipping(item.shipping_id)"> |
|
|
|
<image src="../../static/img/select1.png" style="width: 30rpx;height: 30rpx;" v-if="order.shipping_id==item.shipping_id"></image> |
|
|
|
<image src="../../static/img/select1.png" style="width: 30rpx;height: 30rpx;" v-if="orderId==item.shipping_id"></image> |
|
|
|
<image src="../../static/img/select2.png" style="width: 30rpx;height: 30rpx;"v-else ></image> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -221,10 +221,13 @@ |
|
|
|
shipping_list:[], |
|
|
|
bonus_list:[], |
|
|
|
total:{}, |
|
|
|
order:{}, |
|
|
|
order:{ |
|
|
|
shipping_id:11 |
|
|
|
}, |
|
|
|
// 支付方式: 0、支付宝 1、银行卡、信用卡 2、谷歌支付 4、苹果支付 |
|
|
|
pay_index:0, |
|
|
|
tag:0, |
|
|
|
orderId:0, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
@ -236,7 +239,8 @@ |
|
|
|
|
|
|
|
if(res.error==0){ |
|
|
|
this.total=res.data.total |
|
|
|
this.order=res.data.order |
|
|
|
// this.order=res.data.order |
|
|
|
this.orderId=res.data.order.shiping_id |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -340,6 +344,7 @@ |
|
|
|
postscript:'', |
|
|
|
bonus:this.order.bonus, |
|
|
|
surplus:this.order.surplus, |
|
|
|
// shipping_id:this.orderId, |
|
|
|
shipping_id:this.order.shipping_id, |
|
|
|
directshopping:0, |
|
|
|
} |
|
|
|
@ -358,7 +363,8 @@ |
|
|
|
if(res.error==0){ |
|
|
|
this.tag = 1 |
|
|
|
this.total=res.data.total |
|
|
|
this.order=res.data.order |
|
|
|
this.order=res.data.order |
|
|
|
this.orderId=res.data.order.shipping_id |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -429,10 +435,12 @@ |
|
|
|
onLoad(e) { |
|
|
|
|
|
|
|
this.query=JSON.parse(e.query) |
|
|
|
console.log(this.query,'///') |
|
|
|
this.orderId = e.orderId |
|
|
|
console.log(this.orderId,'///') |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow(e) { |
|
|
|
|
|
|
|
this.getList() |
|
|
|
uni.$once('query' ,(query)=>{ |
|
|
|
console.info(query) |
|
|
|
|