首页图标
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user