| | |
| | | <view class="btn" @click="switchCard()">切换名片</view> |
| | | <button open-type="share" class="btn">分享名片</button> |
| | | <view class="btn" @click="topUpCard()">置顶名片</view> |
| | | <view class="btn" @click="gotoChatList()">聊天记录</view> |
| | | </view> |
| | | |
| | | <!-- 数据统计区域 --> |
| | |
| | | this.gotoPage( |
| | | `/pages/plus/business/add?business_card_id=${this.businessList[this.current].business_card_id}` |
| | | ); |
| | | }else{ |
| | | this.gotoPage( |
| | | `/pages/plus/business/add` |
| | | ); |
| | | } |
| | | }, |
| | | switchCard() { |
| | |
| | | viewAllVisitors() { |
| | | // 查看全部访客 |
| | | this.gotoPage('/pages/plus/business/visitors'); |
| | | }, |
| | | |
| | | // 跳转到聊天记录页面 |
| | | gotoChatList() { |
| | | uni.navigateTo({ |
| | | url: '/pages/plus/business/chat/list' |
| | | }); |
| | | }, |
| | | // 置顶名片 |
| | | topUpCard() { |
| | |
| | | if (this.paymentMethod === 'balance') { |
| | | // 直接跳转支付 |
| | | uni.redirectTo({ |
| | | url: '/pages/order/cashier?order_id=' + res.data.order_id + |
| | | url: '/pages/plus/business/cashier?order_id=' + res.data.order_id + |
| | | '&order_type=100' |
| | | }); |
| | | } else { |
| | | // 跳转到收银台支付 |
| | | uni.redirectTo({ |
| | | url: '/pages/order/cashier?order_id=' + res.data.order_id + |
| | | url: '/pages/plus/business/cashier?order_id=' + res.data.order_id + |
| | | '&order_type=100' |
| | | }); |
| | | } |