comment-item.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. "use strict";
  2. const common_vendor = require("../../../../common/vendor.js");
  3. if (!Array) {
  4. const _easycom_uni_rate2 = common_vendor.resolveComponent("uni-rate");
  5. const _easycom_su_image2 = common_vendor.resolveComponent("su-image");
  6. (_easycom_uni_rate2 + _easycom_su_image2)();
  7. }
  8. const _easycom_uni_rate = () => "../../../../uni_modules/uni-rate/components/uni-rate/uni-rate.js";
  9. const _easycom_su_image = () => "../../../../sheep/ui/su-image/su-image.js";
  10. if (!Math) {
  11. (_easycom_uni_rate + _easycom_su_image)();
  12. }
  13. const _sfc_main = {
  14. __name: "comment-item",
  15. props: {
  16. item: {
  17. type: Object,
  18. default() {
  19. }
  20. }
  21. },
  22. setup(__props) {
  23. return (_ctx, _cache) => {
  24. var _a, _b;
  25. return common_vendor.e({
  26. a: __props.item.userAvatar,
  27. b: common_vendor.t(__props.item.userNickname),
  28. c: common_vendor.o(($event) => __props.item.scores = $event),
  29. d: common_vendor.p({
  30. readonly: true,
  31. size: "18",
  32. modelValue: __props.item.scores
  33. }),
  34. e: common_vendor.t(__props.item.content),
  35. f: (_a = __props.item.picUrls) == null ? void 0 : _a.length
  36. }, ((_b = __props.item.picUrls) == null ? void 0 : _b.length) ? {
  37. g: common_vendor.f(__props.item.picUrls, (picUrl, index, i0) => {
  38. return {
  39. a: "5629fc5e-1-" + i0,
  40. b: common_vendor.p({
  41. isPreview: true,
  42. previewList: __props.item.picUrls,
  43. current: index,
  44. src: picUrl,
  45. height: 120,
  46. width: 120,
  47. mode: "aspectFill"
  48. }),
  49. c: picUrl
  50. };
  51. })
  52. } : {}, {
  53. h: __props.item.replyTime
  54. }, __props.item.replyTime ? {
  55. i: common_vendor.t(__props.item.replyContent)
  56. } : {});
  57. };
  58. }
  59. };
  60. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5629fc5e"], ["__file", "D:/zx/mall-front-app/pages/goods/components/detail/comment-item.vue"]]);
  61. wx.createComponent(Component);