comment.js
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"use strict";
var common_vendor = require("../common/vendor.js");
if (!Math) {
open();
}
const open = () => "./openComment.js";
const _sfc_main = {
props: {
commentList: {
type: Array,
default: []
}
},
setup(__props) {
const props = __props;
common_vendor.onMounted(() => {
props.commentList.forEach((item) => {
item.image = item.image.split(",");
});
});
common_vendor.reactive({
backgroundImage: "none",
paddingTop: "0",
marginTop: "0"
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.commentList, (item, k0, i0) => {
return {
a: item.avatar,
b: common_vendor.t(item.nickname),
c: common_vendor.t(item.createtime),
d: "4639ae0e-0-" + i0,
e: common_vendor.p({
text: item.content
}),
f: common_vendor.f(item.image, (it, k1, i1) => {
return {
a: it
};
}),
g: item.id
};
})
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/comment.vue"]]);
wx.createComponent(Component);