1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/detail"],{"23d5":function(e,n,t){"use strict";(function(e){function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("2b32").default,c={data:function(){return{curRoles:"",curName:"",curSex:"male",isInfoShow:!1,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(n){var t=this,i=e.getStorageSync("MD_userInfo2");this.userInfo=u({},i),this.curRoles=i?i.roles:"",this.curId=n.id,e.api.estate.apireport2detail({id:n.id}).then((function(n){t.detail=n||{},t.curName=n.name,t.curSex=n.sex,t.stepsLogList=n.report_flow||[],t.skeletonLoading=!1;var i=e.getSystemInfoSync(),u=500*i.windowWidth/750,o=500*i.windowWidth/750;new r("qrcode",{text:n.code,width:u,height:o,colorDark:"#000",colorLight:"#fff",correctLevel:r.correctLevel.H,logo:"",successTips:!1})}))},methods:{openInfoPopup:function(e){1!=this.curRoles&&5!=this.curRoles&&6!=this.curRoles||(this.isInfoShow=!0)},closeInfoPopup:function(){var n=this;e.api.estate.apireportedit({id:this.detail.id,name:this.curName,sex:this.curSex}).then((function(t){e.$msg("修改成功"),n.isInfoShow=!1,n.getData()}))},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 n=this;e.api.estate.apireport2detail({id:this.curId}).then((function(e){n.detail=e||{},n.stepsLogList=e.report_flow||[],n.skeletonLoading=!1}))},vHandle:function(){var n=this;e.$msgConfirm("确定已到访?",(function(){e.api.cust.apireportvisit({id:n.detail.id}).then((function(t){n.getData(),e.$msg("操作成功~")}))}))},buyedHandle:function(){var n=this;e.$msgConfirm("确定已认购?",(function(){})),e.api.estate.apireportsubscrDeal({id:this.detail.id}).then((function(t){n.getData(),e.$msg("操作成功~")}))},signedHandle:function(){var n=this;e.$msgConfirm("确定已签约?",(function(){})),e.api.estate.apireportsignupDeal({id:this.detail.id}).then((function(t){n.getData(),e.$msg("操作成功~")}))},pageTo:function(n){"dev"!==n?e.navigateTo({url:n}):e.$msg("开发中~")},dial:function(n){e.makePhoneCall({phoneNumber:n})}}};n.default=c}).call(this,t("543d")["default"])},"327a":function(e,n,t){"use strict";var i=t("e0d5"),u=t.n(i);u.a},"48e1":function(e,n,t){"use strict";(function(e){t("3690");i(t("66fd"));var n=i(t("5714"));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},5271:function(e,n,t){"use strict";t.r(n);var i=t("23d5"),u=t.n(i);for(var o in i)"default"!==o&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=u.a},5714:function(e,n,t){"use strict";t.r(n);var i=t("c967"),u=t("5271");for(var o in u)"default"!==o&&function(e){t.d(n,e,(function(){return u[e]}))}(o);t("327a");var r,c=t("f0c5"),s=Object(c["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);n["default"]=s.exports},c967:function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var i={uIcon:function(){return t.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(t.bind(null,"ba35"))},uTag:function(){return t.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(t.bind(null,"8002"))},uLine:function(){return t.e("uni_modules/vk-uview-ui/components/u-line/u-line").then(t.bind(null,"a2cb"))},uSteps:function(){return t.e("uni_modules/vk-uview-ui/components/u-steps/u-steps").then(t.bind(null,"9aca"))},uEmpty:function(){return t.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(t.bind(null,"2654"))},uTimeLine:function(){return t.e("uni_modules/vk-uview-ui/components/u-time-line/u-time-line").then(t.bind(null,"49b2"))},uTimeLineItem:function(){return t.e("uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item").then(t.bind(null,"e72c"))},uSkeleton:function(){return t.e("uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton").then(t.bind(null,"fe2a"))},uPopup:function(){return t.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(t.bind(null,"c565"))},uButton:function(){return t.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(t.bind(null,"ce9e"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(t.bind(null,"6943"))},uRadioGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(t.bind(null,"9183"))},uRadio:function(){return t.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(t.bind(null,"0505"))}},u=function(){var e=this,n=e.$createElement,t=(e._self._c,1==e.detail.report_state?Number(e.detail.report_step):null);e._isMounted||(e.e0=function(n){e.isInfoShow=!1}),e.$mp.data=Object.assign({},{$root:{m0:t}})},o=[]},e0d5:function(e,n,t){}},[["48e1","common/runtime","common/vendor"]]]);
|