1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-all_comments-all_comments"],{"0de3":function(t,e,a){var n=a("ab5d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("af00dc44",n,!0,{sourceMap:!1,shadowMode:!1})},1986:function(t,e,a){var n=a("1b9e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("e6e4ac96",n,!0,{sourceMap:!1,shadowMode:!1})},"1b9e":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".loading-footer[data-v-6dc30303]{padding:%?30?% 0;color:#666}",""]),t.exports=e},"1d00":function(t,e,a){"use strict";a.r(e);var n=a("6eb2"),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},"1e9c":function(t,e,a){"use strict";var n=a("7d76"),i=a.n(n);i.a},"2b35":function(t,e,a){"use strict";var n=a("1986"),i=a.n(n);i.a},"2ccd":function(t,e,a){var n=a("44f7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("ad64958a",n,!0,{sourceMap:!1,shadowMode:!1})},"2dbb":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{src:{type:String},round:Boolean,width:{type:null},height:{type:null},radius:null,lazyLoad:{type:Boolean,default:!0},useErrorSlot:Boolean,useLoadingSlot:Boolean,showMenuByLongpress:Boolean,mode:{type:String,default:"scaleToFill"},showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){}}},data:function(){return{error:!1,loading:!0,viewStyle:{}}},created:function(){this.setStyle()},methods:{setStyle:function(){var t=this.width,e=this.height,a=this.radius,n={};t&&(n.width=t),e&&(n.height=e),a&&(n["overflow"]="hidden",n["border-radius"]=a),this.viewStyle=n,this.customStyle&&(this.viewStyle=Object.assign(this.viewStyle,this.customStyle))},onLoaded:function(t){this.loading=!1,this.$emit("load",t.detail)},onErrored:function(t){this.error=!1,this.loading=!0,this.$emit("error",t.detail)},onClick:function(t){this.$emit("click",t.detail)}},watch:{src:function(){this.error=!1,this.loading=!0},width:function(){this.setStyle()},height:function(){this.setStyle()}}};e.default=n},"38e0":function(t,e,a){"use strict";a.r(e);var n=a("8324"),i=a("dce7");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("50c0");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"d7f27a88",null,!1,n["a"],void 0);e["default"]=s.exports},"3ee3":function(t,e,a){var n=a("24fb");e=n(!1),e.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/* 行为相关颜色 */.all_comments[data-v-7d625cac]{padding-top:%?20?%}.all_comments .header .title[data-v-7d625cac]{padding:%?24?% %?26?%;border-bottom:var(--border)}.all_comments .header .tab[data-v-7d625cac]{padding:%?30?% 0 %?10?% %?20?%;flex-wrap:wrap}.all_comments .header .tab .tab-item[data-v-7d625cac]{padding:%?9?% %?29?%}.all_comments .main .evaluation-list .evaluation-item[data-v-7d625cac]{padding:%?20?%}.all_comments .main .evaluation-list .evaluation-item[data-v-7d625cac]:not(:last-of-type){border-bottom:1px solid #e5e5e5}.all_comments .main .evaluation-list .evaluation-item .avatar[data-v-7d625cac]{width:%?60?%;height:%?60?%;border-radius:50%}.all_comments .main .evaluation-list .evaluation-item .seller-recall-container[data-v-7d625cac]{padding:%?24?% %?20?%;border-radius:%?12?%}',""]),t.exports=e},"418f":function(t,e,a){var n=a("3ee3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("c21f9ea8",n,!0,{sourceMap:!1,shadowMode:!1})},"44f7":function(t,e,a){var n=a("24fb");e=n(!1),e.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/* 行为相关颜色 */.custom-image[data-v-d7f27a88]{position:relative;display:block;width:100%;height:100%}.custom-image.image-round[data-v-d7f27a88]{overflow:hidden;border-radius:50%}.custom-image .image[data-v-d7f27a88]{display:block;width:100%;height:100%}.custom-image .loading-wrap[data-v-d7f27a88],\r\n.custom-image .error-wrap[data-v-d7f27a88]{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#969799;font-size:%?28?%;background-color:#f7f8fa}',""]),t.exports=e},"50c0":function(t,e,a){"use strict";var n=a("2ccd"),i=a.n(n);i.a},"511f":function(t,e,a){"use strict";a.r(e);var n=a("9772"),i=a("1d00");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("1e9c");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"330049b4",null,!1,n["a"],void 0);e["default"]=s.exports},"53ba":function(t,e,a){"use strict";a.r(e);var n=a("b12f"),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},5838:function(t,e,a){"use strict";a.r(e);var n=a("8cc9"),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},"5ebb":function(t,e,a){"use strict";a.r(e);var n=a("d8cd"),i=a("5838");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("2b35");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"6dc30303",null,!1,n["a"],void 0);e["default"]=s.exports},6483:function(t,e,a){"use strict";var n=a("418f"),i=a.n(n);i.a},"65ce":function(t,e,a){"use strict";a.r(e);var n=a("6667"),i=a("53ba");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("6483");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"7d625cac",null,!1,n["a"],void 0);e["default"]=s.exports},6667:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uRate:a("511f").default,customImage:a("38e0").default,loadingFooter:a("5ebb").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"all_comments"},[t.isEmpty?t._e():a("v-uni-view",{staticClass:"header bg-white"},[a("v-uni-view",{staticClass:"title xs"},[a("v-uni-text",{staticClass:"lighter mr10"},[t._v("商品好评率")]),a("v-uni-text",{staticClass:"primary"},[t._v(t._s(t.percent))])],1),a("v-uni-view",{staticClass:"tab row"},[t._l(t.categoryList,(function(e,n){return[e.count?a("v-uni-view",{key:n+"_"+n+"_0",class:"tab-item xs mr10 br60 mb20 "+(t.type==e.id?"bg-primary white":"bg-gray"),attrs:{"data-id":e.id},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangType.apply(void 0,arguments)}}},[t._v(t._s(e.name)+"("+t._s(e.count)+")")]):t._e()]}))],2)],1),a("v-uni-view",{staticClass:"main bg-white"},[a("v-uni-view",{staticClass:"evaluation-list"},t._l(t.commentList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"evaluation-item"},[a("v-uni-view",{staticClass:"user-info row"},[a("v-uni-image",{staticClass:"avatar mr20",attrs:{src:e.avatar}}),a("v-uni-view",{staticClass:"user-name md mr10"},[t._v(t._s(e.nickname))]),a("u-rate",{attrs:{disabled:!0,size:"26rpx",color:"#FF2C3C"},model:{value:e.goods_comment,callback:function(a){t.$set(e,"goods_comment",a)},expression:"item.goods_comment"}})],1),a("v-uni-view",{staticClass:"muted xs mt10"},[a("v-uni-text",{staticClass:"mr20"},[t._v(t._s(e.create_time))]),a("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:e.spec_value_str,expression:"item.spec_value_str"}]},[t._v(t._s(e.spec_value_str))])],1),e.comment?a("v-uni-view",{staticClass:"dec mt20"},[t._v(t._s(e.comment))]):t._e(),e.image.length?a("v-uni-view",{staticClass:"img mt20 row",staticStyle:{"flex-wrap":"wrap"}},t._l(e.image,(function(n,i){return a("v-uni-view",{key:i,staticClass:"img-item mr20 mb20",attrs:{"data-current":n,"data-uri":e.image},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}},[a("custom-image",{staticClass:"goods-img",attrs:{width:"160rpx",fit:"cover",height:"160rpx",radius:"6rpx","lazy-load":!0,src:n}})],1)})),1):t._e(),e.reply?a("v-uni-view",{staticClass:"seller-recall-container bg-gray mt10"},[a("v-uni-view",{staticClass:"lighter nr",staticStyle:{"word-wrap":"break-word"}},[t._v("商家回复:"),a("span",{staticClass:"normal two-txt-cut"},[t._v(t._s(e.reply))])])],1):t._e()],1)})),1)],1)],1),a("loading-footer",{attrs:{status:t.status,slotEmpty:!0}},[a("v-uni-view",{staticClass:"column-center",staticStyle:{"padding-top":"200rpx"},attrs:{slot:"empty"},slot:"empty"},[a("v-uni-image",{staticClass:"img-null",attrs:{src:"/static/images/goods_null.png"}}),a("v-uni-text",{staticClass:"lighter"},[t._v("暂无评价")])],1)],1)],1)},o=[]},"6eb2":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("e25e");var n={name:"u-rate",props:{value:{type:[Number,String],default:-1},count:{type:[Number,String],default:5},current:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:32},inactiveColor:{type:String,default:"#b2b2b2"},activeColor:{type:String,default:"#FA3534"},gutter:{type:[Number,String],default:10},minCount:{type:[Number,String],default:0},allowHalf:{type:Boolean,default:!1},activeIcon:{type:String,default:"star-fill"},inactiveIcon:{type:String,default:"star"},customPrefix:{type:String,default:"uicon"},colors:{type:Array,default:function(){return[]}},icons:{type:Array,default:function(){return[]}}},data:function(){return{elId:this.$u.guid(),elClass:this.$u.guid(),starBoxLeft:0,activeIndex:-1!=this.value?this.value:this.current,starWidth:0,starWidthArr:[]}},watch:{current:function(t){this.activeIndex=t},value:function(t){this.activeIndex=t}},computed:{decimal:function(){return this.disabled?100*this.activeIndex%100:this.allowHalf?50:void 0},elActiveIcon:function(){var t=this.icons.length;if(t&&t<=this.count){var e=Math.round(this.activeIndex/Math.round(this.count/t));return e<1?this.icons[0]:e>t?this.icons[t-1]:this.icons[e-1]}return this.activeIcon},elActiveColor:function(){var t=this.colors.length;if(t&&t<=this.count){var e=Math.round(this.activeIndex/Math.round(this.count/t));return e<1?this.colors[0]:e>t?this.colors[t-1]:this.colors[e-1]}return this.activeColor}},methods:{getElRectById:function(){var t=this;this.$u.getRect("#"+this.elId).then((function(e){t.starBoxLeft=e.left}))},getElRectByClass:function(){var t=this;this.$u.getRect("."+this.elClass).then((function(e){t.starWidth=e.width;for(var a=0;a<t.count;a++)t.starWidthArr[a]=(a+1)*t.starWidth}))},touchMove:function(t){if(!this.disabled&&t.changedTouches[0]){var e=t.changedTouches[0].pageX,a=e-this.starBoxLeft;a<=0&&(this.activeIndex=0);var n=Math.ceil(a/this.starWidth);this.activeIndex=n>this.count?this.count:n,this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),this.emitEvent()}},click:function(t,e){this.disabled||(this.allowHalf,1==t?1==this.activeIndex?this.activeIndex=0:this.activeIndex=1:this.activeIndex=t,this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),this.emitEvent())},emitEvent:function(){this.$emit("change",this.activeIndex),-1!=this.value&&this.$emit("input",this.activeIndex)},showDecimalIcon:function(t){return this.disabled&&parseInt(this.activeIndex)===t}},mounted:function(){this.getElRectById(),this.getElRectByClass()}};e.default=n},"74a2":function(t,e,a){"use strict";a.r(e);var n=a("bc30"),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},"7d76":function(t,e,a){var n=a("b867");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("42a30b35",n,!0,{sourceMap:!1,shadowMode:!1})},8324:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uIcon:a("ca16").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{class:{"custom-image":!0,"image-round":t.round},style:[t.viewStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.error?t._e():a("v-uni-image",{staticClass:"image",attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad,"show-menu-by-longpress":t.showMenuByLongpress},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoaded.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrored.apply(void 0,arguments)}}}),t.loading&&t.showLoading?a("v-uni-view",{staticClass:"loading-wrap image"},[t.useLoadingSlot?t._t("loading"):a("u-icon",{attrs:{color:"#aaa",name:"photo-fill",size:"45"}})],2):t._e(),t.error&&t.showError?a("v-uni-view",{staticClass:"error-wrap image"},[t.useErrorSlot?t._t("error"):a("u-icon",{attrs:{color:"#aaa",name:"error-circle-fill",size:"45"}}),a("v-uni-text",{staticClass:"sm"},[t._v("加载失败")])],2):t._e()],1)},o=[]},"8cc9":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},components:{},props:{status:{type:String,default:"loading"},errorText:{type:String,default:"加载失败,点击重新加载"},loadingText:{type:String,default:"加载中..."},finishedText:{type:String,default:"我可是有底线的~"},slotEmpty:{type:Boolean,default:!1},color:{type:String,default:"#666"}},methods:{onRefresh:function(){this.$emit("refresh")}}};e.default=n},9772:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uIcon:a("ca16").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-rate",attrs:{id:t.elId},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)}}},t._l(t.count,(function(e,n){return a("v-uni-view",{key:n,staticClass:"u-star-wrap",class:[t.elClass]},[a("u-icon",{attrs:{name:t.activeIndex>n?t.elActiveIcon:t.inactiveIcon,color:t.activeIndex>n?t.elActiveColor:t.inactiveColor,"custom-style":{fontSize:t.size+"rpx",padding:"0 "+t.gutter/2+"rpx"},"custom-prefix":t.customPrefix,"show-decimal-icon":t.showDecimalIcon(n),percent:t.decimal,"inactive-color":t.inactiveColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click(n+1,e)}}})],1)})),1)},o=[]},"9a2b":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",{class:"loading "+(t.vertical?"loading--vertical":"")},[a("v-uni-view",{class:"loading__spinner loading__spinner--"+t.type,style:{color:t.color,width:t.size+"rpx",height:t.size+"rpx"}},t._l(t.array12,(function(e,n){return"spinner"===t.type?a("v-uni-view",{key:n,staticClass:"loading__dot"}):t._e()})),1),a("v-uni-view",{staticClass:"loading__text",style:{"font-size":t.textSize+"rpx",color:t.color}},[t._t("default")],2)],1)},i=[]},ab5d:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'[data-v-13a5beb4]:host{font-size:0;line-height:1}.loading[data-v-13a5beb4]{display:inline-flex;align-items:center;justify-content:center;color:#c8c9cc}.loading__spinner[data-v-13a5beb4]{position:relative;box-sizing:border-box;width:%?45?%;max-width:100%;max-height:100%;height:%?45?%;-webkit-animation:rotate-data-v-13a5beb4 .8s linear infinite;animation:rotate-data-v-13a5beb4 .8s linear infinite}.loading__spinner--spinner[data-v-13a5beb4]{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.loading__spinner--circular[data-v-13a5beb4]{border:%?2?% solid transparent;border-top-color:initial;border-radius:100%}.loading__text[data-v-13a5beb4]{margin-left:%?16?%;color:#969799;font-size:%?28?%;line-height:%?40?%}.loading__text[data-v-13a5beb4]:empty{display:none}.loading--vertical[data-v-13a5beb4]{-webkit-flex-direction:column;flex-direction:column}.loading--vertical .loading__text[data-v-13a5beb4]{margin:%?16?% 0 0}.loading__dot[data-v-13a5beb4]{position:absolute;top:0;left:0;width:100%;height:100%}.loading__dot[data-v-13a5beb4]:before{display:block;width:%?4?%;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.loading__dot[data-v-13a5beb4]:first-of-type{-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.loading__dot[data-v-13a5beb4]:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.loading__dot[data-v-13a5beb4]:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.loading__dot[data-v-13a5beb4]:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.loading__dot[data-v-13a5beb4]:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.loading__dot[data-v-13a5beb4]:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.loading__dot[data-v-13a5beb4]:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.loading__dot[data-v-13a5beb4]:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.loading__dot[data-v-13a5beb4]:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.loading__dot[data-v-13a5beb4]:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.loading__dot[data-v-13a5beb4]:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.loading__dot[data-v-13a5beb4]:nth-of-type(12){-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:.3125}@-webkit-keyframes rotate-data-v-13a5beb4{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate-data-v-13a5beb4{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),t.exports=e},b12f:function(t,e,a){"use strict";a("7a82");var n=a("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("14d9");var i=n(a("d0ff")),o=n(a("f07e")),r=n(a("c964")),s=a("bc53"),c=a("5b24"),d={data:function(){return{status:c.loadingType.LOADING,page:1,type:"",commentList:[],categoryList:[],percent:"",isEmpty:!0}},components:{},props:{},onLoad:function(){var t=(0,r.default)((0,o.default)().mark((function t(e){return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.id=e.id,t.next=3,this.getCommentCategoryFun();case 3:this.getCommentListFun();case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){this.getCommentListFun()},onShareAppMessage:function(){},methods:{onChangType:function(t){var e=this,a=t.currentTarget.dataset.id,n=this.type;a!=n&&(this.type=a,this.page=1,this.commentList=[],this.status=c.loadingType.LOADING,this.$nextTick((function(){return e.getCommentListFun()})))},getCommentCategoryFun:function(){var t=this;return new Promise((function(e){(0,s.getCommentCategory)(t.id).then((function(a){var n=a.code,i=a.data,o=i.comment,r=i.percent;1==n&&(t.categoryList=o,t.percent=r,t.type=o[0].id,t.$nextTick((function(){return e()})))}))}))},getCommentListFun:function(){var t=this,e=this.page,a=this.status,n=this.commentList,o=this.type;a!=c.loadingType.FINISHED&&(0,s.getCommentList)({id:o,goods_id:this.id,page_no:e}).then((function(e){if(1==e.code){var a=e.data,o=a.list,r=a.more;n.push.apply(n,(0,i.default)(o)),t.commentList=n,t.page++,t.$nextTick((function(){r||(t.status=c.loadingType.FINISHED),n.length<=0?t.status=c.loadingType.EMPTY:(console.log("commentList false"),t.isEmpty=!1)}))}}))},previewImage:function(t){var e=t.currentTarget.dataset,a=e.current,n=e.uri,i=n;uni.previewImage({current:a,urls:i})}}};e.default=d},b867:function(t,e,a){var n=a("24fb");e=n(!1),e.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/* 行为相关颜色 */.u-rate[data-v-330049b4]{display:-webkit-inline-flex;display:inline-flex;align-items:center;margin:0;padding:0}.u-icon[data-v-330049b4]{box-sizing:border-box}',""]),t.exports=e},bc30:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("a630"),a("3ca3");var n={props:{color:String,vertical:Boolean,type:{type:String,default:"spinner"},size:{type:Number,default:40},textSize:String},data:function(){return{array12:Array.from({length:12})}}};e.default=n},d8cd:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={loading:a("f367").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"loading-footer row-center",style:"color: "+t.color},["loading"===t.status?a("v-uni-view",{staticClass:"loading row"},[a("loading",{staticClass:"mr20",attrs:{color:t.color}}),a("v-uni-text",{style:"color: "+t.color},[t._v(t._s(t.loadingText))])],1):t._e(),"finished"===t.status?a("v-uni-view",{staticClass:"finished"},[t._v(t._s(t.finishedText))]):t._e(),"error"===t.status?a("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onRefresh.apply(void 0,arguments)}}},[t._v(t._s(t.errorText))]):t._e(),"empty"===t.status?a("v-uni-view",{staticClass:"empty"},[t.slotEmpty?t._t("empty"):a("v-uni-text",[t._v("暂无数据")])],2):t._e()],1)},o=[]},dce7:function(t,e,a){"use strict";a.r(e);var n=a("2dbb"),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},f367:function(t,e,a){"use strict";a.r(e);var n=a("9a2b"),i=a("74a2");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("fcf0");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"13a5beb4",null,!1,n["a"],void 0);e["default"]=s.exports},fcf0:function(t,e,a){"use strict";var n=a("0de3"),i=a.n(n);i.a}}]); |