You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
14 KiB
1 line
14 KiB
10 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-goods_comment_list-index"],{"059a":function(t,e,a){var n=a("4368");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("11ece1bf",n,!0,{sourceMap:!1,shadowMode:!1})},2135:function(t,e,a){t.exports=a.p+"static/img/svip.bbb3b36a.gif"},"2a39":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.collectAdd=function(t,e){return i.default.post("collect/add",{id:t,product:void 0===e?"product":e})},e.collectAll=function(t,e){return i.default.post("collect/all",{id:t,category:void 0===e?"product":e})},e.collectDel=function(t,e){return i.default.post("collect/del",{id:t,category:void 0===e?"product":e})},e.create=function(t){return i.default.post("agent/apply/".concat(t.id),t)},e.deleteVisitList=function(t){return i.default.delete("user/visit",t)},e.getAgentAgreement=function(t){return i.default.get("agent/get_agent_agreement",{},{noAuth:!0})},e.getAttr=function(t,e){return i.default.get("v2/get_attr/"+t+"/"+e)},e.getCategoryList=function(){return i.default.get("category",{},{noAuth:!0})},e.getCodeApi=function(){return i.default.get("verify_code",{},{noAuth:!0})},e.getCollectUserList=function(t){return i.default.get("collect/user",t)},e.getGoodsDetails=function(){return i.default.get("agent/apply/info",{},{noAuth:!0})},e.getGroomList=function(t,e){return i.default.get("groom/list/"+t,e,{noAuth:!0})},e.getHomeProducts=function(t){return i.default.get("home/products",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return i.default.get("advance/detail/"+t)},e.getProductCode=function(t){return i.default.get("product/code/"+t,{})},e.getProductDetail=function(t){return i.default.get("product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return i.default.get("product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})},e.getProductslist=function(t){return i.default.get("products",t,{noAuth:!0})},e.getReplyConfig=function(t){return i.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return i.default.get("reply/list/"+t,e)},e.getSearchKeyword=function(){return i.default.get("search/keyword",{},{noAuth:!0})},e.getVisitList=function(t){return i.default.get("user/visit_list",t)},e.postCartAdd=function(t){return i.default.post("cart/add",t)},e.postCartNum=function(t){return i.default.post("v2/set_cart_num",t)},e.registerVerify=function(t){return i.default.post("register/verify",t,{noAuth:!0})},e.storeDiscountsList=function(t){return i.default.get("store_discounts/list/"+t,{},{noAuth:!0})},e.storeListApi=function(t){return i.default.get("store_list",t)};var i=n(a("fb81"))},"2fea":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("e25e");var i=a("2a39"),o=n(a("ab5b")),r=n(a("19b6")),u=a("00a0"),s=a("86eb"),c=a("26cb"),l={components:{userEvaluation:o.default},mixins:[r.default],computed:(0,c.mapGetters)(["isLogin"]),data:function(){return{imgHost:u.HTTP_REQUEST_URL,replyData:{},product_id:0,reply:[],type:0,loading:!1,loadend:!1,loadTitle:this.$t("加载更多"),page:1,limit:20}},onLoad:function(t){if(!t.product_id)return this.$util.Tips({title:this.$t("缺少参数")},{tab:3,url:1});this.product_id=t.product_id},onShow:function(){this.isLogin?(this.getProductReplyCount(),this.getProductReplyList()):(0,s.toLogin)()},methods:{getProductReplyCount:function(){var t=this;(0,i.getReplyConfig)(t.product_id).then((function(e){t.$set(t,"replyData",e.data)}))},getProductReplyList:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,i.getReplyList)(t.product_id,{page:t.page,limit:t.limit,type:t.type}).then((function(e){var a=e.data,n=a.length<t.limit;t.reply=t.$util.SplitArray(a,t.reply),t.$set(t,"reply",t.reply),t.loading=!1,t.loadend=n,t.loadTitle=n?t.$t("没有更多内容啦~"):t.$t("加载更多"),t.page=t.page+1})).catch((function(e){t.loading=!1,t.loadTitle=t.$t("加载更多")})))},changeType:function(t){var
|