chenxiqiang 6 년 전
부모
커밋
f01096bdaf

+ 6
- 3
miniapp/app/pages/classify/index.js 파일 보기

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

+ 2
- 1
miniapp/app/pages/classify/index.json 파일 보기

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

+ 6
- 1
miniapp/app/pages/classify/index.wxml 파일 보기

7
                 <view class="bd">
7
                 <view class="bd">
8
                     <view class="item" wx:for="{{item.array}}" wx:for-item="l" data-name="{{l.name}}" data-id="{{l.id}}"
8
                     <view class="item" wx:for="{{item.array}}" wx:for-item="l" data-name="{{l.name}}" data-id="{{l.id}}"
9
                         bindtap="toIntroduce">
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
                             <view class="text">{{l.name}}</view>
16
                             <view class="text">{{l.name}}</view>
12
                             <view class="sub-text">{{l.info}}</view>
17
                             <view class="sub-text">{{l.info}}</view>
13
                             <image class="icon-arr" src="/img/arr1.png"></image>
18
                             <image class="icon-arr" src="/img/arr1.png"></image>

+ 2
- 0
miniapp/app/pages/classify/index.wxss 파일 보기

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

+ 3
- 3
miniapp/app/pages/home/index.js 파일 보기

51
         }
51
         }
52
     },
52
     },
53
     toConsult() {
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 파일 보기

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

+ 2
- 0
miniapp/app/pages/home/index.wxss 파일 보기

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

+ 4
- 1
miniapp/app/pages/yuesao/index.js 파일 보기

12
          * 4.target为Page对象,一般为this(必填)
12
          * 4.target为Page对象,一般为this(必填)
13
          * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选)
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
     bookServer() {
20
     bookServer() {
18
         const {
21
         const {

Loading…
취소
저장