yaofang/pages/wall/wall.js

148 lines
5.4 KiB
JavaScript

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/wall/wall" ], {
"295c": function(t, e, n) {
"use strict";
n.r(e);
var a = n("cdbd"), i = n.n(a);
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
n.d(e, t, function() {
return a[t];
});
}(o);
e["default"] = i.a;
},
"48ef": function(t, e, n) {
"use strict";
(function(t, e) {
var a = n("4ea4");
n("94a9");
a(n("66fd"));
var i = a(n("7f42"));
t.__webpack_require_UNI_MP_PLUGIN__ = n, e(i.default);
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
},
"56cf": function(t, e, n) {
"use strict";
n.d(e, "b", function() {
return i;
}), n.d(e, "c", function() {
return o;
}), n.d(e, "a", function() {
return a;
});
var a = {
wall: function() {
return n.e("components/wall/wall").then(n.bind(null, "6d46"));
},
uniFab: function() {
return n.e("uni_modules/uni-fab/components/uni-fab/uni-fab").then(n.bind(null, "a7a8"));
},
bootNav: function() {
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
},
xad: function() {
return n.e("components/xad/xad").then(n.bind(null, "9621"));
}
}, i = function() {
var t = this.$createElement;
this._self._c;
}, o = [];
},
"75ee": function(t, e, n) {
"use strict";
var a = n("d9df"), i = n.n(a);
i.a;
},
"7f42": function(t, e, n) {
"use strict";
n.r(e);
var a = n("56cf"), i = n("295c");
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
n.d(e, t, function() {
return i[t];
});
}(o);
n("75ee");
var c = n("f0c5"), r = Object(c["a"])(i["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
e["default"] = r.exports;
},
cdbd: function(t, e, n) {
"use strict";
(function(t) {
var a = n("4ea4");
Object.defineProperty(e, "__esModule", {
value: !0
}), e.default = void 0;
a(n("5c77"));
var i = {
data: function() {
return {
isProduct: 0,
title: "留言墙",
wallList: [],
extraIcon: {
color: "#4cd964",
size: "22",
type: "gear-filled"
},
pattern: {
color: "#7A7E83",
backgroundColor: "#fff",
selectedColor: "#007AFF",
buttonColor: "#007AFF",
iconColor: "#fff"
},
content: [ {
iconPath: "/static/image.png",
selectedIconPath: "/static/image-active.png",
text: "发布留言",
active: !1
} ],
isMy: 0,
current_page: 0,
last_page: 1,
noMore: 0
};
},
onBackPress: function() {
return !!this.$refs.fab.isShow && (this.$refs.fab.close(), !0);
},
onLoad: function(t) {
"1" === t.isMy && (this.isMy = 1), this.getWalls(), this.cpAd(), this.x_get_ad("common");
},
methods: {
onShareAppMessage: function() {
return {
title: this.title
};
},
onShareTimeline: function() {
return {
title: this.title
};
},
actionsClick: function(e) {
t.showToast({
title: e,
icon: "none"
});
},
trigger: function(t) {
this.content[t.index].active = !t.item.active, this.x_redirect("/pages/wall_album/wall_album");
},
getWalls: function() {
var t = this;
t.current_page >= t.last_page ? t.noMore = 1 : this.x_request("api/wall/", {
isMy: t.isMy,
page: t.current_page + 1
}, function(t, e) {
1 === e.code && (t.wallList = t.wallList.concat(e.data.data), t.current_page = e.data.current_page,
t.last_page = e.data.last_page, t.isProduct = e.status);
});
}
}
};
e.default = i;
}).call(this, n("543d")["default"]);
},
d9df: function(t, e, n) {}
}, [ [ "48ef", "common/runtime", "common/vendor" ] ] ]);