pages-public-login.8fe6b518.js 8.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{5476:function(t,i,e){"use strict";var a=e("ccc7"),n=e.n(a);n.a},"6fdb":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("aa9c");var a=e("3a07"),n=e("e360"),o={data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL,account:"",showPassword:!1,password:"",info:{},showPrivacy:!1,readAndagree:!1,isAgreePrivacy:!1}},onShow:function(){this.getDefInfo()},methods:{handlePrivacyStatus:function(){var t=this;wx.getPrivacySetting({success:function(i){console.log(i,"000000"),i.needAuthorization?(t.$refs.privacyPopup.open(),t.isAgreePrivacy=!0):t.isAgreePrivacy=!1}})},toOpenPrivacy:function(){wx.openPrivacyContract({})},handleAgreePrivacyAuthorization:function(){this.isAgreePrivacy=!1,this.$refs.privacyPopup.close()},showPrivacyPop:function(){this.$refs.privacyPopup.open()},closePop:function(){this.$refs.privacyPopup.close()},selectAgree:function(){this.readAndagree=!this.readAndagree},getDefInfo:function(){var t=this;(0,n.defaultInfo)().then((function(i){t.info=i.data,uni.setStorageSync("mapKey",i.data.map_key),uni.setStorageSync("appid",i.data.appid),uni.setStorageSync("NAME",i.data.mobile_name)}))},jump:function(t,i){this.$Router.push({path:t,query:i})},toLogin:function(){var t=this;if(this.isAgreePrivacy)this.$refs.privacyPopup.open();else if(this.account)if(this.password){var i={account:this.account,password:this.password};(0,n.netNewLogin)(i).then((function(i){t.jumpPage(i)}))}else uni.showToast({title:"请填写密码",icon:"none"});else uni.showToast({title:"请填写账号",icon:"none"})},freeLogin:function(){var t=this;this.isAgreePrivacy?this.$refs.privacyPopup.open():(0,n.netlogin_text)().then((function(i){t.jumpPage(i)}))},jumpPage:function(t){uni.setStorageSync("userinfo",t.data.userinfo),uni.setStorageSync("token",t.data.userinfo.token),uni.redirectTo({url:"/pages/index/index"})}}};i.default=o},a39c:function(t,i,e){"use strict";e.r(i);var a=e("c412"),n=e("d704");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("5476");var c=e("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"4cccb5f6",null,!1,a["a"],void 0);i["default"]=s.exports},c412:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return a}));var a={uniPopup:e("02f0").default},n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"container"},[e("v-uni-view",{staticClass:"wrapper"},[e("v-uni-view",{staticClass:"titbox"},[e("v-uni-view",{staticClass:"firtit"},[t._v(t._s(t.info.mobile_name))]),e("v-uni-view",{staticClass:"sectit"},[t._v("实现线索到回款全流程管理")])],1),e("v-uni-view",{staticClass:"login-box"},[e("v-uni-view",{staticClass:"input-item"},[e("v-uni-view",{staticClass:"itemtit"},[t._v("手机号")]),e("v-uni-view",{staticClass:"itembot"},[e("v-uni-image",{staticClass:"phoneimg",attrs:{src:t.BASE_IMG_URL+"phone1.png",mode:""}}),e("v-uni-input",{staticClass:"inp",attrs:{type:"text",placeholder:"请输入账号",placeholderStyle:"color:#999;font-size:30rpx"},model:{value:t.account,callback:function(i){t.account=i},expression:"account"}})],1)],1),e("v-uni-view",{staticClass:"input-item"},[e("v-uni-view",{staticClass:"itemtit"},[t._v("密码")]),e("v-uni-view",{staticClass:"itembot"},[e("v-uni-image",{staticClass:"suoimg",attrs:{src:t.BASE_IMG_URL+"suo1.png",mode:""}}),t.showPassword?t._e():e("v-uni-input",{staticClass:"inp",attrs:{type:"text",password:!0,placeholder:"请输入密码","placeholder-class":"pl"},model:{value:t.password,callback:function(i){t.password=i},expression:"password"}}),t.showPassword?e("v-uni-input",{staticClass:"inp",attrs:{type:"text",placeholder:"请输入密码","placeholder-class":"pl"},model:{value:t.password,callback:function(i){t.password=i},expression:"password"}}):t._e(),t.showPassword?t._e():e("v-uni-image",{staticClass:"eayimg",attrs:{src:t.BASE_IMG_URL+"nosee1.png",mode:""},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.showPassword=!0}}}),t.showPassword?e("v-uni-image",{staticClass:"eayimg",attrs:{src:t.BASE_IMG_URL+"see1.png",mode:""},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.showPassword=!1}}}):t._e()],1)],1)],1),e("v-uni-view",{staticClass:"btn_g",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toLogin.apply(void 0,arguments)}}},[t._v("登录")])],1),e("uni-popup",{ref:"privacyPopup",attrs:{type:"bottom","safe-area":!1},on:{touchmove:function(i){i.stopPropagation(),i.preventDefault(),arguments[0]=i=t.$handleEvent(i)}}},[e("v-uni-view",{staticClass:"privacy_mask"},[e("v-uni-view",{staticClass:"privacy_box"},[e("v-uni-view",{staticClass:"priva_tit"},[t._v("隐私政策提示")]),e("v-uni-view",{staticClass:"priva_tip"},[t._v("欢迎使用CRM客户管理软件")]),e("v-uni-view",{staticClass:"priva_con"},[t._v("我们将通过"),e("v-uni-text",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toOpenPrivacy.apply(void 0,arguments)}}},[t._v("《隐私政策》")]),t._v("帮助您了解我们收集、使用、存储和共享个人信息的情况。\n\t\t\t\t\t未经您的单独同意,我们不会主动向任何第三方共享您的个人信息。\n\t\t\t\t\t当您使用一些功能服务时,我们可能会在获得您的明示同意后,\n\t\t\t\t\t从授权第三方处获取世章或向其提供信息。")],1),e("v-uni-button",{staticClass:"agreebtn",attrs:{"open-type":"agreePrivacyAuthorization"},on:{agreeprivacyauthorization:function(i){arguments[0]=i=t.$handleEvent(i),t.handleAgreePrivacyAuthorization.apply(void 0,arguments)}}},[t._v("同意并继续")]),e("v-uni-view",{staticClass:"noagree"},[e("v-uni-text",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.closePop.apply(void 0,arguments)}}},[t._v("不同意")])],1)],1)],1)],1)],1)},o=[]},c9f8:function(t,i,e){var a=e("c86c");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.priva_w[data-v-4cccb5f6]{display:flex;justify-content:center;align-items:center;font-size:%?24?%;margin-top:%?80?%;color:#999}.priva_w uni-radio[data-v-4cccb5f6]{-webkit-transform:scale(.7);transform:scale(.7)}.priva_w uni-text[data-v-4cccb5f6]{color:#008eff}.freelogin[data-v-4cccb5f6]{text-align:center;font-size:%?24?%;color:red;margin-top:%?60?%}.wrapper[data-v-4cccb5f6]{padding-bottom:%?40?%;width:100%;margin-top:%?100?%}.wrapper .titbox[data-v-4cccb5f6]{padding:%?40?% 0 %?50?%}.wrapper .titbox .firtit[data-v-4cccb5f6]{font-size:%?48?%;color:#008eff;font-weight:700;text-align:center}.wrapper .titbox .sectit[data-v-4cccb5f6]{font-size:%?32?%;color:#999;margin-top:%?30?%;text-align:center}.wrapper .login-box[data-v-4cccb5f6]{margin:0 auto %?100?%}.wrapper .login-box .input-item[data-v-4cccb5f6]{padding:%?26?% %?30?%;border-bottom:%?1?% solid #c7c7c7;width:%?630?%;margin:0 auto %?50?%}.wrapper .login-box .input-item .itemtit[data-v-4cccb5f6]{font-size:%?30?%;color:#666;margin-bottom:%?50?%}.wrapper .login-box .input-item .itembot[data-v-4cccb5f6]{display:flex;justify-content:flex-start;align-items:center}.wrapper .login-box .input-item .phoneimg[data-v-4cccb5f6]{width:%?41?%;height:%?40?%}.wrapper .login-box .input-item .suoimg[data-v-4cccb5f6]{width:%?40?%;height:%?44?%}.wrapper .login-box .input-item .inp[data-v-4cccb5f6]{width:%?460?%;margin-left:%?30?%;font-size:%?28?%}.wrapper .login-box .input-item .pl[data-v-4cccb5f6]{font-size:%?30?%;color:#999}.wrapper .login-box .input-item .eayimg[data-v-4cccb5f6]{margin-left:%?30?%;width:%?33?%;height:%?33?%}.wrapper .li_box[data-v-4cccb5f6]{margin:%?40?% auto 0;width:%?690?%;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%;font-weight:700}.wrapper .li_box .register[data-v-4cccb5f6]{font-size:%?26?%;color:#333}.wrapper .li_box .forgot[data-v-4cccb5f6]{font-size:%?26?%;color:#333}',""]),t.exports=i},ccc7:function(t,i,e){var a=e("c9f8");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("967d").default;n("f957d188",a,!0,{sourceMap:!1,shadowMode:!1})},d704:function(t,i,e){"use strict";e.r(i);var a=e("6fdb"),n=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a}}]);