0707
This commit is contained in:
@@ -646,6 +646,42 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//删除订单
|
||||
delAppCusorder(){
|
||||
let that = this
|
||||
wx.showModal({
|
||||
title: '确定删除订单?',
|
||||
content: '',
|
||||
confirmColor: "#36afa2",
|
||||
success(resW) {
|
||||
if (resW.confirm) {
|
||||
let params = {};
|
||||
params['id'] = that.data.id;
|
||||
params['status'] = -1;
|
||||
_.apiQuery.putAppCusorderStatus(params).then(res => {
|
||||
//刷新列表页
|
||||
let pages = getCurrentPages();
|
||||
pages.forEach(item => {
|
||||
if(item.route == 'pages/order/index'){
|
||||
item.onPullDownRefresh()
|
||||
}
|
||||
})
|
||||
wx.showToast({
|
||||
title: '删除成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
setTimeout(function () {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}, 500)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成倒计时
|
||||
*/
|
||||
|
||||
@@ -276,6 +276,10 @@
|
||||
<button bindtap="bindShowConfirm" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">{{info.bt_cn}}</button>
|
||||
</view>
|
||||
|
||||
<view class="fixed left-0 right-0 bottom-0 pt20 pl30 pr30 pb40 bg-000-op80 fn-flex z-index-9999" wx:if="{{userInfo.group_id < 4 && info.status==0}}">
|
||||
<button bindtap="delAppCusorder" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover"><i class="iconfont mr5 icon-zuofei"></i>订单作废</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
|
||||
|
||||
@@ -464,6 +464,8 @@ Page({
|
||||
loading: false,
|
||||
flag: this.data.flag + 1
|
||||
})
|
||||
|
||||
this.getAppCusorderTabs()
|
||||
this.getAppCusorderList()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user