首页图标

This commit is contained in:
2023-09-26 16:38:39 +08:00
parent 054f945b8a
commit 1c47c1cd47
19 changed files with 52 additions and 37 deletions

View File

@@ -57,11 +57,12 @@
<template v-for="optionItme,optionIndex in item.submenu">
<view class="option" v-if="user.authList.includes(optionItme.lable)" :key="optionIndex" @tap.stop="jump(optionItme)">
<view class="star" @tap.stop="collectionFn(optionItme)">
<uni-icons :color="iconFn(optionItme)" custom-prefix="iconfont" type="iconshoucang-yishoucang" size="18"></uni-icons>
<uni-icons :color="iconFn(optionItme)" custom-prefix="iconfont" type="iconshoucang-yishoucang" size="14"></uni-icons>
</view>
<view class="wall">
<view class="name">{{optionItme.name}}</view>
<uni-icons color="#fff" custom-prefix="iconfont" :type="optionItme.icon" size="50"></uni-icons>
<image style="width: 100rpx;height: 100rpx;" :src="optionItme.image"></image>
<!-- <uni-icons color="#fff" custom-prefix="iconfont" :type="optionItme.icon" size="50"></uni-icons> -->
</view>
</view>
</template>
@@ -80,7 +81,8 @@
<uni-icons custom-prefix="iconfont" color="#fff" type="iconchiping" size="20"></uni-icons>
</view>
<view class="collection_item_name">
<uni-icons custom-prefix="iconfont" color="#2866FF" :type="item.icon" size="30"></uni-icons>
<image style="width: 95rpx;height: 95rpx;" :src="item.image"></image>
<!-- <uni-icons custom-prefix="iconfont" color="#2866FF" :type="item.icon" size="30"></uni-icons> -->
<view class="collection_item_text">{{item.name}}</view>
</view>
</view>
@@ -176,7 +178,7 @@
this.$set(this.collection,index,'')
},
iconFn(e) {
return this.collection.filter((item) => e.name == item.name).length == 0 ? '#bbbbbb' : '#FFB730';
return this.collection.filter((item) => e.name == item.name).length == 0 ? '#bbbbbb' : '#0256FF';
},
initFn() {
this.menuList = JSON.parse(JSON.stringify(menus))