tmkook 3 years ago
parent
commit
6a109928fb
  1. 20
      packages/sonpingDetail/sonpingDetail.vue
  2. 20
      pages/order/order.vue
  3. 2
      pages/write/baseInfo.vue

20
packages/sonpingDetail/sonpingDetail.vue

@ -182,9 +182,17 @@
}, },
// //
async orderConfirm(){ async orderConfirm(){
await confirmOrder(this.details.order.order_id);
this.$msg('确认收货成功');
this.getGradingDetail();
uni.showModal({
title:"确认收货",
content:'确认收到货物并签收?',
success:async (e) => {
if(e.confirm){
await confirmOrder(this.details.order.order_id);
this.$msg('确认收货成功');
this.getGradingDetail();
}
}
});
}, },
// //
async changOrderAddress(){ async changOrderAddress(){
@ -209,7 +217,11 @@
toSubDetail(id){ toSubDetail(id){
if(this.details.order.grading_finish){ if(this.details.order.grading_finish){
this.$url('/packages/sonpingDetail/viewDetail?id='+ id) this.$url('/packages/sonpingDetail/viewDetail?id='+ id)
}else{
uni.showToast({
icon:'none',
title:'正在评审中'
})
} }
} }
} }

20
pages/order/order.vue

@ -63,8 +63,6 @@
</view> </view>
</view> </view>
<!-- 页面主体滚动区域 --> <!-- 页面主体滚动区域 -->
<swiper :current="tabIndex" :style="{height: swiperContentHeight}" @change="swiperChange"> <swiper :current="tabIndex" :style="{height: swiperContentHeight}" @change="swiperChange">
<swiper-item v-for="(tabItem, idx) in tabList" :key="idx" :item-id="tabItem.ident"> <swiper-item v-for="(tabItem, idx) in tabList" :key="idx" :item-id="tabItem.ident">
@ -399,12 +397,20 @@
}, },
// //
async orderConfirm(item){ async orderConfirm(item){
await confirmOrder(item.order_id);
this.$refs.uToast.show({
message: '确认收货成功',
type: 'success'
uni.showModal({
title:"确认收货",
content:'确认收到货物并签收?',
success:async (e) => {
if(e.confirm){
await confirmOrder(item.order_id);
this.$refs.uToast.show({
message: '确认收货成功',
type: 'success'
});
this.confirm();
}
}
}); });
this.confirm();
}, },
// tab // tab
switchTab(item){ switchTab(item){

2
pages/write/baseInfo.vue

@ -128,7 +128,7 @@
</view> </view>
<view class="flex-row group_15"> <view class="flex-row group_15">
<text class="text_11">优惠券</text> <text class="text_11">优惠券</text>
<u-input @change="checkCoupon" v-model="couponText" placeholder="非必填,请输入优惠券码"></u-input>
<u-input @change="checkCoupon" v-model="coupon" placeholder="非必填,请输入优惠券码"></u-input>
</view> </view>
<view class="flex-col group_21"> <view class="flex-col group_21">
<view class="flex-col items-center button" @click="next"> <view class="flex-col items-center button" @click="next">

Loading…
Cancel
Save