1 |
- (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 e=parseInt(t);e!=this.type&&(this.type=e,this.page=1,this.loadend=!1,this.$set(this,"reply",[]),this.getProductReplyList())}},onReachBottom:function(){this.getProductReplyList()}};e.default=l},4368:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-2212b1ac]{background-color:#fff}body.?%PAGE?%[data-v-2212b1ac]{background-color:#fff}.evaluate-list .generalComment[data-v-2212b1ac]{height:%?94?%;padding:0 %?30?%;margin-top:%?1?%;background-color:#fff;font-size:%?28?%;color:grey}.evaluate-list .generalComment .evaluate[data-v-2212b1ac]{margin-right:%?7?%}.evaluate-list .nav[data-v-2212b1ac]{font-size:%?24?%;color:#282828;padding:0 %?30?% %?32?% %?30?%;background-color:#fff;border-bottom:%?1?% solid #f5f5f5}.evaluate-list .nav .item[data-v-2212b1ac]{font-size:%?24?%;color:#282828;border-radius:%?6?%;height:%?54?%;padding:0 %?20?%;background-color:#f4f4f4;line-height:%?54?%;margin-right:%?17?%}.evaluate-list .nav .item.bg-color[data-v-2212b1ac]{color:#fff}.noCommodity[data-v-2212b1ac]{background-color:#fff;padding-bottom:%?30?%;padding-top:%?100?%}.noCommodity .text[data-v-2212b1ac]{padding-top:%?40?%;text-align:center;color:#aaa}.noCommodity .emptyBox[data-v-2212b1ac]{text-align:center;padding-top:%?20?%}.noCommodity .emptyBox .tips[data-v-2212b1ac]{color:#aaa;font-size:%?26?%;text-align:center}.noCommodity .emptyBox uni-image[data-v-2212b1ac]{width:%?414?%;height:%?304?%}',""]),t.exports=e},5986:function(t,e,a){"use strict";var n=a("d00a"),i=a.n(n);i.a},6055:function(t,e,a){"use strict";a.r(e);var n=a("eff7"),i=a("faa0");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("8010");var r=a("f0c5"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"2212b1ac",null,!1,n["a"],void 0);e["default"]=u.exports},"7a6b":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"evaluateWtapper"},t._l(t.reply,(function(e,i){return n("v-uni-view",{key:i,staticClass:"evaluateItem"},[n("v-uni-view",{staticClass:"pic-text acea-row row-middle"},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e.avatar}})],1),n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-view",{staticClass:"acea-row row-middle",staticStyle:{"margin-right":"15rpx"}},[n("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.nickname))]),e.is_money_level>0?n("v-uni-view",{staticClass:"vipImg"},[n("v-uni-image",{attrs:{src:a("2135")}})],1):t._e()],1),n("v-uni-view",{staticClass:"start",class:"star"+e.star})],1)],1),n("v-uni-view",{staticClass:"time"},[t._v(t._s(e.add_time)+" "+t._s(e.suk))]),n("v-uni-view",{staticClass:"evaluate-infor"},[t._v(t._s(e.comment))]),n("v-uni-view",{staticClass:"imgList acea-row"},t._l(e.pics,(function(e,a){return n("v-uni-view",{key:a,staticClass:"pictrue"},[n("v-uni-image",{staticClass:"image",attrs:{src:e},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getpreviewImage(i,a)}}})],1)})),1),e.merchant_reply_content?n("v-uni-view",{staticClass:"reply"},[n("v-uni-text",{staticClass:"font-num"},[t._v(t._s(t.$t("店小二")))]),t._v(":"+t._s(e.merchant_reply_content))],1):t._e()],1)})),1)},i=[]},8010:function(t,e,a){"use strict";var n=a("059a"),i=a.n(n);i.a},a6d3:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{reply:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{getpreviewImage:function(t,e){uni.previewImage({urls:this.reply[t].pics,current:this.reply[t].pics[e]})}}};e.default=n},ab5b:function(t,e,a){"use strict";a.r(e);var n=a("7a6b"),i=a("c368");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("5986");var r=a("f0c5"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"231c52f6",null,!1,n["a"],void 0);e["default"]=u.exports},c368:function(t,e,a){"use strict";a.r(e);var n=a("a6d3"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},d00a:function(t,e,a){var n=a("e5f9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("d8b4dcfa",n,!0,{sourceMap:!1,shadowMode:!1})},e5f9:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.vipImg[data-v-231c52f6]{width:%?68?%;height:%?27?%}.vipImg uni-image[data-v-231c52f6]{width:100%;height:100%;margin-left:%?10?%}.evaluateWtapper .evaluateItem[data-v-231c52f6]{background-color:#fff;padding-bottom:%?25?%}.evaluateWtapper .evaluateItem ~ .evaluateItem[data-v-231c52f6]{border-top:%?1?% solid #f5f5f5}.evaluateWtapper .evaluateItem .pic-text[data-v-231c52f6]{font-size:%?26?%;color:#282828;height:%?95?%;padding:0 %?30?%}.evaluateWtapper .evaluateItem .pic-text .pictrue[data-v-231c52f6]{width:%?60?%;height:%?60?%;margin-right:%?20?%;border-radius:50%}.evaluateWtapper .evaluateItem .pic-text .pictrue uni-image[data-v-231c52f6]{width:100%;height:100%;border-radius:50%}.evaluateWtapper .evaluateItem .pic-text .name[data-v-231c52f6]{max-width:%?450?%;font-size:%?30?%}.evaluateWtapper .evaluateItem .time[data-v-231c52f6]{font-size:%?24?%;color:#82848f;padding:0 %?30?%}.evaluateWtapper .evaluateItem .evaluate-infor[data-v-231c52f6]{font-size:%?28?%;color:#282828;margin-top:%?19?%;padding:0 %?30?%}.evaluateWtapper .evaluateItem .imgList[data-v-231c52f6]{padding:0 %?30?% 0 %?15?%;margin-top:%?25?%}.evaluateWtapper .evaluateItem .imgList .pictrue[data-v-231c52f6]{width:%?156?%;height:%?156?%;margin:0 0 %?15?% %?15?%}.evaluateWtapper .evaluateItem .imgList .pictrue uni-image[data-v-231c52f6]{width:100%;height:100%;background-color:#f7f7f7}.evaluateWtapper .evaluateItem .reply[data-v-231c52f6]{font-size:%?26?%;color:#454545;background-color:#f7f7f7;border-radius:%?5?%;margin:%?20?% %?30?% 0 %?30?%;padding:%?20?%;position:relative}.evaluateWtapper .evaluateItem .reply[data-v-231c52f6]::before{content:"";width:0;height:0;border-left:%?20?% solid transparent;border-right:%?20?% solid transparent;border-bottom:%?30?% solid #f7f7f7;position:absolute;top:%?-14?%;left:%?40?%}',""]),t.exports=e},eff7:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{style:t.colorStyle},[a("v-uni-view",{staticClass:"evaluate-list"},[a("v-uni-view",{staticClass:"generalComment acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"acea-row row-middle"},[a("v-uni-view",{staticClass:"evaluate"},[t._v(t._s(t.$t("评分")))]),a("v-uni-view",{staticClass:"start",class:"star"+t.replyData.reply_star})],1),a("v-uni-view",[t._v(t._s(t.$t("好评率"))),a("v-uni-text",{staticClass:"font-num"},[t._v(t._s(t.replyData.reply_chance)+"%")])],1)],1),a("v-uni-view",{staticClass:"nav acea-row row-middle"},[a("v-uni-view",{staticClass:"item",class:0==t.type?"bg-color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(0)}}},[t._v(t._s(t.$t("全部"))+"("+t._s(t.replyData.sum_count)+")")]),a("v-uni-view",{staticClass:"item",class:1==t.type?"bg-color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(1)}}},[t._v(t._s(t.$t("好评"))+"("+t._s(t.replyData.good_count)+")")]),a("v-uni-view",{staticClass:"item",class:2==t.type?"bg-color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(2)}}},[t._v(t._s(t.$t("中评"))+"("+t._s(t.replyData.in_count)+")")]),a("v-uni-view",{staticClass:"item",class:3==t.type?"bg-color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(3)}}},[t._v(t._s(t.$t("差评"))+"("+t._s(t.replyData.poor_count)+")")])],1),a("userEvaluation",{attrs:{reply:t.reply}}),t.reply.length>0?a("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[a("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e(),0==t.reply.length?a("v-uni-view",{staticClass:"noCommodity"},[a("v-uni-view",{staticClass:"emptyBox"},[a("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/noMessage.png"}})],1),a("v-uni-view",{staticClass:"text"},[t._v(t._s(t.$t("暂无评论")))])],1):t._e()],1)],1)},i=[]},faa0:function(t,e,a){"use strict";a.r(e);var n=a("2fea"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a}}]);
|