|
@@ -74,12 +74,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="wallet-actions" v-if="tradeList&&tradeList.length>0">
|
|
|
|
|
|
|
+ <view class="wallet-actions" v-if="tradeList&&tradeList.length>0&&showIcons">
|
|
|
<view class="wallet-btn withdraw" @click="goDetail(tradeList[0].jumpUrl)">{{tradeList[0].iconName}}</view>
|
|
<view class="wallet-btn withdraw" @click="goDetail(tradeList[0].jumpUrl)">{{tradeList[0].iconName}}</view>
|
|
|
<view class="wallet-btn recharge" @click="goDetail(tradeList[1].jumpUrl)">{{tradeList[1].iconName}}</view>
|
|
<view class="wallet-btn recharge" @click="goDetail(tradeList[1].jumpUrl)">{{tradeList[1].iconName}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="functions" v-if="useList&&useList.length>0">
|
|
|
|
|
|
|
+ <view class="functions" v-if="useList&&useList.length>0&&showIcons">
|
|
|
<view class="function-item" v-for="item in useList" :key="item.iconName" @click="goDetail(item.jumpUrl)">
|
|
<view class="function-item" v-for="item in useList" :key="item.iconName" @click="goDetail(item.jumpUrl)">
|
|
|
<view class="function-icon">
|
|
<view class="function-icon">
|
|
|
<image class="img" :src="item.src" mode="widthFix"></image>
|
|
<image class="img" :src="item.src" mode="widthFix"></image>
|
|
@@ -163,6 +163,8 @@ import { getMetalBalance } from "@/api/vault";
|
|
|
import { footprintList } from "@/api/merchant.js";
|
|
import { footprintList } from "@/api/merchant.js";
|
|
|
import { toLogin } from "@/libs/login.js";
|
|
import { toLogin } from "@/libs/login.js";
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+const showIcons = ref(false)
|
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
|
const { Toast } = useToast();
|
|
const { Toast } = useToast();
|
|
|
const isLogin = appStore.isLogin;
|
|
const isLogin = appStore.isLogin;
|
|
@@ -260,6 +262,11 @@ watch(
|
|
|
const configDate = newVal || appStore.$wxConfig;
|
|
const configDate = newVal || appStore.$wxConfig;
|
|
|
wxConfig.value = configDate;
|
|
wxConfig.value = configDate;
|
|
|
const list = JSON.parse(configDate.essentialFunctions);
|
|
const list = JSON.parse(configDate.essentialFunctions);
|
|
|
|
|
+ if(list[0].status==false){
|
|
|
|
|
+ showIcons.value = false;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ showIcons.value = true;
|
|
|
|
|
+ }
|
|
|
tradeList.value = [list[0],list[1]];
|
|
tradeList.value = [list[0],list[1]];
|
|
|
useList.value = [{
|
|
useList.value = [{
|
|
|
...list[2],
|
|
...list[2],
|