Showing
29 changed files
with
498 additions
and
42 deletions
miniprogram/pages/customer/collectSeller.js
0 → 100644
| 1 | +/* pages/customer/collectSeller.wxss */ | ||
| 2 | +.main { | ||
| 3 | + display: flex; | ||
| 4 | + flex-direction: column; | ||
| 5 | + align-items: center; | ||
| 6 | +} | ||
| 7 | + | ||
| 8 | +.imgs { | ||
| 9 | + margin: 120rpx 0 20rpx 0; | ||
| 10 | + border: 4rpx solid #0143a3; | ||
| 11 | + border-radius: 50%; | ||
| 12 | + width: 140rpx; | ||
| 13 | + height: 140rpx; | ||
| 14 | + display: flex; | ||
| 15 | + align-items: center; | ||
| 16 | + justify-content: center; | ||
| 17 | +} | ||
| 18 | + | ||
| 19 | +.imgs image { | ||
| 20 | + width: 102rpx; | ||
| 21 | + height: 70rpx; | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +.texts { | ||
| 25 | + display: flex; | ||
| 26 | + flex-direction: column; | ||
| 27 | + margin: 0 40rpx; | ||
| 28 | + color: #000000; | ||
| 29 | + font-family: PingFang SC; | ||
| 30 | + font-size: 32rpx; | ||
| 31 | +} | ||
| 32 | + | ||
| 33 | +.btnBox { | ||
| 34 | + width: 100%; | ||
| 35 | + margin-top: 120rpx; | ||
| 36 | + background: #FAFAFA; | ||
| 37 | + padding: 24rpx 0 50rpx 0; | ||
| 38 | +} | ||
| 39 | + | ||
| 40 | +.btn { | ||
| 41 | + width: 75%; | ||
| 42 | + color: #fff; | ||
| 43 | + font-size: 32rpx; | ||
| 44 | + border-radius: 40rpx; | ||
| 45 | + background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%); | ||
| 46 | +} |
| @@ -147,10 +147,17 @@ Page({ | @@ -147,10 +147,17 @@ Page({ | ||
| 147 | } | 147 | } |
| 148 | }, | 148 | }, |
| 149 | // 拨打电话 | 149 | // 拨打电话 |
| 150 | - call() { | 150 | + call(e) { |
| 151 | + const phone = e.currentTarget.dataset['phone']; | ||
| 151 | wx.reportMonitor('1012', 1) | 152 | wx.reportMonitor('1012', 1) |
| 152 | wx.makePhoneCall({ | 153 | wx.makePhoneCall({ |
| 153 | - phoneNumber: this.data.staffinfo.phone | 154 | + phoneNumber: phone |
| 155 | + }) | ||
| 156 | + }, | ||
| 157 | + // 跳转到商家入驻页 | ||
| 158 | + gotoJoinSeller() { | ||
| 159 | + wx.navigateTo({ | ||
| 160 | + url: '/pages/customer/joinSeller', | ||
| 154 | }) | 161 | }) |
| 155 | }, | 162 | }, |
| 156 | // 导航 | 163 | // 导航 |
| @@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
| 51 | <view>服务电话:{{staffinfo.phone}}</view> | 51 | <view>服务电话:{{staffinfo.phone}}</view> |
| 52 | </view> | 52 | </view> |
| 53 | <view class="handle"> | 53 | <view class="handle"> |
| 54 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | 54 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 55 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | 55 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> |
| 56 | </view> | 56 | </view> |
| 57 | </view> | 57 | </view> |
| @@ -187,8 +187,8 @@ | @@ -187,8 +187,8 @@ | ||
| 187 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 187 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 188 | 点击了解更多会员优惠政策 | 188 | 点击了解更多会员优惠政策 |
| 189 | </view> | 189 | </view> |
| 190 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 191 | - 周到安排提供技术支持 400 000 9690 | 190 | + <text class="businessBox"> |
| 191 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 192 | </text> | 192 | </text> |
| 193 | </view> | 193 | </view> |
| 194 | <view class="more" wx:if="{{showMoreTip}}"> | 194 | <view class="more" wx:if="{{showMoreTip}}"> |
| @@ -733,4 +733,14 @@ | @@ -733,4 +733,14 @@ | ||
| 733 | .pearlWhite .positioning { | 733 | .pearlWhite .positioning { |
| 734 | background: #FBF6F1; | 734 | background: #FBF6F1; |
| 735 | color: #515151; | 735 | color: #515151; |
| 736 | +} | ||
| 737 | + | ||
| 738 | +.businessBox { | ||
| 739 | + color: #515151; | ||
| 740 | + font-size: 24rpx; | ||
| 741 | + font-family: PingFang SC; | ||
| 742 | +} | ||
| 743 | + | ||
| 744 | +.businessBox text { | ||
| 745 | + color: #0143A3; | ||
| 736 | } | 746 | } |
| @@ -148,10 +148,17 @@ Page({ | @@ -148,10 +148,17 @@ Page({ | ||
| 148 | } | 148 | } |
| 149 | }, | 149 | }, |
| 150 | // 拨打电话 | 150 | // 拨打电话 |
| 151 | - call() { | 151 | + call(e) { |
| 152 | + const phone = e.currentTarget.dataset['phone']; | ||
| 152 | wx.reportMonitor('1012', 1) | 153 | wx.reportMonitor('1012', 1) |
| 153 | wx.makePhoneCall({ | 154 | wx.makePhoneCall({ |
| 154 | - phoneNumber: this.data.staffinfo.phone | 155 | + phoneNumber: phone |
| 156 | + }) | ||
| 157 | + }, | ||
| 158 | + // 跳转到商家入驻页 | ||
| 159 | + gotoJoinSeller() { | ||
| 160 | + wx.navigateTo({ | ||
| 161 | + url: '/pages/customer/joinSeller', | ||
| 155 | }) | 162 | }) |
| 156 | }, | 163 | }, |
| 157 | // 导航 | 164 | // 导航 |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <view>服务电话:{{staffinfo.phone}}</view> | 52 | <view>服务电话:{{staffinfo.phone}}</view> |
| 53 | </view> | 53 | </view> |
| 54 | <view class="handle"> | 54 | <view class="handle"> |
| 55 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | 55 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 56 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | 56 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> |
| 57 | </view> | 57 | </view> |
| 58 | </view> | 58 | </view> |
| @@ -195,8 +195,8 @@ | @@ -195,8 +195,8 @@ | ||
| 195 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 195 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 196 | 点击了解更多会员优惠政策 | 196 | 点击了解更多会员优惠政策 |
| 197 | </view> | 197 | </view> |
| 198 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 199 | - 周到安排提供技术支持 400 000 9690 | 198 | + <text class="businessBox"> |
| 199 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 200 | </text> | 200 | </text> |
| 201 | </view> | 201 | </view> |
| 202 | <view class="more" wx:if="{{showMoreTip}}"> | 202 | <view class="more" wx:if="{{showMoreTip}}"> |
| @@ -766,4 +766,14 @@ | @@ -766,4 +766,14 @@ | ||
| 766 | .pearlWhite .positioning { | 766 | .pearlWhite .positioning { |
| 767 | background: #515151; | 767 | background: #515151; |
| 768 | color: #FBF6F1; | 768 | color: #FBF6F1; |
| 769 | +} | ||
| 770 | + | ||
| 771 | +.businessBox { | ||
| 772 | + color: #515151; | ||
| 773 | + font-size: 24rpx; | ||
| 774 | + font-family: PingFang SC; | ||
| 775 | +} | ||
| 776 | + | ||
| 777 | +.businessBox text { | ||
| 778 | + color: #0143A3; | ||
| 769 | } | 779 | } |
| @@ -148,10 +148,17 @@ Page({ | @@ -148,10 +148,17 @@ Page({ | ||
| 148 | } | 148 | } |
| 149 | }, | 149 | }, |
| 150 | // 拨打电话 | 150 | // 拨打电话 |
| 151 | - call() { | 151 | + call(e) { |
| 152 | + const phone = e.currentTarget.dataset['phone']; | ||
| 152 | wx.reportMonitor('1012', 1) | 153 | wx.reportMonitor('1012', 1) |
| 153 | wx.makePhoneCall({ | 154 | wx.makePhoneCall({ |
| 154 | - phoneNumber: this.data.staffinfo.phone | 155 | + phoneNumber: phone |
| 156 | + }) | ||
| 157 | + }, | ||
| 158 | + // 跳转到商家入驻页 | ||
| 159 | + gotoJoinSeller() { | ||
| 160 | + wx.navigateTo({ | ||
| 161 | + url: '/pages/customer/joinSeller', | ||
| 155 | }) | 162 | }) |
| 156 | }, | 163 | }, |
| 157 | // 导航 | 164 | // 导航 |
| @@ -39,8 +39,8 @@ | @@ -39,8 +39,8 @@ | ||
| 39 | <view>服务电话:{{staffinfo.phone}}</view> | 39 | <view>服务电话:{{staffinfo.phone}}</view> |
| 40 | </view> | 40 | </view> |
| 41 | <view class="handle"> | 41 | <view class="handle"> |
| 42 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | ||
| 43 | - <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="cli">复制微信号</view> | 42 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 43 | + <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | ||
| 44 | </view> | 44 | </view> |
| 45 | </view> | 45 | </view> |
| 46 | </block> | 46 | </block> |
| @@ -172,8 +172,8 @@ | @@ -172,8 +172,8 @@ | ||
| 172 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 172 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 173 | 点击了解更多会员优惠政策 | 173 | 点击了解更多会员优惠政策 |
| 174 | </view> | 174 | </view> |
| 175 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 176 | - 周到安排提供技术支持 400 000 9690 | 175 | + <text class="businessBox"> |
| 176 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 177 | </text> | 177 | </text> |
| 178 | </view> | 178 | </view> |
| 179 | <view class="more" wx:if="{{showMoreTip}}"> | 179 | <view class="more" wx:if="{{showMoreTip}}"> |
| @@ -707,4 +707,14 @@ | @@ -707,4 +707,14 @@ | ||
| 707 | 707 | ||
| 708 | .pearlWhite .rubric { | 708 | .pearlWhite .rubric { |
| 709 | color: #0143A3; | 709 | color: #0143A3; |
| 710 | +} | ||
| 711 | + | ||
| 712 | +.businessBox { | ||
| 713 | + color: #515151; | ||
| 714 | + font-size: 24rpx; | ||
| 715 | + font-family: PingFang SC; | ||
| 716 | +} | ||
| 717 | + | ||
| 718 | +.businessBox text { | ||
| 719 | + color: #0143A3; | ||
| 710 | } | 720 | } |
| @@ -147,10 +147,17 @@ Page({ | @@ -147,10 +147,17 @@ Page({ | ||
| 147 | } | 147 | } |
| 148 | }, | 148 | }, |
| 149 | // 拨打电话 | 149 | // 拨打电话 |
| 150 | - call() { | 150 | + call(e) { |
| 151 | + const phone = e.currentTarget.dataset['phone']; | ||
| 151 | wx.reportMonitor('1012', 1) | 152 | wx.reportMonitor('1012', 1) |
| 152 | wx.makePhoneCall({ | 153 | wx.makePhoneCall({ |
| 153 | - phoneNumber: this.data.staffinfo.phone | 154 | + phoneNumber: phone |
| 155 | + }) | ||
| 156 | + }, | ||
| 157 | + // 跳转到商家入驻页 | ||
| 158 | + gotoJoinSeller() { | ||
| 159 | + wx.navigateTo({ | ||
| 160 | + url: '/pages/customer/joinSeller', | ||
| 154 | }) | 161 | }) |
| 155 | }, | 162 | }, |
| 156 | // 导航 | 163 | // 导航 |
| @@ -33,8 +33,8 @@ | @@ -33,8 +33,8 @@ | ||
| 33 | <view class="font28r">服务电话:{{staffinfo.phone}}</view> | 33 | <view class="font28r">服务电话:{{staffinfo.phone}}</view> |
| 34 | </view> | 34 | </view> |
| 35 | <view class="handle"> | 35 | <view class="handle"> |
| 36 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | ||
| 37 | - <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="cli">复制微信号</view> | 36 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 37 | + <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | ||
| 38 | </view> | 38 | </view> |
| 39 | </view> | 39 | </view> |
| 40 | </block> | 40 | </block> |
| @@ -167,8 +167,8 @@ | @@ -167,8 +167,8 @@ | ||
| 167 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 167 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 168 | 点击了解更多会员优惠政策 | 168 | 点击了解更多会员优惠政策 |
| 169 | </view> | 169 | </view> |
| 170 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 171 | - 周到安排提供技术支持 400 000 9690 | 170 | + <text class="businessBox"> |
| 171 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 172 | </text> | 172 | </text> |
| 173 | </view> | 173 | </view> |
| 174 | <view class="more" wx:if="{{showMoreTip}}"> | 174 | <view class="more" wx:if="{{showMoreTip}}"> |
| @@ -704,4 +704,14 @@ | @@ -704,4 +704,14 @@ | ||
| 704 | .pearlWhite .brownFont { | 704 | .pearlWhite .brownFont { |
| 705 | color: #515151; | 705 | color: #515151; |
| 706 | border: 2rpx solid #515151; | 706 | border: 2rpx solid #515151; |
| 707 | +} | ||
| 708 | + | ||
| 709 | +.businessBox { | ||
| 710 | + color: #515151; | ||
| 711 | + font-size: 24rpx; | ||
| 712 | + font-family: PingFang SC; | ||
| 713 | +} | ||
| 714 | + | ||
| 715 | +.businessBox text { | ||
| 716 | + color: #0143A3; | ||
| 707 | } | 717 | } |
| @@ -140,12 +140,20 @@ Page({ | @@ -140,12 +140,20 @@ Page({ | ||
| 140 | console.log('无微信号') | 140 | console.log('无微信号') |
| 141 | } | 141 | } |
| 142 | }, | 142 | }, |
| 143 | - call() { | ||
| 144 | - wx.reportMonitor('1012', 1) | ||
| 145 | - wx.makePhoneCall({ | ||
| 146 | - phoneNumber: this.data.staffinfo.phone | ||
| 147 | - }) | ||
| 148 | - }, | 143 | + // 拨打电话 |
| 144 | + call(e) { | ||
| 145 | + const phone = e.currentTarget.dataset['phone']; | ||
| 146 | + wx.reportMonitor('1012', 1) | ||
| 147 | + wx.makePhoneCall({ | ||
| 148 | + phoneNumber: phone | ||
| 149 | + }) | ||
| 150 | + }, | ||
| 151 | + // 跳转到商家入驻页 | ||
| 152 | + gotoJoinSeller() { | ||
| 153 | + wx.navigateTo({ | ||
| 154 | + url: '/pages/customer/joinSeller', | ||
| 155 | + }) | ||
| 156 | + }, | ||
| 149 | looklocation: function () { | 157 | looklocation: function () { |
| 150 | wx.reportMonitor('1015', 1) | 158 | wx.reportMonitor('1015', 1) |
| 151 | wx.openLocation({ | 159 | wx.openLocation({ |
| @@ -50,8 +50,8 @@ | @@ -50,8 +50,8 @@ | ||
| 50 | <view class="font28r">服务电话:{{staffinfo.phone}}</view> | 50 | <view class="font28r">服务电话:{{staffinfo.phone}}</view> |
| 51 | </view> | 51 | </view> |
| 52 | <view class="handle"> | 52 | <view class="handle"> |
| 53 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | ||
| 54 | - <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="cli">复制微信号</view> | 53 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 54 | + <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | ||
| 55 | </view> | 55 | </view> |
| 56 | </view> | 56 | </view> |
| 57 | </block> | 57 | </block> |
| @@ -246,8 +246,8 @@ | @@ -246,8 +246,8 @@ | ||
| 246 | 点击了解更多会员优惠政策 | 246 | 点击了解更多会员优惠政策 |
| 247 | </view> | 247 | </view> |
| 248 | <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="aspectFill" /> | 248 | <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="aspectFill" /> |
| 249 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 250 | - 周到安排提供技术支持 400 000 9690 | 249 | + <text class="businessBox"> |
| 250 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 251 | </text> | 251 | </text> |
| 252 | </view> | 252 | </view> |
| 253 | <view class="more" wx:if="{{showMoreTip}}"> | 253 | <view class="more" wx:if="{{showMoreTip}}"> |
| @@ -754,4 +754,14 @@ | @@ -754,4 +754,14 @@ | ||
| 754 | .pearlWhite .title, | 754 | .pearlWhite .title, |
| 755 | .pearlWhite .info { | 755 | .pearlWhite .info { |
| 756 | color: #515151; | 756 | color: #515151; |
| 757 | +} | ||
| 758 | + | ||
| 759 | +.businessBox { | ||
| 760 | + color: #515151; | ||
| 761 | + font-size: 24rpx; | ||
| 762 | + font-family: PingFang SC; | ||
| 763 | +} | ||
| 764 | + | ||
| 765 | +.businessBox text { | ||
| 766 | + color: #0143A3; | ||
| 757 | } | 767 | } |
| @@ -147,10 +147,17 @@ Page({ | @@ -147,10 +147,17 @@ Page({ | ||
| 147 | } | 147 | } |
| 148 | }, | 148 | }, |
| 149 | // 拨打电话 | 149 | // 拨打电话 |
| 150 | - call() { | 150 | + call(e) { |
| 151 | + const phone = e.currentTarget.dataset['phone']; | ||
| 151 | wx.reportMonitor('1012', 1) | 152 | wx.reportMonitor('1012', 1) |
| 152 | wx.makePhoneCall({ | 153 | wx.makePhoneCall({ |
| 153 | - phoneNumber: this.data.staffinfo.phone | 154 | + phoneNumber: phone |
| 155 | + }) | ||
| 156 | + }, | ||
| 157 | + // 跳转到商家入驻页 | ||
| 158 | + gotoJoinSeller() { | ||
| 159 | + wx.navigateTo({ | ||
| 160 | + url: '/pages/customer/joinSeller', | ||
| 154 | }) | 161 | }) |
| 155 | }, | 162 | }, |
| 156 | // 导航 | 163 | // 导航 |
| @@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
| 46 | <view>服务电话:{{staffinfo.phone}}</view> | 46 | <view>服务电话:{{staffinfo.phone}}</view> |
| 47 | </view> | 47 | </view> |
| 48 | <view class="handle"> | 48 | <view class="handle"> |
| 49 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | 49 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 50 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | 50 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> |
| 51 | </view> | 51 | </view> |
| 52 | </view> | 52 | </view> |
| @@ -189,8 +189,8 @@ | @@ -189,8 +189,8 @@ | ||
| 189 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 189 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 190 | 点击了解更多会员优惠政策 | 190 | 点击了解更多会员优惠政策 |
| 191 | </view> | 191 | </view> |
| 192 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 193 | - 周到安排提供技术支持 400 000 9690 | 192 | + <text class="businessBox"> |
| 193 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 194 | </text> | 194 | </text> |
| 195 | </view> | 195 | </view> |
| 196 | <view class="{{(!marketing || (marketing.is_transpond!='1' && marketing.is_online_book!='1'))?'more more1':'more'}}" wx:if="{{showMoreTip}}"> | 196 | <view class="{{(!marketing || (marketing.is_transpond!='1' && marketing.is_online_book!='1'))?'more more1':'more'}}" wx:if="{{showMoreTip}}"> |
| @@ -721,4 +721,14 @@ | @@ -721,4 +721,14 @@ | ||
| 721 | 721 | ||
| 722 | .pearlWhite .positioning { | 722 | .pearlWhite .positioning { |
| 723 | background: #F8F9FD; | 723 | background: #F8F9FD; |
| 724 | +} | ||
| 725 | + | ||
| 726 | +.businessBox { | ||
| 727 | + color: #515151; | ||
| 728 | + font-size: 24rpx; | ||
| 729 | + font-family: PingFang SC; | ||
| 730 | +} | ||
| 731 | + | ||
| 732 | +.businessBox text { | ||
| 733 | + color: #0143A3; | ||
| 724 | } | 734 | } |
| @@ -147,10 +147,17 @@ Page({ | @@ -147,10 +147,17 @@ Page({ | ||
| 147 | } | 147 | } |
| 148 | }, | 148 | }, |
| 149 | // 拨打电话 | 149 | // 拨打电话 |
| 150 | - call() { | 150 | + call(e) { |
| 151 | + const phone = e.currentTarget.dataset['phone']; | ||
| 151 | wx.reportMonitor('1012', 1) | 152 | wx.reportMonitor('1012', 1) |
| 152 | wx.makePhoneCall({ | 153 | wx.makePhoneCall({ |
| 153 | - phoneNumber: this.data.staffinfo.phone | 154 | + phoneNumber: phone |
| 155 | + }) | ||
| 156 | + }, | ||
| 157 | + // 跳转到商家入驻页 | ||
| 158 | + gotoJoinSeller() { | ||
| 159 | + wx.navigateTo({ | ||
| 160 | + url: '/pages/customer/joinSeller', | ||
| 154 | }) | 161 | }) |
| 155 | }, | 162 | }, |
| 156 | // 导航 | 163 | // 导航 |
| @@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
| 33 | <view>服务电话:{{staffinfo.phone}}</view> | 33 | <view>服务电话:{{staffinfo.phone}}</view> |
| 34 | </view> | 34 | </view> |
| 35 | <view class="handle"> | 35 | <view class="handle"> |
| 36 | - <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> | 36 | + <view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view> |
| 37 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> | 37 | <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view> |
| 38 | </view> | 38 | </view> |
| 39 | </view> | 39 | </view> |
| @@ -176,8 +176,8 @@ | @@ -176,8 +176,8 @@ | ||
| 176 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 176 | <view wx:if="{{marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 177 | 点击了解更多会员优惠政策 | 177 | 点击了解更多会员优惠政策 |
| 178 | </view> | 178 | </view> |
| 179 | - <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> | ||
| 180 | - 周到安排提供技术支持 400 000 9690 | 179 | + <text class="businessBox"> |
| 180 | + 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | ||
| 181 | </text> | 181 | </text> |
| 182 | </view> | 182 | </view> |
| 183 | <view class="{{(!marketing || (marketing.is_transpond!='1' && marketing.is_online_book!='1'))?'more more1':'more'}}" wx:if="{{showMoreTip}}"> | 183 | <view class="{{(!marketing || (marketing.is_transpond!='1' && marketing.is_online_book!='1'))?'more more1':'more'}}" wx:if="{{showMoreTip}}"> |
| @@ -740,4 +740,14 @@ | @@ -740,4 +740,14 @@ | ||
| 740 | 740 | ||
| 741 | .pearlWhite .positioning { | 741 | .pearlWhite .positioning { |
| 742 | background: #F8F9FD; | 742 | background: #F8F9FD; |
| 743 | +} | ||
| 744 | + | ||
| 745 | +.businessBox { | ||
| 746 | + color: #515151; | ||
| 747 | + font-size: 24rpx; | ||
| 748 | + font-family: PingFang SC; | ||
| 749 | +} | ||
| 750 | + | ||
| 751 | +.businessBox text { | ||
| 752 | + color: #0143A3; | ||
| 743 | } | 753 | } |
miniprogram/pages/customer/joinSeller.js
0 → 100644
| 1 | +// pages/customer/joinSeller.js | ||
| 2 | +var util = require('../../utils/util.js') | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + sellername: '', | ||
| 11 | + phone: '', | ||
| 12 | + rname: '', | ||
| 13 | + map_address: '', | ||
| 14 | + pro_code: '', | ||
| 15 | + dis_code: '', | ||
| 16 | + pro_code: '', | ||
| 17 | + long: '', | ||
| 18 | + lat: '', | ||
| 19 | + region: [], | ||
| 20 | + }, | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * 生命周期函数--监听页面加载 | ||
| 24 | + */ | ||
| 25 | + onLoad(options) { | ||
| 26 | + | ||
| 27 | + }, | ||
| 28 | + submitInfo() { | ||
| 29 | + let sellername = this.data.sellername.trim(); | ||
| 30 | + let phone = this.data.phone.trim(); | ||
| 31 | + let rname = this.data.rname.trim(); | ||
| 32 | + this.setData({ | ||
| 33 | + sellername, | ||
| 34 | + phone, | ||
| 35 | + rname, | ||
| 36 | + }) | ||
| 37 | + if (!sellername) { | ||
| 38 | + return util.toast('请输入店铺名称', 'none') | ||
| 39 | + } | ||
| 40 | + if (!this.data.map_address) { | ||
| 41 | + return util.toast('请输入店铺地址', 'none') | ||
| 42 | + } | ||
| 43 | + if (!this.data.phone) { | ||
| 44 | + return util.toast('请输入您的电话号码', 'none') | ||
| 45 | + } | ||
| 46 | + var myreg = /^[1][3,4,5,7,8][0-9]{9}$/; | ||
| 47 | + if (!myreg.test(phone)) { | ||
| 48 | + return util.toast('手机格式不正确', 'none') | ||
| 49 | + } | ||
| 50 | + if (!this.data.rname) { | ||
| 51 | + return util.toast('请输入您的姓名', 'none') | ||
| 52 | + } | ||
| 53 | + if (!this.data.pro_code || !this.data.city_code || !this.data.dis_code) { | ||
| 54 | + return util.toast('请选择城市', 'none') | ||
| 55 | + } | ||
| 56 | + let obj = { | ||
| 57 | + sellername, | ||
| 58 | + phone, | ||
| 59 | + rname, | ||
| 60 | + map_address: this.data.map_address, | ||
| 61 | + long: this.data.long, | ||
| 62 | + lat: this.data.lat, | ||
| 63 | + pro_code: this.data.pro_code, | ||
| 64 | + city_code: this.data.city_code, | ||
| 65 | + dis_code: this.data.dis_code, | ||
| 66 | + } | ||
| 67 | + console.log('提交信息', { | ||
| 68 | + ...obj | ||
| 69 | + }); | ||
| 70 | + App.SellerVersion.SetSellerCollect({ | ||
| 71 | + ...obj, | ||
| 72 | + openid: getApp().openid, | ||
| 73 | + }).then(res => { | ||
| 74 | + if (res.ret != 200) { | ||
| 75 | + return util.toast(res.msg, 'none') | ||
| 76 | + } | ||
| 77 | + wx.redirectTo({ | ||
| 78 | + url: '/pages/customer/collectSeller', | ||
| 79 | + }) | ||
| 80 | + }) | ||
| 81 | + }, | ||
| 82 | + bindRegionChange(e) { | ||
| 83 | + if (e.detail.value) { | ||
| 84 | + this.setData({ | ||
| 85 | + region: e.detail.value, | ||
| 86 | + pro_code: e.detail.code[0], | ||
| 87 | + city_code: e.detail.code[1], | ||
| 88 | + dis_code: e.detail.code[2], | ||
| 89 | + }) | ||
| 90 | + } | ||
| 91 | + }, | ||
| 92 | + // 选择地址 | ||
| 93 | + chooselocation: function () { | ||
| 94 | + var that = this; | ||
| 95 | + wx.chooseLocation({ | ||
| 96 | + success: function (res) { | ||
| 97 | + console.log('选址信息', res); | ||
| 98 | + that.setData({ | ||
| 99 | + map_address: res.address, | ||
| 100 | + long: res.longitude, | ||
| 101 | + lat: res.latitude, | ||
| 102 | + }) | ||
| 103 | + }, | ||
| 104 | + fail: function (res) { | ||
| 105 | + console.log(res) | ||
| 106 | + wx.showModal({ | ||
| 107 | + title: '位置授权', | ||
| 108 | + content: '您的位置信息需授权给一键订商户用于位置的展示', | ||
| 109 | + confirmColor: '#199095', | ||
| 110 | + cancelColor: '#999999', | ||
| 111 | + success: function (res) { | ||
| 112 | + console.log(res) | ||
| 113 | + if (res.confirm) { | ||
| 114 | + util.setting(); | ||
| 115 | + } | ||
| 116 | + } | ||
| 117 | + }) | ||
| 118 | + } | ||
| 119 | + }) | ||
| 120 | + | ||
| 121 | + }, | ||
| 122 | + /** | ||
| 123 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 124 | + */ | ||
| 125 | + onReady() { | ||
| 126 | + | ||
| 127 | + }, | ||
| 128 | + | ||
| 129 | + /** | ||
| 130 | + * 生命周期函数--监听页面显示 | ||
| 131 | + */ | ||
| 132 | + onShow() { | ||
| 133 | + | ||
| 134 | + }, | ||
| 135 | + | ||
| 136 | + /** | ||
| 137 | + * 生命周期函数--监听页面隐藏 | ||
| 138 | + */ | ||
| 139 | + onHide() { | ||
| 140 | + | ||
| 141 | + }, | ||
| 142 | + | ||
| 143 | + /** | ||
| 144 | + * 生命周期函数--监听页面卸载 | ||
| 145 | + */ | ||
| 146 | + onUnload() { | ||
| 147 | + | ||
| 148 | + }, | ||
| 149 | + | ||
| 150 | + /** | ||
| 151 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 152 | + */ | ||
| 153 | + onPullDownRefresh() { | ||
| 154 | + | ||
| 155 | + }, | ||
| 156 | + | ||
| 157 | + /** | ||
| 158 | + * 页面上拉触底事件的处理函数 | ||
| 159 | + */ | ||
| 160 | + onReachBottom() { | ||
| 161 | + | ||
| 162 | + }, | ||
| 163 | +}) |
miniprogram/pages/customer/joinSeller.json
0 → 100644
miniprogram/pages/customer/joinSeller.wxml
0 → 100644
| 1 | +<!--pages/customer/joinSeller.wxml--> | ||
| 2 | +<nav class="navhome" place="{{true}}">店铺信息</nav> | ||
| 3 | +<view class="main"> | ||
| 4 | + <view class="topBox">在开始之前,请告诉我们关于您的一些信息,以方便专属客服给您提供周到的服务。</view> | ||
| 5 | + <view class="items"> | ||
| 6 | + <view class="left">店铺名称:</view> | ||
| 7 | + <input type="text" class="right" model:value="{{sellername}}" placeholder="点击输入店铺名称" /> | ||
| 8 | + </view> | ||
| 9 | + <view class="items"> | ||
| 10 | + <view class="left">店铺地址:</view> | ||
| 11 | + <view type="text" value="{{map_address}}" class="infoInput {{map_address=='' ? 'gray-font' : 'black-font'}} smooth" bindtap="chooselocation" name="map_address" placeholder="点击设置您的地址">{{map_address==''?'点这里,选择店铺地图位置' : map_address}}</view> | ||
| 12 | + </view> | ||
| 13 | + <view class="items"> | ||
| 14 | + <view class="left">联系电话:</view> | ||
| 15 | + <input type="text" class="right" maxlength="11" model:value="{{phone}}" placeholder="点击输入您的电话号码" /> | ||
| 16 | + </view> | ||
| 17 | + <view class="items"> | ||
| 18 | + <view class="left">联系人:</view> | ||
| 19 | + <input class="right" type="text" model:value="{{rname}}" placeholder="点击输入您的姓名" /> | ||
| 20 | + </view> | ||
| 21 | + <view class="items"> | ||
| 22 | + <view class="left">城市选择:</view> | ||
| 23 | + <picker mode="region" bindchange="bindRegionChange" value="{{region}}" style="flex:1;"> | ||
| 24 | + <view class="picker {{region.length>0 ? 'black-font' : 'gray-font'}}"> {{region.length>0?region[0]+region[1]+region[2]:'请选择城市'}}</view> | ||
| 25 | + </picker> | ||
| 26 | + </view> | ||
| 27 | + <view class="btnBox"> | ||
| 28 | + <button class="btn" bindtap="submitInfo">提交</button> | ||
| 29 | + </view> | ||
| 30 | +</view> |
miniprogram/pages/customer/joinSeller.wxss
0 → 100644
| 1 | +/* pages/customer/joinSeller.wxss */ | ||
| 2 | +.topBox { | ||
| 3 | + margin: 40rpx 80rpx 40rpx 40rpx; | ||
| 4 | + color: #000000; | ||
| 5 | + font-family: PingFang SC; | ||
| 6 | + font-size: 32rpx; | ||
| 7 | +} | ||
| 8 | + | ||
| 9 | +.items { | ||
| 10 | + display: flex; | ||
| 11 | + justify-content: space-between; | ||
| 12 | + margin-left: 32rpx; | ||
| 13 | + border-bottom: 2rpx solid #E7E7E7; | ||
| 14 | + padding: 24rpx 32rpx 24rpx 0; | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | +.left { | ||
| 18 | + min-width: 150rpx; | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +.right { | ||
| 22 | + flex: 1; | ||
| 23 | + text-align: right; | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +.infoInput { | ||
| 27 | + height: auto; | ||
| 28 | + text-align: right; | ||
| 29 | +} | ||
| 30 | + | ||
| 31 | +input::-webkit-input-placeholder { | ||
| 32 | + color: #909399; | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +.gray-font { | ||
| 36 | + color: #909399; | ||
| 37 | +} | ||
| 38 | + | ||
| 39 | +.btnBox { | ||
| 40 | + width: 100%; | ||
| 41 | + margin-top: 120rpx; | ||
| 42 | + background: #FAFAFA; | ||
| 43 | + padding: 24rpx 0 50rpx 0; | ||
| 44 | +} | ||
| 45 | + | ||
| 46 | +.btn { | ||
| 47 | + width: 75%; | ||
| 48 | + color: #fff; | ||
| 49 | + font-size: 32rpx; | ||
| 50 | + border-radius: 40rpx; | ||
| 51 | + background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%); | ||
| 52 | +} | ||
| 53 | + | ||
| 54 | +.picker { | ||
| 55 | + text-align: right; | ||
| 56 | +} |
| @@ -720,5 +720,10 @@ export default { | @@ -720,5 +720,10 @@ export default { | ||
| 720 | 'App.Qiniu.GetUploadToken':{ | 720 | 'App.Qiniu.GetUploadToken':{ |
| 721 | openid:'openid' | 721 | openid:'openid' |
| 722 | }, | 722 | }, |
| 723 | + | ||
| 724 | + // 收集店铺信息 | ||
| 725 | + 'App.SellerVersion.SetSellerCollect':{ | ||
| 726 | + openid:'openid' | ||
| 727 | + }, | ||
| 723 | 728 | ||
| 724 | } | 729 | } |
-
Please register or login to post a comment