You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
5.0 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["subPackages-user-changePassword"],{"338ce":function(e,n,t){"use strict";var i=t("76eb"),o=t.n(i);o.a},"73a5":function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"bg"},[t("v-uni-view",{staticClass:"item flex-between"},[t("v-uni-view",[e._v("导游ID")]),t("v-uni-view",[e._v(e._s(e.userInfo.mobile))])],1),t("v-uni-view",{staticClass:"item flex-between"},[t("v-uni-view",[e._v("手机号")]),t("v-uni-view",[e._v(e._s(e.userInfo.mobile))])],1),t("v-uni-view",{staticClass:"item flex-between"},[t("v-uni-view",[e._v("短信验证码")]),t("v-uni-view",{staticClass:"flex"},[t("v-uni-input",{attrs:{type:"text"},model:{value:e.verifyCode,callback:function(n){e.verifyCode=n},expression:"verifyCode"}}),t("v-uni-view",{staticClass:"getCode",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.getMobileCode()}}},[e._v(e._s(e.getCodeBtnTxt))])],1)],1),t("v-uni-view",{staticClass:"item flex-between"},[t("v-uni-view",[e._v("新密码")]),t("v-uni-view",[t("v-uni-input",{attrs:{type:"password"},model:{value:e.password,callback:function(n){e.password=n},expression:"password"}})],1)],1),t("v-uni-view",{staticClass:"item flex-between"},[t("v-uni-view",[e._v("确认密码")]),t("v-uni-view",[t("v-uni-input",{attrs:{type:"password"},model:{value:e.confirmPassword,callback:function(n){e.confirmPassword=n},expression:"confirmPassword"}})],1)],1)],1)},o=[]},"76eb":function(e,n,t){var i=t("eda4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=t("967d").default;o("0bfc12a8",i,!0,{sourceMap:!1,shadowMode:!1})},a34e:function(e,n,t){"use strict";t.r(n);var i=t("fc10"),o=t.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(s);n["default"]=o.a},eda4:function(e,n,t){var i=t("c86c");n=i(!1),n.push([e.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.bg[data-v-1bf960ca]{min-height:100vh;background:#f5f5f5;padding:0 %?26?%}.item[data-v-1bf960ca]{height:%?110?%;font-weight:500;font-size:%?28?%;color:#000;border-bottom:%?1?% solid #d8d8d8}uni-input[data-v-1bf960ca]{text-align:right}.getCode[data-v-1bf960ca]{font-weight:500;font-size:%?24?%;color:#fff;background:#96684f;border-radius:%?7?%;width:%?153?%;height:%?53?%;text-align:center;line-height:%?53?%;margin-left:%?10?%}',""]),e.exports=n},fc10:function(e,n,t){"use strict";t("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("0c26");var i={data:function(){return{userInfo:{},verifyCode:"",password:"",confirmPassword:"",getCodeBtnTxt:"获取验证码",smsCodeId:""}},onShow:function(){this.userInfo=uni.getStorageSync("userInfo")&&JSON.parse(uni.getStorageSync("userInfo"))||this.$store.state.user.userInfo||{},console.log(this.userInfo)},methods:{getCode:function(){var e=this;if(this.isCanSend){this.isCanSend=!1;this.userInfo.mobile,this.captchaCode,this.captchaCodeId;this.Post({},"/api/uservice/user/getMobileCodeForBind").then((function(n){e.smsCodeId=n}))}},changeGetCodeBtn:function(){var e=this,n=60,t=setInterval((function(){n--,n?e.getCodeBtnTxt=n+"s重新获取":(clearInterval(t),e.isCanSend=!0,e.getCodeBtnTxt="获取验证码")}),1e3)},bindMobile:function(){var e=this;e.mobile=e.userInfo.mobile.trim(),0!=e.smsCodeId?(e.mobileCode=e.mobileCode.trim(),e.mobileCode.length<6?e.$toast("请输入手机验证码"):this.Post({},"/api/uservice/user/getMobileCodeForBind").then((function(n){uni.showToast({title:"修改成功,请重新登录",icon:"none"}),setTimeout((function(){e.$store.commit("changeUserInfo",null),uni.navigateTo({url:"/pages/login/login"})}),1e3)}))):e.$toast("请先获取验证码")}}};n.default=i},fe04:function(e,n,t){"use strict";t.r(n);var i=t("73a5"),o=t("a34e");for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);t("338ce");var r=t("828b"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"1bf960ca",null,!1,i["a"],void 0);n["default"]=a.exports}}]);