144 lines
5.9 KiB
JavaScript
144 lines
5.9 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/wall_album/wall_album" ], {
|
|
"05e4": function(e, n, t) {
|
|
"use strict";
|
|
(function(e) {
|
|
var i = t("4ea4");
|
|
Object.defineProperty(n, "__esModule", {
|
|
value: !0
|
|
}), n.default = void 0;
|
|
var o = i(t("5c77")), a = {
|
|
data: function() {
|
|
return {
|
|
baseFormData: {
|
|
content: "",
|
|
picList: []
|
|
},
|
|
pics: [],
|
|
msgType: "success",
|
|
messageText: "这是一条成功提示"
|
|
};
|
|
},
|
|
onLoad: function() {
|
|
this.init();
|
|
},
|
|
methods: {
|
|
init: function() {
|
|
this.x_request("api/config/index/", {}, function(e, n) {});
|
|
},
|
|
sub: function() {
|
|
"" !== this.baseFormData.content ? this.x_request("api/wall/add/", {
|
|
content: this.baseFormData.content,
|
|
pics: this.baseFormData.picList
|
|
}, function(n, t) {
|
|
1 === t.code ? (n.messageToggle("success", "发布成功"), e.redirectTo({
|
|
url: "/pages/wall/wall"
|
|
})) : this.x_tips("error", t.info);
|
|
}) : this.messageToggle("error", "请填写留言内容");
|
|
},
|
|
cancelSub: function() {
|
|
e.navigateBack();
|
|
},
|
|
select: function(n) {
|
|
var t = this;
|
|
this.pics = this.pics.concat(n.tempFilePaths), n.tempFilePaths.forEach(function(n) {
|
|
e.uploadFile({
|
|
url: o.default.root_host + "api/upload/image/",
|
|
filePath: n,
|
|
header: {
|
|
"Content-Type": "multipart/form-data"
|
|
},
|
|
name: "image",
|
|
formData: o.default.authParam({
|
|
uuid: e.getStorageSync("uToken")
|
|
}),
|
|
success: function(e) {
|
|
var n = JSON.parse(e.data);
|
|
1 === n.code && (t.baseFormData.picList = t.baseFormData.picList.concat(n.data));
|
|
}
|
|
});
|
|
});
|
|
},
|
|
rmImg: function(e) {
|
|
var n = this.pics.indexOf(e.tempFilePath);
|
|
this.pics.splice(n, 1), this.baseFormData.picList.slice(n, 1);
|
|
},
|
|
messageToggle: function(e, n) {
|
|
this.msgType = e, this.messageText = n, this.$refs.message.open();
|
|
}
|
|
}
|
|
};
|
|
n.default = a;
|
|
}).call(this, t("543d")["default"]);
|
|
},
|
|
"095f": function(e, n, t) {
|
|
"use strict";
|
|
var i = t("974b"), o = t.n(i);
|
|
o.a;
|
|
},
|
|
"46b2": function(e, n, t) {
|
|
"use strict";
|
|
t.d(n, "b", function() {
|
|
return o;
|
|
}), t.d(n, "c", function() {
|
|
return a;
|
|
}), t.d(n, "a", function() {
|
|
return i;
|
|
});
|
|
var i = {
|
|
uniSection: function() {
|
|
return t.e("uni_modules/uni-section/components/uni-section/uni-section").then(t.bind(null, "79f5"));
|
|
},
|
|
uniFilePicker: function() {
|
|
return Promise.all([ t.e("common/vendor"), t.e("uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker") ]).then(t.bind(null, "b9c3"));
|
|
},
|
|
bootNav: function() {
|
|
return Promise.all([ t.e("common/vendor"), t.e("components/bootNav/bootNav") ]).then(t.bind(null, "dc0f"));
|
|
},
|
|
uniPopup: function() {
|
|
return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null, "edb0"));
|
|
},
|
|
uniPopupMessage: function() {
|
|
return Promise.all([ t.e("common/vendor"), t.e("uni_modules/uni-popup/components/uni-popup-message/uni-popup-message") ]).then(t.bind(null, "36c1"));
|
|
}
|
|
}, o = function() {
|
|
var e = this.$createElement;
|
|
this._self._c;
|
|
this._isMounted || (this.e0 = !0);
|
|
}, a = [];
|
|
},
|
|
"936d": function(e, n, t) {
|
|
"use strict";
|
|
(function(e, n) {
|
|
var i = t("4ea4");
|
|
t("94a9");
|
|
i(t("66fd"));
|
|
var o = i(t("b05a"));
|
|
e.__webpack_require_UNI_MP_PLUGIN__ = t, n(o.default);
|
|
}).call(this, t("bc2e")["default"], t("543d")["createPage"]);
|
|
},
|
|
"974b": function(e, n, t) {},
|
|
b05a: function(e, n, t) {
|
|
"use strict";
|
|
t.r(n);
|
|
var i = t("46b2"), o = t("e4b0");
|
|
for (var a in o) [ "default" ].indexOf(a) < 0 && function(e) {
|
|
t.d(n, e, function() {
|
|
return o[e];
|
|
});
|
|
}(a);
|
|
t("095f");
|
|
var u = t("f0c5"), s = Object(u["a"])(o["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
|
n["default"] = s.exports;
|
|
},
|
|
e4b0: function(e, n, t) {
|
|
"use strict";
|
|
t.r(n);
|
|
var i = t("05e4"), o = t.n(i);
|
|
for (var a in i) [ "default" ].indexOf(a) < 0 && function(e) {
|
|
t.d(n, e, function() {
|
|
return i[e];
|
|
});
|
|
}(a);
|
|
n["default"] = o.a;
|
|
}
|
|
}, [ [ "936d", "common/runtime", "common/vendor" ] ] ]); |