|
|
@@ -296,6 +296,13 @@
|
|
|
复制微信号
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="bind-btn" v-if="userInfo.id&&userInfo.userType!=1&&!userInfo.manageSaleNo" @click="bindSale()" :style="'bottom:'+(recommendCard&&userInfo.id!=recommendCard.userId?'480rpx;':'360rpx;')">
|
|
|
+ <image style="width: 38rpx;height: 38rpx;" src="/static/images/bind.png" mode="aspectFit"></image>
|
|
|
+ <view class="change-option-text">绑定</view>
|
|
|
+ <!-- 绑定销售员-->
|
|
|
+ </view>
|
|
|
+
|
|
|
<msgNumber :bottom="recommendCard&&userInfo.id!=recommendCard.userId?'350rpx':'230rpx'"></msgNumber>
|
|
|
<!-- <view class="chat-fixed" v-if="recommendCard">
|
|
|
<view class="chat-box ddflex" @click="jumpSingleChatRoom()">
|
|
|
@@ -1215,6 +1222,38 @@
|
|
|
}
|
|
|
return true;
|
|
|
},
|
|
|
+
|
|
|
+ bindSale(){
|
|
|
+ let userInfo = req.getStorage('userInfo');
|
|
|
+ console.log('updateInfo userInfo.avatar',userInfo.avatar)
|
|
|
+ if (!userInfo.avatar || userInfo.nickName == '微信用户') {
|
|
|
+ this.isShowUpdate = true
|
|
|
+ this.isUpdateInfo = true
|
|
|
+ this.isUpdateMobile = false
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(userInfo.avatar&&!userInfo.mobile){
|
|
|
+ this.isShowUpdate = true
|
|
|
+ this.isUpdateMobile = true
|
|
|
+ this.isUpdateInfo = false
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ uni.showModal({
|
|
|
+ title:'提示',
|
|
|
+ content:`是否绑定${this.recommendCard.realName}为您的专属顾问?`,
|
|
|
+ success: (con) => {
|
|
|
+ if(con.confirm){
|
|
|
+ req.postRequest('/api/visiting/card/bindManageSaleNo',{manageSaleNo:this.recommendCard.jobNumber},res=>{
|
|
|
+ req.msg('已绑定专属顾问')
|
|
|
+ let userInfo = req.getStorage('userInfo')
|
|
|
+ userInfo.manageSaleNo = this.recommendCard.jobNumber
|
|
|
+ req.setStorage('userInfo',userInfo)
|
|
|
+ this.userInfo = req.getStorage('userInfo')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
const systemInfo = uni.getSystemInfoSync();
|