11 lines
2.4 KiB
JavaScript
11 lines
2.4 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mplogin/mplogin"],{"067f":function(t,n,e){},"437b":function(t,n,e){"use strict";var i=e("067f"),o=e.n(i);o.a},5347:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("5fc1"),o={name:"mplogin",props:{value:{type:Boolean,required:!0}},data:function(){return{avatar:"",nickname:""}},methods:{onChooseAvatar:function(n){var e=this,o=n.detail.avatarUrl;o&&(t.showLoading({title:"正在上传中...",mask:!0}),(0,i.uploadFile)(o).then((function(n){t.hideLoading(),e.avatar=n.url})).catch((function(){t.hideLoading(),e.$toast({title:"上传失败"})})))},handleSubmit:function(t){var n=t.detail.value.nickname,e=this.avatar;return e?n?(this.$emit("update",{avatar:e,nickname:n}),this.showPop=!1,void this.$emit("close")):this.$toast({title:"请输入昵称"}):this.$toast({title:"请添加头像"})},onClose:function(){this.showPop=!1,this.$emit("close")}},computed:{showPop:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}};n.default=o}).call(this,e("df3c")["default"])},"67a3":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uPopup:function(){return e.e("components/uview-ui/components/u-popup/u-popup").then(e.bind(null,"69ae"))},uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"8127"))},uIcon:function(){return e.e("components/uview-ui/components/u-icon/u-icon").then(e.bind(null,"9e59"))}},o=function(){var t=this.$createElement;this._self._c},u=[]},f9da:function(t,n,e){"use strict";e.r(n);var i=e("67a3"),o=e("fc89");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("437b");var a=e("828b"),c=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=c.exports},fc89:function(t,n,e){"use strict";e.r(n);var i=e("5347"),o=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/mplogin/mplogin-create-component',
|
|
{
|
|
'components/mplogin/mplogin-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("f9da"))
|
|
})
|
|
},
|
|
[['components/mplogin/mplogin-create-component']]
|
|
]);
|