默认提交
Showing
8 changed files
with
23 additions
and
4 deletions
... | @@ -20,6 +20,10 @@ Component({ | ... | @@ -20,6 +20,10 @@ Component({ |
20 | pics: { | 20 | pics: { |
21 | type: Array, | 21 | type: Array, |
22 | value: [] | 22 | value: [] |
23 | }, | ||
24 | contact: { | ||
25 | type: Boolean, | ||
26 | value: true | ||
23 | } | 27 | } |
24 | }, | 28 | }, |
25 | data: { | 29 | data: { |
... | @@ -60,6 +64,12 @@ Component({ | ... | @@ -60,6 +64,12 @@ Component({ |
60 | default: | 64 | default: |
61 | break; | 65 | break; |
62 | } | 66 | } |
67 | }, | ||
68 | // 客服消息 | ||
69 | handleContact(e) { | ||
70 | console.log("handleContact"); | ||
71 | console.log(e.detail.path) | ||
72 | console.log(e.detail.query) | ||
63 | } | 73 | } |
64 | } | 74 | } |
65 | }) | 75 | }) | ... | ... |
... | @@ -5,4 +5,7 @@ | ... | @@ -5,4 +5,7 @@ |
5 | <view wx:for="{{pics}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn"> | 5 | <view wx:for="{{pics}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn"> |
6 | <image mode="aspectFit" src="{{'../../image/shortcut/'+item+'.png'}}" class="pics ani-tada" /> | 6 | <image mode="aspectFit" src="{{'../../image/shortcut/'+item+'.png'}}" class="pics ani-tada" /> |
7 | </view> | 7 | </view> |
8 | <button class="btn point" wx:if="{{contact}}" open-type="contact" bindcontact="handleContact"> | ||
9 | <span class="iconfont iconicon-test3 contact"></span> | ||
10 | </button> | ||
8 | </view> | 11 | </view> | ... | ... |
... | @@ -81,4 +81,4 @@ | ... | @@ -81,4 +81,4 @@ |
81 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> | 81 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> |
82 | </van-popup> | 82 | </van-popup> |
83 | <shortcut class="red-p" types="{{[]}}" pics="{{['red-package']}}"></shortcut> | 83 | <shortcut class="red-p" types="{{[]}}" pics="{{['red-package']}}"></shortcut> |
84 | <shortcut></shortcut> | 84 | <!-- <shortcut></shortcut> --> | ... | ... |
... | @@ -36,4 +36,4 @@ | ... | @@ -36,4 +36,4 @@ |
36 | <van-popup show="{{ authorizeVisible }}"> | 36 | <van-popup show="{{ authorizeVisible }}"> |
37 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> | 37 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> |
38 | </van-popup> | 38 | </van-popup> |
39 | <shortcut></shortcut> | 39 | <!-- <shortcut></shortcut> --> | ... | ... |
... | @@ -57,4 +57,4 @@ | ... | @@ -57,4 +57,4 @@ |
57 | <van-popup show="{{ authorizeVisible }}"> | 57 | <van-popup show="{{ authorizeVisible }}"> |
58 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> | 58 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> |
59 | </van-popup> | 59 | </van-popup> |
60 | <shortcut></shortcut> | 60 | <!-- <shortcut></shortcut> --> | ... | ... |
-
Please register or sign in to post a comment