用户中心菜单先后顺序图片错误修复,app.vue里面站点变灰方法重复去除

master
gongfuxiang 2024-01-26 23:43:16 +08:00
parent afa5936bb0
commit c7570e341c
2 changed files with 11 additions and 35 deletions

25
App.vue
View File

@ -2003,31 +2003,6 @@
return false;
},
//
is_app_mourning() {
var is_app = parseInt(this.get_config('plugins_base.mourning.data.is_app', 0));
if (is_app == 1) {
//
var time_current = Date.parse(new Date());
//
var time_start = this.get_config('plugins_base.mourning.data.time_start') || null;
if (time_start != null) {
if (Date.parse(new Date(time_start)) > time_current) {
return false;
}
}
//
var time_end = this.get_config('plugins_base.mourning.data.time_end') || null;
if (time_end != null) {
if (Date.parse(new Date(time_end)) < time_current) {
return false;
}
}
return true;
}
return false;
},
//
currency_symbol() {
return this.get_config('currency_symbol') || this.data.currency_symbol;

View File

@ -109,7 +109,7 @@
</view>
</block>
<!-- 清除缓存 -->
<view class="nav-item br-t cp padding-main" @tap="remove_user_cache_event">
<view v-if="(nav_logout_data || null) != null" class="nav-item br-t cp padding-main" @tap="remove_user_cache_event">
<view class="arrow-right">
<image :src="common_static_url + nav_logout_data.icon + '-icon.png'" class="item-icon va-m" mode="widthFix"></image>
<text class="item-name va-m cr-base margin-left-sm text-size-sm">{{ nav_logout_data.name }}</text>
@ -135,7 +135,7 @@
</block>
</block>
<!-- 清除缓存 -->
<view class="nav-item padding-main fl tc cp" @tap="remove_user_cache_event">
<view v-if="(nav_logout_data || null) != null" class="nav-item padding-main fl tc cp" @tap="remove_user_cache_event">
<image :src="common_static_url + nav_logout_data.icon + '-icon.png'" class="item-icon" mode="widthFix"></image>
<view class="item-name single-text cr-base text-size-sm">{{ nav_logout_data.name }}</view>
</view>
@ -189,7 +189,7 @@
user_id: '',
nickname: '',
message_total: 0,
nav_logout_data: {},
nav_logout_data: null,
//
head_nav_list: [],
// +
@ -246,26 +246,27 @@
methods: {
//
set_resources_data() {
var old_nav = this.head_nav_list;
var head_nav_list = [
{
name: this.$t('promotion-order.promotion-order.iwa646'),
url: 'user-order',
count: this.head_nav_list.length > 0 ? this.head_nav_list[0].count : 0,
count: old_nav.length > 0 ? old_nav[0].count : 0,
},
{
name: this.$t('user.user.3q4p8k'),
url: 'user-favor',
count: this.head_nav_list.length > 0 ? this.head_nav_list[1].count : 0,
count: old_nav.length > 0 ? old_nav[1].count : 0,
},
{
name: this.$t('user.user.57xw84'),
url: 'user-goods-browse',
count: this.head_nav_list.length > 0 ? this.head_nav_list[2].count : 0,
count: old_nav.length > 0 ? old_nav[2].count : 0,
},
{
name: this.$t('user.user.k78280'),
url: 'user-integral',
count: this.head_nav_list.length > 0 ? this.head_nav_list[3].count : 0,
count: old_nav.length > 0 ? old_nav[3].count : 0,
},
];
var nav_logout_data = {
@ -274,9 +275,9 @@
};
var nickname = this.$t('login.login.6yfr9g');
this.setData({
head_nav_list,
nav_logout_data,
nickname,
head_nav_list: head_nav_list,
nav_logout_data: nav_logout_data,
nickname: nickname,
});
},