bztang-admin/addons/yun_shop/static/app/js/chunk-d1c19170.4bc19e47.js

1 line
7.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d1c19170"],{"43d6":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"client-page"},[i("c-title",{attrs:{hide:!1,text:"客户评价"}}),i("div",{staticClass:"flex-a-c flex-j-sb client-title"},[i("div",[t._v("评价")]),i("div",{staticClass:"title-right",on:{click:t.assessmentType}},[i("div",[t._v(t._s(t.commentName)),i("span",{staticClass:"iconfont icon-member-bottom"})]),i("div",{staticClass:"type-list ",class:t.commentTypeShow?"display":""},t._l(t.commentTypeArr,(function(e,a){return i("block",{key:a},[i("div",{on:{click:function(i){return i.stopPropagation(),t.commentTypeOn(e.value,e.name)}}},[t._v(t._s(e.name))])])})),1)])]),t.commentList.length>0?i("div",{staticClass:"client-list"},[t._l(t.commentList,(function(e,a){return i("block",{key:a},[i("div",{staticClass:"client-item"},[i("div",{staticClass:"client-head flex-a-c flex-j-sb"},[i("div",{staticClass:"flex-a-c"},[i("div",{staticClass:"img"},[i("van-image",{attrs:{width:"1.5625rem",height:"1.5625rem",round:"",src:e.member&&e.member.avatar}})],1),i("div",[i("div",{staticClass:"title"},[t._v(t._s(e.member&&e.member.nickname))]),i("span",{staticClass:"time"},[t._v(t._s(e.created_at))])])]),i("div",{staticClass:"state ",class:"推荐"===e.comment_type_name?"on":""},[t._v(t._s(e.comment_type_name))])]),i("div",{staticClass:"client-content"},[i("span",[t._v(t._s(e.comment))]),e.images.length>0?i("div",{staticClass:"evaluateImg-list flex"},[i("viewer",{attrs:{images:e.images}},t._l(e.images,(function(t,e){return i("block",{key:e},[i("van-image",{staticClass:"evaluate-img",attrs:{width:"4.375rem",height:"4.375rem",src:t}})],1)})),1)],1):t._e()]),i("div",{staticClass:"goods-footer flex"},[i("div",[i("van-image",{attrs:{width:"2.8125rem",height:"2.8125rem",src:e.order_goods&&e.order_goods.thumb}})],1),i("div",{staticClass:"title ell"},[t._v(t._s(e.order_goods&&e.order_goods.title))])])])])})),i("div",{staticClass:"mb20"})],2):i("div",{staticClass:"empty"},[i("van-empty",{attrs:{description:"空空如也"}})],1)],1)},o=[],n=i("2909"),s=(i("4056"),i("44bf")),r=(i("a9e3"),i("99af"),i("ac0d")),l=i("2b57"),c=i("6968"),d={mixins:[r["a"]],components:{VanImage:s["a"],cTitle:c["a"],yzWechatShareImg:l["a"]},data:function(){return{cstoreId:null,commentType:0,commentName:"评价类型",commentTypeShow:!1,commentTypeArr:[{name:"推荐",value:3},{name:"一般",value:2},{name:"不推荐",value:1}],isLoadMore:!0,page:1,totalPage:0,commentList:[]}},activated:function(){var t;""!==(null!==(t=this.$route.query.storeId)&&void 0!==t?t:"")&&(this.cstoreId=Number(this.$route.query.storeId),this.storeGoodsList())},methods:{assessmentType:function(){this.commentTypeShow=!this.commentTypeShow},commentTypeOn:function(t,e){this.commentType=t,this.commentName=e,this.commentTypeShow=!1,this.storeGoodsList()},storeGoodsList:function(){var t=this,e={cstore_id:this.cstoreId,page:this.page,comment_type:this.commentType};$http.post("plugin.coupon-store.frontend.store-manage.commentList",e,"正在获取").then((function(e){if(1==e.result){var i=e.data;t.isLoadMore=!0,t.totalPage=i.last_page,t.totalPage||(t.page=0),t.commentList=i.data}else t.page=t.page-1,t.isLoadMore=!1,t.$dialog.alert({message:e.msg})}),(function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.totalPage)){this.page=this.page+1;var e={store_id:this.cstoreId,page:this.page};$http.post("plugin.coupon-store.frontend.store-manage.commentList",e,"正在获取").then((function(e){if(1==e.result){var i=e.data,a=i.data;t.isLoadMore=!0,t.commentList=[].concat(Object(n["a"])(t.commentList),Object(n["a"])(a))}else t.page=t.page-1,t.isLoadMore=!1,t.$dialog.alert({message:e.msg})}),(function(t){}))}},handleScroll:function(){this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()&&this.isLoadMore&&this.getMoreData()}}},m=d,g=m,h=(i("ab11d"),i("2877")),p=Object(h["a"])(g,a,o,!1,null,"1e50d2d0",null);e["default"]=p.exports},ab11d:function(t,e,i){"use strict";i("ebee")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},ebee:function(t,e,i){var a=i("f22e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("8f13f6b2",a,!0,{sourceMap:!1,shadowMode:!1})},f22e:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'.client-page[data-v-1e50d2d0]{margin:.625rem .625rem 0 .625rem}.mb20[data-v-1e50d2d0]{height:1.25rem;clear:both}.client-title[data-v-1e50d2d0]{padding-bottom:.7813rem}.client-title .title-right[data-v-1e50d2d0]{position:relative}.client-title .title-right .iconfont[data-v-1e50d2d0]{margin-left:.1563rem}.client-title .type-list[data-v-1e50d2d0]{background-color:#fff;top:1.875rem;right:.3125rem;position:absolute;display:none;z-index:99}.client-title .display[data-v-1e50d2d0]{display:block}.client-title .type-list div[data-v-1e50d2d0]{-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;padding:.3125rem 1.875rem .3125rem .625rem;transition:.5s;-webkit-transition:.5s;font-size:.875rem}.client-title .type-list div[data-v-1e50d2d0]:hover{background:#f5f5f5}.ell[data-v-1e50d2d0]{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.client-item[data-v-1e50d2d0]{background-color:#fff;padding:.8125rem .8438rem .625rem .8125rem;margin-bottom:.625rem}.client-head .img[data-v-1e50d2d0]{margin-right:.5625rem}.client-head .title[data-v-1e50d2d0]{font-size:.6875rem;font-weight:700;color:#222;text-align:left}.client-head .time[data-v-1e50d2d0]{font-size:.625rem;font-weight:700;color:#7b7b7b}.client-head .state[data-v-1e50d2d0]{font-size:.6875rem;font-weight:700;color:#6c6c6c}.client-head .on[data-v-1e50d2d0]{color:#ff3a00}.client-content[data-v-1e50d2d0]{margin-top:.8125rem;padding-bottom:.6875rem;position:relative;text-align:left;word-wrap:break-word}.client-content[data-v-1e50d2d0]:before{content:" ";position:absolute;left:0;bottom:0;width:100%;height:2rpx;border-top:2rpx solid #e9e9e9;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.client-content text[data-v-1e50d2d0]{font-weight:700;line-height:1.125rem}.goods-footer[data-v-1e50d2d0]{margin:.6875rem .5938rem 0 0}.goods-footer .title[data-v-1e50d2d0]{text-align:left;height:2.375rem;margin-left:.5938rem;font-size:.8125rem;color:#222;line-height:1.25rem}.client-content text[data-v-1e50d2d0]{font-size:.75rem;color:#4c4c4c;display:inline-block;margin-bottom:.5313rem}.client-content .evaluateImg-list[data-v-1e50d2d0]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.client-content .evaluate-img[data-v-1e50d2d0]{margin-right:.3438rem}.empty[data-v-1e50d2d0]{background-color:#fff}',""]),t.exports=e}}]);