梁沛聪 il y a 6 ans
Parent
révision
982db8b270

+ 6
- 3
miniapp/app/pages/classify/index.js Voir le fichier

@@ -26,6 +26,9 @@ new $.Page({
26 26
                     if (d.pid) {
27 27
                         list.forEach((l, index) => {
28 28
                             l.color = colors[index];
29
+                            if (d.name.includes('咨询')) {
30
+                                d.isConsult = true;
31
+                            }
29 32
                             if (l.id === d.pid) {
30 33
                                 l['array'].push(d);
31 34
                             }
@@ -49,9 +52,9 @@ new $.Page({
49 52
                     path: `/pages/goodsList/index`
50 53
                 });
51 54
             } else if (name.includes('咨询')) {
52
-                $.wx.showToast({
53
-                    title: '持续开发中'
54
-                });
55
+                // $.wx.showToast({
56
+                //     title: '持续开发中'
57
+                // });
55 58
             } else {
56 59
                 $.router.goto({
57 60
                     path: `/pages/introduce/index`,

+ 2
- 1
miniapp/app/pages/classify/index.json Voir le fichier

@@ -1,3 +1,4 @@
1 1
 {
2
-    "navigationBarTitleText": "分类"
2
+    "navigationBarTitleText": "分类",
3
+    "backgroundColor": "#ebebeb"
3 4
 }

+ 6
- 1
miniapp/app/pages/classify/index.wxml Voir le fichier

@@ -7,7 +7,12 @@
7 7
                 <view class="bd">
8 8
                     <view class="item" wx:for="{{item.array}}" wx:for-item="l" data-name="{{l.name}}" data-id="{{l.id}}"
9 9
                         bindtap="toIntroduce">
10
-                        <view class="inner">
10
+                        <button class="inner" hover-class="none" open-type="contact" session-from="" wx:if="{{l.isConsult}}">
11
+                            <view class="text">{{l.name}}</view>
12
+                            <view class="sub-text">{{l.info}}</view>
13
+                            <image class="icon-arr" src="/img/arr1.png"></image>
14
+                        </button>
15
+                        <view class="inner" wx:else>
11 16
                             <view class="text">{{l.name}}</view>
12 17
                             <view class="sub-text">{{l.info}}</view>
13 18
                             <image class="icon-arr" src="/img/arr1.png"></image>

+ 2
- 0
miniapp/app/pages/classify/index.wxss Voir le fichier

@@ -86,6 +86,7 @@ page {
86 86
     border-radius: 6rpx;
87 87
     padding: 20rpx 12rpx;
88 88
     position: relative;
89
+    line-height: 1.4;
89 90
 }
90 91
 
91 92
 .icon-arr {
@@ -104,4 +105,5 @@ page {
104 105
     font-size: 20rpx;
105 106
     color: #999999;
106 107
     margin-top: 10rpx;
108
+    text-align: left;
107 109
 }

+ 3
- 3
miniapp/app/pages/home/index.js Voir le fichier

@@ -51,8 +51,8 @@ new $.Page({
51 51
         }
52 52
     },
53 53
     toConsult() {
54
-        $.wx.showToast({
55
-            title: '持续开发中'
56
-        });
54
+        // $.wx.showToast({
55
+        //     title: '持续开发中'
56
+        // });
57 57
     }
58 58
 });

+ 2
- 2
miniapp/app/pages/home/index.wxml Voir le fichier

@@ -43,12 +43,12 @@
43 43
                     <view class="name">催乳及产后康复</view>
44 44
                 </view>
45 45
             </view>
46
-            <view class="item" bindtap="toConsult">
46
+            <button class="item" hover-class="none" open-type="contact" session-from="">
47 47
                 <view class="entrance">
48 48
                     <image class="img" mode="widthFix" src="/img/entrance5.png"></image>
49 49
                     <view class="name">月子及育婴知识咨询</view>
50 50
                 </view>
51
-            </view>
51
+            </button>
52 52
             <view class="item" bindtap="handleJump" data-route="classify" data-target="jiazheng" data-type="5">
53 53
                 <view class="entrance">
54 54
                     <image class="img" mode="widthFix" src="/img/entrance6.png"></image>

+ 2
- 0
miniapp/app/pages/home/index.wxss Voir le fichier

@@ -16,6 +16,8 @@
16 16
     width: 33.33%;
17 17
     vertical-align: top;
18 18
     margin-bottom: 20rpx;
19
+    padding: 0;
20
+    font-size: 0;
19 21
 }
20 22
 
21 23
 .entrance {

+ 4
- 1
miniapp/app/pages/yuesao/index.js Voir le fichier

@@ -12,7 +12,10 @@ new $.Page({
12 12
          * 4.target为Page对象,一般为this(必填)
13 13
          * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选)
14 14
          */
15
-        WxParse.wxParse('article', 'html', article, this, 5)
15
+        WxParse.wxParse('article', 'html', article, this, 5);
16
+        $.request('server_fields', 'GET', {}).then((res) => {
17
+
18
+        });
16 19
     },
17 20
     bookServer() {
18 21
         const {

Loading…
Annuler
Enregistrer