1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-carInsure1-yonganCode"],{2480:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"page"},[t("public-module"),t("v-uni-view",{staticClass:"mx-3 mt-3"},[t("v-uni-view",{staticClass:"phone d-flex"},[t("v-uni-view",{staticClass:"title"},[e._v("电话号码")]),t("v-uni-input",{attrs:{placeholder:"请输入手机号",maxlength:"11",disabled:!0},model:{value:e.mobile,callback:function(n){e.mobile=n},expression:"mobile"}})],1),t("v-uni-view",{staticClass:"code d-flex"},[t("v-uni-view",{staticClass:"title"},[e._v("验证码")]),t("v-uni-input",{staticStyle:{"padding-right":"200rpx"},attrs:{placeholder:"请输入验证码",maxlength:"6"},on:{input:function(n){arguments[0]=n=e.$handleEvent(n),e.OnBtnChange.apply(void 0,arguments)}},model:{value:e.code,callback:function(n){e.code=n},expression:"code"}}),t("v-uni-view",{staticClass:"d-flex a-center j-center login-font-color yanzhengma",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.getCheckNum.apply(void 0,arguments)}}},[t("v-uni-view",{staticClass:"d-flex a-center j-center",class:e.codetime?"yanzhengma2":"yanzhengma1 main-text-color"},[e._v(e._s(e.codetime?e.codetime+" s":"获取验证码"))])],1)],1),t("v-uni-button",{staticClass:"my-3 mt-4 d-flex a-center j-center font-weight main-bg-color",class:{"main-bf-hover-color":e.disabled},staticStyle:{"letter-spacing":"20rpx"},attrs:{loading:e.loading,type:"primary",disabled:e.disabled},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.submit.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)},i=[]},"38ee":function(e,n,t){"use strict";t("7a82");var a=t("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(t("5530")),o=a(t("c7eb")),d=a(t("1da1")),r=(t("65a8"),t("26cb")),c={data:function(){return{mobile:"",code:"",disabled:!0,loading:!1,codetime:0,showRecommend:!1,recommendername:"",recommenderid:"",companyId:null}},onLoad:function(e){var n=this;return(0,d.default)((0,o.default)().mark((function t(){return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.companyId&&(n.companyId=String(e.companyId),n.mobile=e.mobile);case 1:case"end":return t.stop()}}),t)})))()},methods:(0,i.default)((0,i.default)({},(0,r.mapMutations)(["setUserModules"])),{},{OnBtnChange:function(){this.code?this.disabled=!1:this.disabled=!0},getCheckNum:function(){var e=this;return(0,d.default)((0,o.default)().mark((function n(){var t,a,i;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(e.codetime>0)){n.next=2;break}return n.abrupt("return");case 2:return t={companyId:e.companyId},n.next=5,e.$http.post("/order/yongAn/getMessage",t);case 5:a=n.sent,"200"==a.code?uni.showToast({title:"发送成功",icon:"none"}):uni.showToast({title:a.msg,icon:"none"}),e.codetime=60,i=setInterval((function(){e.codetime--,e.codetime<1&&(clearInterval(i),e.codetime=0)}),1e3);case 9:case"end":return n.stop()}}),n)})))()},submit:function(){var e=this;return(0,d.default)((0,o.default)().mark((function n(){var t,a;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={companyId:e.companyId,verificationCode:e.code},n.next=3,e.$http.post("/order/yongAn/getPayUrl",t);case 3:a=n.sent,"200"==a.code&&(uni.showToast({icon:"none",title:"支付成功,请等待跳转支付页面",duration:1500}),window.location.href=a.msg);case 5:case"end":return n.stop()}}),n)})))()}})};n.default=c},"45f3":function(e,n,t){var a=t("24fb");n=a(!1),n.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.idCardBefore[data-v-d2e4bcee]{background:rgba(234,85,45,.1) url(/static/image/user/identy2.png) 50% no-repeat;background-size:auto 70%;padding:%?10?%}.page[data-v-d2e4bcee]{background:#f5f5f5;height:100vh;width:100%;position:absolute}.phone[data-v-d2e4bcee],\n.password[data-v-d2e4bcee],\n.code[data-v-d2e4bcee]{position:relative;height:%?90?%;display:flex;align-items:center;background-color:#fff;padding:0 %?30?%;margin-bottom:%?26?%}.phone .title[data-v-d2e4bcee],\n.password .title[data-v-d2e4bcee],\n.code .title[data-v-d2e4bcee]{width:%?160?%;flex-shrink:0;color:#666}.phone uni-input[data-v-d2e4bcee],\n.password uni-input[data-v-d2e4bcee],\n.code uni-input[data-v-d2e4bcee]{width:%?350?%;font-size:%?28?%}.yanzhengma[data-v-d2e4bcee]{width:%?150?%;position:absolute;right:%?30?%}.yanzhengma1[data-v-d2e4bcee]{font-size:%?26?%;background:#fff;border-radius:%?10?%;width:%?150?%;padding:%?5?% 0}.yanzhengma2[data-v-d2e4bcee]{background:#fff;font-size:%?26?%;color:#b2b2b2;border-radius:%?10?%;width:%?150?%;padding:%?5?% 0}.recommendInfo[data-v-d2e4bcee]{background:#fff}.recommendInfo > uni-view[data-v-d2e4bcee]:nth-of-type(1){border-bottom:1px solid #ddd}.recommendInfo > uni-view:nth-of-type(1) > uni-view[data-v-d2e4bcee]:nth-of-type(1){width:%?150?%;height:%?150?%;border-radius:50%}.recommendInfo > uni-view:nth-of-type(1) > uni-view:nth-of-type(1) > uni-image[data-v-d2e4bcee]{width:100%;height:100%}.recommendInfo > uni-view:nth-of-type(1) > uni-view[data-v-d2e4bcee]:nth-of-type(2){padding:%?20?%}.recommendInfo > uni-view:nth-of-type(1) > uni-view:nth-of-type(2) > uni-view[data-v-d2e4bcee]{height:%?55?%}.recommendInfo > uni-view[data-v-d2e4bcee]:nth-of-type(2){line-height:%?50?%}',""]),e.exports=n},"65a8":function(e,n,t){"use strict";t("7a82");var a=t("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.base64ToPath=function(e){return new Promise((function(n,t){if("object"===("undefined"===typeof window?"undefined":(0,i.default)(window))&&"document"in window){e=e.split(",");var a=e[0].match(/:(.*?);/)[1],o=atob(e[1]),d=o.length,r=new Uint8Array(d);while(d--)r[d]=o.charCodeAt(d);return n((window.URL||window.webkitURL).createObjectURL(new Blob([r],{type:a})))}var c=e.match(/data\:\S+\/(\S+);/);c?c=c[1]:t(new Error("base64 error"));var u=Date.now()+"."+c;if("object"!==("undefined"===typeof plus?"undefined":(0,i.default)(plus)))if("object"===("undefined"===typeof wx?"undefined":(0,i.default)(wx))&&wx.canIUse("getFileSystemManager")){var s=wx.env.USER_DATA_PATH+"/"+u;wx.getFileSystemManager().writeFile({filePath:s,data:e.replace(/^data:\S+\/\S+;base64,/,""),encoding:"base64",success:function(){n(s)},fail:function(e){t(e)}})}else t(new Error("not support"));else{var f=new plus.nativeObj.Bitmap("bitmap"+Date.now());f.loadBase64Data(e,(function(){var e="_doc/uniapp_temp/"+u;f.save(e,{},(function(){f.clear(),n(e)}),(function(e){f.clear(),t(e)}))}),(function(e){f.clear(),t(e)}))}}))},n.pathToBase64=function(e){return new Promise((function(n,t){if("object"===("undefined"===typeof window?"undefined":(0,i.default)(window))&&"document"in window){if("function"===typeof FileReader){var a=new XMLHttpRequest;return a.open("GET",e,!0),a.responseType="blob",a.onload=function(){if(200===this.status){var e=new FileReader;e.onload=function(e){n(e.target.result)},e.onerror=t,e.readAsDataURL(this.response)}},a.onerror=t,void a.send()}var o=document.createElement("canvas"),d=o.getContext("2d"),r=new Image;return r.onload=function(){o.width=r.width,o.height=r.height,d.drawImage(r,0,0),n(o.toDataURL()),o.height=o.width=0},r.onerror=t,void(r.src=e)}"object"!==("undefined"===typeof plus?"undefined":(0,i.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,i.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:e,encoding:"base64",success:function(e){n("data:image/png;base64,"+e.data)},fail:function(e){t(e)}}):t(new Error("not support")):plus.io.resolveLocalFileSystemURL(function(e){if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return e;if(0===e.indexOf("file://"))return e;if(0===e.indexOf("/storage/emulated/0/"))return e;if(0===e.indexOf("/")){var n=plus.io.convertAbsoluteFileSystem(e);if(n!==e)return n;e=e.substr(1)}return"_www/"+e}(e),(function(e){e.file((function(e){var a=new plus.io.FileReader;a.onload=function(e){n(e.target.result)},a.onerror=function(e){t(e)},a.readAsDataURL(e)}),(function(e){t(e)}))}),(function(e){t(e)}))}))};var i=a(t("53ca"));t("c975"),t("d3b7"),t("d9e2"),t("d401"),t("ac1f"),t("466d"),t("81b2"),t("0eb6"),t("b7ef"),t("8bd4"),t("ace4"),t("5cc6"),t("907a"),t("9a8c"),t("a975"),t("735e"),t("c1ac"),t("d139"),t("3a7b"),t("986a"),t("1d02"),t("d5d6"),t("82f8"),t("e91f"),t("60bd"),t("5f96"),t("3280"),t("3fcc"),t("ca91"),t("25a1"),t("cd26"),t("3c5d"),t("2954"),t("649e"),t("219c"),t("b39a"),t("72f7"),t("3ca3"),t("ddb0"),t("2b3d"),t("9861"),t("5319")},"69c2":function(e,n,t){var a=t("45f3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=t("4f06").default;i("1df871cc",a,!0,{sourceMap:!1,shadowMode:!1})},"894d":function(e,n,t){"use strict";var a=t("69c2"),i=t.n(a);i.a},"93ab":function(e,n,t){"use strict";t.r(n);var a=t("2480"),i=t("eb0c");for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t("894d");var d=t("f0c5"),r=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"d2e4bcee",null,!1,a["a"],void 0);n["default"]=r.exports},eb0c:function(e,n,t){"use strict";t.r(n);var a=t("38ee"),i=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=i.a}}]);
|