|
@@ -167,12 +167,15 @@
|
|
|
// dialogVisible: false,
|
|
|
// dialogAIVisible: false,
|
|
|
datalist:[],
|
|
|
- connectUsImg:'',
|
|
|
+ connectUsImg:'https://dm.static.elab-plus.com/miniProgram/conect-us-icon.png',
|
|
|
curSpaceId:'',
|
|
|
queryObj:null,
|
|
|
form:null,
|
|
|
interval:3000,
|
|
|
duration:500,
|
|
|
+ highColor1:window.highColor1,
|
|
|
+ highColor2:window.highColor2,
|
|
|
+ backgroundColor:window.backgroundColor,
|
|
|
}
|
|
|
},
|
|
|
props:{
|
|
@@ -263,7 +266,7 @@
|
|
|
if(window.innerHeight && window.screen.height){
|
|
|
this.screenHeight = Math.min(window.innerHeight,window.screen.height)
|
|
|
}
|
|
|
- this.connectUsImg = 'https://dm.static.elab-plus.com/miniProgram/conentUs.png';
|
|
|
+ // this.connectUsImg = 'https://dm.static.elab-plus.com/miniProgram/conentUs.png';
|
|
|
let firstData = JSON.parse(getStorage('firstData'));
|
|
|
if(firstData && firstData[0]){
|
|
|
this.connectUsImg = firstData[0].selectOptionImageUrl;
|
|
@@ -296,6 +299,34 @@
|
|
|
},
|
|
|
},
|
|
|
methods:{
|
|
|
+ hexToRgba(hex, opacity) {
|
|
|
+ // console.warn("**hexToRgba****",hex,opacity)
|
|
|
+ if (!hex||!opacity){
|
|
|
+ return hex
|
|
|
+ }
|
|
|
+ let RGBA;
|
|
|
+ if (hex.includes('#')&&hex.length==7){
|
|
|
+ RGBA = "rgba(" + parseInt("0x" + hex.slice(1, 3)) + "," + parseInt("0x" + hex.slice(3, 5)) + "," +
|
|
|
+ parseInt("0x" + hex.slice(5, 7)) + "," + opacity + ")";
|
|
|
+ }else if (hex.includes('rgb(')){
|
|
|
+ var values = hex
|
|
|
+ .replace(/rgb?\(/, '')
|
|
|
+ .replace(/\)/, '')
|
|
|
+ .replace(/[\s+]/g, '')
|
|
|
+ .split(',')
|
|
|
+ return `rgba(${values[0]},${values[1]},${values[2]},${opacity})`
|
|
|
+ }else if(hex.includes('rgba(')){
|
|
|
+ var values = hex
|
|
|
+ .replace(/rgba?\(/, '')
|
|
|
+ .replace(/\)/, '')
|
|
|
+ .replace(/[\s+]/g, '')
|
|
|
+ .split(',')
|
|
|
+ return `rgba(${values[0]},${values[1]},${values[2]},${opacity})`
|
|
|
+ }else{
|
|
|
+ return hex
|
|
|
+ }
|
|
|
+ return RGBA
|
|
|
+ },
|
|
|
//更改空间显示名称 X空间 类型 根据布局所属类型来显示
|
|
|
updataLable(){
|
|
|
let list = this.layoutList;
|
|
@@ -491,35 +522,35 @@
|
|
|
},
|
|
|
|
|
|
//点赞喜欢
|
|
|
- // changeAIImg() {
|
|
|
- // // let lastPage = getCurrentPages()[getCurrentPages().length - 2] ? getCurrentPages()[getCurrentPages().length - 2].$vm : null;
|
|
|
- // this.checked = !this.checked;//变更选项
|
|
|
- // this.aiImagesList[this.currentIndex].checked = this.checked;
|
|
|
- // console.warn("***changeAIImg***",this.checked,this.aiData)
|
|
|
- // // if(this.aiData){//给上一个页面回传生成的数据
|
|
|
- // // let space = this.aiData.find(it=>{
|
|
|
- // // return it.spaceId == this.spaceObj.spaceId
|
|
|
- // // })
|
|
|
- // // if(space){
|
|
|
- // // space.aiImagesList[this.currentIndex].checked = this.checked;
|
|
|
- // // }
|
|
|
- // // }
|
|
|
- // if(this.checked){
|
|
|
- // let param = {
|
|
|
- // type: 'CLK', //埋点类型
|
|
|
- // clkId: 'clk_2cmina_23080418', //点击ID
|
|
|
- // clkName: 'chooseprogramme_clk', //点击前往的页面名称
|
|
|
- // behaviorName:"点赞喜欢",
|
|
|
- // clkParams: {
|
|
|
- // locusName: "选定风格/视角",
|
|
|
- // style:this.styleList[this.curStyleIndex].styleName,
|
|
|
- // img:this.aiImagesList[this.currentIndex].image,
|
|
|
- // locusValue:this.aiImagesList[this.currentIndex].image,
|
|
|
- // }
|
|
|
- // };
|
|
|
- // util.trackRequest(param);
|
|
|
- // }
|
|
|
- // },
|
|
|
+ changeAIImg() {
|
|
|
+ // let lastPage = getCurrentPages()[getCurrentPages().length - 2] ? getCurrentPages()[getCurrentPages().length - 2].$vm : null;
|
|
|
+ this.checked = !this.checked;//变更选项
|
|
|
+ this.aiImagesList[this.currentIndex].checked = this.checked;
|
|
|
+ console.warn("***changeAIImg***",this.checked,this.aiData)
|
|
|
+ // if(this.aiData){//给上一个页面回传生成的数据
|
|
|
+ // let space = this.aiData.find(it=>{
|
|
|
+ // return it.spaceId == this.spaceObj.spaceId
|
|
|
+ // })
|
|
|
+ // if(space){
|
|
|
+ // space.aiImagesList[this.currentIndex].checked = this.checked;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ if(this.checked){
|
|
|
+ let param = {
|
|
|
+ type: 'CLK', //埋点类型
|
|
|
+ clkId: 'clk_2cmina_23080418', //点击ID
|
|
|
+ clkName: 'chooseprogramme_clk', //点击前往的页面名称
|
|
|
+ behaviorName:"点赞喜欢",
|
|
|
+ clkParams: {
|
|
|
+ locusName: "选定风格/视角",
|
|
|
+ style:this.styleList[this.curStyleIndex].styleName,
|
|
|
+ img:this.aiImagesList[this.currentIndex].image,
|
|
|
+ locusValue:this.aiImagesList[this.currentIndex].image,
|
|
|
+ }
|
|
|
+ };
|
|
|
+ util.trackRequest(param);
|
|
|
+ }
|
|
|
+ },
|
|
|
rightScroll(){//右滑
|
|
|
if(this.currentIndex <= (this.aiImagesList.length - 1) && this.currentIndex > 0){
|
|
|
// this.currentIndex --;
|
|
@@ -1090,6 +1121,10 @@
|
|
|
this.loadingMsg = '生成中…100%';
|
|
|
}
|
|
|
},
|
|
|
+ //评估按钮处理
|
|
|
+ assessmentHandle(){
|
|
|
+ this.showToast("敬请期待!");
|
|
|
+ },
|
|
|
//返回结果处理
|
|
|
resultHandle(resultImg){
|
|
|
this.currentImg = true;
|
|
@@ -1420,7 +1455,8 @@
|
|
|
houseId:houseId,
|
|
|
id:res.single,
|
|
|
}
|
|
|
- wx.miniProgram.redirectTo({url: '/webgl/pages/webgl_rxdz_text_customize/webgl_rxdz_text_customize?id='+data.id+"&houseId="+houseId})
|
|
|
+ // wx.miniProgram.redirectTo({url: '/webgl/pages/webgl_rxdz_text_customize/webgl_rxdz_text_customize?id='+data.id+"&houseId="+houseId})
|
|
|
+ wx.miniProgram.redirectTo({url: '/extraPackage/pages/aiPublishPageV2/aiPublishPageV2?id='+data.id+"&houseId="+houseId})
|
|
|
// router.push({
|
|
|
// name: "webgl_rxdz_text_customize",
|
|
|
// query:data
|