Bläddra i källkod

彩色图标3

xiaohaizhao 8 månader sedan
förälder
incheckning
cd5b9c7519
3 ändrade filer med 3 tillägg och 2 borttagningar
  1. 0 1
      components/Yl_Tabbar/index.js
  2. 1 1
      components/Yl_Tabbar/index.wxml
  3. 2 0
      static/iconfont-weapp-icon.wxss

+ 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>

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 2 - 0
static/iconfont-weapp-icon.wxss


Vissa filer visades inte eftersom för många filer har ändrats