bztang-admin/addons/yun_shop/static/app/js/chunk-d77564fe.c671bc02.js

1 line
6.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d77564fe"],{2457:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".weekly-reward-order .order[data-v-990dffb6]{font-size:.8125rem;text-align:left;width:100%;margin-left:.75rem;font-weight:500}.weekly-reward-order .box[data-v-990dffb6]{padding:.8125rem}.weekly-reward-order .box-item-top[data-v-990dffb6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;color:#707070}.weekly-reward-order .flex-shrink[data-v-990dffb6]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.weekly-reward-order .w-50[data-v-990dffb6]{width:50%}.weekly-reward-order .info[data-v-990dffb6]{width:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:.55rem}.weekly-reward-order .w-25[data-v-990dffb6]{width:25%}.weekly-reward-order .info[data-v-990dffb6]::-webkit-scrollbar{display:none}.weekly-reward-order .w-33[data-v-990dffb6]{width:33%}.weekly-reward-order .nick-name[data-v-990dffb6]{margin-left:.4688rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.weekly-reward-order .content[data-v-990dffb6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.625rem}.weekly-reward-order .fz26[data-v-990dffb6]{font-size:.8125rem}.weekly-reward-order .bold[data-v-990dffb6]{font-weight:500}.weekly-reward-order .line[data-v-990dffb6]{width:100%;height:1px;background:#ececec;margin:.625rem 0}.weekly-reward-order .mt-10[data-v-990dffb6]{margin-top:.3125rem}.weekly-reward-order .main-color[data-v-990dffb6]{color:#000}.weekly-reward-order .column[data-v-990dffb6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.weekly-reward-order .box-item[data-v-990dffb6]{background:#fff;border-radius:.625rem;padding:.4688rem .25rem;margin-bottom:.625rem}",""]),e.exports=t},"59b6":function(e,t,a){"use strict";a("5a17")},"5a17":function(e,t,a){var i=a("2457");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("499e").default;r("899948c8",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var i=document.documentElement,r=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:r&&(e=r.scrollTop),e},getClientHeight:function(){var e=0;return e=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(r.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},c65e:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"weekly-reward-order"},[a("c-title",{attrs:{text:e.text}}),a("div",{staticClass:"box"},e._l(e.list,(function(t){return a("div",{staticClass:"box-item"},[a("div",{staticClass:"box-item-top"},[a("div",{staticClass:"column w-50"},[a("span",{staticStyle:{"text-align":"left",width:"100%","margin-left":"0.75rem"}},[e._v("订单编号")]),a("span",{staticClass:"main-color mt-10 order"},[e._v(e._s(t.order_sn))])]),a("div",{staticClass:"column w-25"},[a("span",[e._v("订单金额")]),a("span",{staticClass:"main-color mt-10 fz26 bold"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))])]),a("div",{staticClass:"column w-25"},[a("span",[e._v("商品数量")]),a("span",{staticClass:"main-color mt-10 fz26 bold"},[e._v(e._s(t.nums))])])]),a("div",{staticClass:"line"}),t.goods&&0!==t.goods.length?e._l(t.goods,(function(t){return a("div",{staticClass:"content",staticStyle:{flex:"2"}},[a("div",{staticClass:"info"},[a("van-image",{staticClass:"flex-shrink",attrs:{width:"2rem",round:"",height:"2rem",src:t.thumb}}),a("span",{staticClass:"nick-name fz26 bold"},[e._v(e._s(t.title))])],1),a("div",{staticClass:"w-25 fz26 bold"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))]),a("div",{staticClass:"w-25 fz26 bold"},[e._v(e._s(t.total))])])})):e._e()],2)})),0)],1)},r=[],l=(a("4056"),a("44bf")),n=(a("a9e3"),a("99af"),a("ac0d")),o={components:{VanImage:l["a"]},mixins:[n["a"]],data:function(){return{text:"",list:[],isLoadMore:!0,last_page:1,current_page:1}},activated:function(){this.isLoadMore=!0;var e=Number(this.$route.params.num);1==e?(this.text="部门订单",this.fun.setWXTitle("部门订单")):(this.text="区域订单",this.fun.setWXTitle("区域订单")),this.getData()},methods:{getMoreData:function(){if(this.isLoadMore=!1,!(this.current_page>=this.last_page)){var e=this.current_page+1;this.getData(e)}},getData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a="plugin.weekly-rewards.frontend.controllers.center.team-order";2==Number(this.$route.params.num)&&(a="plugin.weekly-rewards.frontend.controllers.center.area-order"),$http.get(a,{page:t},"").then((function(a){if(e.isLoadMore=!0,a.result){var i=a.data;e.current_page=i.current_page,e.last_page=i.last_page,e.list=1==t?i.data:e.list.concat(i.data)}else e.$toast(a.msg)}))}}},s=o,d=(a("59b6"),a("2877")),c=Object(d["a"])(s,i,r,!1,null,"990dffb6",null);t["default"]=c.exports}}]);