10 lines
14 KiB
JavaScript
10 lines
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-password-edit"],{1:function(t,r){},2:function(t,r){},"369d":function(t,r,e){var i=e("24fb");r=i(!1),r.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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.password-page[data-v-6b4c7d80]{padding:%?32?%}',""]),t.exports=r},"37df":function(t,r,e){"use strict";e.r(r);var i=e("75cb"),n=e("b082");for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(r,t,(function(){return n[t]}))}(s);e("d75f");var o,a=e("f0c5"),f=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,"6b4c7d80",null,!1,i["a"],o);r["default"]=f.exports},"3c35":function(t,r){(function(r){t.exports=r}).call(this,{})},"75cb":function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"c",(function(){return s})),e.d(r,"a",(function(){return i}));var i={uForm:e("aa8f").default,uFormItem:e("e0a3").default,uInput:e("d5da").default,uButton:e("d9ad").default},n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("v-uni-view",{staticClass:"password-page"},[e("u-form",{ref:"uForm",attrs:{model:t.form}},[e("u-form-item",{attrs:{label:"密码:","label-width":"100"}},[e("u-input",{attrs:{type:t.type,"password-icon":t.passwordIcon,clearable:!0},model:{value:t.form.password,callback:function(r){t.$set(t.form,"password",r)},expression:"form.password"}})],1),e("u-form-item",{attrs:{label:"确认密码:","label-width":"150"}},[e("u-input",{attrs:{type:t.type,"password-icon":t.passwordIcon,clearable:!0},model:{value:t.form.password_confirmation,callback:function(r){t.$set(t.form,"password_confirmation",r)},expression:"form.password_confirmation"}})],1),e("v-uni-view",{staticClass:"btns",staticStyle:{"margin-top":"68rpx"}},[e("u-button",{attrs:{type:"primary"},on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.passwordEditFn()}}},[t._v("确定")])],1)],1)],1)},s=[]},8237:function(t,r,e){(function(r,i){var n;
|
||
/**
|
||
* [js-md5]{@link https://github.com/emn178/js-md5}
|
||
*
|
||
* @namespace md5
|
||
* @version 0.8.3
|
||
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
||
* @copyright Chen, Yi-Cyuan 2014-2023
|
||
* @license MIT
|
||
*/(function(){"use strict";var s="input is invalid type",o="finalize already called",a="object"===typeof window,f=a?window:{};f.JS_MD5_NO_WINDOW&&(a=!1);var h=!a&&"object"===typeof self,u=!f.JS_MD5_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node;u?f=i:h&&(f=self);var c,d=!f.JS_MD5_NO_COMMON_JS&&"object"===typeof t&&t.exports,p=e("3c35"),l=!f.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,y="0123456789abcdef".split(""),w=[128,32768,8388608,-2147483648],v=[0,8,16,24],b=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_=[];if(l){var A=new ArrayBuffer(68);c=new Uint8Array(A),_=new Uint32Array(A)}var g=Array.isArray;!f.JS_MD5_NO_NODE_JS&&g||(g=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var x=ArrayBuffer.isView;!l||!f.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&x||(x=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var B=function(t){var r=typeof t;if("string"===r)return[t,!0];if("object"!==r||null===t)throw new Error(s);if(l&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!g(t)&&!x(t))throw new Error(s);return[t,!1]},O=function(t){return function(r){return new z(!0).update(r)[t]()}},M=function(){var t=O("hex");u&&(t=E(t)),t.create=function(){return new z},t.update=function(r){return t.create().update(r)};for(var r=0;r<b.length;++r){var e=b[r];t[e]=O(e)}return t},E=function(t){var r,i=e(1),n=e(2).Buffer;r=n.from&&!f.JS_MD5_NO_BUFFER_FROM?n.from:function(t){return new n(t)};var o=function(e){if("string"===typeof e)return i.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw new Error(s);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),g(e)||x(e)||e.constructor===n?i.createHash("md5").update(r(e)).digest("hex"):t(e)};return o},S=function(t){return function(r,e){return new J(r,!0).update(e)[t]()}},F=function(){var t=S("hex");t.create=function(t){return new J(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<b.length;++r){var e=b[r];t[e]=S(e)}return t};function z(t){if(t)_[0]=_[16]=_[1]=_[2]=_[3]=_[4]=_[5]=_[6]=_[7]=_[8]=_[9]=_[10]=_[11]=_[12]=_[13]=_[14]=_[15]=0,this.blocks=_,this.buffer8=c;else if(l){var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function J(t,r){var e,i=B(t);if(t=i[0],i[1]){var n,s=[],o=t.length,a=0;for(e=0;e<o;++e)n=t.charCodeAt(e),n<128?s[a++]=n:n<2048?(s[a++]=192|n>>>6,s[a++]=128|63&n):n<55296||n>=57344?(s[a++]=224|n>>>12,s[a++]=128|n>>>6&63,s[a++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++e)),s[a++]=240|n>>>18,s[a++]=128|n>>>12&63,s[a++]=128|n>>>6&63,s[a++]=128|63&n);t=s}t.length>64&&(t=new z(!0).update(t).array());var f=[],h=[];for(e=0;e<64;++e){var u=t[e]||0;f[e]=92^u,h[e]=54^u}z.call(this,r),this.update(h),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}z.prototype.update=function(t){if(this.finalized)throw new Error(o);var r=B(t);t=r[0];var e,i,n=r[1],s=0,a=t.length,f=this.blocks,h=this.buffer8;while(s<a){if(this.hashed&&(this.hashed=!1,f[0]=f[16],f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0),n)if(l)for(i=this.start;s<a&&i<64;++s)e=t.charCodeAt(s),e<128?h[i++]=e:e<2048?(h[i++]=192|e>>>6,h[i++]=128|63&e):e<55296||e>=57344?(h[i++]=224|e>>>12,h[i++]=128|e>>>6&63,h[i++]=128|63&e):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++s)),h[i++]=240|e>>>18,h[i++]=128|e>>>12&63,h[i++]=128|e>>>6&63,h[i++]=128|63&e);else for(i=this.start;s<a&&i<64;++s)e=t.charCodeAt(s),e<128?f[i>>>2]|=e<<v[3&i++]:e<2048?(f[i>>>2]|=(192|e>>>6)<<v[3&i++],f[i>>>2]|=(128|63&e)<<v[3&i++]):e<55296||e>=57344?(f[i>>>2]|=(224|e>>>12)<<v[3&i++],f[i>>>2]|=(128|e>>>6&63)<<v[3&i++],f[i>>>2]|=(128|63&e)<<v[3&i++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++s)),f[i>>>2]|=(240|e>>>18)<<v[3&i++],f[i>>>2]|=(128|e>>>12&63)<<v[3&i++],f[i>>>2]|=(128|e>>>6&63)<<v[3&i++],f[i>>>2]|=(128|63&e)<<v[3&i++]);else if(l)for(i=this.start;s<a&&i<64;++s)h[i++]=t[s];else for(i=this.start;s<a&&i<64;++s)f[i>>>2]|=t[s]<<v[3&i++];this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},z.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=w[3&r],r>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},z.prototype.hash=function(){var t,r,e,i,n,s,o=this.blocks;this.first?(t=o[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,i=(-1732584194^2004318071&t)+o[1]-117830708,i=(i<<12|i>>>20)+t<<0,e=(-271733879^i&(-271733879^t))+o[2]-1126478375,e=(e<<17|e>>>15)+i<<0,r=(t^e&(i^t))+o[3]-1316259209,r=(r<<22|r>>>10)+e<<0):(t=this.h0,r=this.h1,e=this.h2,i=this.h3,t+=(i^r&(e^i))+o[0]-680876936,t=(t<<7|t>>>25)+r<<0,i+=(e^t&(r^e))+o[1]-389564586,i=(i<<12|i>>>20)+t<<0,e+=(r^i&(t^r))+o[2]+606105819,e=(e<<17|e>>>15)+i<<0,r+=(t^e&(i^t))+o[3]-1044525330,r=(r<<22|r>>>10)+e<<0),t+=(i^r&(e^i))+o[4]-176418897,t=(t<<7|t>>>25)+r<<0,i+=(e^t&(r^e))+o[5]+1200080426,i=(i<<12|i>>>20)+t<<0,e+=(r^i&(t^r))+o[6]-1473231341,e=(e<<17|e>>>15)+i<<0,r+=(t^e&(i^t))+o[7]-45705983,r=(r<<22|r>>>10)+e<<0,t+=(i^r&(e^i))+o[8]+1770035416,t=(t<<7|t>>>25)+r<<0,i+=(e^t&(r^e))+o[9]-1958414417,i=(i<<12|i>>>20)+t<<0,e+=(r^i&(t^r))+o[10]-42063,e=(e<<17|e>>>15)+i<<0,r+=(t^e&(i^t))+o[11]-1990404162,r=(r<<22|r>>>10)+e<<0,t+=(i^r&(e^i))+o[12]+1804603682,t=(t<<7|t>>>25)+r<<0,i+=(e^t&(r^e))+o[13]-40341101,i=(i<<12|i>>>20)+t<<0,e+=(r^i&(t^r))+o[14]-1502002290,e=(e<<17|e>>>15)+i<<0,r+=(t^e&(i^t))+o[15]+1236535329,r=(r<<22|r>>>10)+e<<0,t+=(e^i&(r^e))+o[1]-165796510,t=(t<<5|t>>>27)+r<<0,i+=(r^e&(t^r))+o[6]-1069501632,i=(i<<9|i>>>23)+t<<0,e+=(t^r&(i^t))+o[11]+643717713,e=(e<<14|e>>>18)+i<<0,r+=(i^t&(e^i))+o[0]-373897302,r=(r<<20|r>>>12)+e<<0,t+=(e^i&(r^e))+o[5]-701558691,t=(t<<5|t>>>27)+r<<0,i+=(r^e&(t^r))+o[10]+38016083,i=(i<<9|i>>>23)+t<<0,e+=(t^r&(i^t))+o[15]-660478335,e=(e<<14|e>>>18)+i<<0,r+=(i^t&(e^i))+o[4]-405537848,r=(r<<20|r>>>12)+e<<0,t+=(e^i&(r^e))+o[9]+568446438,t=(t<<5|t>>>27)+r<<0,i+=(r^e&(t^r))+o[14]-1019803690,i=(i<<9|i>>>23)+t<<0,e+=(t^r&(i^t))+o[3]-187363961,e=(e<<14|e>>>18)+i<<0,r+=(i^t&(e^i))+o[8]+1163531501,r=(r<<20|r>>>12)+e<<0,t+=(e^i&(r^e))+o[13]-1444681467,t=(t<<5|t>>>27)+r<<0,i+=(r^e&(t^r))+o[2]-51403784,i=(i<<9|i>>>23)+t<<0,e+=(t^r&(i^t))+o[7]+1735328473,e=(e<<14|e>>>18)+i<<0,r+=(i^t&(e^i))+o[12]-1926607734,r=(r<<20|r>>>12)+e<<0,n=r^e,t+=(n^i)+o[5]-378558,t=(t<<4|t>>>28)+r<<0,i+=(n^t)+o[8]-2022574463,i=(i<<11|i>>>21)+t<<0,s=i^t,e+=(s^r)+o[11]+1839030562,e=(e<<16|e>>>16)+i<<0,r+=(s^e)+o[14]-35309556,r=(r<<23|r>>>9)+e<<0,n=r^e,t+=(n^i)+o[1]-1530992060,t=(t<<4|t>>>28)+r<<0,i+=(n^t)+o[4]+1272893353,i=(i<<11|i>>>21)+t<<0,s=i^t,e+=(s^r)+o[7]-155497632,e=(e<<16|e>>>16)+i<<0,r+=(s^e)+o[10]-1094730640,r=(r<<23|r>>>9)+e<<0,n=r^e,t+=(n^i)+o[13]+681279174,t=(t<<4|t>>>28)+r<<0,i+=(n^t)+o[0]-358537222,i=(i<<11|i>>>21)+t<<0,s=i^t,e+=(s^r)+o[3]-722521979,e=(e<<16|e>>>16)+i<<0,r+=(s^e)+o[6]+76029189,r=(r<<23|r>>>9)+e<<0,n=r^e,t+=(n^i)+o[9]-640364487,t=(t<<4|t>>>28)+r<<0,i+=(n^t)+o[12]-421815835,i=(i<<11|i>>>21)+t<<0,s=i^t,e+=(s^r)+o[15]+530742520,e=(e<<16|e>>>16)+i<<0,r+=(s^e)+o[2]-995338651,r=(r<<23|r>>>9)+e<<0,t+=(e^(r|~i))+o[0]-198630844,t=(t<<6|t>>>26)+r<<0,i+=(r^(t|~e))+o[7]+1126891415,i=(i<<10|i>>>22)+t<<0,e+=(t^(i|~r))+o[14]-1416354905,e=(e<<15|e>>>17)+i<<0,r+=(i^(e|~t))+o[5]-57434055,r=(r<<21|r>>>11)+e<<0,t+=(e^(r|~i))+o[12]+1700485571,t=(t<<6|t>>>26)+r<<0,i+=(r^(t|~e))+o[3]-1894986606,i=(i<<10|i>>>22)+t<<0,e+=(t^(i|~r))+o[10]-1051523,e=(e<<15|e>>>17)+i<<0,r+=(i^(e|~t))+o[1]-2054922799,r=(r<<21|r>>>11)+e<<0,t+=(e^(r|~i))+o[8]+1873313359,t=(t<<6|t>>>26)+r<<0,i+=(r^(t|~e))+o[15]-30611744,i=(i<<10|i>>>22)+t<<0,e+=(t^(i|~r))+o[6]-1560198380,e=(e<<15|e>>>17)+i<<0,r+=(i^(e|~t))+o[13]+1309151649,r=(r<<21|r>>>11)+e<<0,t+=(e^(r|~i))+o[4]-145523070,t=(t<<6|t>>>26)+r<<0,i+=(r^(t|~e))+o[11]-1120210379,i=(i<<10|i>>>22)+t<<0,e+=(t^(i|~r))+o[2]+718787259,e=(e<<15|e>>>17)+i<<0,r+=(i^(e|~t))+o[9]-343485551,r=(r<<21|r>>>11)+e<<0,this.first?(this.h0=t+1732584193<<0,this.h1=r-271733879<<0,this.h2=e-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+r<<0,this.h2=this.h2+e<<0,this.h3=this.h3+i<<0)},z.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return y[t>>>4&15]+y[15&t]+y[t>>>12&15]+y[t>>>8&15]+y[t>>>20&15]+y[t>>>16&15]+y[t>>>28&15]+y[t>>>24&15]+y[r>>>4&15]+y[15&r]+y[r>>>12&15]+y[r>>>8&15]+y[r>>>20&15]+y[r>>>16&15]+y[r>>>28&15]+y[r>>>24&15]+y[e>>>4&15]+y[15&e]+y[e>>>12&15]+y[e>>>8&15]+y[e>>>20&15]+y[e>>>16&15]+y[e>>>28&15]+y[e>>>24&15]+y[i>>>4&15]+y[15&i]+y[i>>>12&15]+y[i>>>8&15]+y[i>>>20&15]+y[i>>>16&15]+y[i>>>28&15]+y[i>>>24&15]},z.prototype.toString=z.prototype.hex,z.prototype.digest=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255]},z.prototype.array=z.prototype.digest,z.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),r=new Uint32Array(t);return r[0]=this.h0,r[1]=this.h1,r[2]=this.h2,r[3]=this.h3,t},z.prototype.buffer=z.prototype.arrayBuffer,z.prototype.base64=function(){for(var t,r,e,i="",n=this.array(),s=0;s<15;)t=n[s++],r=n[s++],e=n[s++],i+=m[t>>>2]+m[63&(t<<4|r>>>4)]+m[63&(r<<2|e>>>6)]+m[63&e];return t=n[s],i+=m[t>>>2]+m[t<<4&63]+"==",i},J.prototype=new z,J.prototype.finalize=function(){if(z.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();z.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),z.prototype.finalize.call(this)}};var k=M();k.md5=k,k.md5.hmac=F(),d?t.exports=k:(f.md5=k,p&&(n=function(){return k}.call(k,e,k,t),void 0===n||(t.exports=n)))})()}).call(this,e("4362"),e("c8ba"))},"952d":function(t,r,e){var i=e("369d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("0d58ef6a",i,!0,{sourceMap:!1,shadowMode:!1})},"95f7":function(t,r,e){"use strict";e("7a82");var i=e("ee27").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("f3f3")),s=e("815d"),o=i(e("8237"));r.default={data:function(){return{form:{password:"",password_confirmation:""},type:"password",passwordIcon:!0}},onLoad:function(){},methods:{passwordEditFn:function(){console.log(this.form),this.form.password?this.form.password_confirmation?this.form.password==this.form.password_confirmation?((0,s.showLoading)("请稍等..."),this.$http.put("/api/users/reset-password",(0,n.default)((0,n.default)({},this.form),{},{password:(0,o.default)(this.form.password),password_confirmation:(0,o.default)(this.form.password_confirmation)})).then((function(t){var r=t.data;(0,s.hideLoading)(),console.log(r),200==r.code?uni.showToast({title:"修改成功",icon:"none"}):uni.showToast({title:r.message,icon:"none"})})).catch((function(){(0,s.hideLoading)()}))):uni.showToast({title:"两次密码不一致",icon:"none"}):uni.showToast({title:"请输入确认密码",icon:"none"}):uni.showToast({title:"请输入新密码",icon:"none"})}}}},b082:function(t,r,e){"use strict";e.r(r);var i=e("95f7"),n=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(r,t,(function(){return i[t]}))}(s);r["default"]=n.a},d75f:function(t,r,e){"use strict";var i=e("952d"),n=e.n(i);n.a}}]); |