| 123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-grzl-nc-nc"],{"0503":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"uni-form-item uni-column"},[n("v-uni-view",{staticClass:"with-fun",staticStyle:{padding:"20upx"}},[n("v-uni-input",{staticClass:"uni-input",attrs:{type:"text","confirm-type":"done",focus:!0,placeholder:t.name,"placeholder-style":"color:#666",value:t.inputValue},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.onKeyInput.apply(void 0,arguments)}}})],1)],1),n("v-uni-button",{staticClass:"onname",style:{background:t.dbled?"#999":"#E17503"},attrs:{disabled:t.dbled,type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOKname()}}},[t._v("确 认")])],1)},o=[]},"0689":function(t,e,n){"use strict";var r=n("def9"),o=n.n(r);o.a},"1da1":function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(f){return void n(f)}u.done?e(c):Promise.resolve(c).then(r,o)}n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}},n("d3b7")},2008:function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("c7eb")),i=r(n("3835")),a=r(n("ade3")),u=r(n("1da1")),c=r(n("5530")),f=n("26cb"),l={data:function(){return{inputValue:"",dbled:!0,name:"",ty:""}},onLoad:function(t){var e=t.ty,n=t.name,r=t.v;this.ty=e,this.name="请修改"+n,uni.setNavigationBarTitle({title:"修改"+n}),this.inputValue="null"==r?"":r},methods:(0,c.default)((0,c.default)({},(0,f.mapMutations)(["login"])),{},{onKeyInput:function(t){this.inputValue=t.target.value;var e=t.target.value;e.length?this.dbled=!1:this.dbled=!0},onOKname:function(){var t=this;return(0,u.default)((0,o.default)().mark((function e(){var n,r,u,c,f,l,s;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t,n=(0,a.default)({},t.ty,t.inputValue),e.next=4,t.$httpas.post("/api/user/edituser",n,{token:!0});case 4:if(r=e.sent,u=(0,i.default)(r,2),c=u[0],f=u[1],t.$httpas.errorCheck(c,f)){e.next=10;break}return e.abrupt("return");case 10:1===f.data.code?(l=getCurrentPages(),l[l.length-1],l[l.length-2],"nickname"==t.ty&&(s=uni.getStorageSync("userInfo"),s&&(s.nickname=t.inputValue,t.login(s))),uni.showModal({content:"修改成功",success:function(t){t.confirm&&setTimeout((function(){uni.navigateBack()}),200)}})):(uni.showToast({title:f.data.msg,icon:"none"}),t.logining=!1);case 11:case"end":return e.stop()}}),e)})))()}})};e.default=l},"51b9":function(t,e,n){"use strict";n.r(e);var r=n("2008"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},b09b:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".title[data-v-134d6902]{padding:%?10?% %?25?%}.with-fun[data-v-134d6902]{background:#f8f8f8;position:relative}.with-fun[data-v-134d6902]:after{position:absolute;content:$name;height:50px;line-height:50px;top:0;left:20px;font-size:%?32?%}.uni-input[data-v-134d6902]{height:50px;line-height:50px;font-size:%?32?%;background:#f8f8f8;color:#666}.uni-icon-clear[data-v-134d6902],\n.uni-icon-eye[data-v-134d6902]{color:#999}.onname[data-v-134d6902]{width:94%;margin:%?20?% auto;background:-webkit-linear-gradient(left top,#e49315,#e17503); /* Safari 5.1 - 6.0 */background:-o-linear-gradient(bottom right,#e49315,#e17503); /* Opera 11.1 - 12.0 */background:-moz-linear-gradient(bottom right,#e49315,#e17503); /* Firefox 3.6 - 15 */background:linear-gradient(to bottom right,#e49315,#e17503) /* 标准的语法(必须放在最后) */}.onnames[data-v-134d6902]{width:94%;margin:%?20?% auto;background:-webkit-linear-gradient(left top,#f1f1f1,#f9f9f9); /* Safari 5.1 - 6.0 */background:-o-linear-gradient(bottom right,#f1f1f1,#f9f9f9); /* Opera 11.1 - 12.0 */background:-moz-linear-gradient(bottom right,#f1f1f1,#f9f9f9); /* Firefox 3.6 - 15 */background:linear-gradient(to bottom right,#f1f1f1,#f9f9f9) /* 标准的语法(必须放在最后) */}",""]),t.exports=e},c7eb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- e.default=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(M){l=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),u=new j(r||[]);return i(a,"_invoke",{value:L(t,n,u)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=s;var h={};function p(){}function v(){}function g(){}var y={};l(y,u,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==n&&o.call(b,u)&&(y=b);var w=g.prototype=p.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){var n;i(this,"_invoke",{value:function(i,a){function u(){return new e((function(n,u){(function n(i,a,u,c){var f=d(t[i],t,a);if("throw"!==f.type){var l=f.arg,s=l.value;return s&&"object"==(0,r.default)(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(s).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(f.arg)})(i,a,n,u)}))}return n=n?n.then(u,u):u()}})}function L(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=_(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function _(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return v.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,f,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,f,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,f,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("53ca"))},c9b6:function(t,e,n){"use strict";n.r(e);var r=n("0503"),o=n("51b9");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("0689");var a=n("f0c5"),u=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"134d6902",null,!1,r["a"],void 0);e["default"]=u.exports},def9:function(t,e,n){var r=n("b09b");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("4f06").default;o("32d4af8e",r,!0,{sourceMap:!1,shadowMode:!1})}}]);
|