update other api
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
<view class="">
|
||||
编号:{{info.order_sn}}
|
||||
</view>
|
||||
<!-- 1待处理 2已发货 3已完成 4申请退款 5已退款 -->
|
||||
<!-- 1待处理 2已发货 3已完成 4申请退款 5已退款 6拒绝退款 -->
|
||||
<view class="status" v-if="info.view_type==1">待处理订单</view>
|
||||
<view class="status" v-else-if="info.view_type==2">已发货订单</view>
|
||||
<view class="status" v-else-if="info.view_type==3">已完成订单</view>
|
||||
<view class="status" v-else-if="info.view_type==4">申请退款订单</view>
|
||||
<view class="status" v-else-if="info.view_type==5">已退款订单</view>
|
||||
<view class="status" v-else-if="info.view_type==6">拒绝退款订单</view>
|
||||
</view>
|
||||
|
||||
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
|
||||
<view class="info">
|
||||
<view class="num">共{{info.extend_order_goods[0].goods_num}}件商品</view>
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/details?id=' + this.info.order_id
|
||||
url: '/pages/index/details?id=' + this.info.order_id+"&type="+this.info.view_type
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -29,8 +29,19 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
let type =0
|
||||
let info = this.info
|
||||
if(info.goods_try_order_status==0){
|
||||
type=1
|
||||
}else if(info.goods_try_order_status==20){
|
||||
type=2
|
||||
}else if(info.goods_try_order_status==40){
|
||||
type=3
|
||||
}else if(info.goods_try_order_status==50){
|
||||
type=4
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/details?id=' + this.info.order_id
|
||||
url: '/pages/index/otherdetails?id=' + this.info.goods_try_id+"&type="+type
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user