housedetails.js 5.3 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/housedetails/housedetails"],{"2cb7":function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("7eb4")),i=o(n("af34")),c=o(n("ee10")),s=o(n("7ca3")),a=n("5ae7");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={components:{},data:function(){return{dic_key:["PROPERTY_NATURE","HOUSE_USAGE"],dic_SelectList:{},search:{pageSize:10,pageNum:1},form:{id:""},list:[],info:[{colorClass:"uni-bg-red",url:"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg",content:"内容 A"},{colorClass:"uni-bg-green",url:"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg",content:"内容 B"},{colorClass:"uni-bg-blue",url:"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg",content:"内容 C"}],dotStyle:[{backgroundColor:"rgba(0, 0, 0, .3)",border:"1px rgba(0, 0, 0, .3) solid",color:"#fff",selectedBackgroundColor:"rgba(0, 0, 0, .9)",selectedBorder:"1px rgba(0, 0, 0, .9) solid"},{backgroundColor:"rgba(255, 90, 95,0.3)",border:"1px rgba(255, 90, 95,0.3) solid",color:"#fff",selectedBackgroundColor:"rgba(255, 90, 95,0.9)",selectedBorder:"1px rgba(255, 90, 95,0.9) solid"},{backgroundColor:"rgba(83, 200, 249,0.3)",border:"1px rgba(83, 200, 249,0.3) solid",color:"#fff",selectedBackgroundColor:"rgba(83, 200, 249,0.9)",selectedBorder:"1px rgba(83, 200, 249,0.9) solid"}],modeIndex:-1,styleIndex:-1,current:0,mode:"default",dotsStyles:{},planPictureList:[],swiperDotIndex:0}},onLoad:function(e){var t=this;this.getByCodes(),this.form.id=e.id,(0,a.getRoomInfo)(e.id).then((function(n){t.form=n,t.form.currentState=e.currentState,console.log(n.planPicture.split(",")),0!=n.planPicture.length?t.planPictureList=n.planPicture.split(",").map((function(e){return{url:t.$constant.BASE_URI+"/FileController/download/"+e}})):t.planPictureList=[]})),console.log(l({id:this.form.id},this.search)),(0,a.listByModel)(l({id:e.id},this.search)).then((function(e){t.list=e.rows}))},methods:{jumpCreatedProject:function(){e.navigateTo({url:"/pages/subPackages/addintention/addintention?ids="+this.form.id})},getDicType:function(e,t){if("zaiti"==e&&this.dic_SelectList.PROPERTY_NATURE){var n=this.dic_SelectList.PROPERTY_NATURE,o=n.findIndex((function(e){return e.value==t}));return n[o].label}if("roomUse"==e&&this.dic_SelectList.HOUSE_USAGE){var r=this.dic_SelectList.HOUSE_USAGE,i=r.findIndex((function(e){return e.value==t}));return r[i].label}},getByCodes:function(){var e=this;return(0,c.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getByCodes)(JSON.stringify(e.dic_key));case 2:n=t.sent,e.dic_SelectList=e.$common.handleDicList(n);case 4:case"end":return t.stop()}}),t)})))()},getMoreListByModel:function(){var e=this;(0,a.listByModel)(l({id:this.form.id},this.search)).then((function(t){var n;(n=e.list).push.apply(n,(0,i.default)(t.rows))}))},onReachBottom:function(){this.search.pageNum+=1,this.getMoreListByModel(),console.log("滑动到距离底部100px的时候触发,可以放 。。业务逻辑")},change:function(e){this.current=e.detail.current},selectStyle:function(e){this.dotsStyles=this.dotStyle[e],this.styleIndex=e},selectMode:function(e,t){this.mode=e,this.modeIndex=t,this.styleIndex=-1,this.dotsStyles=this.dotStyle[0]},clickItem:function(e){this.swiperDotIndex=e},onBanner:function(e){console.log(22222,e)}}};t.default=d}).call(this,n("df3c")["default"])},"5cee":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var o={uniSwiperDot:function(){return n.e("uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot").then(n.bind(null,"26d1"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.planPictureList.length),o=e.form.roomUse?e.getDicType("roomUse",e.form.roomUse):null,r=e.form.propertyNature?e.getDicType("zaiti",e.form.propertyNature):null;e.$mp.data=Object.assign({},{$root:{g0:n,m0:o,m1:r}})},i=[]},8794:function(e,t,n){"use strict";var o=n("fee6"),r=n.n(o);r.a},ba5b:function(e,t,n){"use strict";n.r(t);var o=n("5cee"),r=n("e6da");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("8794");var c=n("828b"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=s.exports},e2c4:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("5e15"),n("3c60");o(n("3240"));var r=o(n("ba5b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},e6da:function(e,t,n){"use strict";n.r(t);var o=n("2cb7"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},fee6:function(e,t,n){}},[["e2c4","common/runtime","common/vendor"]]]);