|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-account-setting-setUserInfo"],{"0b52":function(e,t,n){var a=n("947f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=n("4f06").default;s("356b9b2e",a,!0,{sourceMap:!1,shadowMode:!1})},2129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiPutUser=t.ApiGetCurrentUser=void 0;var a=n("5767"),s="/uc",u=function(){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(s,"/user/current")))};t.ApiGetCurrentUser=u;var r=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(s,"/user/"),e))};t.ApiPutUser=r},"49d1":function(e,t,n){"use strict";n.r(t);var a=n("76ae"),s=n.n(a);for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=s.a},"6da9":function(e,t,n){"use strict";n.r(t);var a=n("e0d1"),s=n("49d1");for(var u in s)"default"!==u&&function(e){n.d(t,e,(function(){return s[e]}))}(u);n("c640");var r,i=n("f0c5"),c=Object(i["a"])(s["default"],a["b"],a["c"],!1,null,"6ec65896",null,!1,a["a"],r);t["default"]=c.exports},7084:function(e,t,n){e.exports=n.p+"static/img/tx.71ed472a.png"},"76ae":function(e,t,n){"use strict";var a=n("4ea4");n("7db0"),n("c740"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(n("5530"));n("96cf");var u=a(n("1da1")),r=a(n("359f")),i=a(n("f196")),c=(n("5767"),n("2129")),o={accessid:"LTAI4GHRNb5Xn2w5NeHVbR4c",policy:"eyJleHBpcmF0aW9uIjoiMjAyMi0wNC0xNVQyMDowODoyNi4zMTlaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJ0ZXN0LyJdXX0=",signature:"okaB3sNp3vzyfM0S3ypudaUAZ+0=",dir:"test/",host:"https://msb-edu-dev.oss-cn-beijing.aliyuncs.com",expire:"1650053306"},l={components:{UiCell:i.default,UiButton:r.default},data:function(){return{fileList:[],sexShow:!1,sexData:[[{label:"女",val:2},{label:"男",val:1}]]}},computed:{userInfo:function(){return this.$store.state.userInfo},sexName:function(){var e=this,t=this.sexData[0].find((function(t){return t.val===e.userInfo.gender}));return t?t.label:"未知"},sexDefault:function(){var e=this;return[this.sexData[0].findIndex((function(t){return t.val===e.userInfo.gender}))]}},methods:{sexChange:function(e){var t=this;return(0,u.default)(regeneratorRuntime.mark((function n(){var a,u,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.value[0].val,n.next=3,(0,c.ApiPutUser)({gender:a});case 3:if(u=n.sent,r=u.error,u.result,!r){n.next=9;break}return ui.$u.totas(r.message),n.abrupt("return",!1);case 9:t.$store.commit("SET_USER_INFO",(0,s.default)((0,s.default)({},t.userInfo),{},{gender:a})),t.sexShow=!1;case 11:case"end":return n.stop()}}),n)})))()},headUpload:function(e){var t=e.file;uni.uploadFile({name:"file",filePath:t.url,url:o.host,formData:{name:t.name,key:"".concat(o.dir,"${filename}"),policy:o.policy,OSSAccessKeyId:o.accessid,success_action_status:200,signature:o.signature},success:function(e){}})}}};t.default=l},"947f":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.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/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-6ec65896]{ba
|