CRMEB/crmeb/public/static/js/pages-users-user_pwd_edit-index.15220e30.js
2021-07-13 16:49:21 +08:00

1 line
9.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_pwd_edit-index"],{"0cff":function(t,e,n){"use strict";n.r(e);var o=n("bd64"),r=n("421c");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("c90b");var u,a=n("f0c5"),s=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"0dd74f86",null,!1,o["a"],u);e["default"]=s.exports},"3bc5":function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexData=i,e.getLogo=u,e.setFormId=a,e.getIndexCoupons=s,e.setCouponReceive=d,e.getCoupons=c,e.getUserCoupons=f,e.getNewCoupon=l,e.getArticleCategoryList=h,e.getArticleList=p,e.getArticleHotList=g,e.getArticleBannerList=v,e.getArticleDetails=w,e.loginMobile=b,e.verifyCode=m,e.registerVerify=A,e.phoneRegister=y,e.phoneRegisterReset=C,e.phoneLogin=_,e.switchH5Login=x,e.bindingPhone=I,e.bindingUserPhone=P,e.logout=L,e.getTemlIds=k,e.pink=$,e.getCity=T,e.getLiveList=R,e.getDiy=U,e.follow=M,e.updatePhone=j,e.getCouponV2=q,e.getCouponNewUser=z,e.category=B,e.searchList=E,e.clearSearch=O,e.siteConfig=D;var r=o(n("0405"));function i(){return r.default.get("v2/index",{},{noAuth:!0})}function u(){return r.default.get("wechat/get_logo",{},{noAuth:!0})}function a(t){return r.default.post("wechat/set_form_id",{formId:t})}function s(t){return r.default.get("coupons",t,{noAuth:!0})}function d(t){return r.default.post("coupon/receive",{couponId:t})}function c(t){return r.default.get("v2/coupons",t,{noAuth:!0})}function f(t,e){return r.default.get("coupons/user/"+t,e)}function l(){return r.default.get("v2/new_coupon")}function h(){return r.default.get("article/category/list",{},{noAuth:!0})}function p(t,e){return r.default.get("article/list/"+t,e,{noAuth:!0})}function g(){return r.default.get("article/hot/list",{},{noAuth:!0})}function v(){return r.default.get("article/banner/list",{},{noAuth:!0})}function w(t){return r.default.get("article/details/"+t,{},{noAuth:!0})}function b(t){return r.default.post("login/mobile",t,{noAuth:!0})}function m(){return r.default.get("verify_code",{},{noAuth:!0})}function A(t,e,n,o){return r.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:n,code:o},{noAuth:!0})}function y(t){return r.default.post("register",t,{noAuth:!0})}function C(t){return r.default.post("register/reset",t,{noAuth:!0})}function _(t){return r.default.post("login",t,{noAuth:!0})}function x(){return r.default.post("switch_h5",{from:"wechat"})}function I(t){return r.default.post("binding",t,{noAuth:!0})}function P(t){return r.default.post("user/binding",t)}function L(){return r.default.get("logout")}function k(){return r.default.get("wechat/teml_ids",{},{noAuth:!0})}function $(){return r.default.get("pink",{},{noAuth:!0})}function T(){return r.default.get("city_list",{},{noAuth:!0})}function R(t,e){return r.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})}function U(){return r.default.get("v2/diy/get_diy/moren",{},{noAuth:!0})}function M(){return r.default.get("wechat/follow",{},{noAuth:!0})}function j(t){return r.default.post("user/updatePhone",t,{noAuth:!0})}function q(){return r.default.get("v2/get_today_coupon",{},{noAuth:!0})}function z(){return r.default.get("v2/new_coupon",{},{noAuth:!0})}function B(t){return r.default.get("category",t,{noAuth:!0})}function E(t){return r.default.get("v2/user/search_list",t,{noAuth:!0})}function O(){return r.default.get("v2/user/clean_search")}function D(t){return r.default.get("site_config",t,{noAuth:!0})}},"407a":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-0dd74f86]{background-color:#fff!important}.ChangePassword .phone[data-v-0dd74f86]{font-size:%?32?%;font-weight:700;text-align:center;margin-top:%?55?%}.ChangePassword .list[data-v-0dd74f86]{width:%?580?%;margin:%?53?% auto 0 auto}.ChangePassword .list .item[data-v-0dd74f86]{width:100%;height:%?110?%;border-bottom:%?2?% solid #f0f0f0}.ChangePassword .list .item uni-input[data-v-0dd74f86]{width:100%;height:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-0dd74f86]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-0dd74f86]{width:%?340?%}.ChangePassword .list .item .code[data-v-0dd74f86]{font-size:%?32?%;background-color:#fff}.ChangePassword .list .item .code.on[data-v-0dd74f86]{color:#b9b9bc!important}.ChangePassword .confirmBnt[data-v-0dd74f86]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?92?% auto 0 auto;text-align:center;line-height:%?90?%}body.?%PAGE?%[data-v-0dd74f86]{background-color:#fff!important}',""]),t.exports=e},"421c":function(t,e,n){"use strict";n.r(e);var o=n("b778"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},5107:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={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 n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=o},b778:function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=o(n("1da1")),i=o(n("5107")),u=n("3bc5"),a=n("57f0"),s=n("6dd0"),d=n("2f62"),c={mixins:[i.default],components:{},data:function(){return{userInfo:{},phone:"",password:"",captcha:"",qr_password:"",isAuto:!1,isShowAuth:!1,key:""}},computed:(0,d.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&this.getUserInfo()},deep:!0}},onLoad:function(){var t=this;this.isLogin?(this.getUserInfo(),(0,u.verifyCode)().then((function(e){t.$set(t,"key",e.data.key)}))):(0,s.toLogin)()},methods:{onLoadFun:function(t){this.getUserInfo()},authColse:function(t){this.isShowAuth=t},getUserInfo:function(){var t=this;(0,a.getUserInfo)().then((function(e){var n=e.data.phone,o=n.substr(0,3)+"****"+n.substr(7);t.$set(t,"userInfo",e.data),t.phone=o}))},code:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.userInfo.phone){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"手机号码不存在,无法发送验证码!"}));case 3:return e.next=5,(0,u.registerVerify)(n.userInfo.phone,"reset",n.key).then((function(t){n.$util.Tips({title:t.msg}),n.sendCode()})).catch((function(t){return n.$util.Tips({title:t})}));case 5:case"end":return e.stop()}}),e)})))()},editPwd:function(t){var e=this,n=t.detail.value.password,o=t.detail.value.qr_password,r=t.detail.value.captcha;return n?o!=n?e.$util.Tips({title:"两次输入的密码不一致!"}):r?void(0,u.phoneRegisterReset)({account:e.userInfo.phone,captcha:r,password:n}).then((function(t){return e.$util.Tips({title:t.msg},{tab:3,url:1})})).catch((function(t){return e.$util.Tips({title:t})})):e.$util.Tips({title:"请输入验证码"}):e.$util.Tips({title:"请输入新密码"})}}};e.default=c},bd64:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"ChangePassword"},[n("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.editPwd.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"phone"},[t._v("当前手机号:"+t._s(t.phone))]),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-input",{attrs:{type:"password",placeholder:"设置新密码","placeholder-class":"placeholder",name:"password",value:t.password}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-input",{attrs:{type:"password",placeholder:"确认新密码","placeholder-class":"placeholder",name:"qr_password",value:t.qr_password}})],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码","placeholder-class":"placeholder",name:"captcha",value:t.captcha}}),n("v-uni-button",{staticClass:"code font-color",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)],1),n("v-uni-button",{staticClass:"confirmBnt bg-color",attrs:{"form-type":"submit"}},[t._v("确认修改")])],1)],1)],1)},i=[]},c90b:function(t,e,n){"use strict";var o=n("efd8"),r=n.n(o);r.a},efd8:function(t,e,n){var o=n("407a");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("4f06").default;r("1d1d496b",o,!0,{sourceMap:!1,shadowMode:!1})}}]);