1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7947c0b8"],{"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-tabs",{on:{click:t.swichTabTItem},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[a("van-tab",{attrs:{name:"0",title:"待评价"}}),a("van-tab",{attrs:{name:"1",title:"已评价"}})],1),a("div",{staticStyle:{width:"100%",height:"0.0625rem"}}),a("div",{staticStyle:{"margin-top":"0.625rem"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.selected,expression:"selected==0"}],staticClass:"orderhoet"},t._l(t.wait,(function(e,i){return a("div",{key:i,staticClass:"listWarp"},t._l(e.has_many_order_goods,(function(i,o){return a("div",{key:o,staticClass:"goods"},[a("div",{staticClass:"titleID"},[t._v("订单号:"+t._s(e.order_sn))]),a("div",{staticClass:"product"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:i.thumb}})]),a("div",{staticClass:"warp"},[a("ul",{staticClass:"inner"},[a("li",{staticClass:"name"},[t._v(t._s(t._f("escapeTitle")(i.title)))]),i.goods_option_title?a("li",{staticClass:"option"},[t._v("规格: "+t._s(i.goods_option_title))]):t._e()]),a("ul",{staticClass:"price"},[a("li",{staticClass:"commodity_price"},[a("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(i.price)+" ")]),a("li"),a("li",{staticClass:"option"},[t._v(" ×"+t._s(i.total))])])]),a("div",{staticClass:"evaluate"},[a("span",{on:{click:function(a){return t.toComment(e.id,i)}}},[t._v("去评价")])])])])})),0)})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.selected,expression:"selected==1"}],staticClass:"orderhoet2"},t._l(t.comment,(function(e,i){return a("div",{key:i},t._l(e.has_many_order_goods,(function(e,i){return a("div",{key:i,staticClass:"goodsinfo"},[a("div",{staticClass:"goods",staticStyle:{"padding-top":"0.625rem"}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"warp"},[a("ul",{staticClass:"inner"},[a("li",{staticClass:"name"},[t._v(t._s(t._f("escapeTitle")(e.title)))]),e.goods_option_title?a("li",{staticClass:"option"},[t._v("规格: "+t._s(e.goods_option_title))]):t._e()]),a("ul",{staticClass:"price"},[a("li",{staticClass:"commodity_price"},[a("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(e.price)+" ")]),a("li",{staticClass:"option"},[t._v(" ×"+t._s(e.total))])])]),a("div",{staticClass:"butts"},[a("span",{on:{click:function(a){return t.opration({},e)}}},[t._v("查看评价")]),t._l(e.buttons,(function(i,o){return["查看评价"!=i.name?a("span",{key:o,staticClass:"add-evaluate",on:{click:function(a){return t.opration(i,e)}}},[t._v(t._s(i.name))]):t._e()]}))],2)])])})),0)})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.selected,expression:"selected==2"}],staticClass:"orderhoet3"},t._l(t.other,(function(e,i){return a("div",{key:i,staticClass:"pall"},[a("router-link",{attrs:{to:{name:"othercommentdetails",params:{comment_id:1},query:{i:t.toi}}}},[a("div",{staticClass:"goodsinfo"},[a("div",{staticClass:"goods",staticStyle:{"padding-top":"0.625rem"}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"warp"},[a("div",{staticClass:"inner"},[a("div",{staticClass:"name"},[t._v(" "+t._s(e.title)+" ")]),a("div",{staticClass:"option2"},[a("font",[a("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(e.price))])],1)])])])])])],1)})),0)])],1)},o=[],s=(a("e7e5"),a("d399")),d=(a("a9e3"),a("99af"),a("6968")),n=a("ac0d"),l={mixins:[n["a"]],data:function(){return{toi:this.fun.getKeyByI(),selected:"0",wait:[],waitLoadMore:!1,waitPage:1,waitLastPage:0,comment:[],commentLoadMore:!1,commentPage:1,commentLastPage:0,other:[]}},methods:{swichTabTItem:function(){0==this.selected||1==this.selected?(0==this.selected?(this.wait=[],this.waitLoadMore=!1,this.waitLastPage=0,this.waitPage=1):1==this.selected&&1==this.selected&&(this.comment=[],this.commentLoadMore=!1,this.commentLastPage=0,this.commentPage=1),this.getNetData(this.selected)):this.getOtherData()},initData:function(){this.toi=this.fun.getKeyByI(),this.selected="0",this.wait=[],this.waitLoadMore=!1,this.waitPage=1,this.waitLastPage=0,this.comment=[],this.commentLoadMore=!1,this.commentPage=1,this.commentLastPage=0,this.other=[]},handleScroll:function(){this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()&&(this.waitLoadMore||this.commentLoadMore)&&this.getMoreData()},opration:function(t,e){1==t.value?this.$router.push({name:"addevaluate",params:{item:e,order_id:e.order.id},query:{i:this.toi}}):this.$router.push({name:"CommentDetails",params:{order_id:e.has_one_comment.order_id,goods_id:e.has_one_comment.goods_id,comment_id:e.has_one_comment.id,order_goods_id:e.id,uid:0},query:{i:this.toi}})},toComment:function(t,e){this.$router.push({name:"evaluate",params:{order_id:t,id:e.id},query:{i:this.toi}})},getNetData:function(t){var e=this,a={status:t,page:"0"==t?this.waitPage:this.commentPage};$http.get("order.my-comment.paging",a,"获取中").then((function(a){1==a.result?0==t?(e.waitLoadMore=!0,e.waitLastPage=a.data.list.last_page,e.waitLastPage||(e.waitLastPage=0),a.data.list.data.length>0&&(e.wait=a.data.list.data)):1==t&&(e.commentLoadMore=!0,e.commentLastPage=a.data.list.last_page,e.commentLastPage||(e.commentLastPage=0),a.data.list.data.length>0&&(e.comment=a.data.list.data)):Object(s["a"])(a.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if("0"==this.selected){this.waitLoadMore=!1;var e={status:Number(this.selected),page:"0"==this.selected?this.waitPage:this.commentPage};if(this.waitPage>=this.waitLastPage)return;this.waitPage=this.waitPage+1,e.page=this.waitPage,$http.get("order.my-comment.paging",e,"加载中").then((function(e){if(t.waitLoadMore=!0,1!==e.result)return t.waitPage=t.waitPage-1,void(t.waitLoadMore=!1);t.wait=t.wait.concat(e.data.list.data)})).catch((function(t){}))}else if("1"==this.selected){this.commentLoadMore=!1;var a={status:Number(this.selected),page:"0"==this.selected?this.waitPage:this.commentPage};if(this.commentPage>=this.commentLastPage)return;this.commentPage=this.commentPage+1,a.page=this.commentPage,$http.get("order.my-comment.paging",a,"加载中").then((function(e){if(t.commentLoadMore=!0,1!==e.result)return t.commentPage=t.commentPage-1,void(t.commentLoadMore=!1);t.comment=t.comment.concat(e.data.list.data)})).catch((function(t){}))}},getOtherData:function(){var t=this;$http.get("order.myComment.goods",{i:this.fun.getKeyByI(),type:this.fun.getTyep()},"正在获取...").then((function(e){if(1==e.result){var a=e.data;t.other=a.list}}),(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:d["a"]}},r=l,c=r,m=(a("dec1"),a("2877")),g=Object(m["a"])(c,i,o,!1,null,"113f2d5a",null);e["default"]=g.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,o=document.body,s={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(){}}}},b424e:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'#detailed a[data-v-113f2d5a]{color:#000}#detailed .butts[data-v-113f2d5a]{text-align:right;color:#333}#detailed .butts span[data-v-113f2d5a]{padding:.25rem .625rem;border-radius:15px;border:.0625rem solid #b1a6a6;display:inline-block;margin-right:.5rem}#detailed .orderhoet[data-v-113f2d5a],#detailed .orderhoet2[data-v-113f2d5a],#detailed .orderhoet3[data-v-113f2d5a]{margin-bottom:0}#detailed .orderhoet .titleID[data-v-113f2d5a]{font-size:14px;text-align:left;line-height:2.25rem;padding:0 .875rem}#detailed .orderhoet .listWarp[data-v-113f2d5a] :after{content:"";display:block;clear:both}#detailed .pj[data-v-113f2d5a]{background:#fff;padding:0 .625rem}#detailed .pj p[data-v-113f2d5a]{text-align:left;margin:0}#detailed .pj img[data-v-113f2d5a]{width:100%}#detailed .pic[data-v-113f2d5a]{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;padding:.625rem;background:#fff}#detailed .pic div[data-v-113f2d5a]{-webkit-box-flex:33%;-webkit-flex:33% 0 0;-ms-flex:33% 0 0px;flex:33% 0 0}#detailed .pic div img[data-v-113f2d5a]{width:90%}#detailed #user div[data-v-113f2d5a]:first-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:.3125rem .125rem}#detailed #user div:first-child img[data-v-113f2d5a]{width:90%;border-radius:50%}#detailed #user div[data-v-113f2d5a]:nth-child(2){-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:left}#detailed #user div[data-v-113f2d5a]:nth-child(3){color:#908a8a;font-size:12px;padding-right:.625rem}#detailed .mint-navbar .mint-tab-item[data-v-113f2d5a]{padding:.875rem 0}#detailed .goodsinfo[data-v-113f2d5a]{padding:0;background:#fff;position:relative}#detailed .goodsinfo .hrt[data-v-113f2d5a]{border-top:.0625rem solid #e0e0e0;margin:.625rem 0}#detailed .goods[data-v-113f2d5a]:after{content:"";display:block;clear:both}#detailed .goods[data-v-113f2d5a]{margin-top:0;border-bottom:.0625rem solid #ebebeb;text-align:right;padding-bottom:.5rem;position:relative;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}#detailed .goods .img[data-v-113f2d5a]{width:6rem;height:6rem;margin-left:.875rem;margin-bottom:.625rem;margin-right:.625rem;float:left;display:inline-block}#detailed .goods .img img[data-v-113f2d5a]{width:100%;border-radius:10px}#detailed .goods .warp[data-v-113f2d5a]{width:68%;min-height:4.5rem;padding:0 1rem 0 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#detailed .goods .warp .inner[data-v-113f2d5a]{width:70%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:left}#detailed .goods .warp .inner .name[data-v-113f2d5a]{text-align:left;color:#333;margin-bottom:.625rem;font-size:14px}#detailed .goods .warp .price[data-v-113f2d5a]{width:30%;-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}#detailed .goods .warp .price p[data-v-113f2d5a]{margin-top:0}#detailed .goods .warp .price .yijp[data-v-113f2d5a]{background:#888;padding:0 .3125rem;color:#fff}#detailed .goods .commodity_price[data-v-113f2d5a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:.625rem;font-size:14px}#detailed .goods .evaluate span[data-v-113f2d5a]{border:.0625rem solid #f15353;border-radius:15px;padding:.25rem .625rem;text-align:center;display:inline-block;color:#f15353;margin-right:.5rem}#detailed .goods .option[data-v-113f2d5a]{color:#8c8c8c;font-size:12px}#detailed .goods .option[data-v-113f2d5a],#detailed .goods .option2[data-v-113f2d5a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#detailed .goods .option2[data-v-113f2d5a]{color:#e84e40;font-size:14px;width:100%}#detailed .goods .option2 font[data-v-113f2d5a]{float:left}#detailed .qtpl[data-v-113f2d5a]{text-align:right;width:100%}#detailed .qtpl span[data-v-113f2d5a]{background:#fff;border:.0625rem solid #b1a6a6;padding:.125rem 1.25rem;border-radius:.625rem}#detailed .pall[data-v-113f2d5a]{margin-bottom:.625rem}',""]),t.exports=e},d620:function(t,e,a){var i=a("b424e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("39ebb86e",i,!0,{sourceMap:!1,shadowMode:!1})},dec1:function(t,e,a){"use strict";a("d620")}}]); |