You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.0 KiB

2 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-updateinfo"],{55303:function(t,n,e){"use strict";e.r(n);var a=e("ba62"),i=e.n(a);for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);n["default"]=i.a},"5e98":function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAbdJREFUWEft18lKHUEUxvH/t3Za+CwGxTdw5dKBBJyvIy4F92YZokSj4jyAokvF4RXyCnmL7GJypKAChdi5XdV19S5ubburzo+vDvRp0WRLTeahBap3I6UTMrMvwDhwDixI+lPv8JTnMaBfQJsvcgZ8kvQ3pej/9sSAPgMrwWGnHmU5UaVBrqiZrQOLAeAIGJOUDRUFKkAdABO5UNEgj9pwjR0ktQdM5UAlgTzqGzAXoHYlTVftp2RQAWpH0kwVVCVQAWpT0nwqqjIoNyoLyKO2gbCHNiQtxSaVDVSA+ippOQaVFeRRW0AtQKxKWiuLagSoC/gJdHvED0k97wIys07gEfjgAb+BQUm3bw4ysw7gAej1xZ+AIUnXZTHuvSxX5jH3QF+AGZZ0FYPJAnoF4wa3EUmXsZjKoALMqKSLFEwlUAHGTZFuxE1eST1kZu2+gf/1jBtlP1bFJCXkMXdAv4/BYdzUeJwcS7AxKqECjJsWD3NgohIqwExKciNstlU6ITO7AQaCyjVJ7gufdcWAwv+yWUnfs0r8YTGgMfcfBpxI2m8EJqqHGgV4eW7phFqgt0qgXp2mu7JnUV2XJVDhmqsAAAAASUVORK5CYII="},6304:function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return a}));var i=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"body"},[a("v-uni-view",{staticClass:"item",staticStyle:{"border-bottom":"1rpx solid #545454"}},[a("v-uni-view",{staticClass:"item-content"},[a("v-uni-view",{staticClass:"text"},[t._v("アイコン")])],1),a("v-uni-view",{staticClass:"right"},[a("upload-img",{staticClass:"abc",attrs:{width:48,height:48,bgsrc:t.form.headPhoto,currentImagea:t.image},on:{chooseimg:function(n){arguments[0]=n=t.$handleEvent(n),t.handleChooseImg(n)}}}),a("v-uni-image",{attrs:{src:e("5e98"),mode:""}})],1)],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"item-content"},[a("v-uni-view",{staticClass:"text"},[t._v("名前")])],1),a("v-uni-view",{staticClass:"righta"},[a("v-uni-input",{attrs:{type:"text"},on:{blur:function(n){arguments[0]=n=t.$handleEvent(n),t.onBlur.apply(void 0,arguments)}},model:{value:t.form.nickname,callback:function(n){t.$set(t.form,"nickname",n)},expression:"form.nickname"}}),a("v-uni-image",{attrs:{src:e("5e98"),mode:""}})],1)],1)],1)},r=[]},"6cf5":function(t,n,e){var a=e("f181");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("4f06").default;i("48816587",a,!0,{sourceMap:!1,shadowMode:!1})},a2e5:function(t,n,e){"use strict";var a=e("6cf5"),i=e.n(a);i.a},b69e:function(t,n,e){"use strict";e.r(n);var a=e("6304"),i=e("55303");for(var r in i)"default"!==r&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("a2e5");var o,s=e("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"348afdc2",null,!1,a["a"],o);n["default"]=u.exports},ba62:function(t,n,e){"use strict";var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("96cf");var i=a(e("1da1")),r=a(e("a432")),o={components:{uploadImg:r.default},data:function(){return{form:{},image:""}},onLoad:function(){this.userinfo()},methods:{userinfo:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function n(){var e,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=uni.getStorageSync("id"),n.next=3,t.$myRequest({url:"/api/foreignAuth/userinfo?id="+e,header:{token:uni.getStorageSync("token"),Authorization:uni.getStorageSync("Authorization")}});case 3:a=n.sent,200==a.data.code&&(t.form=a.data.data);case 5:case"end":return n.stop()}}),n)})))()},handleChooseImg:function(t){this.form.headPhoto=t.src;var n={};n.headPhoto=t.src,this.ModifyInformation(n)},onBlur:function(){var t={};t.nickname=this.form.nickname,this.ModifyInformation(t)},ModifyInformation:function(t){var n=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$myRequest({url:"/api/MyInfo/ModifyInformation",method:"post",header:{token:uni.getStorageSync("token"),Authorization:uni.getStorageSync("Authorization")},data:t});case 2:a=e.sent,200==a.data.code&&(uni.showToast({tit