index.js 7.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"0b3f":function(e,t,n){"use strict";n.r(t);var o=n("cd8b"),r=n("efa7");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("eb86");var u,a=n("f0c5"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"4215792d",null,!1,o["a"],u);t["default"]=c.exports},"48ba":function(e,t,n){},"6d2e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("d0e4");function r(e){return c(e)||a(e)||u(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e){if(Array.isArray(e))return s(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function l(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){n.e("components/back-top/back-top").then(function(){return resolve(n("3387"))}.bind(null,n)).catch(n.oe)},m=function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("1800"))}.bind(null,n)).catch(n.oe)},b={components:{backTop:d,wmWatermark:m},filters:{filtersRichText:function(e){var t=e.replace(/<img[^>]*>/gi,(function(e,t){return e=e.replace(/style="[^"]+"/gi,"").replace(/style='[^']+'/gi,""),e=e.replace(/width="[^"]+"/gi,"").replace(/width='[^']+'/gi,""),e=e.replace(/height="[^"]+"/gi,"").replace(/height='[^']+'/gi,""),e}));return t=t.replace(/style="[^"]+"/gi,(function(e,t){return e=e.replace(/width:[^;]+;/gi,"max-width:100%;").replace(/width:[^;]+;/gi,"max-width:100%;"),e})),t=t.replace(/<br[^>]*\/>/gi,""),t=t.replace(/\<img/gi,'<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"'),t}},data:function(){return{isOneRow:!1,curHtml:"",backTop:{src:"../../static/back-top/top.png",scrollTop:0},userInfo:{},skeletonLoading:!0,agentTypeList:["","自由经纪人","渠道经纪人","老业主"],propertyList:[{estate_name:"在售项目1",pri_image:"https://zdcdn.2bwin.cn/uploads/20220501/af6eb9c2a5d462be10a15c2302e5e6b5.jpg",sale_tag:"刚需好盘",rulesInfo:{des:"内容加载中1....",des_content:"内容加载中2...."}}],commonRulesShow:!1,propertyPopupShow:!1,currentPropertyIndex:0,data:{},form1:{},scrollTop:0,reportStepCountObj:{},areaTypeObj:{},twoObj:{}}},onPageScroll:function(e){this.scrollTop=e.scrollTop,this.backTop.scrollTop=e.scrollTop},onLoad:function(){},onReady:function(){},onShow:function(){this.init(),this.checkUpdate()},onHide:function(){},onReachBottom:function(){},onResize:function(){},onShareAppMessage:function(e){},created:function(){},methods:{checkUpdate:function(){var t=e.getUpdateManager();t.onUpdateReady((function(n){e.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(e){e.confirm&&t.applyUpdate()}})}))},oneImgHandle:function(t){e.api.estate.apiestateinfodetail({id:t.id}).then((function(t){var n=t.info_img||"";n?e.previewImage({current:n,urls:[n]}):e.$msg("该楼盘暂未设置一页纸楼盘简介~")}))},scanHandle:function(){e.scanCode({success:function(t){e.navigateTo({url:"/pages/agent/recommend/detail2?id=".concat(t.result)})}})},init:function(t){var n=this,i=e.getStorageSync("MD_userInfo2");this.userInfo=i||{},e.api.estate.apireportcount().then((function(e){var t=e.report_step_count||[],o={};t.forEach((function(e){o[e.report_step]=e.total||0})),n.reportStepCountObj=p({},o)})),e.api.estate.apiestatelist({page_size:100}).then((function(t){var i=t.list||[],u=e.getStorageSync("MD_dict"),a=(0,o.arrToObj)(u.area_type),c={};i.forEach((function(e){c[e.area_type]?c[e.area_type].list.push(e):c[e.area_type]={list:[e],str:a[e.area_type]}})),n.twoObj=p({},c),n.propertyList=r(i)})),this.skeletonLoading=!1},pageTo:function(t){"dev"!==t?e.navigateTo({url:t}):e.$msg("开发中~")},showDetail:function(t,n){var o=this;this.userInfo&&1==this.userInfo.auth_state?(this.currentPropertyIndex=t,this.propertyPopupShow=!0,e.api.estate.apiestatecontentdetail({id:n.id}).then((function(e){o.curHtml=e.content||""}))):e.$msgConfirm("请点击首页右上角设置,进行实名认证,实名认证后可查看详细信息")}},watch:{},computed:{}};t.default=b}).call(this,n("543d")["default"])},cd8b: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={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"1800"))},uAvatar:function(){return n.e("uni_modules/vk-uview-ui/components/u-avatar/u-avatar").then(n.bind(null,"2143"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"ce9e"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ba35"))},uLine:function(){return n.e("uni_modules/vk-uview-ui/components/u-line/u-line").then(n.bind(null,"a2cb"))},uImage:function(){return n.e("uni_modules/vk-uview-ui/components/u-image/u-image").then(n.bind(null,"2afb"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"2654"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"c565"))},uParse:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-parse/u-parse")]).then(n.bind(null,"b2fd"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"d07e"))},uSkeleton:function(){return n.e("uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton").then(n.bind(null,"fe2a"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e._f("filtersRichText")(e.curHtml));e._isMounted||(e.e0=function(t){e.commonRulesShow=!0},e.e1=function(e){this.isOneRow=!this.isOneRow}),e.$mp.data=Object.assign({},{$root:{f0:n}})},i=[]},e6df:function(e,t,n){"use strict";(function(e){n("3690");o(n("66fd"));var t=o(n("0b3f"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},eb86:function(e,t,n){"use strict";var o=n("48ba"),r=n.n(o);r.a},efa7:function(e,t,n){"use strict";n.r(t);var o=n("6d2e"),r=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a}},[["e6df","common/runtime","common/vendor"]]]);