1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_comment-user_comment"],{"0d00":function(t,e,i){"use strict";i.r(e);var n=i("aa0e"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"1d8a":function(t,e,i){"use strict";i.r(e);var n=i("38e6"),a=i("799b");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);var r,o=i("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"6522c697",null,!1,n["a"],r);e["default"]=c.exports},"38e6":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={tabs:i("a243").default,tab:i("201c").default,commentList:i("5f4c").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"goods-comment-list"},[i("tabs",{attrs:{current:t.active,"is-scroll":!1},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeActive.apply(void 0,arguments)}}},[i("tab",{attrs:{name:"待评价"}},[i("comment-list",{attrs:{type:"1",i:0,index:t.active}})],1),i("tab",{attrs:{name:"已评价"}},[i("comment-list",{attrs:{type:"2",i:1,index:t.active}})],1)],1)],1)},s=[]},4708:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={mescrollUni:i("de4f").default,shopTitle:i("7c4e").default,uImage:i("7171").default,priceFormat:i("8312").default,uRate:i("ba13").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("mescroll-uni",{ref:"mescrollRef",attrs:{top:"80rpx",down:t.downOption,up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"comment-list"},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"comment-item bg-white m-t-20"},[1==t.type?i("v-uni-view",[i("v-uni-view",{staticClass:"m-l-20"},[i("shop-title",{attrs:{shop:e.shop}})],1),t._l(e.order_goods_un_comment,(function(e,n){return i("v-uni-view",{key:n},[i("router-link",{attrs:{to:{path:"/pages/goods_details/goods_details",query:{id:e.goods_id}}}},[i("v-uni-view",{staticClass:"comment-goods flex"},[i("u-image",{attrs:{width:"160rpx",height:"160rpx","border-radius":"6rpx",src:e.goods_item.image}}),i("v-uni-view",{staticClass:"goods-desc flex-1 m-l-24"},[i("v-uni-view",{staticClass:"goods-name line-2"},[t._v(t._s(e.goods_name))]),i("v-uni-view",{staticClass:"m-t-10 xs muted line-1"},[t._v(t._s(e.goods_item.spec_value_str))]),i("v-uni-view",{staticClass:"flex row-between m-t-20"},[i("price-format",{attrs:{price:e.goods_price,"subscript-size":26,"first-size":30,"second-size":30}}),i("v-uni-view",{staticClass:"nr"},[t._v("x"+t._s(e.goods_num))])],1)],1)],1)],1),i("router-link",{attrs:{to:{path:"/bundle/pages/goods_reviews/goods_reviews",query:{id:e.id}}}},[i("v-uni-view",{staticClass:"evaluate-footer flex row-right"},[i("v-uni-view",{staticClass:"btn flex row-center primary br60"},[t._v("评价商品")])],1)],1)],1)}))],2):t._e(),2==t.type?i("v-uni-view",[i("v-uni-view",{staticClass:"p-20"},[i("v-uni-view",{staticClass:"p-b-20 time"},[i("v-uni-view",{staticClass:"muted xs"},[t._v("评价时间: "+t._s(e.create_time))])],1),e.comment?i("v-uni-view",{staticClass:"m-t-20"},[t._v(t._s(e.comment))]):t._e(),e.goods_comment_image_arr&&e.goods_comment_image_arr.length?i("v-uni-view",{staticClass:"flex flex-wrap m-t-20"},t._l(e.goods_comment_image_arr,(function(n,a){return i("v-uni-view",{key:a,staticClass:"comment-img",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.previewImage(e.goods_comment_image_arr,a,i)}}},[i("u-image",{attrs:{width:"160rpx",height:"160rpx","border-radius":"6rpx",src:n}})],1)})),1):t._e(),i("v-uni-view",{staticClass:"comment-goods flex bg-body m-t-20"},[i("u-image",{attrs:{width:"160rpx",height:"160rpx","border-radius":"6rpx",src:e.goods_item.image}}),i("v-uni-view",{staticClass:"goods-desc flex-1 m-l-24"},[i("v-uni-view",{staticClass:"goods-name line-2"},[t._v(t._s(e.goods.name))]),i("v-uni-view",{staticClass:"m-t-10 xs muted line-1"},[t._v(t._s(e.goods_item.spec_value_str))]),i("v-uni-view",{staticClass:"flex m-t-10"},[i("v-uni-view",{staticClass:"sm m-r-10 muted"},[t._v("评分")]),i("u-rate",{attrs:{disabled:!0,value:e.goods_comment,"active-color":t.colorConfig.primary,size:36}})],1)],1)],1)],1)],1):t._e()],1)})),1)],1)},s=[]},"4ca6":function(t,e,i){var n=i("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/* 行为相关颜色 */.shop-title[data-v-35c9fd9e]{height:%?80?%;flex:1;min-width:0}.shop-title .tag[data-v-35c9fd9e]{background:linear-gradient(267deg,#ff2c3c,#f52e99);border-radius:%?6?%;padding:%?5?% %?9?%}',""]),t.exports=e},5107:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"shop-title",options:{virtualHost:!0},props:{name:{type:String},shop:{type:Object},isLink:{type:Boolean,default:!0}},data:function(){return{}},methods:{toShop:function(){var t=this.isLink,e=this.shop;t&&this.$Router.push({path:"/pages/store_index/store_index",query:{id:e.shop_id||e.id}})}}};e.default=n},5317:function(t,e,i){"use strict";i.r(e);var n=i("5107"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"5a93":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"5edb":function(t,e,i){var n=i("4ca6");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("275e143f",n,!0,{sourceMap:!1,shadowMode:!1})},"5f4c":function(t,e,i){"use strict";i.r(e);var n=i("4708"),a=i("aed6");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("ae13");var r,o=i("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"70261a50",null,!1,n["a"],r);e["default"]=c.exports},"6f4a":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{i:Number,index:{type:Number,default:function(){return 0}}},data:function(){return{downOption:{auto:!1},upOption:{auto:!1},isInit:!1}},watch:{index:function(t){this.i!==t||this.isInit||(this.isInit=!0,this.mescroll&&this.mescroll.triggerDownScroll())}},methods:{mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef||this.$refs["mescrollRef"+this.i];t&&(this.mescroll=t.mescroll)}},mescrollInit:function(t){this.mescroll=t,this.mescrollInitByRef&&this.mescrollInitByRef(),this.i===this.index&&(this.isInit=!0,this.mescroll.triggerDownScroll())}}},a=n;e.default=a},"799b":function(t,e,i){"use strict";i.r(e);var n=i("eac0"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"7c4e":function(t,e,i){"use strict";i.r(e);var n=i("cd53"),a=i("5317");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("9bf25");var r,o=i("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"35c9fd9e",null,!1,n["a"],r);e["default"]=c.exports},"7eac":function(t,e,i){"use strict";var n=i("ab77"),a=i.n(n);a.a},8312:function(t,e,i){"use strict";i.r(e);var n=i("a126"),a=i("0d00");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("7eac");var r,o=i("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"0a5a34e0",null,!1,n["a"],r);e["default"]=c.exports},"9bf25":function(t,e,i){"use strict";var n=i("5edb"),a=i.n(n);a.a},a126:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?i("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),i("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?i("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},s=[]},aa0e:function(t,e,i){"use strict";i("a9e3"),i("acd8"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&""!==t&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=n},ab77:function(t,e,i){var n=i("5a93");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0d47c85e",n,!0,{sourceMap:!1,shadowMode:!1})},ae13:function(t,e,i){"use strict";var n=i("e453"),a=i.n(n);a.a},aed6:function(t,e,i){"use strict";i.r(e);var n=i("df06"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},c88f:function(t,e,i){var n=i("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/* 行为相关颜色 */.comment-list .comment-goods[data-v-70261a50]{padding:%?20?% %?24?%}.comment-list .comment-goods .goods-desc[data-v-70261a50]{min-width:%?500?%}.comment-list .time[data-v-70261a50]{border-bottom:1px solid #e5e5e5}.comment-item .comment-img[data-v-70261a50]{margin-bottom:%?20?%}.comment-item .comment-img[data-v-70261a50]:not(:nth-last-of-type(4n+1)){margin-right:%?20?%}.comment-item .evaluate-footer[data-v-70261a50]{padding:0 %?24?% %?28?%}.comment-item .evaluate-footer .btn[data-v-70261a50]{width:%?178?%;height:%?52?%;border:1px solid #ff2c3c}',""]),t.exports=e},cd53:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"shop-title flex",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShop.apply(void 0,arguments)}}},[1==t.shop.type?i("v-uni-view",{staticClass:"xxs tag white m-r-10 flex-none"},[t._v("自营")]):t._e(),i("v-uni-view",{staticClass:"shop-name line-1 bold"},[t._v(t._s(t.shop.shop_name||t.shop.name||t.name))]),t.isLink?i("u-icon",{staticClass:"m-l-10 m-r-20",attrs:{name:"arrow-right",size:"28"}}):t._e()],1)},s=[]},df06:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("1da1")),s=i("e9dc"),r=n(i("9df2")),o=n(i("6f4a")),c={mixins:[r.default,o.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 t=this;uni.$on("refreshcomment",(function(){t.downCallback()}))},destroyed:function(){uni.$off("refreshcomment")},methods:{upCallback:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function i(){var n,a,r,o,c,u,l,d;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.type,a={page_size:t.size,page_no:t.num},console.log(n),1!=n){i.next=9;break}return i.next=6,(0,s.getUnComment)(a);case 6:i.t0=i.sent,i.next=12;break;case 9:return i.next=11,(0,s.getComment)(a);case 11:i.t0=i.sent;case 12:r=i.t0,o=r.data,c=r.code,1==c&&(u=o.lists,l=u.length,d=!!o.more,1==t.num&&(e.list=[]),e.list=e.list.concat(u),e.mescroll.endSuccess(l,d));case 16:case"end":return i.stop()}}),i)})))()},previewImage:function(t,e){console.log(t,e),uni.previewImage({current:e,urls:t})}}};e.default=c},e453:function(t,e,i){var n=i("c88f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("1a4caf9a",n,!0,{sourceMap:!1,shadowMode:!1})},eac0:function(t,e,i){"use strict";i("e25e"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{active:-1}},onLoad:function(){this.type=this.$Route.query.type||0,this.active=parseInt(this.type)},methods:{changeActive:function(t){this.active=t}}};e.default=n}}]); |