Browse Source

彩色图标3

xiaohaizhao 8 months ago
parent
commit
cd5b9c7519

+ 0 - 1
components/Yl_Tabbar/index.js

@@ -29,7 +29,6 @@ Component({
         'list': function (numberA, numberB) {
             numberA = numberA.map(v => {
                 v.classnames = (v.icon.split("-")[0] == 'color' ? 't-icon ' : 'iconfont ') + v.icon
-                console.log(v.classnames)
                 return v
             })
             if (numberA.length >= 5) {

+ 1 - 1
components/Yl_Tabbar/index.wxml

@@ -1,7 +1,7 @@
 <view class="tabbar" style="padding-bottom: {{safeAreaBot}}rpx;">
     <navigator url="#" class="tabbar-item" wx:for="{{showList}}" wx:key="index" data-item="{{item}}" bindtap="callback">
         <view class="icon" wx:if="{{item.icon}}">
-            <text class="iconfont {{item.icon}}" />
+            <text class="{{item.classnames}}" />
         </view>
         <view wx:else class="num line-1">{{item.num}}</view>
         <view class="label line-1">{{language[item.label]||item.label}}</view>

File diff suppressed because it is too large
+ 2 - 0
static/iconfont-weapp-icon.wxss


Some files were not shown because too many files changed in this diff