|
@@ -19,22 +19,7 @@ Page({
|
|
|
},
|
|
},
|
|
|
data: {
|
|
data: {
|
|
|
id: '',
|
|
id: '',
|
|
|
- goodsList: [
|
|
|
|
|
- // {
|
|
|
|
|
- // id: 1,
|
|
|
|
|
- // img: 'https://pic.nximg.cn/file/20190718/28170468_214109363000_2.jpg',
|
|
|
|
|
- // name: '元气茶',
|
|
|
|
|
- // count: 3,
|
|
|
|
|
- // expressNo: '00385322232830'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // id: 2,
|
|
|
|
|
- // img: 'https://pic.nximg.cn/file/20190718/28170468_214109363000_2.jpg',
|
|
|
|
|
- // name: '芡实米仁燕麦粥',
|
|
|
|
|
- // count: 21,
|
|
|
|
|
- // expressNo: '00385322290821'
|
|
|
|
|
- // }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ goodsList: []
|
|
|
},
|
|
},
|
|
|
async load(id:string) {
|
|
async load(id:string) {
|
|
|
wx.showLoading({ title: '加载中' });
|
|
wx.showLoading({ title: '加载中' });
|
|
@@ -64,9 +49,21 @@ Page({
|
|
|
},
|
|
},
|
|
|
// 确认收货逻辑
|
|
// 确认收货逻辑
|
|
|
async onConfirmReceiving() {
|
|
async onConfirmReceiving() {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ wx.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '确认收货后,订单将无法修改,请确认无误后再进行操作',
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ if (res.confirm) {
|
|
|
|
|
+ that.confirmReceiving();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ async confirmReceiving() {
|
|
|
try {
|
|
try {
|
|
|
await orderConfirmMethod(this.data.id);
|
|
await orderConfirmMethod(this.data.id);
|
|
|
- wx.showToast({ title: '确认收货成功', icon: 'success' });
|
|
|
|
|
|
|
+ // wx.showToast({ title: '确认收货成功', icon: 'success' });
|
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
|
url: "/module/article/pages/success-page/success-page?title=确认收货成功",
|
|
url: "/module/article/pages/success-page/success-page?title=确认收货成功",
|
|
|
});
|
|
});
|