From ec9e76fda743706acca9d58fd2a44e0d318fa285 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Sat, 7 Feb 2026 16:53:40 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E6=94=B9=E4=BA=86=E4=B8=AD?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/diy.js | 18 +++++++++--------- components-diy/diy-bargain.vue | 9 +++++++-- components-diy/diy-category.vue | 4 +++- components-diy/diy-goods-list.vue | 4 +++- components-diy/diy-goods-recommend.vue | 4 +++- components-diy/diy-groupbuy.vue | 4 +++- components-diy/diy-pinfan.vue | 4 +++- components-diy/diy-pintuan.vue | 4 +++- components-diy/diy-presale.vue | 4 +++- components-diy/diy-seckill.vue | 8 +++++++- 10 files changed, 44 insertions(+), 19 deletions(-) diff --git a/common/js/diy.js b/common/js/diy.js index e3c1c78..f9fc486 100644 --- a/common/js/diy.js +++ b/common/js/diy.js @@ -305,15 +305,15 @@ export default { } }, - async getDiyInfo() { - let res = await this.$api.sendRequest({ - url: '/api/diyview/info', - data: { - id: this.id, - name: this.name, - en_type:uni.getStorageSync("lang"),//获取语言底部 - }, - async: false + async getDiyInfo() { + let res = await this.$api.sendRequest({ + url: '/api/diyview/info', + data: { + id: this.id, + name: this.name, + _t: Date.now() + }, + async: false }); if (res.code != 0 || !res.data) { if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); diff --git a/components-diy/diy-bargain.vue b/components-diy/diy-bargain.vue index ef68915..8511110 100644 --- a/components-diy/diy-bargain.vue +++ b/components-diy/diy-bargain.vue @@ -292,7 +292,10 @@ export default { async getDataing() { var res = await this.$api.sendRequest({ url: '/bargain/api/goods/bargainingList', - data: {}, + data: { + en_type: uni.getStorageSync("lang"), + _t: Date.now() + }, async: false }); @@ -307,7 +310,9 @@ export default { getData() { var data = { num: this.value.count, - is_exclude_bargaining: 1 + is_exclude_bargaining: 1, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue index f9235dd..6bad5d8 100644 --- a/components-diy/diy-category.vue +++ b/components-diy/diy-category.vue @@ -327,7 +327,9 @@ export default { this.$api.sendRequest({ url: '/api/goodscategory/tree', data: { - level: 3 + level: 3, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }, success: res => { if (res.code == 0) { diff --git a/components-diy/diy-goods-list.vue b/components-diy/diy-goods-list.vue index 75d5540..30f542c 100644 --- a/components-diy/diy-goods-list.vue +++ b/components-diy/diy-goods-list.vue @@ -414,7 +414,9 @@ export default { }, getGoodsList() { var data = { - num: this.goodsValue.count + num: this.goodsValue.count, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.goodsValue.sources == 'category') { data.category_id = this.goodsValue.categoryId; diff --git a/components-diy/diy-goods-recommend.vue b/components-diy/diy-goods-recommend.vue index 8b98950..24e7a31 100644 --- a/components-diy/diy-goods-recommend.vue +++ b/components-diy/diy-goods-recommend.vue @@ -182,7 +182,9 @@ export default { }, getGoodsList() { var data = { - num: this.goodsValue.count + num: this.goodsValue.count, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.goodsValue.sources == 'category') { data.category_id = this.goodsValue.categoryId; diff --git a/components-diy/diy-groupbuy.vue b/components-diy/diy-groupbuy.vue index 0550dc1..6fc82c8 100644 --- a/components-diy/diy-groupbuy.vue +++ b/components-diy/diy-groupbuy.vue @@ -228,7 +228,9 @@ export default { }, getData() { var data = { - num: this.value.count + num: this.value.count, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-pinfan.vue b/components-diy/diy-pinfan.vue index 07c0a94..fa02856 100644 --- a/components-diy/diy-pinfan.vue +++ b/components-diy/diy-pinfan.vue @@ -273,7 +273,9 @@ export default { }, getData() { var data = { - num: this.value.count + num: this.value.count, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-pintuan.vue b/components-diy/diy-pintuan.vue index 2419bb1..60874b8 100644 --- a/components-diy/diy-pintuan.vue +++ b/components-diy/diy-pintuan.vue @@ -341,7 +341,9 @@ export default { }, getData() { var data = { - num: this.value.count + num: this.value.count, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.value.sources == 'diy') { data.num = 6; diff --git a/components-diy/diy-presale.vue b/components-diy/diy-presale.vue index f03bfdb..d8b2662 100644 --- a/components-diy/diy-presale.vue +++ b/components-diy/diy-presale.vue @@ -216,7 +216,9 @@ export default { }, getData() { var data = { - num: this.value.count + num: this.value.count, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-seckill.vue b/components-diy/diy-seckill.vue index bd09bd1..2749563 100644 --- a/components-diy/diy-seckill.vue +++ b/components-diy/diy-seckill.vue @@ -373,6 +373,10 @@ export default { getHeadData() { this.$api.sendRequest({ url: '/seckill/api/seckill/lists', + data: { + en_type: uni.getStorageSync("lang"), + _t: Date.now() + }, success: res => { this.headData = res; this.setHeadTime(); @@ -473,7 +477,9 @@ export default { url: '/seckill/api/seckillgoods/lists', data: { seckill_time_id: seckillId, - num: num + num: num, + en_type: uni.getStorageSync("lang"), + _t: Date.now() }, success: res => { var data = res.data;