main
liudan 2 years ago
parent c03afb4e2a
commit fc047ff6ba
  1. 15
      pages/index/list.vue
  2. 4
      pages/index/user/userinfo-card.vue
  3. 31
      pages/order/confirm.vue
  4. 4
      pages/order/detail.vue
  5. 40
      pages/order/list.vue

@ -18,6 +18,7 @@
@tap.stop="jump('/pages/order/detail', { id: order.id })"> @tap.stop="jump('/pages/order/detail', { id: order.id })">
<view class="order-head u-flex u-row-between"> <view class="order-head u-flex u-row-between">
<text class="no">订单编号{{ order.order_sn }}</text> <text class="no">订单编号{{ order.order_sn }}</text>
<!-- <text class="state">{{ order.status_name }}</text> -->
<text class="state">{{ order.status_name }}</text> <text class="state">{{ order.status_name }}</text>
</view> </view>
<view class="goods-order" v-for="goods in order.item" :key="goods.id"> <view class="goods-order" v-for="goods in order.item" :key="goods.id">
@ -107,17 +108,17 @@
}, },
{ {
id: 1, id: 1,
title: '待支付', title: '待分拣',
type: 'nopay' type: 'nopay'
}, },
// { {
// id: 2, id: 2,
// title: '', title: '待配送',
// type: 'nosend' type: 'nosend'
// }, },
{ {
id: 3, id: 3,
title: '待收货', title: '配送中',
type: 'noget' type: 'noget'
}, },
{ {

@ -9,10 +9,10 @@
fontSize: '36rpx', fontSize: '36rpx',
fontWeight: '500' fontWeight: '500'
}" :background="navBackground"> }" :background="navBackground">
<view slot="right" class="u-flex u-row-center u-col-center u-m-r-20" v-if="userOtherData.is_store" <!-- <view slot="right" class="u-flex u-row-center u-col-center u-m-r-20" v-if="userOtherData.is_store"
@tap="goStore"> @tap="goStore">
<button class="u-reset-button merchant-btn">切换商家版</button> <button class="u-reset-button merchant-btn">切换商家版</button>
</view> </view> -->
</shopro-navbar> </shopro-navbar>
<view class="user-head u-flex u-row-between" @tap="$Router.push('/pages/user/info')"> <view class="user-head u-flex u-row-between" @tap="$Router.push('/pages/user/info')">

@ -34,6 +34,26 @@
</view> </view>
</view> </view>
</view> </view>
<view
class="remark-box item-list u-flex u-row-between"
v-if="msgText=='当前收货地址不在配送范围'"
>
<view class="item-title" style="color:red;">{{msgText}}</view>
<!-- <view
class="box-content u-flex"
@tap="checkExpressTime('store')"
>
<text class="detail"
>{{ checkTime[checkDayCur].title
}}{{ checkTime[checkDayCur].timeRange[checkTimeCur] }}</text
>
<text
class="u-iconfont uicon-arrow-right"
style="color: #999"
></text>
</view> -->
</view>
<view <view
class="remark-box item-list u-flex u-row-between" class="remark-box item-list u-flex u-row-between"
@ -112,7 +132,7 @@
<block v-if="perGoodsList.length"> <block v-if="perGoodsList.length">
<!-- 配送方式 --> <!-- 配送方式 -->
<!-- @tap="onSelExpressType(perGoodsList[0])" --> <!-- @tap="onSelExpressType(perGoodsList[0])" -->
<view <!-- <view
class="remark-box item-list u-flex u-row-between" class="remark-box item-list u-flex u-row-between"
> >
@ -124,7 +144,7 @@
style="color: #bfbfbf" style="color: #bfbfbf"
></text> ></text>
</view> </view>
</view> </view> -->
<!-- 备注 --> <!-- 备注 -->
<view class="remark-box u-flex item-list u-p-30"> <view class="remark-box u-flex item-list u-p-30">
@ -857,6 +877,7 @@ export default {
}, },
data() { data() {
return { return {
msgText:'',
isGroup: true, // isGroup: true, //
platform: this.$platform.get(), platform: this.$platform.get(),
totalNum: 0, totalNum: 0,
@ -1297,10 +1318,13 @@ export default {
groupon_id: that.grouponId, groupon_id: that.grouponId,
}) })
.then((res) => { .then((res) => {
console.log(res,"999")
that.msgText = res.msg
if (res.data) { if (res.data) {
that.orderPre = res.data; that.orderPre = res.data;
that.perGoodsList = res.data.new_goods_list; that.perGoodsList = res.data.new_goods_list;
that.totalNum = 0; that.totalNum = 0;
that.perGoodsList.map((item) => { that.perGoodsList.map((item) => {
// if(type == 1){ // if(type == 1){
// item.dispatch_type ='regiment' // item.dispatch_type ='regiment'
@ -1330,7 +1354,7 @@ export default {
}); });
}); });
} }
}); })
}, },
// //
subOrder() { subOrder() {
@ -1379,6 +1403,7 @@ export default {
) )
.then((res) => { .then((res) => {
that.isDisabled = false; that.isDisabled = false;
console.log(res,"iiii")
if (res.code === 1) { if (res.code === 1) {
that.getCartList(); that.getCartList();
that.$Router.replace({ that.$Router.replace({

@ -7,6 +7,9 @@
<!-- <image class="state-img" :src="$IMG_URL + '/imgs/order/order_state1.png'" mode=""></image> --> <!-- <image class="state-img" :src="$IMG_URL + '/imgs/order/order_state1.png'" mode=""></image> -->
{{ orderDetail.status_desc }} {{ orderDetail.status_desc }}
</view> </view>
<view style="margin-top:20rpx" v-if="orderDetail.status_code=='noget'">
骑手电话{{ orderDetail.ride_phone }}
</view>
</view> </view>
<!-- 收货地址 --> <!-- 收货地址 -->
@ -278,6 +281,7 @@ export default {
that.$http('order.detail', { that.$http('order.detail', {
id: that.$Route.query.id id: that.$Route.query.id
}).then(res => { }).then(res => {
console.log(res,"9999")
if (res.code === 1) { if (res.code === 1) {
that.orderDetail = res.data; that.orderDetail = res.data;
that.orderDetail.createtime = that.$u.timeFormat(res.data.createtime, 'yyyy-mm-dd hh:MM'); that.orderDetail.createtime = that.$u.timeFormat(res.data.createtime, 'yyyy-mm-dd hh:MM');

@ -93,6 +93,32 @@
lastPage: 1, lastPage: 1,
orderType: 'all', orderType: 'all',
orderList: [], 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: [{ orderState: [{
id: 0, id: 0,
title: '全部订单', title: '全部订单',
@ -100,17 +126,17 @@
}, },
{ {
id: 1, id: 1,
title: '待支付', title: '待分拣',
type: 'nopay' type: 'nopay'
}, },
// { {
// id: 2, id: 2,
// title: '', title: '待配送',
// type: 'nosend' type: 'nosend'
// }, },
{ {
id: 3, id: 3,
title: '待收货', title: '配送中',
type: 'noget' type: 'noget'
}, },
{ {

Loading…
Cancel
Save