bztang-admin/addons/yun_shop/static/app/js/chunk-1873ec76.a5c0ff97.js

1 line
15 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1873ec76"],{"265d":function(t,e,a){var i=a("e4bc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("6f68c62c",i,!0,{sourceMap:!1,shadowMode:!1})},"4c9c":function(t,e,a){"use strict";a("265d")},"81bc":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"detailed"}},[a("c-title",{attrs:{hide:!1,text:"我的评价"}}),a("van-sticky",[a("van-tabs",{attrs:{sticky:"","title-inactive-color":"#999999","title-active-color":"#333333"},on:{click:t.swichTabTItem},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[a("van-tab",{attrs:{name:"0",title:"待评价·"+t.waitLength}}),a("van-tab",{attrs:{name:"1",title:"已评价"+(t.commentLength?"·"+t.commentLength:"")}})],1)],1),a("div",{staticStyle:{width:"100%",height:"0.0625rem"}}),a("div",{staticClass:"orderhoet-main"},[a("keep-alive",[a("recommended",{directives:[{name:"show",rawName:"v-show",value:0==t.selected,expression:"selected == 0"}],attrs:{commList:t.wait}})],1),a("keep-alive",[1==t.selected?a("rated",{attrs:{commList:t.wait}}):t._e()],1)],1),a("div",{staticClass:"mh60"})],1)},o=[],r=a("2909"),d=(a("e7e5"),a("d399")),n=(a("a9e3"),a("99af"),a("6968")),s=a("ac0d"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"orderhoet"},[t.commList.length>0?a("div",t._l(t.commList,(function(e,i){return a("div",{key:i,staticClass:"listWarp"},[a("div",{staticClass:"goods"},[a("div",{staticClass:"titleID"},[t._v("订单号:"+t._s(e.order&&e.order.order_sn))]),a("div",{staticClass:"product flex"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"warp"},[a("ul",{staticClass:"inner flex-j-sb"},[a("li",{staticClass:"name ell"},[t._v(t._s(t._f("escapeTitle")(e.title)))]),a("li",{staticClass:"commodity_price name"},[a("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(e.price)+" ")])]),a("ul",{staticClass:"price flex-a-c flex-j-sb"},[e.goods_option_title?a("li",{staticClass:"option"},[t._v("规格: "+t._s(e.goods_option_title))]):t._e(),a("li",{staticClass:"option total"},[t._v(" ×"+t._s(e.total))])]),a("div",{staticClass:"wrap-eval flex"},[a("div",{staticClass:"evaluate",on:{click:function(a){return t.toComment(e.id,e.order)}}},[t._v("去评价")])])])])])])})),0):a("van-empty",{attrs:{description:"暂无数据"}})],1)},c=[],f=(a("14d9"),{name:"",props:{selected:{type:Number,default:0},commList:{type:Array,default:function(){return[]}}},components:{},data:function(){return{toi:this.fun.getKeyByI()}},computed:{},watch:{},methods:{toComment:function(t,e){this.$router.push({name:"evaluate",params:{order_id:e.id,id:t},query:{i:this.toi}})}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),m=f,g=(a("f638"),a("2877")),h=Object(g["a"])(m,l,c,!1,null,"095dac9f",null),u=h.exports,p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"orderhoet2"},[t.commList.length>0?a("div",t._l(t.commList,(function(e,i){return a("div",{key:i},[a("div",{staticClass:"goods-rated"},[a("h3",[t._v(t._s(e.has_one_comment&&e.has_one_comment.content))]),a("div",{staticClass:"goods-rate flex-a-c"},[a("div",{staticClass:"rate flex-a-c"},[a("h4",[t._v("评分:")]),a("van-rate",{attrs:{readonly:"",size:12,color:"var(--themeBaseColor)"},model:{value:e.has_one_comment.level,callback:function(a){t.$set(e.has_one_comment,"level",a)},expression:"item.has_one_comment.level"}})],1),a("div",{staticClass:"option-right flex-a-c"},[e.goods_option_title?a("div",[t._v("规格: "+t._s(e.goods_option_title)+",")]):t._e(),a("div",{staticClass:"option total"},[t._v("X"+t._s(e.total))])])]),a("div",{staticClass:"goods-wrap flex"},[a("img",{staticClass:"images",attrs:{src:e.thumb}}),a("div",{staticClass:"info-wrap flex-a-c flex-j-sb"},[a("h4",{staticClass:"pl"},[t._v(t._s(t._f("escapeTitle")(e.title)))]),a("h5",[t._v(t._s(t.$i18n.t("money"))+" "+t._s(e.price))])])]),a("div",{staticClass:"btn-group flex"},[a("div",{staticClass:"goods-btn evaluate",on:{click:function(a){return t.opration({},e)}}},[t._v(" 查看评价 ")]),t._l(e.buttons,(function(i,o){return a("block",{key:o},["查看评价"!=i.name?a("div",{staticClass:"goods-btn",on:{click:function(a){return t.opration(i,e)}}},[t._v(" "+t._s(i.name)+" ")]):t._e()])}))],2)])])})),0):a("van-empty",{attrs:{description:"暂无数据"}})],1)},b=[],v={name:"",props:{commList:{type:Array,default:function(){return[]}}},components:{},data:function(){return{toi:this.fun.getKeyByI()}},computed:{},watch:{},methods:{opration:function(t,e){1==t.value?this.$router.push({name:"addevaluate",params:{goods_id:e.goods_id,order_id:e.order.id,id:e.id},query:{i:this.toi}}):this.$router.push({name:"CommentDetails",params:{order_id:e.order.id,goods_id:e.goods_id,comment_id:e.has_one_comment.id,order_goods_id:e.id,uid:0},query:{i:this.toi}})}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},w=v,x=(a("4c9c"),Object(g["a"])(w,p,b,!1,null,"281f1b44",null)),_=x.exports,k={mixins:[s["a"]],data:function(){return{toi:this.fun.getKeyByI(),selected:"0",wait:[],isLoadMore:!0,waitPage:1,waitLastPage:0,commentLength:"",waitLength:"",commentLoadMore:!1,commentPage:1,commentLastPage:0,other:[]}},methods:{swichTabTItem:function(){this.wait=[],this.isLoadMore=!1,this.waitLastPage=0,this.waitPage=1,this.getNetData(this.selected)},initData:function(){this.commentLength="",this.waitLength="",this.toi=this.fun.getKeyByI(),this.selected="0",this.wait=[],this.isLoadMore=!1,this.waitPage=1,this.waitLastPage=0,this.other=[]},getNetData:function(t){var e=this,a={status:t,page:this.waitPage};$http.get("order.my-comment.paging",a,"获取中").then((function(a){if(1==a.result){var i;e.isLoadMore=!0,e.waitLastPage=a.data.list.last_page;var o=(null===(i=a.data)||void 0===i||null===(i=i.list)||void 0===i?void 0:i.data)||[];e.waitLastPage||(e.waitLastPage=0),1===Number(t)?e.commentLength=o.length:e.waitLength=o.length,e.wait=o}else Object(d["a"])(a.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.waitPage>=this.waitLastPage)){this.waitPage+=1;var e={status:Number(this.selected),page:this.waitPage};$http.post("order.my-comment.paging",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data,i=a.list.data;t.wait=[].concat(Object(r["a"])(t.wait),Object(r["a"])(i)),1===Number(t.selected)?t.commentLength=t.wait.length:t.waitLength=t.wait.length}else t.waitLastPage=t.waitLastPage-1,t.isLoadMore=!1}),(function(t){}))}}},activated:function(){var t=this;this.initData(),this.toi=this.fun.getKeyByI(),this.getNetData(this.selected),this.$on("selected",(function(e){t.selected=e}))},created:function(){},components:{cTitle:n["a"],recommended:u,rated:_}},y=k,L=y,C=(a("ea3e"),Object(g["a"])(L,i,o,!1,null,"f88d141a",null));e["default"]=C.exports},"9ec1":function(t,e,a){var i=a("da79");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("2c75d7c9",i,!0,{sourceMap:!1,shadowMode:!1})},a3e2d:function(t,e,a){var i=a("fb00");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("1fa3b325",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=document.documentElement,o=document.body,r={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,i.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(){}}}},da79:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".pl[data-v-f88d141a]{white-space:nowrap}.ell[data-v-f88d141a],.pl[data-v-f88d141a]{overflow:hidden;text-overflow:ellipsis}.ell[data-v-f88d141a]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.mh60[data-v-f88d141a]{height:60px;clear:both}#detailed[data-v-f88d141a] .van-tab--active{font-weight:700}#detailed[data-v-f88d141a] .van-tabs__nav--line{padding-bottom:8px}.orderhoet-main[data-v-f88d141a]{margin:.5rem .75rem 0 .75rem}#detailed a[data-v-f88d141a]{color:#000}#detailed .butts[data-v-f88d141a]{text-align:right;color:#333}#detailed .butts span[data-v-f88d141a]{padding:.25rem .625rem;border-radius:15px;border:.0625rem solid #b1a6a6;display:inline-block;margin-right:.5rem}#detailed .pj[data-v-f88d141a]{background:#fff;padding:0 .625rem}#detailed .pj p[data-v-f88d141a]{text-align:left;margin:0}#detailed .pj img[data-v-f88d141a]{width:100%}#detailed .pic[data-v-f88d141a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;background:#fff}#detailed .mint-navbar .mint-tab-item[data-v-f88d141a]{padding:.875rem 0}#detailed .qtpl[data-v-f88d141a]{text-align:right;width:100%}#detailed .qtpl span[data-v-f88d141a]{background:#fff;border:.0625rem solid #b1a6a6;padding:.125rem 1.25rem;border-radius:.625rem}#detailed .pall[data-v-f88d141a]{margin-bottom:.625rem}",""]),t.exports=e},e4bc:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".orderhoet2[data-v-281f1b44],.orderhoet3[data-v-281f1b44]{margin-bottom:0}.goods-rated[data-v-281f1b44]{background-color:#fff;border-radius:.5rem;padding:.75rem;margin:0 0 .5rem 0}.goods-rated h3[data-v-281f1b44]{font-size:.875rem;font-weight:400;line-height:1.25rem;color:#333;text-align:left;padding:0 0 1.25rem 0;word-wrap:break-word;white-space:pre-wrap}.goods-rated .goods-rate[data-v-281f1b44]{padding:0 0 .75rem 0}.goods-rated .goods-rate .rate[data-v-281f1b44]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.goods-rated .goods-rate .option-right[data-v-281f1b44],.goods-rated .goods-rate .rate h4[data-v-281f1b44]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#999}.goods-rated .goods-rate .option-right[data-v-281f1b44]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.goods-rated .goods-rate .option-right .total[data-v-281f1b44]{padding:0 0 0 .1875rem}.goods-rated .goods-wrap[data-v-281f1b44]{background-color:#f5f5f5;border-radius:.125rem;width:100%}.goods-rated .goods-wrap .info-wrap[data-v-281f1b44]{width:87%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .75rem 0 0}.goods-rated .goods-wrap .info-wrap h4[data-v-281f1b44]{max-width:70%;font-size:.8125rem;font-weight:400;line-height:1.1875rem;color:#666;text-align:left}.goods-rated .goods-wrap .info-wrap h5[data-v-281f1b44]{width:30%;font-size:.8125rem;font-weight:700;line-height:1.1875rem;color:#333;text-align:right}.goods-rated .goods-wrap .images[data-v-281f1b44]{width:2.1875rem;height:2.1875rem;margin:0 .5rem 0 0;border-radius:.125rem 0 0 .125rem}.goods-rated .btn-group[data-v-281f1b44]{padding:.75rem 0 0 0;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.goods-rated .goods-btn[data-v-281f1b44]{min-width:3.8125rem;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.25rem 1.125rem;border:.0625rem solid #d6d6dc;border-radius:1.125rem;font-weight:400;font-size:.75rem;line-height:1.0625rem;color:#aaaab3;margin:0 0 0 .75rem;cursor:pointer}.goods-rated .evaluate[data-v-281f1b44]{padding:.25rem .375rem}",""]),t.exports=e},ea3e:function(t,e,a){"use strict";a("9ec1")},f638:function(t,e,a){"use strict";a("a3e2d")},fb00:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".pl[data-v-095dac9f]{white-space:nowrap}.ell[data-v-095dac9f],.pl[data-v-095dac9f]{overflow:hidden;text-overflow:ellipsis}.ell[data-v-095dac9f]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.orderhoet-main[data-v-095dac9f]{margin:.5rem .75rem 0 .75rem}.wrap-eval[data-v-095dac9f]{width:100%;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding:.75rem 0 0 0}.wrap-eval .evaluate[data-v-095dac9f]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#fff;padding:.25rem .75rem;border-radius:1.125rem;background-color:var(--themeBaseColor)}.orderhoet[data-v-095dac9f]{margin-bottom:0}.orderhoet .listWarp[data-v-095dac9f]{margin:0 0 .5rem 0;border-radius:.5rem}.orderhoet .titleID[data-v-095dac9f]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#999;text-align:left;padding:0 0 .5rem 0;word-wrap:break-word;white-space:pre-wrap}.goods[data-v-095dac9f]{background-color:#fff;padding:.75rem;border-radius:.5rem;margin:0 0 .5rem 0}.goods .img[data-v-095dac9f]{width:4.375rem;display:inline-block;margin:0 .25rem 0 0}.goods .img img[data-v-095dac9f]{width:4.375rem;height:4.375rem;border-radius:.25rem}.goods .warp[data-v-095dac9f]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;min-height:4.375rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.goods .warp .inner[data-v-095dac9f]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:left;padding:0 0 .5rem 0}.goods .warp .inner .name[data-v-095dac9f]{text-align:left;color:#333;font-size:.8125rem;line-height:1.1875rem}.goods .warp .inner .commodity_price[data-v-095dac9f]{min-width:38%;font-weight:700;text-align:right}.goods .warp .price[data-v-095dac9f]{width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box}.goods .warp .price li[data-v-095dac9f]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#999}.goods .warp .price p[data-v-095dac9f]{margin-top:0}.goods .warp .price .yijp[data-v-095dac9f]{background:#888;padding:0 .3125rem;color:#fff}.goods .option[data-v-095dac9f]{color:#999;font-size:.75rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.goods .total[data-v-095dac9f]{text-align:right}.goods .option2[data-v-095dac9f]{color:#e84e40;font-size:.875rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:100%}.goods .option2 font[data-v-095dac9f]{float:left}",""]),t.exports=e}}]);