Browse Source

列表渲染

xcx 4 years ago
parent
commit
22f0c5dc4d
1 changed files with 17 additions and 16 deletions
  1. 17
    16
      src/app.config.js

+ 17
- 16
src/app.config.js View File

1
+const CommonUrl = 'https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/'
1
 export default {
2
 export default {
2
   pages: [
3
   pages: [
3
 
4
 
29
   tabBar: {
30
   tabBar: {
30
     list: [
31
     list: [
31
       {
32
       {
32
-        iconPath: 'assets/image/iconhuishenghuo-.png',
33
-        selectedIconPath: 'assets/image/iconhuishenghuo.png',
34
-        pagePath: 'pages/HuiShengHuo/index',
35
-        text: '荟 · 生活'
33
+        iconPath: `${CommonUrl}iconhuishenghuo-.png`,
34
+        selectedIconPath: `${CommonUrl}iconhuishenghuo.png`,
35
+        pagePath: `pages/HuiShengHuo/index`,
36
+        text: `荟 · 生活`
36
       },
37
       },
37
       {
38
       {
38
-        iconPath: 'assets/image/iconhuiquanyi-.png',
39
-        selectedIconPath: 'assets/image/iconhuiquanyi.png',
40
-        pagePath: 'pages/HuiQuanYi/index',
41
-        text: '荟 · 权益'
39
+        iconPath: `${CommonUrl}iconhuiquanyi-.png`,
40
+        selectedIconPath: `${CommonUrl}iconhuiquanyi.png`,
41
+        pagePath: `pages/HuiQuanYi/index`,
42
+        text: `荟 · 权益`
42
       },
43
       },
43
       {
44
       {
44
-        iconPath: 'assets/image/iconhuiaixin-.png',
45
-        selectedIconPath: 'assets/image/iconhuiaixin.png',
46
-        pagePath: 'pages/HuiAiXin/index',
47
-        text: '荟 · 爱心'
45
+        iconPath: `${CommonUrl}iconhuiaixin-.png`,
46
+        selectedIconPath: `${CommonUrl}iconhuiaixin.png`,
47
+        pagePath: `pages/HuiAiXin/index`,
48
+        text: `荟 · 爱心`
48
       },
49
       },
49
       {
50
       {
50
-        iconPath: 'assets/image/iconwode-.png',
51
-        selectedIconPath: 'assets/image/iconwode.png',
52
-        pagePath: 'pages/WoDe/index',
53
-        text: '我的'
51
+        iconPath: `${CommonUrl}iconwode-.png`,
52
+        selectedIconPath: `${CommonUrl}iconwode.png`,
53
+        pagePath: `pages/WoDe/index`,
54
+        text: `我的`
54
       }
55
       }
55
     ]
56
     ]
56
   },
57
   },