set-pay-pwd.js 3.7 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/set-pay-pwd/set-pay-pwd"],{"012f":function(t,e,n){"use strict";n.r(e);var o=n("0c52"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"0c52":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),r=n("e585"),u=n("8f59");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a={name:"set-pay-pwd",data:function(){return{showSetPwd:!1,showConfirm:!1,pwd:"",setPwd:"",comfirmPwd:""}},methods:{onSetPwd:function(){var t=this,e=this.setPwd,n=this.comfirmPwd;this.$refs.uModalSet.clearLoading(),e?n?e==n?e.length<4||e.length>8?this.$toast({title:"请输入长度为4-6位的密码"}):(0,r.setPassword)({pay_password:e}).then((function(e){t.showSetPwd=!1,t.$toast({title:"设置成功!"})})):this.$toast({title:"两次密码输入不一致"}):this.$toast({title:"请填写确认密码"}):this.$toast({title:"请填写交易密码"})},goBack:function(){t.navigateBack()},toSetting:function(){t.navigateTo({url:"/bundle/pages/user_profile/user_profile"}),this.$refs.uModal.clearLoading()},hasPayWord:function(){var t=this;(0,r.hasPayPassword)().then((function(e){0==e.has_pay_password&&(console.log(e),t.showSetPwd=!0)}))},onConfirm:function(){this.$refs.uModalInput.clearLoading(),this.$emit("confirm",this.pwd)},showInputPwd:function(){var t=this;setTimeout((function(){t.pwd=""}),1e3),this.showConfirm=!this.showConfirm}},computed:c(c({},(0,u.mapGetters)(["userInfo"])),{},{mobile:function(){if(this.userInfo.mobile)return this.userInfo.mobile.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},showTips:function(){return console.log(this.userInfo),Boolean(!this.userInfo.mobile)}})};e.default=a}).call(this,n("df3c")["default"])},"40b0":function(t,e,n){},"7ebb":function(t,e,n){"use strict";var o=n("40b0"),i=n.n(o);i.a},8633:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={uModal:function(){return n.e("components/uview-ui/components/u-modal/u-modal").then(n.bind(null,"e709"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("components/uview-ui/components/u-input/u-input")]).then(n.bind(null,"3012"))},uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"1340"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},"9c9f":function(t,e,n){"use strict";n.r(e);var o=n("8633"),i=n("012f");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("7ebb");var u=n("828b"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"7b6e057c",null,!1,o["a"],void 0);e["default"]=s.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/set-pay-pwd/set-pay-pwd-create-component',
  4. {
  5. 'components/set-pay-pwd/set-pay-pwd-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('df3c')['createComponent'](__webpack_require__("9c9f"))
  7. })
  8. },
  9. [['components/set-pay-pwd/set-pay-pwd-create-component']]
  10. ]);