diff --git a/pages/index/list.vue b/pages/index/list.vue index 1cd4523..26fffb5 100644 --- a/pages/index/list.vue +++ b/pages/index/list.vue @@ -18,6 +18,7 @@ @tap.stop="jump('/pages/order/detail', { id: order.id })"> 订单编号:{{ order.order_sn }} + {{ order.status_name }} @@ -107,17 +108,17 @@ }, { id: 1, - title: '待支付', + title: '待分拣', type: 'nopay' }, - // { - // id: 2, - // title: '待发货', - // type: 'nosend' - // }, + { + id: 2, + title: '待配送', + type: 'nosend' + }, { id: 3, - title: '待收货', + title: '配送中', type: 'noget' }, { diff --git a/pages/index/user/userinfo-card.vue b/pages/index/user/userinfo-card.vue index e07fcb5..838809e 100644 --- a/pages/index/user/userinfo-card.vue +++ b/pages/index/user/userinfo-card.vue @@ -9,10 +9,10 @@ fontSize: '36rpx', fontWeight: '500' }" :background="navBackground"> - - + --> diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue index 7f0acdd..f0cdb66 100644 --- a/pages/order/confirm.vue +++ b/pages/order/confirm.vue @@ -34,6 +34,26 @@ + + {{msgText}} + + + - @@ -124,7 +144,7 @@ style="color: #bfbfbf" > - + --> @@ -857,6 +877,7 @@ export default { }, data() { return { + msgText:'', isGroup: true, //默认是否有团点 platform: this.$platform.get(), totalNum: 0, @@ -1297,10 +1318,13 @@ export default { groupon_id: that.grouponId, }) .then((res) => { + console.log(res,"999") + that.msgText = res.msg if (res.data) { that.orderPre = res.data; that.perGoodsList = res.data.new_goods_list; that.totalNum = 0; + that.perGoodsList.map((item) => { // if(type == 1){ // item.dispatch_type ='regiment' @@ -1330,7 +1354,7 @@ export default { }); }); } - }); + }) }, // 提交订单 subOrder() { @@ -1379,6 +1403,7 @@ export default { ) .then((res) => { that.isDisabled = false; + console.log(res,"iiii") if (res.code === 1) { that.getCartList(); that.$Router.replace({ diff --git a/pages/order/detail.vue b/pages/order/detail.vue index ef170a1..117c24d 100644 --- a/pages/order/detail.vue +++ b/pages/order/detail.vue @@ -7,6 +7,9 @@ {{ orderDetail.status_desc }} + + 骑手电话:{{ orderDetail.ride_phone }} + @@ -278,6 +281,7 @@ export default { that.$http('order.detail', { id: that.$Route.query.id }).then(res => { + console.log(res,"9999") if (res.code === 1) { that.orderDetail = res.data; that.orderDetail.createtime = that.$u.timeFormat(res.data.createtime, 'yyyy-mm-dd hh:MM'); diff --git a/pages/order/list.vue b/pages/order/list.vue index bedea73..c33d6b6 100644 --- a/pages/order/list.vue +++ b/pages/order/list.vue @@ -93,6 +93,32 @@ lastPage: 1, orderType: 'all', orderList: [], + // orderState: [{ + // id: 0, + // title: '全部订单', + // type: 'all' + // }, + // { + // id: 1, + // title: '待支付', + // type: 'nopay' + // }, + // // { + // // id: 2, + // // title: '待发货', + // // type: 'nosend' + // // }, + // { + // id: 3, + // title: '待收货', + // type: 'noget' + // }, + // { + // id: 4, + // title: '已完成', + // type: 'nocomment' + // } + // ] orderState: [{ id: 0, title: '全部订单', @@ -100,17 +126,17 @@ }, { id: 1, - title: '待支付', + title: '待分拣', type: 'nopay' }, - // { - // id: 2, - // title: '待发货', - // type: 'nosend' - // }, + { + id: 2, + title: '待配送', + type: 'nosend' + }, { id: 3, - title: '待收货', + title: '配送中', type: 'noget' }, {