pages-comments-view.ec967fa5.js 6.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-comments-view"],{"10ce":function(t,o,e){var n=e("24fb");o=n(!1),o.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.goods-comments[data-v-510f2d4f]{margin-top:%?20?%;background-color:#fff;height:auto}.goods-comments .title[data-v-510f2d4f]{height:%?80?%;line-height:%?80?%;font-size:%?32?%;width:100%;border-bottom:%?2?% solid #e8e8e8}.goods-comments .title uni-view[data-v-510f2d4f]:nth-child(1){float:left;color:#333;padding-left:%?30?%}.goods-comments .title uni-view[data-v-510f2d4f]:nth-child(2){float:right;color:#999;padding-right:%?30?%}.goods-comments .comments-empty[data-v-510f2d4f]{padding:%?100?% %?30?%;text-align:center;font-size:%?32?%;color:#666}.goods-comments .goods-comments-list .goods-comments-box[data-v-510f2d4f]{border-bottom:1px solid #e8e8e8;min-height:%?240?%;background-color:#fff;padding-bottom:%?40?%}.goods-comments .goods-comments-list .goods-comments-box .t[data-v-510f2d4f]{padding:0 %?30?%;height:%?170?%;line-height:%?160?%;color:#666}.goods-comments .goods-comments-list .goods-comments-box .t .u[data-v-510f2d4f]{float:left;font-size:%?30?%}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view[data-v-510f2d4f]{float:left}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view[data-v-510f2d4f]:first-child{width:%?96?%;height:%?96?%;overflow:hidden;border-radius:50%;background-color:#eee;display:inline-block;position:relative;top:%?30?%}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view:first-child uni-image[data-v-510f2d4f]{width:%?96?%;height:%?96?%}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view[data-v-510f2d4f]:last-child{position:relative;left:%?20?%}.goods-comments .goods-comments-list .goods-comments-box .t .time[data-v-510f2d4f]{float:right;font-size:%?28?%}.goods-comments .goods-comments-list .goods-comments-box .c[data-v-510f2d4f]{padding:0 %?30?% %?10?% %?30?%;font-size:%?30?%;color:#333}.goods-comments .goods-comments-list .goods-comments-box .d[data-v-510f2d4f]{background-color:#f7f7f7;margin:0 %?30?%}.goods-comments .goods-comments-list .goods-comments-box .d .d-1[data-v-510f2d4f]{padding:%?10?% %?30?% 0 %?30?%;font-size:%?30?%}.goods-comments .goods-comments-list .goods-comments-box .d .d-2[data-v-510f2d4f]{padding:%?20?% %?30?% %?20?% %?30?%;font-size:%?28?%}',""]),t.exports=o},"1ce6":function(t,o,e){"use strict";var n=e("64d3"),s=e.n(n);s.a},"413b":function(t,o,e){"use strict";e.d(o,"b",(function(){return s})),e.d(o,"c",(function(){return i})),e.d(o,"a",(function(){return n}));var n={navbar:e("2445").default,mescrollBody:e("adc6").default},s=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("v-uni-view",[e("navbar",{attrs:{iSimmersive:!1,placeholder:!0,title:"商品评论"},model:{value:t.screenHeight,callback:function(o){t.screenHeight=o},expression:"screenHeight"}}),e("mescroll-body",{ref:"mescrollRef",attrs:{height:t.screenHeight+"px"},on:{init:function(o){arguments[0]=o=t.$handleEvent(o),t.mescrollInit.apply(void 0,arguments)},down:function(o){arguments[0]=o=t.$handleEvent(o),t.downCallback.apply(void 0,arguments)},up:function(o){arguments[0]=o=t.$handleEvent(o),t.upCallback.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"goods-comments clear"},[t.comments.length<=0?e("v-uni-view",{staticClass:"comments-empty"},[t._v("该商品还没有评论哦!")]):t._e(),e("v-uni-view",{staticClass:"goods-comments-list clear"},t._l(t.comments,(function(o,n){return e("v-uni-view",{key:n,staticClass:"goods-comments-box clear"},[e("v-uni-view",{staticClass:"t"},[e("v-uni-view",{staticClass:"u"},[e("v-uni-view",[e("v-uni-image",{attrs:{src:o.avatar}})],1),e("v-uni-view",[t._v(t._s(o.username))])],1),e("v-uni-view",{staticClass:"time"},[t._v(t._s(o.time))])],1),e("v-uni-view",{staticClass:"c"},[t._v(t._s(o.content))]),o.reply_content?e("v-uni-view",{staticClass:"d"},[e("v-uni-view",{staticClass:"d-1"},[t._v("商家回复")]),e("v-uni-view",{staticClass:"d-2"},[t._v(t._s(o.reply_content))])],1):t._e()],1)})),1)],1)],1)],1)},i=[]},"4a88":function(t,o,e){"use strict";e.r(o);var n=e("413b"),s=e("f1cc");for(var i in s)["default"].indexOf(i)<0&&function(t){e.d(o,t,(function(){return s[t]}))}(i);e("1ce6");var a=e("f0c5"),d=Object(a["a"])(s["default"],n["b"],n["c"],!1,null,"510f2d4f",null,!1,n["a"],void 0);o["default"]=d.exports},"649a":function(t,o,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,e("99af");var s=n(e("d220")),i=n(e("2445")),a={mixins:[s.default],components:{navbar:i.default},data:function(){return{screenHeight:0,options:null,comments:[]}},onLoad:function(t){this.options=t},methods:{downCallback:function(){var t=this;setTimeout((function(){t.mescroll.resetUpScroll()}),1200)},triggerDownScroll:function(){this.mescroll.triggerDownScroll()},upCallback:function(t){var o=this;this.$http.getGoodsComments({page:t.num,type:this.options.type,id:this.options.id}).then((function(e){o.mescroll.endByPage(e.data.list.length,e.data.total),1==e.status?(1==t.num&&(o.comments=[]),o.comments=o.comments.concat(e.data.list)):-1==e.status&&o.mescroll.removeEmpty()})).catch((function(t){o.mescroll.endErr()}))}}};o.default=a},"64d3":function(t,o,e){var n=e("10ce");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=e("4f06").default;s("3620c7d6",n,!0,{sourceMap:!1,shadowMode:!1})},f1cc:function(t,o,e){"use strict";e.r(o);var n=e("649a"),s=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(i);o["default"]=s.a}}]);