|
@@ -74,6 +74,7 @@ export default {
|
|
|
isSend:false,
|
|
|
showPopup:false,
|
|
|
isIOS:false,
|
|
|
+ payed:0,//当前柔性定制是否已经支付了 1:是,0:否,默认0
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
@@ -109,6 +110,10 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ onShow(){
|
|
|
+ console.warn("***页面显示***");
|
|
|
+ this.getIdData();
|
|
|
+ },
|
|
|
showPop() {
|
|
|
this.showUserInput = true;
|
|
|
},
|
|
@@ -260,11 +265,30 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ //去定制
|
|
|
+ toCustomized(){
|
|
|
+ if(window.__wxjs_environment === 'miniprogram'){
|
|
|
+ this.pvCloseHandle();//小程序跳转会主动杀死关闭当前页面-不经过页面框架跳转关闭逻辑-所以需要主动触发关闭埋点
|
|
|
+ if(this.landDataId){//有土地id-前往地块定制入口页面
|
|
|
+ wx.miniProgram.redirectTo({url: '/amapPackage/pages/depositList/depositList?bizId='+this.landDataId+'&pageStatus=2'})
|
|
|
+ }else{
|
|
|
+ wx.miniProgram.redirectTo({url: '/pages/index/index?houseId='+this.houseId})
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ let url = $config.min_uri + "pages/index/index?houseId=" + this.houseId
|
|
|
+ // window.location.href = shottingImg;
|
|
|
+ window.open(url)
|
|
|
+ }
|
|
|
+ },
|
|
|
//去往首页
|
|
|
toIndex(){
|
|
|
if(window.__wxjs_environment === 'miniprogram'){
|
|
|
this.pvCloseHandle();//小程序跳转会主动杀死关闭当前页面-不经过页面框架跳转关闭逻辑-所以需要主动触发关闭埋点
|
|
|
- wx.miniProgram.redirectTo({url: '/pages/index/index?houseId='+this.houseId})
|
|
|
+ if(this.landDataId){//有土地id
|
|
|
+ wx.miniProgram.redirectTo({url: '/amapPackage/pages/blockDetail/blockDetail?id='+this.landDataId})
|
|
|
+ }else{
|
|
|
+ wx.miniProgram.redirectTo({url: '/pages/index/index?houseId='+this.houseId})
|
|
|
+ }
|
|
|
}else{
|
|
|
let url = $config.min_uri + "pages/index/index?houseId=" + this.houseId
|
|
|
// window.location.href = shottingImg;
|
|
@@ -281,6 +305,16 @@ export default {
|
|
|
this.showPop();
|
|
|
}
|
|
|
},
|
|
|
+ //支付订单
|
|
|
+ payOrder(){
|
|
|
+ if(window.__wxjs_environment === 'miniprogram'){
|
|
|
+ this.pvCloseHandle();//小程序跳转会主动杀死关闭当前页面-不经过vue跳转关闭逻辑-所以需要主动触发关闭埋点
|
|
|
+ wx.miniProgram.redirectTo({url: '/amapPackage/pages/transfer/transfer?goodId='+this.id+"&landDataId="+this.landDataId})
|
|
|
+ }else{
|
|
|
+ this.$message.warning("请在小程序中使用");
|
|
|
+ // this.showPop();
|
|
|
+ }
|
|
|
+ },
|
|
|
async share(){
|
|
|
if(window.__wxjs_environment === 'miniprogram'){
|
|
|
// Toast({
|
|
@@ -374,6 +408,7 @@ export default {
|
|
|
}
|
|
|
if(this.landDataId){
|
|
|
params.landDataId = this.landDataId;
|
|
|
+ delete params.houseId
|
|
|
}
|
|
|
// params.userId = this.userId;
|
|
|
const res = await requestConfig('getCustomizedRecord', params);
|
|
@@ -387,7 +422,7 @@ export default {
|
|
|
this.expand = list.slice(ind);
|
|
|
}
|
|
|
this.layoutStruct = JSON.parse(JSON.stringify(single));
|
|
|
-
|
|
|
+ this.payed = single.payStatus || 0;//是否支付成功 1:是,0:否,默认0
|
|
|
this.likeCount = this.layoutStruct.liked;//喜欢的人数
|
|
|
this.unlikedCount = this.layoutStruct.unliked;//不喜欢人数
|
|
|
this.total = this.layoutStruct.total;//总人数
|
|
@@ -450,8 +485,7 @@ export default {
|
|
|
clkName: 'roomretpic_clk', //点击前往的页面名称
|
|
|
clkParams: {
|
|
|
type: this.tabData[this.tabIndex].name,
|
|
|
- locusName: "房间名称",
|
|
|
- // locusValue: this.tabData[this.tabIndex].name,
|
|
|
+ locusValue: this.tabData[this.tabIndex].name,
|
|
|
}
|
|
|
};
|
|
|
util.trackRequest(param);
|
|
@@ -475,7 +509,7 @@ export default {
|
|
|
clkId: 'clk_2cmina_23080420', //点击ID
|
|
|
clkName: 'checkroom_clk', //点击前往的页面名称
|
|
|
clkParams: {
|
|
|
- locusName: "查看户型",
|
|
|
+ locusValue: "查看户型",
|
|
|
}
|
|
|
};
|
|
|
util.trackRequest(param);
|