1
0

chunk-34940040.e2d9d296.js 6.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34940040"],{"1ef3":function(t,e,s){},"9d99":function(t,e,s){"use strict";s("1ef3")},e3f3:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"moreConstruction"},[e("mescroll-vue",{ref:"wordListBox",staticClass:"customerBoxmescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[e("div",{staticClass:"headerBack"},[e("img",{attrs:{src:s("ec85"),alt:""},on:{click:t.onClickBack}})]),e("div",{staticClass:"conAllBox"},[e("div",{staticClass:"conShowlist"},t._l(t.constructionArr,(function(s){return e("div",{key:s.id,on:{click:function(e){return t.viewConstruction(s)}}},[e("div",{staticClass:"conImage flex align-center justify-center"},[e("img",{attrs:{src:s.cover,width:"140%",alt:""}})]),e("div",{staticClass:"conMsg"},[e("div",{staticClass:"conmsgName ellipsis"},[t._v(t._s(s.name))]),e("div",{staticClass:"conmsgArea"},[t._v(" "+t._s(s.housetype?s.housetype.name:"未知")+"/"+t._s(s.area)+"㎡/"+t._s(s.community?s.community.name:"未知")+" ")]),e("div",{staticClass:"conmsgType"},[t._v("装修进度: "+t._s(t.getProgress(s)))]),e("div",{staticClass:"conmsgvisit"},[t._v(t._s(s.view_times)+" 观看")])])])})),0)]),e("nonedata",{attrs:{len:t.constructionArr.length,datashow:t.datashow}})],1),e("xqloading",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]})],1)},o=[],a=(s("5246"),s("6b41")),n=(s("14d9"),s("b39c")),r=s("2d8e"),c=s("5880"),l=s("8d6b"),d=s("edb5"),h={components:{[a["a"].name]:a["a"],MescrollVue:l["a"],nonedata:d["a"]},data(){return{loadFlag:!1,datashow:!1,itemIP:"",authCode:"",constructionArr:[],mescroll:null,mescrollDown:{},mescrollUp:{auto:!1,callback:this.getFuncList,page:{num:0,size:10},htmlLoading:"",htmlNodata:"没有更多数据啦~",noMoreSize:5}}},computed:{...Object(c["mapState"])({personObj:t=>t.personObj,shareToken:t=>t.shareToken,weburl:t=>t.weburl})},mounted(){let t=this.getQueryStringArgs();t.ip&&(this.itemIP=t.ip,this.isWechatBrower||(this.mescroll.resetUpScroll(),this.getUserInfo(),this.getJSSDKConfig()),this.isWechatBrower&&this.shareToken&&(this.mescroll.resetUpScroll(),this.getUserInfo(),this.getJSSDKConfig())),setTimeout(()=>{t.state&&t.state.indexOf("#")>-1&&(t.state=t.state.split("#")[0]),console.log(t),t.code&&t.state&&!this.shareToken?(this.itemIP=t.state,this.authCode=t.code,this.mescroll.resetUpScroll(),this.getUserInfo(),this.getJSSDKConfig()):this.isWechatBrower&&!this.shareToken&&(window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa2523b5228d7e490&redirect_uri=${encodeURIComponent(this.weburl+"building.html#/shareConlist")}&response_type=code&scope=snsapi_userinfo&state=${this.itemIP}#wechat_redirect`)},600)},activated(){var t=this.getQueryStringArgs(window.location.href);t.ip&&t.ip!=this.itemIP&&(this.itemIP=t.ip,this.isWechatBrower||(this.mescroll.resetUpScroll(),this.getUserInfo(),this.getJSSDKConfig()),this.isWechatBrower&&this.shareToken&&(this.mescroll.resetUpScroll(),this.getUserInfo(),this.getJSSDKConfig()));let e=sessionStorage.getItem("SHARECONSTRUCTIONLIST");e&&(this.mescroll.scrollTo(parseInt(e||0),0),sessionStorage.removeItem("SHARECONSTRUCTIONLIST"))},methods:{...Object(c["mapMutations"])(["setpersonObj","setShareToken","setclientype"]),onClickBack(){this.$router.go(-1)},getQueryStringArgs:function(t){t=null==t?window.location.href:t;var e=t.substring(t.lastIndexOf("?")+1),s={},i=/([^?&=]+)=([^?&=]*)/g;return e.replace(i,(function(t,e,i){var o=decodeURIComponent(e),a=decodeURIComponent(i);return a=String(a),s[o]=a,t})),s},getProgress(t){let e=t.step_list.filter(t=>1==t.upload);return e.length?e[e.length-1]["name"]:t.step_list[0]["name"]},viewConstruction(t){sessionStorage.setItem("SHARECONSTRUCTIONLIST",this.scrollPosition),this.$router.push({path:"/shareConstruction",query:{ip:t.str}})},code2sessionFunc(){this.shareToken&&void 0!=this.shareToken||Object(n["k"])({code:this.authCode,share:this.personObj.str}).then(t=>{0==t.data.code&&this.setShareToken(t.data.data)})},getUserInfo(){Object(n["t"])({token:this.itemIP}).then(t=>{0==t.data.code&&(this.setpersonObj(t.data.data),t.data.data.notify&&this.setclientype(t.data.data.notify),this.authCode&&this.code2sessionFunc())})},getJSSDKConfig(){const t=this;Object(r["b"])({url:location.href}).then(e=>{0==e.data.code&&(wx.config({debug:!1,appId:e.data.appid,timestamp:e.data.data.timestamp,nonceStr:e.data.data.noncestr,signature:e.data.data.sign,jsApiList:["updateAppMessageShareData","updateTimelineShareData"],openTagList:[]}),wx.ready((function(){wx.updateAppMessageShareData({title:"在施工地列表",desc:"暂无简介",link:`${t.weburl}building.html#/shareConlist?ip=${t.itemIP}`,imgUrl:"",success:function(){console.log("配置成功")}}),wx.updateTimelineShareData({title:"在施工地列表",desc:"暂无简介",link:`${t.weburl}building.html#/shareConlist?ip=${t.itemIP}`,imgUrl:"",success:function(){console.log("配置成功")}})})))})},mescrollInit(t){this.mescroll=t},getFuncList(t,e){const s=this;let i={page:t.num,limit:10,token:this.itemIP};t.num>1?this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0}):(this.loadFlag=!0,this.datashow=!1),Object(n["B"])(i).then(i=>{"0"==i.data.code&&(1===t.num&&(s.constructionArr=[]),s.constructionArr=s.constructionArr.concat(i.data.data),s.$nextTick(()=>{e.endSuccess(i.data.data.length)})),this.loadFlag=!1,this.datashow=!0,this.$toast.clear()})}}},g=h,u=(s("9d99"),s("2877")),m=Object(u["a"])(g,i,o,!1,null,"c7ed9fc2",null);e["default"]=m.exports},ec85:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAnxJREFUaEPVmT2vDVEUhp83QiI0aPArdCoFIhrCbVS+b4NEq/AHfFQoKRRCg0LlSjQiIVHdKIUECRLRKXwkLFnJvsnOyTB75uyPMdUp5px5nzXPXrP2GdH4MLNVwA7gBPAVuCbpVWospZ5Y4jwzWwMcBy4CG8I1XgALkj6mXLMZQKj8InAB2BiF/QwckvRksgAh/AJwPar8St6XwH5J7ycJELQ5BlzqCP8aOC3pcUp4P6eqQqHyJ4PzsTaexcMflfQ8NXxVgB5t3obKLw0JXw0gQZuzwCNJNjmAEtrEkEXXQAh/ELjRsWDfAackDdamCkCPNm8A12ZpjDbFAXq08fBHhnabv62N7AolaON9/uHQxVoFIGhzFLjc4Xw2bYooFGnjs82mmYpl1SY7QKSNzzazT1jvNlm1yQoQaeOzzWz4ItpkA0jQxmebZ7kWbNfvjO5CIfyB8JCqqs3cd8DMVgMrI3F1beYCCJX3/atvA7u6TXFtRgNMRZtRAFPSZizAWuC2/2PQ0Q2eAnsk/SjZcebuQma2HrgP7AR8IcfHXeCMpC81IQa3UTPbClwBfM6PIX6GO3SuJsRgAK+umW0BbgJ7Z6rtEA+Aw5L8c/FjFECAWBd02tVSp9EA0Z242lKnuQCmoNPcAK11ygLQUqdsAK10ygrQQqfsANGd8Iedjx1FH3ZFAGrqVAyglk5FAWroVBygtE5VAErqVA0gQGwGfHbK1p2qApTQqTpApNM9YHfHKH4HWJT0PWUz0QSgR6dPPp5L8jf2vUczgH/o9AHYJ2m5N33t98RdgczMd3auzXbgF3ALOC/p938BEK2JbcA3YDk1vH+3qUIpFe475w+z8S1A0olT9gAAAABJRU5ErkJggg=="}}]);