1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/housedetails/housedetails"],{"2cd8":function(e,t,n){"use strict";n.r(t);var o=n("f01c"),r=n("e6e7");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("a35f");var s=n("f0c5"),c=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},"3d42":function(e,t,n){},"9a43":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("89bd"),n("4a2a");o(n("66fd"));var r=o(n("2cd8"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},a35f:function(e,t,n){"use strict";var o=n("3d42"),r=n.n(o);r.a},ca34:function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("2eee")),i=o(n("448a")),s=o(n("c973")),c=o(n("9523")),a=n("44c6");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,c.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,s.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("543d")["default"])},e6e7:function(e,t,n){"use strict";n.r(t);var o=n("ca34"),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},f01c: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,"979d"))}},r=function(){var e=this.$createElement,t=(this._self._c,this.planPictureList.length),n=this.getDicType("roomUse",this.form.roomUse),o=this.getDicType("zaiti",this.form.propertyNature);this.$mp.data=Object.assign({},{$root:{g0:t,m0:n,m1:o}})},i=[]}},[["9a43","common/runtime","common/vendor"]]]);
|