Onlife/unpackage/dist/build/web/static/js/pages-me-editUserInfo.2bd6a404.js
2025-04-19 15:38:48 +08:00

1 line
14 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-me-editUserInfo"],{"012c":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"title-tip"}),a("v-uni-view",{staticClass:"form-box"},[a("v-uni-view",{staticClass:"row-input"},[a("v-uni-view",{staticClass:"tip"},[t._v("當前密碼:")]),a("v-uni-view",{staticClass:"input-box"},[a("v-uni-input",{attrs:{password:t.showPassword1,placeholder:"請輸入當前密碼","placeholder-class":"placeholder"},model:{value:t.paykey,callback:function(e){t.paykey=e},expression:"paykey"}}),a("img",{staticStyle:{width:"50rpx",height:"50rpx"},attrs:{src:t.showPassword1?t.hidepwdImg:t.showpwdImg},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changePassword(1)}}})],1)],1),a("v-uni-view",{staticClass:"row-input"},[a("v-uni-text",{staticClass:"tip"},[t._v("新密碼:")]),a("v-uni-view",{staticClass:"input-box"},[a("v-uni-input",{attrs:{password:t.showPassword2,placeholder:"請輸入新密碼","placeholder-class":"placeholder"},model:{value:t.paykey1,callback:function(e){t.paykey1=e},expression:"paykey1"}}),a("img",{staticStyle:{width:"50rpx",height:"50rpx"},attrs:{src:t.showPassword2?t.hidepwdImg:t.showpwdImg},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changePassword(2)}}})],1)],1),a("v-uni-view",{staticClass:"row-input"},[a("v-uni-text",{staticClass:"tip"},[t._v("確認密碼:")]),a("v-uni-view",{staticClass:"input-box"},[a("v-uni-input",{attrs:{password:t.showPassword3,placeholder:"請輸入確認密碼","placeholder-class":"placeholder"},model:{value:t.paykey2,callback:function(e){t.paykey2=e},expression:"paykey2"}}),a("img",{staticStyle:{width:"50rpx",height:"50rpx"},attrs:{src:t.showPassword3?t.hidepwdImg:t.showpwdImg},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changePassword(3)}}})],1)],1),a("v-uni-view",{staticClass:"login-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitEdit.apply(void 0,arguments)}}},[t._v("確認")])],1)],1)},r=[]},"565d":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("bf0f"),a("7a76"),a("c9b5");var r=n(a("1c1c")),u=n(a("6ecf")),i=a("ee8d"),o=r.default.create();o.defaults.baseURL=i.BASE_URL,o.defaults.timeout=i.TIME_OUT,o.defaults.adapter=u.default,o.defaults.headers.post["token"]="",o.defaults.headers.post["content-type"]="application/json",o.interceptors.request.use((function(t){var e=uni.getStorageSync("token");return e&&(t.headers.token=e),t})),o.interceptors.response.use((function(t){return t.data}),(function(t){return console.log(t),401==t.response.data.code&&uni.showModal({title:"提示",showCancel:!1,content:"请重新登录",success:function(t){t.confirm&&(console.log("用户点击确定"),uni.navigateTo({url:"/pages/login/login"}))}}),Promise.reject(new Error("faile"))}));var s=o;e.default=s},6040:function(t,e,a){var n=a("c86c");e=n(!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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-flex[data-v-2a3b0236]{display:flex;flex-direction:row}.uni-flex-item[data-v-2a3b0236]{flex:1}.flex-item[data-v-2a3b0236]{flex:1}.uni-row[data-v-2a3b0236]{flex-direction:row}.uni-column[data-v-2a3b0236]{flex-direction:column}.content[data-v-2a3b0236]{background:linear-gradient(180deg,#003,#51599b);padding:%?120?% %?60?% 0 %?60?%;box-sizing:border-box;height:100vh;width:100vw}.content .title-tip[data-v-2a3b0236]{width:100%;line-height:%?80?%;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:%?40?%;color:#fff}.content .form-box .row-input[data-v-2a3b0236]{display:flex;margin-bottom:%?20?%;align-items:center}.content .form-box .tip[data-v-2a3b0236]{width:100px;height:%?40?%;padding-top:%?20?%;font-size:%?26?%;color:#e2e3eb}.content .form-box .input-box[data-v-2a3b0236]{display:flex;justify-content:space-between;align-items:center;width:%?600?%;height:%?120?%;color:#e2e3eb;font-size:%?20?%;background-color:#383d84;padding:%?20?%;box-sizing:border-box;border-radius:%?20?%}.content .form-box .input-box uni-image[data-v-2a3b0236]{width:%?40?%;height:%?40?%}.content .form-box .input-box .placeholder[data-v-2a3b0236]{color:#ccc;font-size:%?28?%}.content .form-box .login-btn[data-v-2a3b0236]{margin-top:%?600?%;display:flex;justify-content:center;align-items:center;height:%?90?%;color:#fff;border-radius:%?50?%;font-size:%?35?%;background:#4f5ad8;box-shadow:%?0?% %?10?% %?20?% %?0?% rgba(98,92,236,.4)}',""]),t.exports=e},6704:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(a("9b1b")),u=n(a("565d")),i={post:function(t){return(0,u.default)((0,r.default)((0,r.default)({},t),{},{method:"POST"}))},get:function(t){return console.log("封装postget,patch 请求:",(0,r.default)({},t)),(0,u.default)((0,r.default)((0,r.default)({},t),{},{method:"GET"}))},patch:function(t){return(0,u.default)((0,r.default)((0,r.default)({},t),{},{method:"PATCH"}))}},o=i;e.default=o},"95be":function(t,e,a){"use strict";a.r(e);var n=a("c60b"),r=a.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);e["default"]=r.a},c180:function(t,e,a){"use strict";var n=a("df32"),r=a.n(n);r.a},c60b:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(a("2634")),u=n(a("2fdc")),i=a("d3ac"),o={data:function(){return{showPassword1:!0,showPassword2:!0,showPassword3:!0,nickname:"",password:"",paykey:"",paykey1:"",paykey2:"",showpwdImg:"static/eye_on.png",hidepwdImg:"static/eye_off.png",userinfos:{}}},onShow:function(){this.getUserInfos()},methods:{getUserInfos:function(){var t=this;return(0,u.default)((0,r.default)().mark((function e(){var a;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,i._userInfos)();case 2:a=e.sent,1===a.code&&(t.userinfos=a.data.userinfo);case 4:case"end":return e.stop()}}),e)})))()},changePassword:function(t){switch(t){case 1:this.showPassword1=!this.showPassword1;break;case 2:this.showPassword2=!this.showPassword2;break;case 3:this.showPassword3=!this.showPassword3;break}},submitEdit:function(){var t=this;return(0,u.default)((0,r.default)().mark((function e(){var a,n,u;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.userinfos.paykey,t.paykey){e.next=4;break}return uni.showToast({title:"請輸入當前密碼",icon:"none"}),e.abrupt("return");case 4:if(t.paykey1&&t.paykey2){e.next=7;break}return uni.showToast({title:"請輸入新密碼",icon:"none"}),e.abrupt("return");case 7:if(t.paykey1==t.paykey2){e.next=10;break}return uni.showToast({title:"兩次輸入密碼不一致",icon:"none"}),e.abrupt("return");case 10:if(t.paykey==a){e.next=13;break}return uni.showToast({title:"當前密碼不正確",icon:"none"}),e.abrupt("return");case 13:return n={nickname:"",newpassword:"",newpaykey:t.paykey2},e.next=16,(0,i._profile)(n);case 16:u=e.sent,1===u.code&&(uni.showToast({title:"修改成功",duration:1e3,icon:"success"}),setTimeout((function(){uni.switchTab({url:"/pages/me/index"})}),500));case 18:case"end":return e.stop()}}),e)})))()}}};e.default=o},d3ac:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e._accountdetail=function(t){return r.default.post({url:"/api/pub/accountdetail",data:t})},e._addresslogin=function(t){return r.default.post({url:"/api/user/addresslogin",data:t})},e._balances=function(t){return r.default.get({url:"".concat("https://nfta.ikiry.com","/getUserBalances?address=").concat(t)})},e._bindpid=function(t){return r.default.post({url:"/api/user/bindpid",data:t})},e._cashoutscore=function(t){return r.default.post({url:"/api/user/cashoutscore",data:t})},e._childrenlist=function(t){return r.default.post({url:"/api/user/getchildrenlist",data:t})},e._childrens=function(t){return r.default.post({url:"/api/user/getchildrens",data:t})},e._chkarea=function(t){return r.default.post({url:"/api/user/chkarea",data:t})},e._chksubdata=function(t){return r.default.post({url:"/api/user/chksubdata",data:t})},e._coinlist=function(t){return r.default.post({url:"/api/user/getcoinlist",data:t})},e._createorder=function(t){return r.default.post({url:"/api/miner/createorder",data:t})},e._emailSend=function(t){return r.default.post({url:"/api/ems/send",data:t})},e._generateWords=function(t){return r.default.post({url:"".concat("https://nfta.ikiry.com","/generateWords"),data:t})},e._getaccountorder=function(t){return r.default.get({url:"/api/pub/getaccountorder?page=".concat(t.page,"&listrow=").concat(t.listrow)})},e._getaccounttag=function(t){return r.default.get({url:"/api/pub/getaccounttag"})},e._getaccounttype=function(t){return r.default.post({url:"/api/pub/getaccounttype",data:t})},e._getareas=function(t){return r.default.post({url:"/api/user/getareas",data:t})},e._getcharge=function(t){return r.default.get({url:"/api/quantify/getcharge",data:t})},e._getexerciselogs=function(t){return r.default.get({url:"/api/quantify/getexerciselogs",params:t})},e._getgoogleauthurl=function(t){return r.default.post({url:"/api/user/getgoogleauthurl",data:t})},e._getinvestlogs=function(t){return r.default.get({url:"/api/quantify/getinvestlogs",params:t})},e._getpubaccount=function(t){return r.default.post({url:"/api/pub/getpubaccount",data:t})},e._getpubguide=function(t){return r.default.post({url:"/api/pub/getpubguide",data:t})},e._getpubtype=function(t){return r.default.post({url:"/api/pub/getpubtype",data:t})},e._getrechargelogs=function(t){return r.default.get({url:"/api/quantify/getrechargelogs",params:t})},e._getstatics=function(t){return r.default.get({url:"/api/quantify/getstatics",params:t})},e._getwithdrawlogs=function(t){return r.default.post({url:"/api/user/withdrawlogs",data:t})},e._guidedetail=function(t){return r.default.post({url:"/api/pub/guidedetail",data:t})},e._levelupinfo=function(t){return r.default.post({url:"/api/user/getlevelupinfo",data:t})},e._minerlist=function(t){return r.default.post({url:"/api/user/getminerlist",data:t})},e._minerordlist=function(t){return r.default.post({url:"/api/user/getminerordlist",data:t})},e._minerrewardlist=function(t){return r.default.post({url:"/api/user/getminerrewardlist",data:t})},e._miners=function(t){return r.default.post({url:"/api/user/getminers",data:t})},e._minerscorelist=function(t){return r.default.post({url:"/api/user/getminerscorelist",data:t})},e._moneyRedeem=function(t){return r.default.post({url:"/api/quantify/redeem",data:t})},e._myIncome=function(t){return r.default.get({url:"/api/quantify/getlist"})},e._myparent=function(t){return r.default.post({url:"api/user/getmyparent",data:t})},e._payXieyi=function(t){return r.default.post({url:"/api/",data:t})},e._paysord=function(t){return r.default.post({url:"/api/miner/paysord",data:t})},e._profile=function(t){return r.default.post({url:"/api/user/profile",data:t})},e._pubgame=function(t){return r.default.post({url:"/api/pub/getpubgame",data:t})},e._pullreward=function(t){return r.default.post({url:"/api/user/pullreward",data:t})},e._pushBuyInfo=function(t){return r.default.post({url:"/api/quantify/pushdata",data:t})},e._pushorder=function(t){return r.default.post({url:"/api/quantify/pushorder",data:t})},e._refwallet=function(t){return r.default.post({url:"/api/user/refwallet",data:t})},e._register=function(t){return r.default.post({url:"/api/user/register",data:t})},e._rewardlist=function(t){return r.default.post({url:"/api/user/getrewardlist",data:t})},e._rewardstatic=function(t){return r.default.post({url:"/api/user/getrewardstatic",data:t})},e._sendcoin=function(t){return r.default.post({url:"/api/user/sendcoin",data:t})},e._staticinfo=function(t){return r.default.post({url:"/api/user/getstaticinfo",data:t})},e._submitdata=function(t){return r.default.post({url:"/api/user/submitdata",data:t})},e._taxinfo=function(t){return r.default.post({url:"/api/user/taxinfo",data:t})},e._transfer=function(t){return r.default.post({url:"/api/user/resetwallet",data:t})},e._userInfos=function(){return r.default.post({url:"/api/user/index"})},e._viplist=function(t){return r.default.post({url:"/api/user/getviplist",data:t})},e._walletinfo=function(t){return r.default.post({url:"/api/user/getwalletinfo",data:t})},e._zhuji=function(t){return r.default.post({url:"/api/user/zhujilogin",data:t})},e._zhujiLogin=function(t){return r.default.post({url:"/api/user/login",data:t})},e.getvision=function(t){return r.default.post({url:"/api/index/getvision",data:t})},a("c223");var r=n(a("6704"))},d96f:function(t,e,a){"use strict";a.r(e);var n=a("012c"),r=a("95be");for(var u in r)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(u);a("c180");var i=a("828b"),o=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,"2a3b0236",null,!1,n["a"],void 0);e["default"]=o.exports},df32:function(t,e,a){var n=a("6040");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("967d").default;r("6b67fa74",n,!0,{sourceMap:!1,shadowMode:!1})},ee8d:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.TIME_OUT=e.BASE_URL=void 0;e.BASE_URL="https://onlif.klinygm.com";e.TIME_OUT=15e3}}]);