1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-login"],{"05247":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'uni-page-body[data-v-3c8b8c08]{height:100%;background-color:#f7f7f7;display:flex;flex-direction:column}body.?%PAGE?%[data-v-3c8b8c08]{background-color:#f7f7f7}.app[data-v-3c8b8c08]{flex:1;box-sizing:border-box;padding:0 %?48?%;display:flex;flex-direction:column;justify-content:space-between}.app .logo[data-v-3c8b8c08]{padding:%?62?% 0 %?108?%;margin:0 auto;display:flex;justify-content:center;align-items:center;color:#e54d42;font-size:%?52?%;letter-spacing:%?1?%}.app .logo uni-image[data-v-3c8b8c08]{width:%?80?%;height:%?80?%;display:block;margin-right:%?24?%}.app .tabs[data-v-3c8b8c08]{display:flex;align-items:center;justify-content:center;padding-bottom:%?42?%}.app .tabs uni-text[data-v-3c8b8c08]{position:relative;font-size:%?32?%;margin:0 %?32?%;display:flex;flex-direction:column;align-items:center}.app .tabs uni-text[data-v-3c8b8c08]:after{content:"";width:%?40?%;height:%?6?%;margin-top:%?8?%;border-radius:%?2?%;background-color:initial}.app .tabs uni-text.cur[data-v-3c8b8c08]{color:#e54d42}.app .tabs uni-text.cur[data-v-3c8b8c08]:after{background-color:#e54d42}.form-item[data-v-3c8b8c08]{position:relative;display:flex;flex-direction:column;box-sizing:border-box;border-bottom:%?2?% solid #999;padding:%?38?% 0 0}.form-item .label[data-v-3c8b8c08]{width:100%;color:#444;font-size:%?28?%;font-family:PingFangSC-Medium,PingFang SC;display:flex;justify-content:space-between;align-items:center;font-weight:bolder}.form-item .label uni-text[data-v-3c8b8c08]{opacity:.4}.form-item .label uni-text.light[data-v-3c8b8c08]{opacity:1}.form-item .intput-area[data-v-3c8b8c08]{display:flex;justify-content:space-between;font-size:%?26?%;line-height:%?106?%}.form-item .intput-area uni-input[data-v-3c8b8c08]{height:%?106?%;flex:1;font-size:%?54?%;font-family:DINAlternate-Bold,DINAlternate}.form-item .intput-area .uni-input-placeholder[data-v-3c8b8c08]{font-size:%?28?%}.form-item uni-text[data-v-3c8b8c08]{color:#999}.form-item uni-text.enable[data-v-3c8b8c08]{color:#e54d42}.err-tips[data-v-3c8b8c08]{color:#ab0000;font-size:%?24?%;display:block;margin-top:%?24?%}.ctrls[data-v-3c8b8c08]{margin-top:%?100?%;display:flex;justify-content:space-between;box-sizing:border-box}.ctrls .button[data-v-3c8b8c08]{flex:1;margin:0 %?15?%;white-space:nowrap}.xieyi[data-v-3c8b8c08]{margin:%?64?% 0 %?32?%;display:flex;align-items:center;justify-content:center;white-space:nowrap}.xieyi .link[data-v-3c8b8c08]{color:#e54d42}.xieyi .icon-checkbox[data-v-3c8b8c08]{margin-right:%?8?%}',""]),t.exports=a},"2db2":function(t,a,e){"use strict";e.r(a);var i=e("eafe"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},"492c":function(t,a,e){"use strict";var i=e("c0c0"),n=e.n(i);n.a},"531a":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,"",""]),t.exports=a},7631:function(t,a,e){"use strict";var i=e("d7fb"),n=e.n(i);n.a},c0c0:function(t,a,e){var i=e("05247");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("da7afa72",i,!0,{sourceMap:!1,shadowMode:!1})},d7fb:function(t,a,e){var i=e("531a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("52476d28",i,!0,{sourceMap:!1,shadowMode:!1})},e947:function(t,a,e){"use strict";e.r(a);var i=e("f6a8"),n=e("2db2");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("7631"),e("492c");var s=e("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"3c8b8c08",null,!1,i["a"],void 0);a["default"]=c.exports},eafe:function(t,a,e){"use strict";e("7a82");var i=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("498a"),e("ac1f"),e("466d"),e("00b4"),e("d3b7"),e("159b");var n=i(e("f3f3")),o=e("26cb"),s={data:function(){return{loginType:2,code:"",mobile:"",error:"",mobileValiting:0,countdownStart:0,timelimit:60,pass:"",payurl:"",suser:""}},methods:(0,n.default)((0,n.default)({},(0,o.mapMutations)(["setUserInfo"])),{},{pay:function(){var t=this;this.req({url:"service/agent/?l=auth.reg&sign=http%3A%2F%2Fzsmatest.nongxiaohe.com%2Fdata%2Fupload%2F9%2F2022%2F03%2F25%2F25ff280b871c75ba618666c43c1dcd6a.png&type=1&idcard=140224198312254712&name=qinj&idcard_back=http%3A%2F%2Fzsmatest.nongxiaohe.com%2Fdata%2Fupload%2F9%2F2022%2F02%2F26%2F734611c162a9606a5f947734d303658c.png&idcard_front=http%3A%2F%2Fzsmatest.nongxiaohe.com%2Fdata%2Fupload%2F9%2F2022%2F02%2F26%2F734611c162a9606a5f947734d303658c.png&code=1060&mobile=17316135130&company_name=&company_number=&company_pic=&area=110000%2C110100&role=6&code=&source_id=&pay_pic=&pay_type=1",data:{refer:location.origin+"/pages/dailishang/apply/success"},success:function(a){1==a.data.status?(console.log(a.data.data.pay.order),location.href=a.data.data.pay.order):t.error=a.data.msg}})},countDown:function(){var t=this;this.timelimit=60-Math.floor((Date.now()-this.countdownStart)/1e3),this.timelimit>0?setTimeout((function(){t.countDown()}),500):this.mobileValiting=!1},getCode:function(){var t=this;uni.showLoading({mask:!0}),this.req({url:"?l=data.sms",data:{mobile:this.mobile.trim()},success:function(a){if(1==a.data.status){t.error="",t.mobileValiting=1,t.countdownStart=Date.now(),t.countDown();var e=a.data.data.match(/::(\d*)/);t.code=e?e[1]:""}else t.error=a.data.msg;uni.hideLoading()}})},doLogin:function(){var t=this,a={mobile:this.mobile.trim(),account:"wechat",env:2,applet_code:"",invite:"88151"};if(this.mobile&&/^1\d{10}$/.test(this.mobile.trim())){if(1==this.loginType){if(a.pass=this.pass,!this.pass)return void uni.showToast({icon:"error",title:"请输入密码"})}else if(a.code=this.code,!this.code)return void uni.showToast({icon:"error",title:"请输入验证码"});console.log(a),this.req({url:"?l=data.login",data:a,success:function(a){1==a.data.status?(uni.setStorage({key:"baseToken",data:{t:a.data.data.t,mobile:t.mobile.trim()}}),t.setUserInfo({t:a.data.data.t,mobile:t.mobile.trim()}),t.code="",t.mobile="",t.error="",t.pass="",a.data.data.t&&(getCurrentPages().length<2?(console.log("-11111"),uni.reLaunch({url:"/pages/app/index"})):(console.log("-22222222211111"),uni.navigateBack({success:function(){getCurrentPages().forEach((function(t){"function"===typeof t.$vm.globalLoginedCallback&&t.$vm.globalLoginedCallback()}))}})))):t.error=a.data.msg}})}else uni.showToast({icon:"error",title:"手机号码不正确"})}}),onLoad:function(){this.userInfo.t&&uni.switchTab({url:"/pages/app/index"})}};a.default=s},f6a8:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"app"},[e("v-uni-view",[e("v-uni-view",{staticClass:"logo"},[t._v("源代宝系统")]),e("v-uni-view",{staticClass:"tabs"}),1==t.loginType?[e("v-uni-view",{staticClass:"form-item"},[e("v-uni-text",{staticClass:"label"},[t._v("手机号")]),e("v-uni-view",{staticClass:"intput-area"},[e("v-uni-input",{attrs:{type:"number",placeholder:"请填写手机号"},model:{value:t.mobile,callback:function(a){t.mobile=a},expression:"mobile"}})],1)],1),e("v-uni-view",{staticClass:"form-item"},[e("v-uni-view",{staticClass:"label"},[t._v("密码")]),e("v-uni-view",{staticClass:"intput-area"},[e("v-uni-input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.pass,callback:function(a){t.pass=a},expression:"pass"}})],1)],1)]:[e("v-uni-view",{staticClass:"form-item"},[e("v-uni-text",{staticClass:"label"},[t._v("手机号")]),e("v-uni-view",{staticClass:"intput-area"},[e("v-uni-input",{attrs:{type:"number",placeholder:"请填写手机号"},model:{value:t.mobile,callback:function(a){t.mobile=a},expression:"mobile"}})],1)],1),e("v-uni-view",{staticClass:"form-item"},[e("v-uni-text",{staticClass:"label"},[t._v("验证码")]),e("v-uni-view",{staticClass:"intput-area"},[e("v-uni-input",{attrs:{type:"number",placeholder:"请输入验证码"},model:{value:t.code,callback:function(a){t.code=a},expression:"code"}}),t.mobileValiting?t._e():e("v-uni-text",{staticClass:"enable",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getCode.apply(void 0,arguments)}}},[t._v("获取验证码")]),t.mobileValiting?e("v-uni-text",{staticClass:"disabled"},[t._v("重新发送("+t._s(t.timelimit)+")")]):t._e()],1)],1)],t.error?e("v-uni-view",{staticClass:"err-tips"},[t._v(t._s(t.error))]):t._e(),e("v-uni-view",{staticClass:"flex flex-direction zaiui-btn-view",staticStyle:{"margin-top":"20upx"}},[e("v-uni-view",{staticClass:"cu-btn bg-red",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.doLogin.apply(void 0,arguments)}}},[t._v("登录")])],1)],2),e("v-uni-view",{staticClass:"xieyi"},[e("v-uni-text",{staticClass:"icon-checkbox checked"}),t._v("我已阅读并同意"),e("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/assets/singlepage/singlepage?id=service"}},[t._v("《用户服务协议》")]),t._v("和"),e("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/assets/singlepage/singlepage?id=yinsizhengce"}},[t._v("《隐私政策》")])],1)],1)},n=[]}}]);
|