12 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/housedetails/housedetails"],{362:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26),n(27);r(n(25));var o=r(n(363));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},363:function(e,t,n){"use strict";n.r(t);var r=n(364),o=n(366);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n(368);var s,c=n(46),u=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],s);u.options.__file="pages/subPackages/housedetails/housedetails.vue",t["default"]=u.exports},364:function(e,t,n){"use strict";n.r(t);var r=n(365);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},365:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return i})),n.d(t,"components",(function(){return r}));try{r={uniSwiperDot:function(){return n.e("uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot").then(n.bind(null,625))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.planPictureList.length),r=e.getDicType("roomUse",e.form.roomUse),o=e.getDicType("zaiti",e.form.propertyNature);e.$mp.data=Object.assign({},{$root:{g0:n,m0:r,m1:o}})},i=!1,s=[];o._withStripped=!0},366:function(e,t,n){"use strict";n.r(t);var r=n(367),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},367:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(29)),i=r(n(18)),s=r(n(32)),c=r(n(11)),u=n(67);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={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,u.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(d({id:this.form.id},this.search)),(0,u.listByModel)(d({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,r=n.findIndex((function(e){return e.value==t}));return n[r].label}if("roomUse"==e&&this.dic_SelectList.HOUSE_USAGE){var o=this.dic_SelectList.HOUSE_USAGE,i=o.findIndex((function(e){return e.value==t}));return o[i].label}},getByCodes:function(){var e=this;return(0,s.default)(o.default.mark((function t(){var n;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,u.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,u.listByModel)(d({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=l}).call(this,n(2)["default"])},368:function(e,t,n){"use strict";n.r(t);var r=n(369),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},369:function(e,t,n){}},[[362,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/subPackages/housedetails/housedetails.js.map
|