|
@@ -400,7 +400,10 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <serviceContact></serviceContact>
|
|
|
|
|
|
|
+ <serviceContact :userId="cardInfo.userId" v-if="cardInfo.userId"></serviceContact>
|
|
|
|
|
+
|
|
|
|
|
+ <to-userinfo v-if="isShowUpdate" @closeUpdate="()=>{isShowUpdate=false}"></to-userinfo>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -451,7 +454,11 @@ import util from '../../utils/util.js';
|
|
|
|
|
|
|
|
isShowCodePop: false,
|
|
isShowCodePop: false,
|
|
|
|
|
|
|
|
- pageBack:false
|
|
|
|
|
|
|
+ pageBack:false,
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ isShowUpdate: false, //是否显示更新信息弹窗
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
components:{ serviceContact },
|
|
components:{ serviceContact },
|
|
@@ -477,7 +484,10 @@ import util from '../../utils/util.js';
|
|
|
async onShow() {
|
|
async onShow() {
|
|
|
this.getConfig()
|
|
this.getConfig()
|
|
|
if (this.scene) {
|
|
if (this.scene) {
|
|
|
- this.cardId = this.scene
|
|
|
|
|
|
|
+ this.cardId = this.scene.split('_')[0]
|
|
|
|
|
+ if(this.scene.split('_')[1]){
|
|
|
|
|
+ req.setStorage('shareId',this.scene.split('_')[1])
|
|
|
|
|
+ }
|
|
|
// await this.loadCodeParams();
|
|
// await this.loadCodeParams();
|
|
|
}
|
|
}
|
|
|
await req.silenceLogin(this.options.userId ? this.options.userId : '', '')
|
|
await req.silenceLogin(this.options.userId ? this.options.userId : '', '')
|
|
@@ -495,7 +505,7 @@ import util from '../../utils/util.js';
|
|
|
req.saveBehaviorNew(this.cardInfo.id,1,6)
|
|
req.saveBehaviorNew(this.cardInfo.id,1,6)
|
|
|
return {
|
|
return {
|
|
|
title: this.cardInfo.realName,
|
|
title: this.cardInfo.realName,
|
|
|
- path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (userInfo.userType==1?('&shareId=' + userInfo.saleNo):''),
|
|
|
|
|
|
|
+ path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (this.cardInfo.jobNumber?('&shareId=' + this.cardInfo.jobNumber):''),
|
|
|
imageUrl: this.cardInfo.avatar, // 分享图
|
|
imageUrl: this.cardInfo.avatar, // 分享图
|
|
|
};
|
|
};
|
|
|
}else{
|
|
}else{
|
|
@@ -504,7 +514,7 @@ import util from '../../utils/util.js';
|
|
|
req.saveBehaviorNew(this.cardInfo.id,1,6)
|
|
req.saveBehaviorNew(this.cardInfo.id,1,6)
|
|
|
return {
|
|
return {
|
|
|
title: this.cardInfo.realName,
|
|
title: this.cardInfo.realName,
|
|
|
- path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (userInfo.userType==1?('&shareId=' + userInfo.saleNo):''),
|
|
|
|
|
|
|
+ path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (this.cardInfo.jobNumber?('&shareId=' + this.cardInfo.jobNumber):''),
|
|
|
imageUrl: this.cardInfo.avatar, // 分享图
|
|
imageUrl: this.cardInfo.avatar, // 分享图
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
@@ -513,9 +523,19 @@ import util from '../../utils/util.js';
|
|
|
if (res.from == 'button') {
|
|
if (res.from == 'button') {
|
|
|
let userInfo = req.getStorage('userInfo');
|
|
let userInfo = req.getStorage('userInfo');
|
|
|
this.userBehavior(6)
|
|
this.userBehavior(6)
|
|
|
|
|
+ req.saveBehaviorNew(this.cardInfo.id,1,6)
|
|
|
return {
|
|
return {
|
|
|
title: this.cardInfo.realName,
|
|
title: this.cardInfo.realName,
|
|
|
- path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id,
|
|
|
|
|
|
|
+ path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (this.cardInfo.jobNumber?('&shareId=' + this.cardInfo.jobNumber):''),
|
|
|
|
|
+ imageUrl: this.cardInfo.avatar, // 分享图
|
|
|
|
|
+ };
|
|
|
|
|
+ }else{
|
|
|
|
|
+ let userInfo = req.getStorage('userInfo');
|
|
|
|
|
+ this.userBehavior(6)
|
|
|
|
|
+ req.saveBehaviorNew(this.cardInfo.id,1,6)
|
|
|
|
|
+ return {
|
|
|
|
|
+ title: this.cardInfo.realName,
|
|
|
|
|
+ path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id + (this.cardInfo.jobNumber?('&shareId=' + this.cardInfo.jobNumber):''),
|
|
|
imageUrl: this.cardInfo.avatar, // 分享图
|
|
imageUrl: this.cardInfo.avatar, // 分享图
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
@@ -983,6 +1003,12 @@ import util from '../../utils/util.js';
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
bindSale(){
|
|
bindSale(){
|
|
|
|
|
+ let userInfo = req.getStorage('userInfo');
|
|
|
|
|
+ console.log('updateInfo userInfo.avatar',userInfo.avatar)
|
|
|
|
|
+ if (!userInfo.avatar || userInfo.nickName == '微信用户' || !userInfo.nickName||!userInfo.mobile) {
|
|
|
|
|
+ this.isShowUpdate = true
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title:'提示',
|
|
title:'提示',
|
|
|
content:'是否绑定该顾问?',
|
|
content:'是否绑定该顾问?',
|