cyywl_shop_app/dist/static/js/pages-users-retrievePasswor...

1 line
9.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"172d":function(t,e,a){t.exports=a.p+"static/img/bg-linear.5a23c023.png"},"1de5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"3edc":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("00b4");var n=i(a("c7eb")),s=i(a("1da1")),r=i(a("430f")),c=a("2110"),o={name:"RetrievePassword",data:function(){return{account:"",password:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mixins:[r.default],mounted:function(){},methods:{back:function(){uni.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},registerReset:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var a;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.account){e.next=3;break}return e.abrupt("return",a.$util.Tips({title:"请填写手机号码"}));case 3:if(/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(a.captcha){e.next=7;break}return e.abrupt("return",a.$util.Tips({title:"请填写验证码"}));case 7:(0,c.registerReset)({mobile:a.account,password:a.password,code:a.captcha}).then((function(t){a.$util.Tips({title:t.message},{tab:3})})).catch((function(t){a.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()},code:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var a;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.account){e.next=3;break}return e.abrupt("return",a.$util.Tips({title:"请填写手机号码"}));case 3:if(/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:"请输入正确的手机号码"}));case 5:return e.next=7,(0,c.registerVerify)(a.account,3).then((function(t){a.sendCode()})).catch((function(t){a.$util.Tips({title:t})}));case 7:case"end":return e.stop()}}),e)})))()}}};e.default=o},"430f":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var a=setInterval((function(){e-=1,e<0&&clearInterval(a),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=i},"68d5":function(t,e,a){"use strict";var i=a("94cb"),n=a.n(i);n.a},"6e92":function(t,e,a){"use strict";a.r(e);var i=a("3edc"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"94cb":function(t,e,a){var i=a("f188");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("4ca7156a",i,!0,{sourceMap:!1,shadowMode:!1})},a309:function(t,e,a){"use strict";a.r(e);var i=a("cf35"),n=a("6e92");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("68d5");var r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"526cb135",null,!1,i["a"],void 0);e["default"]=c.exports},cf35:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-wrapper"},[t._m(0),a("v-uni-view",{staticClass:"title"},[t._v("找回密码")]),a("div",{staticClass:"whiteBg"},[a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{staticStyle:{width:"40rpx",height:"40rpx"},attrs:{src:"/static/images/phone_1.png"}}),a("v-uni-input",{staticClass:"texts",attrs:{type:"text",placeholder:"输入手机号码"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{staticStyle:{width:"40rpx",height:"40rpx"},attrs:{src:"/static/images/code_2.png"}}),a("v-uni-input",{staticClass:"texts",attrs:{type:"text",placeholder:"填写验证码"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}})],1),a("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.code.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1),a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{staticStyle:{width:"40rpx",height:"40rpx"},attrs:{src:"/static/images/code_2.png"}}),a("v-uni-input",{staticClass:"texts",attrs:{type:"password",placeholder:"填写您的新密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)]),t.isShowCode?a("div",{staticClass:"item"},[a("div",{staticClass:"align-left"},[a("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),a("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.again.apply(void 0,arguments)}}},[a("img",{attrs:{src:t.codeUrl}})])],1)]):t._e()]),a("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.registerReset.apply(void 0,arguments)}}},[t._v("确认")]),a("div",{staticClass:"tips"},[a("span",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("立即登录")])])]),a("div",{staticClass:"bottom"})],1)},n=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo-wrap"},[e("img",{staticStyle:{width:"105rpx",height:"105rpx"},attrs:{src:"/static/images/mallLogo.png"}}),e("img",{staticStyle:{width:"233rpx",height:"43rpx"},attrs:{src:"/static/images/mall.png"}})])}]},f188:function(t,e,a){var i=a("24fb"),n=a("1de5"),s=a("172d");e=i(!1);var r=n(s);e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.code img[data-v-526cb135]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-526cb135]{margin-left:%?20?%;display:block}.login-wrapper[data-v-526cb135]{padding:%?30?% %?52?%;background:url('+r+") center 0 no-repeat;background-size:100% %?672?%}.login-wrapper .logo-wrap[data-v-526cb135]{margin:%?185?% 0 %?85?% 0;display:flex;align-items:center}.login-wrapper .logo-wrap img[data-v-526cb135]{margin-right:%?20?%}.login-wrapper .title[data-v-526cb135]{font-size:%?40?%;font-weight:400;color:#000}.login-wrapper .whiteBg[data-v-526cb135]{margin-top:%?46?%}.login-wrapper .whiteBg .list[data-v-526cb135]{overflow:hidden}.login-wrapper .whiteBg .list .item[data-v-526cb135]{margin-bottom:%?38?%;height:%?98?%;display:flex}.login-wrapper .whiteBg .list .item[data-v-526cb135]:last-child{margin-bottom:0}.login-wrapper .whiteBg .list .item .code[data-v-526cb135]{width:%?197?%;text-align:center;line-height:%?96?%;background:#fff3f6;border:1px solid #f54275;border-radius:%?15?%;font-size:%?28?%;color:#f03a76;margin-left:%?19?%}.login-wrapper .whiteBg .list .item .row-middle[data-v-526cb135]{position:relative;padding:%?28?%;background:#fff;border:1px solid #bfbfbf;border-radius:%?15?%;flex:1}.login-wrapper .whiteBg .list .item .row-middle .texts[data-v-526cb135]{flex:1;font-size:%?28?%;height:%?42?%;line-height:%?42?%;display:flex;justify-content:center;align-items:center}.login-wrapper .whiteBg .list .item .row-middle uni-input[data-v-526cb135]{flex:1;font-size:%?28?%;height:%?80?%;line-height:%?80?%;display:flex;justify-content:center;align-items:center}.login-wrapper .whiteBg .logon[data-v-526cb135]{display:flex;align-items:center;justify-content:center;width:100%;height:%?87?%;margin-top:%?99?%;color:#fff;font-size:%?32?%;background:linear-gradient(0deg,#e63163,#ff819f);border-radius:%?44?%}.login-wrapper .whiteBg .tips[data-v-526cb135]{margin-top:%?50?%;font-size:%?24?%;color:#000;display:flex;justify-content:center}",""]),t.exports=e}}]);