detail.js 5.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/detail"],{"1be0":function(e,t,n){"use strict";n.r(t);var i=n("6397"),u=n("915b");for(var o in u)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(o);n("bb13");var r=n("f0c5"),s=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=s.exports},"37f7":function(e,t,n){},"5efd":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,s={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(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.curRoles=i?i.roles:"",this.curId=t.id,e.api.estate.apireport2detail({id:t.id}).then((function(t){n.detail=t||{},n.curName=t.name,n.curSex=t.sex,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:{openInfoPopup:function(e){1!=this.curRoles&&5!=this.curRoles&&6!=this.curRoles||(this.isInfoShow=!0)},closeInfoPopup:function(){var t=this;e.api.estate.apireportedit({id:this.detail.id,name:this.curName,sex:this.curSex}).then((function(n){e.$msg("修改成功"),t.isInfoShow=!1,t.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 t=this;e.api.estate.apireport2detail({id:this.curId}).then((function(e){t.detail=e||{},t.stepsLogList=e.report_flow||[],t.skeletonLoading=!1}))},vHandle:function(){var t=this;e.$msgConfirm("确定已到访?",(function(){e.api.cust.apireportvisit({id:t.detail.id}).then((function(n){t.getData(),e.$msg("操作成功~")}))}))},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("操作成功~")}))},pageTo:function(t){"dev"!==t?e.navigateTo({url:t}):e.$msg("开发中~")},dial:function(t){e.makePhoneCall({phoneNumber:t})}}};t.default=s}).call(this,n("543d")["default"])},6397: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"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(n.bind(null,"830c"))},uRadioGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(n.bind(null,"f0c0"))},uRadio:function(){return n.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(n.bind(null,"79d4"))}},u=function(){var e=this,t=e.$createElement,n=(e._self._c,1==e.detail.report_state?Number(e.detail.report_step):null),i=e.stepsLogList.length;e._isMounted||(e.e0=function(t){e.isInfoShow=!1}),e.$mp.data=Object.assign({},{$root:{m0:n,g0:i}})},o=[]},"915b":function(e,t,n){"use strict";n.r(t);var i=n("5efd"),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},"9b7c":function(e,t,n){"use strict";(function(e,t){var i=n("4ea4");n("2ab2");i(n("66fd"));var u=i(n("1be0"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},bb13:function(e,t,n){"use strict";var i=n("37f7"),u=n.n(i);u.a}},[["9b7c","common/runtime","common/vendor"]]]);