From ba2c7d6d64cccc0bda7cc696677ac64d83242d1a Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Sat, 7 Feb 2026 17:51:10 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"chore=EF=BC=9A=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=AD=E8=8B=B1=E6=96=87=E6=8C=89=E9=92=AE=E4=B8=8D=E8=B7=B3?= =?UTF-8?q?=E5=88=B0=E2=80=98=E6=88=91=E7=9A=84=E2=80=99=E4=BA=86"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 19a53ef4142480ab9373087138d58466d4498ee2. --- 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, 19 insertions(+), 44 deletions(-) diff --git a/common/js/diy.js b/common/js/diy.js index f9fc486..e3c1c78 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, - _t: Date.now() - }, - async: false + 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 }); 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 8511110..ef68915 100644 --- a/components-diy/diy-bargain.vue +++ b/components-diy/diy-bargain.vue @@ -292,10 +292,7 @@ export default { async getDataing() { var res = await this.$api.sendRequest({ url: '/bargain/api/goods/bargainingList', - data: { - en_type: uni.getStorageSync("lang"), - _t: Date.now() - }, + data: {}, async: false }); @@ -310,9 +307,7 @@ export default { getData() { var data = { num: this.value.count, - is_exclude_bargaining: 1, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + is_exclude_bargaining: 1 }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue index 6bad5d8..f9235dd 100644 --- a/components-diy/diy-category.vue +++ b/components-diy/diy-category.vue @@ -327,9 +327,7 @@ export default { this.$api.sendRequest({ url: '/api/goodscategory/tree', data: { - level: 3, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + level: 3 }, success: res => { if (res.code == 0) { diff --git a/components-diy/diy-goods-list.vue b/components-diy/diy-goods-list.vue index 30f542c..75d5540 100644 --- a/components-diy/diy-goods-list.vue +++ b/components-diy/diy-goods-list.vue @@ -414,9 +414,7 @@ export default { }, getGoodsList() { var data = { - num: this.goodsValue.count, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: this.goodsValue.count }; 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 24e7a31..8b98950 100644 --- a/components-diy/diy-goods-recommend.vue +++ b/components-diy/diy-goods-recommend.vue @@ -182,9 +182,7 @@ export default { }, getGoodsList() { var data = { - num: this.goodsValue.count, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: this.goodsValue.count }; 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 6fc82c8..0550dc1 100644 --- a/components-diy/diy-groupbuy.vue +++ b/components-diy/diy-groupbuy.vue @@ -228,9 +228,7 @@ export default { }, getData() { var data = { - num: this.value.count, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: this.value.count }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-pinfan.vue b/components-diy/diy-pinfan.vue index fa02856..07c0a94 100644 --- a/components-diy/diy-pinfan.vue +++ b/components-diy/diy-pinfan.vue @@ -273,9 +273,7 @@ export default { }, getData() { var data = { - num: this.value.count, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: this.value.count }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-pintuan.vue b/components-diy/diy-pintuan.vue index 60874b8..2419bb1 100644 --- a/components-diy/diy-pintuan.vue +++ b/components-diy/diy-pintuan.vue @@ -341,9 +341,7 @@ export default { }, getData() { var data = { - num: this.value.count, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: this.value.count }; if (this.value.sources == 'diy') { data.num = 6; diff --git a/components-diy/diy-presale.vue b/components-diy/diy-presale.vue index d8b2662..f03bfdb 100644 --- a/components-diy/diy-presale.vue +++ b/components-diy/diy-presale.vue @@ -216,9 +216,7 @@ export default { }, getData() { var data = { - num: this.value.count, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: this.value.count }; if (this.value.sources == 'diy') { data.num = 0; diff --git a/components-diy/diy-seckill.vue b/components-diy/diy-seckill.vue index 2749563..bd09bd1 100644 --- a/components-diy/diy-seckill.vue +++ b/components-diy/diy-seckill.vue @@ -373,10 +373,6 @@ 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(); @@ -477,9 +473,7 @@ export default { url: '/seckill/api/seckillgoods/lists', data: { seckill_time_id: seckillId, - num: num, - en_type: uni.getStorageSync("lang"), - _t: Date.now() + num: num }, success: res => { var data = res.data;