Commit e8ba8844d395ec2e1668ff2cf586f37c78726359
1 parent
fc9d7ecd
店铺首页--电话字段改为用APP店铺信息里的店铺电话seller_tel
Showing
2 changed files
with
7 additions
and
6 deletions
| @@ -11,7 +11,7 @@ Page({ | @@ -11,7 +11,7 @@ Page({ | ||
| 11 | imgUrl: '', | 11 | imgUrl: '', |
| 12 | sellName: '', | 12 | sellName: '', |
| 13 | date: '', | 13 | date: '', |
| 14 | - phone: '', | 14 | + seller_tel: '', |
| 15 | address: '', | 15 | address: '', |
| 16 | name: '', | 16 | name: '', |
| 17 | lat: '', | 17 | lat: '', |
| @@ -59,7 +59,7 @@ Page({ | @@ -59,7 +59,7 @@ Page({ | ||
| 59 | seller: { | 59 | seller: { |
| 60 | sellName: reserev.sellername, | 60 | sellName: reserev.sellername, |
| 61 | date: reserev.daily.morning + ' ' + reserev.daily.night + ' ' + reserev.daily.noon, | 61 | date: reserev.daily.morning + ' ' + reserev.daily.night + ' ' + reserev.daily.noon, |
| 62 | - phone: reserev.phone, | 62 | + seller_tel: reserev.seller_tel.split(','), |
| 63 | address: reserev.map_address, | 63 | address: reserev.map_address, |
| 64 | lat: reserev.lat, | 64 | lat: reserev.lat, |
| 65 | long: reserev.long, | 65 | long: reserev.long, |
| @@ -153,10 +153,11 @@ Page({ | @@ -153,10 +153,11 @@ Page({ | ||
| 153 | } | 153 | } |
| 154 | }, | 154 | }, |
| 155 | // 拨打电话 | 155 | // 拨打电话 |
| 156 | - call() { | 156 | + call(e) { |
| 157 | + let info = e.currentTarget.dataset['info']; | ||
| 157 | wx.reportMonitor('1012', 1) | 158 | wx.reportMonitor('1012', 1) |
| 158 | wx.makePhoneCall({ | 159 | wx.makePhoneCall({ |
| 159 | - phoneNumber: this.data.seller.phone | 160 | + phoneNumber: info |
| 160 | }) | 161 | }) |
| 161 | }, | 162 | }, |
| 162 | /** | 163 | /** |
| @@ -10,8 +10,8 @@ | @@ -10,8 +10,8 @@ | ||
| 10 | <image bindtap="follow" wx:else class="img1" src="https://qn.colorcun.com/heartBlue.png" /> | 10 | <image bindtap="follow" wx:else class="img1" src="https://qn.colorcun.com/heartBlue.png" /> |
| 11 | </view> | 11 | </view> |
| 12 | <view class="colorFive text1 font28r">营业时间:{{seller.date}}</view> | 12 | <view class="colorFive text1 font28r">营业时间:{{seller.date}}</view> |
| 13 | - <view class="colorFive text2 font28r" bindtap="call"> | ||
| 14 | - 电话:<text class="colorText">{{seller.phone}}</text> | 13 | + <view class="colorFive text2 font28r"> |
| 14 | + 电话:<text class="colorText" wx:for="{{seller.seller_tel}}" bindtap="call" data-info="{{item}}">{{item}}{{(seller.seller_tel.length-1)!=index?',':''}}</text> | ||
| 15 | </view> | 15 | </view> |
| 16 | <view class="colorFive font28r" bindtap="looklocation"> | 16 | <view class="colorFive font28r" bindtap="looklocation"> |
| 17 | <text>地址:{{seller.address}}</text> | 17 | <text>地址:{{seller.address}}</text> |
-
Please register or login to post a comment