1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/create"],{"045c":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{form:{name:null,phone:null,sex:"male",remark:null,estate_id:2,estate_name:"江投.朝阳春天",saler_id:null,saler_name:null},customer_id:null,submitButtonDisabled:!0,rules:{name:[{required:!0,message:"姓名不得为空",trigger:["change","blur"]}],phone:[{required:!0,message:"手机号不得为空",trigger:["change","blur"]},{len:11,message:"手机号格式不正确",trigger:["change","blur"]}],estate_name:[{required:!0,message:"意向项目不能为空",trigger:["change"]}]},propertySelectShow:!1,propertySelectList:[],salerSelectShow:!1,salerSelectList:[],submitModalShow:!1,modalShow:!1,modalContent:""}},onLoad:function(e){var n=this,t=n.getOpenerEventChannel();t.on&&t.on("data",(function(e){n.form.name=e.info.name,n.form.phone=e.info.phone,n.form.sex=e.info.sex,n.form.remark=e.info.demand}))},created:function(){var n=this;e.api.estate.apiestatelist().then((function(e){var t=e.list||[],u=[];t.forEach((function(e){u.push({value:e.estate_id,label:e.estate_name})})),n.propertySelectList=[].concat(u)}))},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{propertySelectConfirm:function(e){var n=this;e.map((function(e,t){n.form.estate_id=e.value,n.form.estate_name=e.label}))},submitHandle:function(){var n=this,t=this;this.$refs.uForm.validate((function(u){u?e.api.estate.apireportadd({phone_type:1,name:t.form.name,phone:t.form.phone,sex:t.form.sex,remark:t.form.remark,estate_id:t.form.estate_id,estate_name:t.form.estate_name}).then((function(t){e.$msgConfirm("报备成功,是否前往报备列表?",(function(){e.navigateTo({url:"/pages/agent/recommend/list"})}),(function(){n.form={name:null,phone:null,sex:"male",remark:null,estate_id:null,estate_name:null}}))})):console.log("验证失败")}))},getPhoneNumber:function(e){var n=this;if("getPhoneNumber:fail user deny"==e.detail.errMsg)return n.$refs.uToast.show({title:"您可以在个人设置中再次绑定",type:"warning"}),void setTimeout((function(){n.reLunchUser()}),1500);console.log(e.detail.errMsg),console.log(e.detail.iv),console.log(e.detail.encryptedData);var t=e.detail.iv,u=e.detail.encryptedData;wx.login({success:function(e){e.code?n.setUserPhoneNumber(u,t,e.code):(this.$refs.uToast.show({title:e.errMsg,type:"warning"}),console.log("登录失败!"+e.errMsg))}})},hideKeyboard:function(){e.hideKeyboard()},getFormatDate:function(e){if(void 0==e||""==e)return"";var n=e;return parseInt(e)<10&&(n="0"+e),n}}};n.default=t}).call(this,t("543d")["default"])},4441:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return u}));var u={uForm:function(){return t.e("uni_modules/vk-uview-ui/components/u-form/u-form").then(t.bind(null,"ce96"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"23cb"))},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"))},uGap:function(){return t.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(t.bind(null,"dc7f"))},uButton:function(){return t.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(t.bind(null,"ce9e"))},uSelect:function(){return t.e("uni_modules/vk-uview-ui/components/u-select/u-select").then(t.bind(null,"2de4"))},uModal:function(){return t.e("uni_modules/vk-uview-ui/components/u-modal/u-modal").then(t.bind(null,"f813"))},uToast:function(){return t.e("uni_modules/vk-uview-ui/components/u-toast/u-toast").then(t.bind(null,"934c"))}},o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.propertySelectShow=!0})},r=[]},"56d2":function(e,n,t){"use strict";t.r(n);var u=t("045c"),o=t.n(u);for(var r in u)"default"!==r&&function(e){t.d(n,e,(function(){return u[e]}))}(r);n["default"]=o.a},"768e":function(e,n,t){"use strict";var u=t("9e53"),o=t.n(u);o.a},"9e53":function(e,n,t){},f4fd:function(e,n,t){"use strict";(function(e){t("3690");u(t("66fd"));var n=u(t("f8da"));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"])},f8da:function(e,n,t){"use strict";t.r(n);var u=t("4441"),o=t("56d2");for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t("768e");var i,a=t("f0c5"),l=Object(a["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],i);n["default"]=l.exports}},[["f4fd","common/runtime","common/vendor"]]]);
|