Compare commits
3 Commits
c6fd13956a
...
ec9e76fda7
| Author | SHA1 | Date | |
|---|---|---|---|
| ec9e76fda7 | |||
| 19a53ef414 | |||
| a981c02baf |
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -216,8 +216,15 @@ export default {
|
||||
this.currentLangIndex = this.currentLangIndex === 0 ? 1 : 0;
|
||||
const targetLang = this.langIndexMap[this.currentLangIndex];
|
||||
|
||||
// 调用语言切换逻辑(设置 storage + 清空缓存)
|
||||
this.$langConfig.change(targetLang);
|
||||
uni.setStorageSync("lang", targetLang);
|
||||
|
||||
const pages = getCurrentPages();
|
||||
const currentPage = pages[pages.length - 1];
|
||||
const currentRoute = currentPage.route;
|
||||
|
||||
uni.reLaunch({
|
||||
url: '/' + currentRoute
|
||||
});
|
||||
},
|
||||
|
||||
handleUnifiedKefuClick() {
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
<view class="input-area">
|
||||
<view class="input-tools">
|
||||
<button class="tool-btn" @click="showMoreTools">
|
||||
<text class="iconfont icon-plus">📌</text>
|
||||
<text class="iconfont icon-plus">...</text>
|
||||
</button>
|
||||
<button class="tool-btn" @click="toggleVoiceInput">
|
||||
<text class="iconfont" :class="voiceInputing ? 'icon-stop' : 'icon-voice'">🎤</text>
|
||||
@@ -2070,6 +2070,7 @@ $radius-lg: 36rpx;
|
||||
.input-tools {
|
||||
display: flex;
|
||||
margin-bottom: 16rpx;
|
||||
align-items: flex-start;
|
||||
|
||||
.tool-btn {
|
||||
width: 64rpx;
|
||||
@@ -2077,6 +2078,7 @@ $radius-lg: 36rpx;
|
||||
border-radius: 50%;
|
||||
background-color: $bg-main;
|
||||
margin-right: 16rpx;
|
||||
margin-top: -8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</view>
|
||||
<view class="header-right">
|
||||
<button class="menu-btn" v-show="showMenuButton" @click="showMenu">
|
||||
<text class="iconfont icon-ellipsis"></text>
|
||||
<text>⚙️</text>
|
||||
</button>
|
||||
<!-- 占位元素,确保布局平衡 -->
|
||||
<view v-show="!showMenuButton" class="placeholder"></view>
|
||||
|
||||
Reference in New Issue
Block a user