pages-product-reply.5fd551bd.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-reply"],{"01ec":function(t,e,a){var i=a("f394");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("16613385",i,!0,{sourceMap:!1,shadowMode:!1})},"12c5":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getProducts=o,e.goodsDetail=r,e.getBargainList=l,e.cartAdd=d,e.collectAdd=s,e.collectDel=c,e.searchKeyword=u,e.groomList=f,e.seckillGoods=v,e.groupGoods=m,e.getCategoryList=p,e.getCombinationList=g,e.getCombinationLisRemove=h,e.getCombinationLisPink=b,e.getCombinationPoster=y,e.getSeckillClass=w,e.getSeckillList=x,e.reply_config=_,e.reply_list=k;var n=i(a("4c3b"));function o(t){return(0,n.default)({url:"/api/products",method:"get",data:t})}function r(t,e){return(0,n.default)({url:"/api/product/detail/"+e,method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/bargain/list",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/cart/add",method:"post",data:t})}function s(t){return(0,n.default)({url:"/api/collect/add",method:"post",data:t})}function c(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/search/keyword",method:"get",data:t})}function f(t,e){return(0,n.default)({url:"/api/groom/list/"+e,method:"get",data:t})}function v(t,e){return(0,n.default)({url:"/api/seckill/detail/"+e,method:"get",data:t})}function m(t,e){return(0,n.default)({url:"/api/combination/detail/"+e,method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/category",method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/combination/list",method:"get",data:t})}function h(t,e){return(0,n.default)({url:"/api/combination/remove"+e,method:"get",data:t})}function b(t,e){return(0,n.default)({url:"/api/combination/pink/"+e,method:"get",data:t})}function y(t){return(0,n.default)({url:"/api/combination/poster",method:"post",data:t})}function w(t){return(0,n.default)({url:"/api/seckill/index",method:"get",data:t})}function x(t,e){return(0,n.default)({url:"/api/seckill/list/"+e,method:"get",data:t})}function _(t,e){return(0,n.default)({url:"/api/reply/config/"+e,method:"get",data:t})}function k(t,e){return(0,n.default)({url:"/api/reply/list/"+e,method:"get",data:t})}},"1caa":function(t,e,a){"use strict";var i=a("01ec"),n=a.n(i);n.a},"657a":function(t,e,a){"use strict";a.r(e);var i=a("a67d"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"6a11":function(t,e,a){var i=a("74b9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("c7b491b8",i,!0,{sourceMap:!1,shadowMode:!1})},"74b9":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uni-load-more[data-v-c8f01f2e]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-c8f01f2e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-c8f01f2e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-c8f01f2e]{position:absolute}.uni-load-more__img>.load .item[data-v-c8f01f2e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-c8f01f2e 1.56s ease infinite;animation:load-data-v-c8f01f2e 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(4){top:11px;left:0}.load1[data-v-c8f01f2e],\n.load2[data-v-c8f01f2e],\n.load3[data-v-c8f01f2e]{height:24px;width:24px}.load2[data-v-c8f01f2e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-c8f01f2e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-c8f01f2e{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},"7caa":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-7208e376]{background:#fff;height:100%}uni-page-body .container[data-v-7208e376]{height:100%;padding:%?25?% %?25?%;padding-top:%?120?%}uni-page-body .container .swiper-box .list-scroll-content[data-v-7208e376]{height:100%}.reply_btn[data-v-7208e376]{padding:%?15?% %?0?%}.reply_btn .btn[data-v-7208e376]{padding:%?10?% %?25?%;font-size:%?24?%;background:#f4f4f4;margin-right:%?25?%}.reply_btn .current[data-v-7208e376]{background-color:#e93323!important;color:#fff!important}.eva-box[data-v-7208e376]{padding:%?20?% 0}.eva-box .row-1 .portrait[data-v-7208e376]{flex-shrink:0;width:%?80?%;height:%?80?%;border-radius:100px}.eva-box .row-1 .right[data-v-7208e376]{flex:1;font-size:%?28?%;color:#606266;padding-left:%?26?%}.eva-box .row-1 .right .name[data-v-7208e376]{margin-bottom:%?20?%}.eva-box .row-1 .right .name uni-image[data-v-7208e376]{width:%?35?%;height:%?25?%}.eva-box .row-1 .right .bot[data-v-7208e376]{display:flex;justify-content:space-between;font-size:%?24?%;color:#909399}.eva-box .con[data-v-7208e376]{font-size:%?24?%;font-weight:500;color:#545456;padding:%?20?% 0 %?35?% 0;letter-spacing:%?3?%}.eva-box .con_image[data-v-7208e376]{width:%?150?%;height:%?150?%;display:inline-block;margin-right:%?20?%}.eva-box .con_image uni-image[data-v-7208e376]{width:100%;height:100%}body.?%PAGE?%[data-v-7208e376]{background:#fff}',""]),t.exports=e},"808b":function(t,e,a){"use strict";a.r(e);var i=a("809b"),n=a("a762");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("8ece");var r,l=a("f0c5"),d=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,"7208e376",null,!1,i["a"],r);e["default"]=d.exports},"809b":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("dfd3").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"reply_btn flex_item"},t._l(t.navList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"btn",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[t._v(t._s(e.text)+"("+t._s(e.number)+")")])})),1),a("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.maxheight+"px"},attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,i){return a("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadDate.apply(void 0,arguments)}}},[t._l(e.orderList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"eva-box"},[a("v-uni-view",{staticClass:"row-1 flex1"},[a("v-uni-image",{staticClass:"portrait",attrs:{src:e.avatar,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"right flex1"},[a("v-uni-view",[a("v-uni-view",{staticClass:"name flex1"},[a("v-uni-view",[t._v(t._s(e.nickname))])],1),a("uniRate",{staticClass:"rate",attrs:{disabled:!0,size:"10",margin:"1",value:e.product_score}})],1),a("v-uni-view",{staticClass:"bot"},[a("v-uni-text",{staticClass:"attr"}),a("v-uni-text",{staticClass:"time"},[t._v(t._s(e.add_time))])],1)],1)],1),a("v-uni-view",{staticClass:"con"},[t._v(t._s(e.comment))]),a("v-uni-view",{staticClass:"con_box"},t._l(e.pics,(function(t){return a("v-uni-view",{staticClass:"con_image"},[a("v-uni-image",{attrs:{src:t}})],1)})),1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[]},"89ef":function(t,e,a){"use strict";a.r(e);var i=a("d6d0"),n=a("657a");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("1caa");var r,l=a("f0c5"),d=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,"289a27ba",null,!1,i["a"],r);e["default"]=d.exports},"8af6":function(t,e,a){"use strict";a.r(e);var i=a("93dc"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"8ece":function(t,e,a){"use strict";var i=a("b4fd"),n=a.n(i);n.a},"90a2":function(t,e,a){"use strict";var i=a("6a11"),n=a.n(i);n.a},"93dc":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},"954d":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("1da1")),o=a("12c5"),r=i(a("89ef")),l={components:{uniRate:r.default},watch:{},data:function(){return{maxheight:"",id:"",list:"",reply:"",tabCurrentIndex:0,navList:[{state:0,text:"全部",loadingType:"more",number:"",orderList:[],page:1,limit:5},{state:1,text:"好评",loadingType:"more",number:"",orderList:[],page:1,limit:5},{state:3,text:"差评",loadingType:"more",number:"",orderList:[],page:1,limit:5},{state:2,text:"中评",loadingType:"more",number:"",orderList:[],page:1,limit:5}]}},computed:{},onReady:function(){var t=this;uni.createSelectorQuery().select(".container").fields({size:!0},(function(e){t.maxheight=e.height-Math.floor(e.width/750*145)})).exec()},onLoad:function(t){this.id=t.id},onShow:function(){var t=this;(0,o.reply_config)({},this.id).then((function(e){var a=e.data;t.reply=a,t.navList[0].number=t.reply.sum_count,t.navList[1].number=t.reply.good_count,t.navList[2].number=t.reply.poor_count,t.navList[3].number=t.reply.in_count})),this.loadDate()},methods:{loadDate:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var i,n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.tabCurrentIndex,n=e.navList[i],r=n.state,"tabChange"!==t||!0!==n.loaded){a.next=5;break}return a.abrupt("return");case 5:if("loading"!==n.loadingType){a.next=7;break}return a.abrupt("return");case 7:if("noMore"!==n.loadingType){a.next=9;break}return a.abrupt("return");case 9:n.loadingType="loading",(0,o.reply_list)({type:r,page:n.page,limit:n.limit},e.id).then((function(t){var a=t.data,i=a;n.orderList=n.orderList.concat(i),console.log(n.orderList,111),n.page++,n.limit!=a.length?(n.loadingType="noMore",e.$set(n,"loaded",!0)):n.loadingType="more"})).catch((function(t){console.log(t)}));case 11:case"end":return a.stop()}}),a)})))()},navTo:function(t){uni.navigateTo({url:t})},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadDate("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=l},a67d:function(t,e,a){"use strict";var i=a("4ea4");a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("08a0")),o={name:"UniRate",components:{uniIcons:n.default},props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1}},data:function(){return{valueSync:""}},computed:{stars:function(){for(var t=this.valueSync?this.valueSync:0,e=[],a=Math.floor(t),i=Math.ceil(t),n=0;n<this.max;n++)a>n?e.push({activeWitch:"100%"}):i-1===n?e.push({activeWitch:100*(t-a)+"%"}):e.push({activeWitch:"0"});return console.log("starList[4]: "+e[4].activeWitch),e}},created:function(){this.valueSync=Number(this.value)},methods:{_onClick:function(t){this.disabled||(this.valueSync=t+1,this.$emit("change",{value:this.valueSync}))}}};e.default=o},a762:function(t,e,a){"use strict";a.r(e);var i=a("954d"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},b4fd:function(t,e,a){var i=a("7caa");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("65204fd2",i,!0,{sourceMap:!1,shadowMode:!1})},d6d0:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uniIcons:a("08a0").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-rate"},t._l(t.stars,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-rate__icon",style:{marginLeft:t.margin+"px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._onClick(i)}}},[a("uni-icons",{attrs:{color:t.color,size:t.size,type:t.isFill?"star-filled":"star"}}),a("v-uni-view",{staticClass:"uni-rate__icon-on",style:{width:e.activeWitch,top:-t.size/2+"px"}},[a("uni-icons",{attrs:{color:t.activeColor,size:t.size,type:"star-filled"}})],1)],1)})),1)},o=[]},dfd3:function(t,e,a){"use strict";a.r(e);var i=a("ede1"),n=a("8af6");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("90a2");var r,l=a("f0c5"),d=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,"c8f01f2e",null,!1,i["a"],r);e["default"]=d.exports},ede1:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-load-more"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[a("v-uni-view",{staticClass:"load1 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load2 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load3 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),a("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},f394:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.uni-rate[data-v-289a27ba]{display:flex;line-height:0;font-size:0;flex-direction:row}.uni-rate__icon[data-v-289a27ba]{position:relative;line-height:0;font-size:0}.uni-rate__icon-on[data-v-289a27ba]{overflow:hidden;position:absolute;top:0;left:0;line-height:1;text-align:left}',""]),t.exports=e}}]);