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() {
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();

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;