فهرست منبع

更换彩色图标1

xiaohaizhao 1 سال پیش
والد
کامیت
52527ddaec

+ 13 - 3
components/Yl_Tabbar/index.js

@@ -1,7 +1,11 @@
 Component({
     properties: {
-        list: {type:Array},
-        callback: {type:Function}
+        list: {
+            type: Array
+        },
+        callback: {
+            type: Function
+        }
     },
     data: {
         safeAreaBot: 0,
@@ -23,10 +27,16 @@ Component({
     },
     observers: {
         '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) {
                 let showList = numberA.splice(0, 3);
                 showList.push({
-                    icon: "icon-gengduo",
+                    classnames: "t-icon color-gengduo",
+                    icon: "color-gengduo",
                     label: "更多"
                 })
                 this.setData({

+ 1 - 1
packageA/activity/detail.js

@@ -154,7 +154,7 @@ Page({
         if (isLeader || this.data.isAdmin) {
             if (status == '新建') {
                 tabbarList = [{
-                    icon: "icon-bianji",
+                    icon: "color-bianji",
                     label: "编辑"
                 }, {
                     icon: "icon-dibu-chengjiao",

+ 3 - 3
packageA/contacts/detail.js

@@ -183,11 +183,11 @@ Page({
             editdataleader = data.editdataleader;
         }
         if (this.data.auth.isdatafollowup) tabbarList.unshift({
-            icon: "icon-genjin",
+            icon: "color-genjin",
             label: "跟进"
         })
         if (editdataleader) tabbarList.push({
-            icon: "icon-zhuanyi",
+            icon: "color-genghuanfuzeren",
             label: "更换负责人"
         })
         if (!isLeader) {
@@ -195,7 +195,7 @@ Page({
             isLeader = s.data.editable == 1;
         }
         if (isLeader) tabbarList = tabbarList.concat({
-            icon: "icon-bianji",
+            icon: "color-bianji",
             label: "编辑"
         }, {
             icon: "icon-shanchu",

+ 1 - 1
packageA/opponent/detail.js

@@ -170,7 +170,7 @@ Page({
             }];
             let tabbarList = [];
             if (this.data.isAdmin || res.data.createuserid == wx.getStorageSync('userMsg').userid) tabbarList = [{
-                icon: "icon-bianji",
+                icon: "color-bianji",
                 label: "编辑"
             }, {
                 icon: "icon-shanchu",

+ 2 - 2
packageA/publicCustomer/detail.js

@@ -388,7 +388,7 @@ Page({
             value: res.data.deletereason
         }];
         let tabbarList = [{
-            icon: "icon-genjin",
+            icon: "color-genjin",
             label: "跟进"
         }];
         //公海客户可领取并且拥有领取客户的权限
@@ -397,7 +397,7 @@ Page({
             label: "领取"
         })
         if (this.data.isAdmin) tabbarList = tabbarList.concat([{
-            icon: "icon-bianji",
+            icon: "color-bianji",
             label: "编辑"
         }, {
             icon: "icon-shanchu",

+ 3 - 3
packageA/saleClue/detail.js

@@ -240,7 +240,7 @@ Page({
     },
     async setTabbarList() {
         let tabbarList = [{
-                icon: "icon-genjin",
+                icon: "color-genjin",
                 label: "跟进"
             }],
             detail = this.data.detail,
@@ -266,7 +266,7 @@ Page({
             })
         }
         if (this.data.isAdmin || isLeader) tabbarList.push({
-            icon: "icon-bianji",
+            icon: "color-bianji",
             label: "编辑"
         })
 
@@ -290,7 +290,7 @@ Page({
                 label: "转化客户"
             })
             if (editdataleader) tabbarList.push({
-                icon: "icon-zhuanyi",
+                icon: "color-genghuanfuzeren",
                 label: "更换负责人"
             })
         }

+ 1 - 1
packageA/salesForecasting/detail.js

@@ -28,7 +28,7 @@ Page({
             model: "#Work"
         }],
         tabbarList: [{
-            icon: "icon-genjin",
+            icon: "color-genjin",
             label: "跟进"
         }, {
             icon: "icon-guanlian-bianji",

+ 3 - 3
packageA/setclient/detail.js

@@ -473,7 +473,7 @@ Page({
             tabbarList = [];
 
         if (this.data.appAuth.isdatafollowup && detail.status != '已终止') tabbarList.push({
-            icon: "icon-genjin",
+            icon: "color-genjin",
             label: "跟进"
         });
 
@@ -491,11 +491,11 @@ Page({
         //负责人或管理员基础功能
         if ((isLeader || isAdmin) && detail.status != '已终止') {
             tabbarList.push({
-                icon: "icon-bianji",
+                icon: "color-bianji",
                 label: "编辑"
             })
             if (editdataleader) tabbarList.push({
-                icon: "icon-zhuanyi",
+                icon: "color-genghuanfuzeren",
                 label: "更换负责人"
             })
             /*    if (isLeader) tabbarList.push({

+ 1 - 1
packageA/setclient/modules/financing/detail/index.js

@@ -12,7 +12,7 @@ Page({
             label: "复制",
             alias: "copy"
         }, {
-            icon: "icon-bianji",
+            icon: "color-bianji",
             label: "编辑",
             alias: "edit"
         }, {

+ 1 - 1
packageA/setclient/modules/trace/detail/index.js

@@ -7,7 +7,7 @@ Page({
         sys_datafollowupid: null,
         detail: {},
         tabbarList: [{
-            icon: "icon-bianji",
+            icon: "color-bianji",
             label: "编辑"
         }, {
             icon: "icon-shanchu",

+ 1 - 1
packageA/work/detail.js

@@ -190,7 +190,7 @@ Page({
                 icon: "none"
             });
             let tabbarList = [{
-                icon: "icon-genjin",
+                icon: "color-genjin",
                 label: "跟进"
             }];
             if (res.data.status != '已完成') tabbarList.push({

+ 1 - 1
pages/trace/detail.js

@@ -7,7 +7,7 @@ Page({
         sys_datafollowupid: null,
         detail: {},
         tabbarList: [{
-            icon: "icon-bianji",
+            icon: "color-bianji",
             label: "编辑"
         }, {
             icon: "icon-shanchu",

+ 1 - 0
static/font-icon.wxss

@@ -1,4 +1,5 @@
 @import "/utils/work/work-icon.wxss";
+@import "./iconfont-weapp-icon.wxss";
 @import "./stylesheet.wxss";
 
 .iconfont {

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 11 - 0
static/iconfont-weapp-icon.wxss


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است