您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

2 行
6.5 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/consumer/index"],{500:function(e,t,n){"use strict";(function(e){n(5),n(6);r(n(4));var t=r(n(501));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(1)["createPage"])},501:function(e,t,n){"use strict";n.r(t);var r=n(502),i=n(504);for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n(506);var o,c=n(17),u=Object(c["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,"5b2a036c",null,!1,r["components"],o);u.options.__file="pages/center/consumer/index.vue",t["default"]=u.exports},502:function(e,t,n){"use strict";n.r(t);var r=n(503);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},503:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return o})),n.d(t,"recyclableRender",(function(){return s})),n.d(t,"components",(function(){return r}));try{r={uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,688))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,720))},uSelect:function(){return n.e("uview-ui/components/u-select/u-select").then(n.bind(null,548))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.selectshow=!0},e.e1=function(t){e.selectTipshow=!0})},s=!1,o=[];i._withStripped=!0},504:function(e,t,n){"use strict";n.r(t);var r=n(505),i=n.n(r);for(var s in r)"default"!==s&&function(e){n.d(t,e,(function(){return r[e]}))}(s);t["default"]=i.a},505:function(e,t,n){"use strict";(function(e){function n(e){return o(e)||s(e)||i(e)||r()}function r(){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 i(e,t){if(e){if("string"===typeof e)return c(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)?c(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function o(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={data:function(){return{value:"",screenShow:!1,selectshow:!1,selectTipshow:!1,buildingID:"",screen:{agentId:"",agentIdtext:"",visitRecord:"",record:null,cunsumerTips:"",cunsumerTipsid:""},stageList:["未知","到访","意向","定金","成交"],recordList:[],nextPage:1,totalRecord:"",freeList:[],userInfo:{},findKeywordsList:[],isnorefresh:""}},onLoad:function(e){this.isnorefresh=e.refresh},onShow:function(){"refresh"==this.isnorefresh&&(this.buildingID=e.getStorageSync("buildingID").id,this.nextPage=1,this.recordList=[],this.getMyCustom(),this.getFreeList(),this.getfindKeywordsList(),this.isnorefresh="")},onReachBottom:function(){this.totalRecord!=this.nextPage?(this.nextPage+=1,this.getMyCustom()):e.showToast({icon:"none",title:"到底了",duration:2e3})},methods:{recordclick:function(e){this.screen.record==e?this.screen.record=null:this.screen.record=e},screenvisitRecord:function(e){this.screen.visitRecord==e?this.screen.visitRecord="":this.screen.visitRecord=e},gotoDetail:function(t){e.navigateTo({url:"/pages/center/consumer/consumerDetail?id=".concat(t)})},getMyCustom:function(){var t=this,r={pageNum:this.nextPage,pageSize:10,query:{projectId:this.buildingID,keywordsId:this.screen.cunsumerTipsid,agentId:this.screen.agentId}};this.screen.visitRecord>0&&(r.query.visitRecord=this.screen.visitRecord),0==this.screen.record?r.query.levels=["1"]:1==this.screen.record?r.query.levels=["2"]:2==this.screen.record?r.query.levels=["3"]:3==this.screen.record?r.query.levels=["4"]:r.query.levels="",this.userInfo=e.getStorageSync("weapp_session_userInfo_data"),this.$u.post("/customer/customerManagement",r).then((function(e){var r=e.results||[];r.forEach((function(e){6==t.userInfo.dataCode?e.isshow=!0:e.isshow=!1})),r.forEach((function(e){null!=e.demand.cusSemanticWordsList&&e.demand.cusSemanticWordsList.forEach((function(e){0==e.isInterval&&(e.name=e.name+e.unit+"-"+e.endName+e.unit)}))})),t.recordList=[].concat(n(t.recordList),n(r)),t.totalRecord=e.totalPage}))},getFreeList:function(){var e=this;this.freeList=[],this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then((function(t){e.freeList=t,e.freeList.forEach((function(e){e.label=e.name,e.value=e.agentId}))}))},getfindKeywordsList:function(){var e=this;this.findKeywordsList=[],this.$u.post("/customer/findKeywords",{houseId:this.buildingID}).then((function(t){t.forEach((function(e){0==e.isInterval?e.label=e.name+e.unit+"-"+e.endName+e.unit:e.label=e.name,e.value=e.id})),e.findKeywordsList=t}))},screenshow:function(){this.screenShow=!0},actionSelectCallback:function(e){this.screen.agentId=e[0].value,this.screen.agentIdtext=e[0].label},selectCallback:function(e){this.screen.cunsumerTips=e[0].label,this.screen.cunsumerTipsid=e[0].value},reset:function(){this.screen={agentId:"",agentIdtext:"",visitRecord:"",record:null,cunsumerTips:"",cunsumerTipsid:""},this.nextPage=1,this.recordList=[],this.screenShow=!1,this.getMyCustom()},screensure:function(){this.nextPage=1,this.recordList=[],this.screenShow=!1,this.getMyCustom()},goSearch:function(){e.navigateTo({url:"/pages/center/consumer/consumerSearch"})},gotoFollowUp:function(t){e.navigateTo({url:"/pages/center/consumer/newFollowup/newFollowup?id=".concat(t)})}}};t.default=u}).call(this,n(1)["default"])},506:function(e,t,n){"use strict";n.r(t);var r=n(507),i=n.n(r);for(var s in r)"default"!==s&&function(e){n.d(t,e,(function(){return r[e]}))}(s);t["default"]=i.a},507:function(e,t,n){}},[[500,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/consumer/index.js.map