pages-mine-userinfo.d299b097.js 4.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-userinfo"],{"19b6":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(){return i}));var i={uIcon:a("a338").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"userinfo"},[a("v-uni-view",{staticStyle:{width:"710rpx",background:"#242630","border-radius":"20rpx",margin:"0 auto"}},[a("v-uni-view",{staticClass:"u-flex u-col-center",staticStyle:{padding:"36rpx 50rpx"}},[a("v-uni-text",{staticStyle:{"font-size":"28rpx",color:"#FCFCFC",flex:"1"}},[t._v("头像")]),a("v-uni-image",{staticStyle:{width:"76rpx",height:"76rpx","border-radius":"100rpx","margin-right":"26rpx"},attrs:{src:t.userdata.headimg,mode:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeimg.apply(void 0,arguments)}}}),a("u-icon",{attrs:{name:"arrow-right",color:"#fff"}})],1),a("v-uni-view",{staticClass:"u-flex u-col-center",staticStyle:{padding:"36rpx 50rpx"}},[a("v-uni-text",{staticStyle:{"font-size":"28rpx",color:"#FCFCFC"}},[t._v("昵称")]),a("v-uni-input",{staticStyle:{flex:"1",color:"#fff","margin-right":"26rpx","text-align":"right"},attrs:{type:"text",placeholder:"请输入昵称"},model:{value:t.userdata.name,callback:function(e){t.$set(t.userdata,"name",e)},expression:"userdata.name"}}),a("u-icon",{attrs:{name:"arrow-right",color:"#fff"}})],1),a("v-uni-view",{staticClass:"u-flex u-col-center",staticStyle:{padding:"36rpx 50rpx"}},[a("v-uni-text",{staticStyle:{"font-size":"28rpx",color:"#FCFCFC"}},[t._v("手机号")]),a("v-uni-input",{staticStyle:{flex:"1",color:"#fff","margin-right":"26rpx","text-align":"right"},attrs:{type:"number",placeholder:"请输入手机号",disabled:!0},model:{value:t.userdata.phone,callback:function(e){t.$set(t.userdata,"phone",e)},expression:"userdata.phone"}}),a("u-icon",{attrs:{name:"arrow-right",color:"#fff"}})],1),a("v-uni-view",{staticClass:"u-flex u-col-center",staticStyle:{padding:"36rpx 50rpx"}},[a("v-uni-text",{staticStyle:{"font-size":"28rpx",color:"#FCFCFC"}},[t._v("区块链地址")]),a("v-uni-input",{staticStyle:{flex:"1",color:"#fff","margin-right":"26rpx","text-align":"right"},attrs:{type:"text",placeholder:"请输入区块链地址",disabled:!0},model:{value:t.userdata.wallet_address,callback:function(e){t.$set(t.userdata,"wallet_address",e)},expression:"userdata.wallet_address"}}),a("u-icon",{attrs:{name:"arrow-right",color:"#fff"}})],1)],1),a("v-uni-view",{staticStyle:{width:"586rpx","line-height":"76rpx",background:"linear-gradient(132deg, #E2B2ED 0%, #8CE9EE 100%)","text-align":"center","font-size":"36rpx",margin:"100rpx auto"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save.apply(void 0,arguments)}}},[t._v("保存")])],1)},r=[]},"39d4":function(t,e,a){"use strict";a.r(e);var i=a("19b6"),n=a("f720");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var s,u=a("f0c5"),o=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"a2daaeca",null,!1,i["a"],s);e["default"]=o.exports},a513:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{userdata:{}}},onLoad:function(){this.getuser()},methods:{save:function(){var t=this;this.userdata.name?this.$u.post("/api/User_center/updateUserInfo",{name:this.userdata.name,headimg:this.userdata.headimg}).then((function(e){t.$u.toast(e.msg)})):this.$u.toast("请输入昵称")},changeimg:function(){var t=this;uni.chooseImage({count:1,success:function(e){uni.uploadFile({url:t.$url+"/api/Publics/uploadLocality",file:e.tempFiles[0],success:function(e){t.userdata.headimg=JSON.parse(e.data).data.url},fail:function(t){console.log(t)}})}})},getuser:function(){var t=this;this.$u.post("/api/User_center/getUserInfo").then((function(e){t.userdata=e.data}))}}};e.default=i},f720:function(t,e,a){"use strict";a.r(e);var i=a("a513"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a}}]);