Browse Source

'将icon.wxss移到style目录'

chinadelu 5 years ago
parent
commit
2b65446802
4 changed files with 16 additions and 9 deletions
  1. 8 8
      app.json
  2. 1 1
      app.wxss
  3. 7 0
      pages/user/user.wxml
  4. 0 0
      style/icon.wxss

+ 8 - 8
app.json

@@ -22,26 +22,26 @@
       {
         "pagePath": "pages/index/index",
         "text": "首页",
-        "iconPath": "image/icon/home-icon.png",
-        "selectedIconPath": "image/icon/home-selecticon.png"
+        "iconPath": "/image/icon/home-icon.png",
+        "selectedIconPath": "/image/icon/home-selecticon.png"
       },
       {
         "pagePath": "pages/classification/classification",
         "text": "分类",
-        "iconPath": "image/icon/fen-icon.png",
-        "selectedIconPath": "image/icon/fen-selecticon.png"
+        "iconPath": "/image/icon/fen-icon.png",
+        "selectedIconPath": "/image/icon/fen-selecticon.png"
       },
       {
         "pagePath": "pages/collection/collection",
         "text": "收藏",
-        "iconPath": "image/icon/collection-icon.png",
-        "selectedIconPath": "image/icon/collection-selecticon.png"
+        "iconPath": "/image/icon/collection-icon.png",
+        "selectedIconPath": "/image/icon/collection-selecticon.png"
       },
       {
         "pagePath": "pages/user/user",
         "text": "我的",
-        "iconPath": "image/icon/user-icon.png",
-        "selectedIconPath": "image/icon/user-selecticon.png"
+        "iconPath": "/image/icon/user-icon.png",
+        "selectedIconPath": "/image/icon/user-selecticon.png"
       }
     ]
   },

+ 1 - 1
app.wxss

@@ -1,4 +1,4 @@
 /* 引入icon样式库 */
-@import 'icon.wxss';
+@import '/style/icon.wxss';
 @import '/style/common.wxss';
 

+ 7 - 0
pages/user/user.wxml

@@ -38,6 +38,7 @@
 			</view>
 			<!-- 签到 -->
 			<view class="qiandao">
+			<!-- 签到涉及canvas所以暂时搁置 -->
 				<view class="qianText">
 					<text class="icon-calendar text-gray"></text>
 					<text style="margin-left:20rpx">签到</text>
@@ -58,6 +59,12 @@
 				<text class="icon-right text-gray"></text>
 			</view>
 			<view class="choiceItem">
+				<!-- 
+					
+					因为切换为夜间模式需要使用自定义的tarbar,
+				  而这个小程序是一个初级学习项目,所以此功能暂时搁置 
+	
+				-->
 				<view class="">
 					<text class="icon-creative text-gray"></text>
 					<text style="margin-left:20rpx">夜间模式</text>

+ 0 - 0
icon.wxss → style/icon.wxss