tianyi 2 weeks ago
parent
commit
7651053b5c
  1. 2
      pages/goods/addGoods.vue
  2. 2
      pages/shop/addGoods.vue
  3. 5
      pages/shop/goodsList.vue
  4. 10
      pages/shop/selfDeliveryOrderList.vue
  5. 2
      pages/shop/shopEvaluate.vue
  6. 13
      pages/shop/shopOrderList.vue
  7. 2
      pages/shop/transferDeliveryOrderList.vue

2
pages/goods/addGoods.vue

@ -781,7 +781,7 @@
let that = this;
let hiver_token = uni.getStorageSync("hiver_token")
await uni.uploadFile({
url: that.tui.interfaceUrl() + '/upload/file',
url: getApp().globalData.mainurl + '/upload/file',
filePath: path,
name: 'file',
header: {

2
pages/shop/addGoods.vue

@ -770,7 +770,7 @@
let that = this;
let hiver_token = uni.getStorageSync("hiver_token")
await uni.uploadFile({
url: that.tui.interfaceUrl() + '/upload/file',
url: getApp().globalData.mainurl + '/upload/file',
filePath: path,
name: 'file',
header: {

5
pages/shop/goodsList.vue

@ -459,7 +459,10 @@
this.categoryId = this.indexList[0].id
this.getShareList();
} else {
this.tui.toast(res.message)
uni.showToast({
title: res.message,
icon: 'none'
})
}
}).catch((res) => {})
},

10
pages/shop/selfDeliveryOrderList.vue

@ -177,7 +177,7 @@
})
return;
}
this.tui.request('/mall/delivery/pageShopDelivery', 'POST', this.searchForm, false, false).then((res) => {
this.NB.sendRequest('/mall/delivery/pageShopDelivery', this.searchForm, false, 'POST', 'application/json').then((res) => {
if (res.code == 200) {
const records = res.result.records || [];
this.list = this.searchForm.pageNum == 1 ? records : this.list.concat(records);
@ -189,7 +189,7 @@
icon: 'none'
})
}
});
}).catch((res) => {})
},
handleOrder(index, item) {
if (this.tab === 'pickup' && !item.arriveTime) {
@ -206,11 +206,11 @@
},
changeStatus(index, item, status) {
const url = status === 1 ? '/mall/delivery/arriveShop' : (status === 2 ? '/mall/delivery/pickup' : '/mall/delivery/complete');
this.tui.request(url, 'POST', {
this.NB.sendRequest(url, {
regionId: this.searchForm.regionId,
deliveryId: item.id,
workerId: this.worker.workerId
}, false, true).then((res) => {
}, false, 'POST', 'application/x-www-form-urlencoded').then((res) => {
if (res.code == 200) {
if (status === 1) {
this.$set(this.list[index], 'arriveTime', new Date());
@ -227,7 +227,7 @@
icon: 'none'
})
}
});
}).catch((res) => {})
},
productDetail(item) {
this.productData = item.goodsList || [];

2
pages/shop/shopEvaluate.vue

@ -324,7 +324,7 @@
let that = this;
let hiver_token = uni.getStorageSync("hiver_token")
await uni.uploadFile({
url: that.tui.interfaceUrl() + '/upload/file',
url: getApp().globalData.mainurl + '/upload/file',
filePath: path,
name: 'file',
header: {

13
pages/shop/shopOrderList.vue

@ -177,7 +177,7 @@
getList(){
this.loadStatus = 'loading'
let that = this
that.tui.request("/mall/order/page", "POST", this.searchForm, false, false).then((res) => {
this.NB.sendRequest("/mall/order/page", this.searchForm, false, 'POST', 'application/json').then((res) => {
that.loadStatus = 'nomore';
if (res.code == 200) {
if (that.searchForm.pageNum == 1) {
@ -198,10 +198,9 @@
title: res.message,
icon: 'none'
})
return;
}
uni.hideLoading();
}).catch((res) => {});
}).catch((res) => {})
},
mealServing(item){
let that = this
@ -217,9 +216,10 @@
}else if(item.deliveryType == 1){ //
url = '/mall/order/shopMakeTime'
}
that.tui.request(url, "post", {
this.NB.sendRequest(url, {
orderId:item.id
}, false, true).then((res) => {
}, false, 'POST', 'application/x-www-form-urlencoded').then((res) => {
if (res.code == 200) {
that.getList()
} else {
@ -227,10 +227,9 @@
title: res.message,
icon: 'none'
})
return;
}
uni.hideLoading();
}).catch((res) => {});
}).catch((res) => {})
}
}
});

2
pages/shop/transferDeliveryOrderList.vue

@ -108,7 +108,7 @@
},
uploadImage(index, filePath) {
uni.uploadFile({
url: this.tui.interfaceUrl() + '/upload/file',
url: getApp().globalData.mainurl + '/upload/file',
filePath,
name: 'file',
header: {

Loading…
Cancel
Save