chore:改了中英文模式

This commit is contained in:
2026-02-07 16:53:40 +08:00
parent 19a53ef414
commit ec9e76fda7
10 changed files with 44 additions and 19 deletions

View File

@@ -305,15 +305,15 @@ export default {
} }
}, },
async getDiyInfo() { async getDiyInfo() {
let res = await this.$api.sendRequest({ let res = await this.$api.sendRequest({
url: '/api/diyview/info', url: '/api/diyview/info',
data: { data: {
id: this.id, id: this.id,
name: this.name, name: this.name,
en_type:uni.getStorageSync("lang"),//获取语言底部 _t: Date.now()
}, },
async: false async: false
}); });
if (res.code != 0 || !res.data) { if (res.code != 0 || !res.data) {
if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); if (this.$refs.loadingCover) this.$refs.loadingCover.hide();

View File

@@ -292,7 +292,10 @@ export default {
async getDataing() { async getDataing() {
var res = await this.$api.sendRequest({ var res = await this.$api.sendRequest({
url: '/bargain/api/goods/bargainingList', url: '/bargain/api/goods/bargainingList',
data: {}, data: {
en_type: uni.getStorageSync("lang"),
_t: Date.now()
},
async: false async: false
}); });
@@ -307,7 +310,9 @@ export default {
getData() { getData() {
var data = { var data = {
num: this.value.count, 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') { if (this.value.sources == 'diy') {
data.num = 0; data.num = 0;

View File

@@ -327,7 +327,9 @@ export default {
this.$api.sendRequest({ this.$api.sendRequest({
url: '/api/goodscategory/tree', url: '/api/goodscategory/tree',
data: { data: {
level: 3 level: 3,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}, },
success: res => { success: res => {
if (res.code == 0) { if (res.code == 0) {

View File

@@ -414,7 +414,9 @@ export default {
}, },
getGoodsList() { getGoodsList() {
var data = { var data = {
num: this.goodsValue.count num: this.goodsValue.count,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}; };
if (this.goodsValue.sources == 'category') { if (this.goodsValue.sources == 'category') {
data.category_id = this.goodsValue.categoryId; data.category_id = this.goodsValue.categoryId;

View File

@@ -182,7 +182,9 @@ export default {
}, },
getGoodsList() { getGoodsList() {
var data = { var data = {
num: this.goodsValue.count num: this.goodsValue.count,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}; };
if (this.goodsValue.sources == 'category') { if (this.goodsValue.sources == 'category') {
data.category_id = this.goodsValue.categoryId; data.category_id = this.goodsValue.categoryId;

View File

@@ -228,7 +228,9 @@ export default {
}, },
getData() { getData() {
var data = { var data = {
num: this.value.count num: this.value.count,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}; };
if (this.value.sources == 'diy') { if (this.value.sources == 'diy') {
data.num = 0; data.num = 0;

View File

@@ -273,7 +273,9 @@ export default {
}, },
getData() { getData() {
var data = { var data = {
num: this.value.count num: this.value.count,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}; };
if (this.value.sources == 'diy') { if (this.value.sources == 'diy') {
data.num = 0; data.num = 0;

View File

@@ -341,7 +341,9 @@ export default {
}, },
getData() { getData() {
var data = { var data = {
num: this.value.count num: this.value.count,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}; };
if (this.value.sources == 'diy') { if (this.value.sources == 'diy') {
data.num = 6; data.num = 6;

View File

@@ -216,7 +216,9 @@ export default {
}, },
getData() { getData() {
var data = { var data = {
num: this.value.count num: this.value.count,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}; };
if (this.value.sources == 'diy') { if (this.value.sources == 'diy') {
data.num = 0; data.num = 0;

View File

@@ -373,6 +373,10 @@ export default {
getHeadData() { getHeadData() {
this.$api.sendRequest({ this.$api.sendRequest({
url: '/seckill/api/seckill/lists', url: '/seckill/api/seckill/lists',
data: {
en_type: uni.getStorageSync("lang"),
_t: Date.now()
},
success: res => { success: res => {
this.headData = res; this.headData = res;
this.setHeadTime(); this.setHeadTime();
@@ -473,7 +477,9 @@ export default {
url: '/seckill/api/seckillgoods/lists', url: '/seckill/api/seckillgoods/lists',
data: { data: {
seckill_time_id: seckillId, seckill_time_id: seckillId,
num: num num: num,
en_type: uni.getStorageSync("lang"),
_t: Date.now()
}, },
success: res => { success: res => {
var data = res.data; var data = res.data;