From 7651053b5c2fe149eaa1d3040772f62393e01375 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Thu, 16 Jul 2026 14:35:21 +0800 Subject: [PATCH] 1 --- pages/goods/addGoods.vue | 2 +- pages/shop/addGoods.vue | 2 +- pages/shop/goodsList.vue | 5 ++++- pages/shop/selfDeliveryOrderList.vue | 10 +++++----- pages/shop/shopEvaluate.vue | 2 +- pages/shop/shopOrderList.vue | 13 ++++++------- pages/shop/transferDeliveryOrderList.vue | 2 +- 7 files changed, 19 insertions(+), 17 deletions(-) diff --git a/pages/goods/addGoods.vue b/pages/goods/addGoods.vue index 36f28aa..1456a31 100644 --- a/pages/goods/addGoods.vue +++ b/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: { diff --git a/pages/shop/addGoods.vue b/pages/shop/addGoods.vue index a7d7561..e96b4a3 100644 --- a/pages/shop/addGoods.vue +++ b/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: { diff --git a/pages/shop/goodsList.vue b/pages/shop/goodsList.vue index 73bf0e4..70fe226 100644 --- a/pages/shop/goodsList.vue +++ b/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) => {}) }, diff --git a/pages/shop/selfDeliveryOrderList.vue b/pages/shop/selfDeliveryOrderList.vue index 7454602..0e0a08f 100644 --- a/pages/shop/selfDeliveryOrderList.vue +++ b/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 || []; diff --git a/pages/shop/shopEvaluate.vue b/pages/shop/shopEvaluate.vue index 69a5300..da5aea5 100644 --- a/pages/shop/shopEvaluate.vue +++ b/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: { diff --git a/pages/shop/shopOrderList.vue b/pages/shop/shopOrderList.vue index d157c37..4794b5c 100644 --- a/pages/shop/shopOrderList.vue +++ b/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) => {}) } } }); diff --git a/pages/shop/transferDeliveryOrderList.vue b/pages/shop/transferDeliveryOrderList.vue index 397f5d1..4939243 100644 --- a/pages/shop/transferDeliveryOrderList.vue +++ b/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: {