(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/detailGovern"],{"02b4":function(e,t,n){},"15c5":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"e7ff"))},uLine:function(){return n.e("uni_modules/vk-uview-ui/components/u-line/u-line").then(n.bind(null,"4dda"))},uSteps:function(){return n.e("uni_modules/vk-uview-ui/components/u-steps/u-steps").then(n.bind(null,"169f"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"078a"))},uTimeLine:function(){return n.e("uni_modules/vk-uview-ui/components/u-time-line/u-time-line").then(n.bind(null,"16ba"))},uTimeLineItem:function(){return n.e("uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item").then(n.bind(null,"8321"))},uSkeleton:function(){return n.e("uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton").then(n.bind(null,"b17d"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"7401"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"51b1b"))}},u=function(){var e=this.$createElement,t=(this._self._c,1==this.detail.report_state?Number(this.detail.report_step):null),n=this.stepsLogList.length;this.$mp.data=Object.assign({},{$root:{m0:t,g0:n}})},o=[]},"21bb":function(e,t,n){"use strict";var i=n("02b4"),u=n.n(i);u.a},a933:function(e,t,n){"use strict";n.r(t);var i=n("15c5"),u=n("a96b");for(var o in u)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(o);n("21bb");var r=n("f0c5"),a=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=a.exports},a96b:function(e,t,n){"use strict";n.r(t);var i=n("aae0"),u=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=u.a},aae0:function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=i(n("9523"));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var r=n("675e").default,a={data:function(){return{curId:"",commonRulesShow:!1,skeletonLoading:!0,detail:{},currentStep:0,userInfo:{},buystepList:[{name:"审核"},{name:"报备成功"},{name:"到访"},{name:"认购"},{name:"签约"},{name:"结佣"}],reportStepObj:{1:"未到访",2:"已到访",3:"已认购",4:"已签约",5:"已结佣"},reportStateObj:{1:"有效",2:"审核中",3:"无效"},stepsLogList:[]}},onLoad:function(t){var n=this,i=e.getStorageSync("MD_userInfo2");this.userInfo=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i),this.curId=t.id,e.api.estate.apigoverndetail({id:t.id}).then((function(t){n.detail=t||{},n.stepsLogList=t.report_flow||[],n.skeletonLoading=!1;var i=e.getSystemInfoSync(),u=500*i.windowWidth/750,o=500*i.windowWidth/750;new r("qrcode",{text:t.code,width:u,height:o,colorDark:"#000",colorLight:"#fff",correctLevel:r.correctLevel.H,logo:"",successTips:!1})}))},methods:{buyedHandle:function(){var t=this;e.$msgConfirm("确定已认购？",(function(){})),e.api.estate.apireportsubscrDeal({id:this.detail.id}).then((function(n){t.getData(),e.$msg("操作成功~")}))},signedHandle:function(){var t=this;e.$msgConfirm("确定已签约？",(function(){})),e.api.estate.apireportsignupDeal({id:this.detail.id}).then((function(n){t.getData(),e.$msg("操作成功~")}))},openPopup:function(){if(this.detail.report_code)e.previewImage({current:this.detail.report_code,urls:[this.detail.report_code]});else{if(1==this.detail.is_edit)return void e.$msg("暂无报备二维码，请联系管理员");this.commonRulesShow=!0}},getData:function(){var t=this;e.api.estate.apireportdetail({id:this.curId}).then((function(e){t.detail=e||{},t.stepsLogList=e.report_flow||[],t.skeletonLoading=!1}))},vHandle:function(){var t=this;e.api.cust.apireportvisit({id:this.detail.id}).then((function(n){t.getData(),e.$msg("操作成功~")}))},pageTo:function(t){"dev"!==t?e.navigateTo({url:t}):e.$msg("开发中~")},dial:function(t){e.makePhoneCall({phoneNumber:t})}}};t.default=a}).call(this,n("543d")["default"])},c6d7:function(e,t,n){"use strict";(function(e,t){var i=n("4ea4");n("2ab2");i(n("66fd"));var u=i(n("a933"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["c6d7","common/runtime","common/vendor"]]]);