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.
10 lines
3.2 KiB
10 lines
3.2 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/eidtUserModal/index"],{"1d5a":function(t,a,n){"use strict";n.r(a);var i=n("db69"),e=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(a,t,(function(){return i[t]}))}(u);a["default"]=e.a},"2f1a":function(t,a,n){"use strict";var i=n("556c"),e=n.n(i);e.a},5430:function(t,a,n){},"556c":function(t,a,n){},"83bc":function(t,a,n){"use strict";n.r(a);var i=n("da00"),e=n("1d5a");for(var u in e)["default"].indexOf(u)<0&&function(t){n.d(a,t,(function(){return e[t]}))}(u);n("2f1a"),n("9a31");var s=n("828b"),c=Object(s["a"])(e["default"],i["b"],i["c"],!1,null,"501b88ba",null,!1,i["a"],void 0);a["default"]=c.exports},"9a31":function(t,a,n){"use strict";var i=n("5430"),e=n.n(i);e.a},da00:function(t,a,n){"use strict";n.d(a,"b",(function(){return i})),n.d(a,"c",(function(){return e})),n.d(a,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},e=[]},db69:function(t,a,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=i(n("cef6")),u=(i(n("a4e8")),n("77d7")),s=n("a230"),c={mixins:[e.default],props:{isShow:{type:Boolean,value:!1}},data:function(){return{defHead:n("2b72"),mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,userInfo:{avatar:"",nickname:""},mpData:{site_logo:"",site_name:""},canvasStatus:!1,configData:this.$Cache.get("BASIC_CONFIG")}},mounted:function(){try{var a=t.getStorageSync("MPSiteData");a?this.mpData=JSON.parse(a):this.getCopyRight()}catch(n){}},methods:{getCopyRight:function(){var a=this;(0,s.copyRight)().then((function(n){var i=n.data,e=i.site_logo,u=i.site_name;a.mpData.site_logo=e,a.mpData.site_name=u,t.setStorageSync("MPSiteData",JSON.stringify(a.mpData))})).catch((function(t){return a.$util.Tips({title:t.msg})}))},uploadpic:function(){var t=this,a=this;this.canvasStatus=!0,a.$util.uploadImageChange("upload/image",(function(n){var i=a.userInfo;void 0!==i&&(a.userInfo.avatar=n.data.url),t.canvasStatus=!1}),(function(a){t.canvasStatus=!1}),(function(a){t.canvasWidth=a.w,t.canvasHeight=a.h}))},onChooseAvatar:function(t){var a=this,n=t.detail.avatarUrl;this.$util.uploadImgs("upload/image",n,(function(t){a.userInfo.avatar=t.data.url}),(function(t){}))},closeAttr:function(){this.$emit("closeEdit")},formSubmit:function(t){var a=this,n=this;return this.userInfo.avatar?t.detail.value.nickname?(this.userInfo.nickname=t.detail.value.nickname,void(0,u.userEdit)(this.userInfo).then((function(t){return a.$emit("editSuccess"),n.$util.Tips({title:t.msg,icon:"success"},{tab:3,url:a.configData.wechat_auth_switch?2:1})})).catch((function(t){return n.$util.Tips({title:t||"保存失败"})}))):n.$util.Tips({title:"请输入昵称"}):n.$util.Tips({title:"请上传头像"})}}};a.default=c}).call(this,n("df3c")["default"])}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/eidtUserModal/index-create-component',
|
|
{
|
|
'components/eidtUserModal/index-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("83bc"))
|
|
})
|
|
},
|
|
[['components/eidtUserModal/index-create-component']]
|
|
]);
|
|
|