You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.2 KiB
1 lines
4.2 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/driverDetails/InformationModification"],{"3a23":function(t,n,e){"use strict";var a=e("94b6"),o=e.n(a);o.a},"94b6":function(t,n,e){},bb37:function(t,n,e){"use strict";e.r(n);var a=e("f4e0"),o=e.n(a);for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);n["default"]=o.a},c54c:function(t,n,e){"use strict";(function(t){e("6e43");a(e("66fd"));var n=a(e("e078"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},e078:function(t,n,e){"use strict";e.r(n);var a=e("e0d4"),o=e("bb37");for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("3a23");var i,s=e("f0c5"),u=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},e0d4:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return a}));var a={uniList:function(){return e.e("uni_modules/uni-list/components/uni-list/uni-list").then(e.bind(null,"cd62"))},uniListItem:function(){return e.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(e.bind(null,"778c"))},uPicker:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-picker/u-picker")]).then(e.bind(null,"8256"))}},o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.show=!0})},r=[]},f4e0:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=s(e("a34a")),o=s(e("69b8")),r=s(e("e041")),i=s(e("0ebd"));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e,a,o,r,i){try{var s=t[r](i),u=s.value}catch(c){return void e(c)}s.done?n(u):Promise.resolve(u).then(a,o)}function c(t){return function(){var n=this,e=arguments;return new Promise((function(a,o){var r=t.apply(n,e);function i(t){u(r,a,o,i,s,"next",t)}function s(t){u(r,a,o,i,s,"throw",t)}i(void 0)}))}}var d={data:function(){return{check:["userName","password","phone"],show:!1,jsData:null,postData:{id:"",userName:"",password:"",phone:"",birthday:"",headPhoto:"",plateNumber:"",registerMode:"1",userSource:"OMS-MINIAPP"}}},onLoad:function(t){var n=this;t.jsData&&(this.jsData=JSON.parse(t.jsData),this.postData.id=n.jsData.customerId,this.postData.plateNumber=n.jsData.plateNumber,this.postData.userName=n.jsData.userName,this.postData.phone=n.jsData.phone,this.postData.birthday=n.jsData.birthday,this.postData.headPhoto=n.jsData.headPhoto,console.log(this.postData,this.jsData))},methods:{random:function(){var t=this;return c(a.default.mark((function n(){var e,o,r,i,s,u,c;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e=[],o=!1,r=0;case 3:if(!(r<8)){n.next=21;break}if(o=parseInt(10*Math.random())>parseInt(10*Math.random()),i=e.join("").match(/[A-z]/g)||[],s=e.join("").match(/[0-9]/g)||[],4==s.length&&(o=!1),4==i.length&&(o=!0),!o){n.next=14;break}u=t.randomNumberFn(),e.push(u),n.next=18;break;case 14:return n.next=16,t.randomUnicodeFn();case 16:c=n.sent,e.push(String.fromCharCode(c));case 18:r++,n.next=3;break;case 21:t.postData.password=e.join(""),console.log(e.join(""),"---");case 23:case"end":return n.stop()}}),n)})))()},randomNumberFn:function(){return parseInt(10*Math.random())},randomUnicodeFn:function(){return new Promise((function(t,n){var e=/^9[1-6]{1}$/,a=setInterval((function(){var n=parseInt(57*Math.random())+65;e.test(n)||(console.log(String.fromCharCode(n),n),clearInterval(a),t(n))}),100)}))},postFn:function(){var n=this,e=!0;Object.keys(this.postData).forEach((function(t){n.check.includes(t)&&""==n.postData[t]&&(e=!1)})),e?(r.default.updateDriver(Object.assign(JSON.parse(JSON.stringify(this.postData)),{password:(0,i.default)(this.postData.password)})).then((function(n){2e4===n.code&&t.navigateBack()})),console.log(this.postData)):t.showToast({title:"重要信息不能为空",icon:"none"})},clickfn:function(n){if("object"!==typeof n)return this.postData.headPhoto=n,void t.showToast({title:"上传成功"});o.default.chooseImage(this.clickfn)},dateConfirm:function(t){this.postData.birthday=t.year+"-"+t.month+"-"+t.day}}};n.default=d}).call(this,e("543d")["default"])}},[["c54c","common/runtime","common/vendor"]]]); |