"use strict";const e=require("../../../../common/vendor.js"),r=require("../../../../sheep/index.js"),s=require("../../../../sheep/api/product/comment.js");if(require("../../../../sheep/url/index.js"),require("../../../../sheep/store/index.js"),require("../../../../sheep/store/app.js"),require("../../../../sheep/api/promotion/diy.js"),require("../../../../sheep/request/index.js"),require("../../../../sheep/config/index.js"),require("../../../../sheep/platform/index.js"),require("../../../../sheep/platform/provider/wechat/index.js"),require("../../../../sheep/platform/provider/wechat/miniProgram.js"),require("../../../../sheep/api/member/auth.js"),require("../../../../sheep/api/member/social.js"),require("../../../../sheep/api/member/user.js"),require("../../../../sheep/platform/provider/apple/index.js"),require("../../../../sheep/platform/share.js"),require("../../../../sheep/router/index.js"),require("../../../../sheep/hooks/useModal.js"),require("../../../../sheep/helper/index.js"),require("../../../../sheep/helper/test.js"),require("../../../../sheep/helper/digit.js"),require("../../../../sheep/api/member/signin.js"),require("../../../../sheep/helper/throttle.js"),require("../../../../sheep/platform/pay.js"),require("../../../../sheep/api/pay/order.js"),require("../../../../sheep/store/user.js"),require("../../../../sheep/store/cart.js"),require("../../../../sheep/api/trade/cart.js"),require("../../../../sheep/api/pay/wallet.js"),require("../../../../sheep/api/trade/order.js"),require("../../../../sheep/api/promotion/coupon.js"),require("../../../../sheep/store/sys.js"),require("../../../../sheep/store/modal.js"),require("../../../../sheep/config/zIndex.js"),!Array){e.resolveComponent("s-empty")()}Math||(t+(()=>"../../../../sheep/components/s-empty/s-empty.js"))();const t=()=>"./comment-item.js",i={__name:"detail-comment-card",props:{goodsId:{type:[Number,String],default:0}},setup(t){const i=t,p=e.reactive({commentList:[],total:0});return e.onBeforeMount((()=>{!async function(e){const{data:r}=await s.CommentApi.getCommentPage(e,1,3,0);p.commentList=r.list,p.total=r.total}(i.goodsId)})),(s,i)=>e.e({a:e.t(p.total),b:p.commentList.length>0},p.commentList.length>0?{c:e.o((s=>e.unref(r.sheep).$router.go("/pages/goods/comment/list",{id:t.goodsId})))}:{},{d:e.f(p.commentList,((r,s,t)=>({a:"f2cb4fc6-0-"+t,b:e.p({item:r}),c:r.id}))),e:0===p.commentList.length},0===p.commentList.length?{f:e.p({paddingTop:"0",icon:"/static/comment-empty.png",text:"期待您的第一个评价"})}:{})}},p=e._export_sfc(i,[["__scopeId","data-v-f2cb4fc6"]]);wx.createComponent(p);
