comment-list.js 3.5 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/comment-list/comment-list"],{"00a0b":function(e,n,t){"use strict";(function(e){var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t("2eee")),i=o(t("c973")),u=t("bd77"),a=o(t("9047")),c=o(t("f678")),s={mixins:[a.default,c.default],data:function(){return{list:[],downOption:{auto:!1},upOption:{auto:!1,noMoreSize:4,empty:{icon:"/static/images/goods_null.png",tip:"暂无评价~",fixed:!0}}}},props:{type:{type:Number|String}},created:function(){var n=this;e.$on("refreshcomment",(function(){n.downCallback()}))},destroyed:function(){e.$off("refreshcomment")},methods:{upCallback:function(e){var n=this;return(0,i.default)(r.default.mark((function t(){var o,i,a,c,s,l,d,f;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=n.type,i={page_size:e.size,page_no:e.num},console.log(o),1!=o){t.next=9;break}return t.next=6,(0,u.getUnComment)(i);case 6:t.t0=t.sent,t.next=12;break;case 9:return t.next=11,(0,u.getComment)(i);case 11:t.t0=t.sent;case 12:a=t.t0,c=a.data,s=a.code,1==s&&(l=c.lists,d=l.length,f=!!c.more,1==e.num&&(n.list=[]),n.list=n.list.concat(l),n.mescroll.endSuccess(d,f));case 16:case"end":return t.stop()}}),t)})))()},previewImage:function(n,t){console.log(n,t),e.previewImage({current:t,urls:n})}}};n.default=s}).call(this,t("543d")["default"])},2197:function(e,n,t){"use strict";t.r(n);var o=t("00a0b"),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},"2e03":function(e,n,t){"use strict";t.r(n);var o=t("8cab"),r=t("2197");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("5ba5");var u=t("f0c5"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"b90c3480",null,!1,o["a"],void 0);n["default"]=a.exports},"5ba5":function(e,n,t){"use strict";var o=t("8f14"),r=t.n(o);r.a},"8cab":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var o={mescrollUni:function(){return Promise.all([t.e("common/vendor"),t.e("components/mescroll-uni/mescroll-uni")]).then(t.bind(null,"1b1d"))},shopTitle:function(){return t.e("components/shop-title/shop-title").then(t.bind(null,"20b6"))},uImage:function(){return t.e("components/uview-ui/components/u-image/u-image").then(t.bind(null,"2a31"))},priceFormat:function(){return t.e("components/price-format/price-format").then(t.bind(null,"87ff"))},uRate:function(){return t.e("components/uview-ui/components/u-rate/u-rate").then(t.bind(null,"1798"))}},r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.list,(function(n,t){var o=e.__get_orig(n),r=1==e.type?e.__map(n.order_goods_un_comment,(function(n,t){var o=e.__get_orig(n),r={path:"/pages/goods_details/goods_details",query:{id:n.goods_id}},i={path:"/bundle/pages/goods_reviews/goods_reviews",query:{id:n.id}};return{$orig:o,a0:r,a1:i}})):null,i=2==e.type?n.goods_comment_image_arr&&n.goods_comment_image_arr.length:null;return{$orig:o,l0:r,g0:i}})));e.$mp.data=Object.assign({},{$root:{l1:t}})},i=[]},"8f14":function(e,n,t){}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/comment-list/comment-list-create-component',
  4. {
  5. 'components/comment-list/comment-list-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("2e03"))
  7. })
  8. },
  9. [['components/comment-list/comment-list-create-component']]
  10. ]);