detail.js 3.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/detail"],{"23d5":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=t("2b32").default,i={data:function(){return{curId:"",commonRulesShow:!1,skeletonLoading:!0,detail:{},currentStep:0,buystepList:[{name:"审核"},{name:"报备成功"},{name:"到访"},{name:"认购"},{name:"签约"},{name:"结佣"}],reportStepObj:{1:"未到访",2:"已到访",3:"已认购",4:"已签约",5:"已结佣"},reportStateObj:{1:"有效",2:"审核中",3:"无效"},stepsLogList:[]}},onLoad:function(n){var t=this;this.curId=n.id,e.api.estate.apireportdetail({id:n.id}).then((function(n){t.detail=n||{},t.stepsLogList=n.report_flow||[],t.skeletonLoading=!1;var i=e.getSystemInfoSync(),o=500*i.windowWidth/750,r=500*i.windowWidth/750;new u("qrcode",{text:n.code,width:o,height:r,colorDark:"#000",colorLight:"#fff",correctLevel:u.correctLevel.H,logo:"",successTips:!1})}))},methods:{openPopup:function(){this.detail.report_code?e.previewImage({current:this.detail.report_code,urls:[this.detail.report_code]}):this.commonRulesShow=!0},getData:function(){var n=this;e.api.estate.apireportdetail({id:this.curId}).then((function(e){n.detail=e||{},n.stepsLogList=e.report_flow||[],n.skeletonLoading=!1}))},vHandle:function(){var n=this;e.api.cust.apireportvisit({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=i}).call(this,t("543d")["default"])},"327a":function(e,n,t){"use strict";var u=t("e0d5"),i=t.n(u);i.a},"48e1":function(e,n,t){"use strict";(function(e){t("3690");u(t("66fd"));var n=u(t("5714"));function u(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 u=t("23d5"),i=t.n(u);for(var o in u)"default"!==o&&function(e){t.d(n,e,(function(){return u[e]}))}(o);n["default"]=i.a},5714:function(e,n,t){"use strict";t.r(n);var u=t("700d"),i=t("5271");for(var o in i)"default"!==o&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t("327a");var r,a=t("f0c5"),c=Object(a["a"])(i["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],r);n["default"]=c.exports},"700d":function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return u}));var u={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"))}},i=function(){var e=this,n=e.$createElement,t=(e._self._c,1==e.detail.report_state?Number(e.detail.report_step):null);e.$mp.data=Object.assign({},{$root:{m0:t}})},o=[]},e0d5:function(e,n,t){}},[["48e1","common/runtime","common/vendor"]]]);