|
@@ -44,7 +44,7 @@ export default {
|
|
houseId: $config.houseIdHs,
|
|
houseId: $config.houseIdHs,
|
|
|
|
|
|
shareUserId: null, // 分享者ID
|
|
shareUserId: null, // 分享者ID
|
|
- id: '6523d91af65c626211ee21c8',//方案库id
|
|
|
|
|
|
+ id: '',//方案库id
|
|
|
|
|
|
currImgIdx:0,
|
|
currImgIdx:0,
|
|
tabIndex: 0,
|
|
tabIndex: 0,
|
|
@@ -61,7 +61,7 @@ export default {
|
|
likeCount:0,//喜欢的人数
|
|
likeCount:0,//喜欢的人数
|
|
unlikedCount:0,//不喜欢人数
|
|
unlikedCount:0,//不喜欢人数
|
|
total:0,//总人数
|
|
total:0,//总人数
|
|
- typeStatus:1,//显示是否喜欢的视图 ,默认显示 0 不显示
|
|
|
|
|
|
+ typeStatus:0,//显示是否喜欢的视图 ,1 显示 0 不显示
|
|
proportion:50, //显式比例
|
|
proportion:50, //显式比例
|
|
headList:[],
|
|
headList:[],
|
|
showUserInput:false, //是否显示手机号留电弹窗
|
|
showUserInput:false, //是否显示手机号留电弹窗
|
|
@@ -77,10 +77,10 @@ export default {
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
mounted(options) {
|
|
mounted(options) {
|
|
- console.log("***onLoad-webgl_rxdz_customize***", this.$route.query)
|
|
|
|
|
|
+ console.log("***onLoad-webgl_rxdz_text_customize***", this.$route.query)
|
|
const that = this;
|
|
const that = this;
|
|
this.houseId = this.$route.query.houseId?this.$route.query.houseId:'';
|
|
this.houseId = this.$route.query.houseId?this.$route.query.houseId:'';
|
|
- this.id = this.$route.query.id?this.$route.query.id:'6523d91af65c626211ee21c8';
|
|
|
|
|
|
+ this.id = this.$route.query.id?this.$route.query.id:'';
|
|
this.typeStatus = this.$route.query.typeStatus?this.$route.query.typeStatus:0;
|
|
this.typeStatus = this.$route.query.typeStatus?this.$route.query.typeStatus:0;
|
|
if(!this.id){
|
|
if(!this.id){
|
|
Toast({
|
|
Toast({
|
|
@@ -162,22 +162,32 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let codeData = {
|
|
let codeData = {
|
|
- mobile: this.tel,
|
|
|
|
- code: this.verifyCode,
|
|
|
|
- verifyType: 1,
|
|
|
|
|
|
+ // mobile: this.tel,
|
|
|
|
+ // code: this.verifyCode,
|
|
|
|
+ // verifyType: 1,
|
|
|
|
|
|
// mobile: this.tel,
|
|
// mobile: this.tel,
|
|
// type: 'verification.code',
|
|
// type: 'verification.code',
|
|
// verifycode: this.verifyCode
|
|
// verifycode: this.verifyCode
|
|
|
|
+
|
|
|
|
+ mobile: this.tel,
|
|
|
|
+ leavePhoneCustomerId:this.userId || '',
|
|
|
|
+ code: this.verifyCode,
|
|
|
|
+ houseId:this.houseId,
|
|
|
|
+ source:2,
|
|
|
|
+ fromPlatform:'前测',
|
|
|
|
+ terminal:'7',
|
|
};
|
|
};
|
|
- const validateCodeRes = await requestConfig('validate', codeData);
|
|
|
|
- if (validateCodeRes && !validateCodeRes.success) { //成功
|
|
|
|
|
|
+ const validateCodeRes = await requestConfig('leavephone', codeData);
|
|
|
|
+ if (validateCodeRes && validateCodeRes.success) { //成功
|
|
Toast({
|
|
Toast({
|
|
- message: '验证码输入错误',
|
|
|
|
|
|
+ message: '留电成功',
|
|
});
|
|
});
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
- this.fakeLeavePhone()
|
|
|
|
|
|
+ Toast({
|
|
|
|
+ message: '验证码输入错误',
|
|
|
|
+ });
|
|
}
|
|
}
|
|
this.isSend = false;
|
|
this.isSend = false;
|
|
},
|
|
},
|
|
@@ -329,7 +339,9 @@ export default {
|
|
this.tabIndex = 0;//表明是户型首图
|
|
this.tabIndex = 0;//表明是户型首图
|
|
this.tabData = [];
|
|
this.tabData = [];
|
|
if(single.expand){
|
|
if(single.expand){
|
|
- this.expand = JSON.parse(single.expand);
|
|
|
|
|
|
+ let list = JSON.parse(single.expand);
|
|
|
|
+ let ind = list.findIndex(it=>it.name == '户型偏好');
|
|
|
|
+ this.expand = list.slice(ind);
|
|
}
|
|
}
|
|
this.layoutStruct = JSON.parse(JSON.stringify(single));
|
|
this.layoutStruct = JSON.parse(JSON.stringify(single));
|
|
|
|
|