bztang-admin/addons/yun_shop/static/app/js/chunk-2b41731a.9a5e744b.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b41731a"],{"17da":function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,".goodsBoxHeight[data-v-c76ec022]{max-height:7.3rem;position:relative}.moreGoods[data-v-c76ec022]{position:absolute;bottom:.3rem;width:100%;font-size:.69rem;color:#666;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.moreGoods .iconfont[data-v-c76ec022]{color:#666}.list[data-v-c76ec022]{background:#fff}.forListC[data-v-c76ec022],.getMore[data-v-c76ec022]{margin-bottom:.63rem}.getMore[data-v-c76ec022]{color:#666;overflow:hidden}.yearBox[data-v-c76ec022]{padding:.63rem 0;background:#fff;padding-right:1.09rem;padding-left:.94rem;overflow:hidden;margin:.63rem 0;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.yearBox .yearRight[data-v-c76ec022]{text-align:right}.yearBox .yearRight[data-v-c76ec022],.yearBox .yearTxt[data-v-c76ec022]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.yearBox .yearTxt[data-v-c76ec022]{text-align:left}.goodsBox[data-v-c76ec022]{background:#f2f2f2;padding:.75rem;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:.63rem}.goodsBox .shopList[data-v-c76ec022]{margin-bottom:.75rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.goodsBox .shopList[data-v-c76ec022],.goodsBox .shopList .goodsDetail[data-v-c76ec022]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.goodsBox .shopList .goodsDetail[data-v-c76ec022]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.38rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left;overflow:hidden}.goodsBox .shopList .goodsDetail .goodsDetailTxt[data-v-c76ec022]{font-size:.75rem;color:#202020;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goodsBox .shopList .goodsDetail .goodsDetailPrice[data-v-c76ec022]{font-size:.69rem;color:#f15353}.goodsBox .shopList .goodsDetail .goodsDetailPrice span[data-v-c76ec022]{color:#666}.goodsBox .shopList .img[data-v-c76ec022]{margin-right:.5rem}.goodsBox .shopList .img[data-v-c76ec022],.goodsBox .shopList .img img[data-v-c76ec022]{width:2.38rem;height:2.38rem;border-radius:.13rem}.hideList[data-v-c76ec022]{padding-right:1.09rem;padding-left:.94rem;background:#fff;overflow:hidden}.hideList .list_lis[data-v-c76ec022]{padding:.72rem 0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-top:1px solid #ebebeb}.hideList .list_lis[data-v-c76ec022],.hideList .list_lis .list_lis_top[data-v-c76ec022]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.hideList .list_lis .list_lis_top[data-v-c76ec022]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.4rem}.hideList .list_lis .list_lis_top .order[data-v-c76ec022]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;font-size:.75rem}.hideList .list_lis .list_lis_top .price[data-v-c76ec022]{-webkit-box-flex:.5;-webkit-flex:.5;-ms-flex:.5;flex:.5;text-align:right;color:#f15353;font-size:.81rem}.hideList .list_lis .list_lis_bottom[data-v-c76ec022]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.69rem}.hideList .list_lis .list_lis_bottom .date[data-v-c76ec022]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;color:#666;font-size:.69rem}.hideList .list_lis .list_lis_bottom .status[data-v-c76ec022]{-webkit-box-flex:.5;-webkit-flex:.5;-ms-flex:.5;flex:.5;text-align:right;color:#666;font-size:.69rem;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;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.hideList .list_lis .list_lis_bottom .status .resver[data-v-c76ec022]{-webkit-transform:rotate(180deg)!important;transform:rotate(180deg)!important}.list_li[data-v-c76ec022]{height:2.72rem;padding-right:1.09rem;padding-left:.94rem;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background:#fff}.list_li .iconfont[data-v-c76ec022]{font-size:20px;color:#666}.list_li .list_li_left[data-v-c76ec022]{color:#202020;font-size:.88rem}.list_li .list_li_left .price[data-v-c76ec022]{color:#f15353}",""]),t.exports=e},"6ae2":function(t,e,i){"use strict";i("ef41")},bd6b9:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"allowanceReward"}},[i("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:t.title}}),i("van-tabs",{on:{change:t.tabChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"全部"}}),i("van-tab",{attrs:{title:"已结算"}}),i("van-tab",{attrs:{title:"未结算"}})],1),i("div",{staticClass:"yearBox"},[i("div",{staticClass:"yearTxt"},[t._v("按年")]),i("div",{staticClass:"yearRight",on:{click:t.yearTap}},[i("span",[t._v(t._s(t.nowYears))]),i("i",{staticClass:"iconfont icon-member-bottom"})])]),i("div",{staticClass:"list"},t._l(t.list,(function(e,s){return i("div",{key:s,staticClass:"forListC"},[e.amounts>0?i("div",{staticClass:"list_li",on:{click:function(i){return t.tapGetList(e,s)}}},[i("div",{staticClass:"list_li_left"},[t._v(" "+t._s(e.year)+"-"+t._s(e.month)+": "),i("span",{staticClass:"price"},[t._v("¥"+t._s(e.amounts))])]),i("i",{staticClass:"iconfont icon-advertise-next"})]):t._e(),t._l(e.info,(function(a,o){return[e.show?i("div",{key:o,staticClass:"hideList"},[i("div",{staticClass:"list_lis",on:{click:function(e){return t.showGoods(o,a,s)}}},[i("div",{staticClass:"list_lis_top"},[i("div",{staticClass:"order"},[t._v(t._s(a.order_sn))]),i("div",{staticClass:"price"},[t._v("+"+t._s(a.award_amounts))])]),i("div",{staticClass:"list_lis_bottom"},[i("div",{staticClass:"date"},[t._v(t._s(a.created_at))]),i("div",{staticClass:"status"},[t._v(" "+t._s(a.status_name)+" "),1==t.tapind||0==t.tapind?[!a.show&&a.order_goods.length>0?i("div",{staticClass:"resver"},[i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e(),a.show&&a.order_goods.length>0?i("div",[i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e()]:t._e()],2)])]),1==t.tapind||0==t.tapind?[a.show&&a.order_goods.length>0?i("div",{staticClass:"goodsBox",class:a.moreShow?"":"goodsBoxHeight"},[t._l(a.order_goods,(function(e,s){return i("div",{key:s,staticClass:"shopList"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"goodsDetail"},[i("div",{staticClass:"goodsDetailTxt"},[t._v(t._s(e.title))]),i("div",{staticClass:"goodsDetailPrice"},[i("span",[t._v("订单金额:")]),t._v(t._s(e.payment_amount))])])])})),!a.moreShow&&a.order_goods.length>2?i("div",{staticClass:"moreGoods",on:{click:function(i){return t.moreShowTap(e,o,s)}}},[t._v(" 查看更多 "),i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e()],2):t._e()]:t._e()],2):t._e()]})),e.show&&e.last_page&&e.page<e.last_page?i("div",{staticClass:"getMore",on:{click:function(i){return t.getMore(e,s)}}},[t._v("加载更多")]):t._e()],2)})),0),i("van-popup",{attrs:{round:"",position:"bottom","value-key":"value"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[i("van-picker",{attrs:{title:"选择年份","show-toolbar":"",columns:t.years},on:{cancel:t.onCancel,confirm:t.onConfirm}})],1)],1)},a=[],o=(i("e7e5"),i("d399")),l=i("c7eb"),n=i("1da1"),r=(i("14d9"),i("99af"),{data:function(){return{active:0,title:"极差奖励",years:[],showPicker:!1,list:[],info:[],nowYears:(new Date).getFullYear(),getUrl:"",getDetailUrl:"",tapind:""}},activated:function(){0==this.$route.params.ind?(this.title="极差奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.order.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.order.detail"):1==this.$route.params.ind?(this.title="层级奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.level.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.level.detail"):2==this.$route.params.ind?(this.title="补贴奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.subsidy.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.subsidy.detail"):3==this.$route.params.ind&&(this.title="业绩奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.performance.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.performance.detail"),this.tapind=this.$route.params.ind,this.fun.setWXTitle(this.title),this.getData()},methods:{tabChange:function(t){this.nowYears=(new Date).getFullYear(),this.list=[],this.getData()},moreShowTap:function(t,e,i){t.info[e].moreShow||this.$set(this.list[i].info[e],"moreShow",!0)},showGoods:function(t,e,i){e.show?this.$set(this.list[i].info[t],"show",!1):this.$set(this.list[i].info[t],"show",!0)},tapGetList:function(t,e){t.show?this.$set(this.list[e],"show",!1):(this.$set(this.list[e],"show",!0),this.list[e].page=1,this.list[e].last_page=1,this.getDetail(t,e))},yearTap:function(){var t=this;return Object(n["a"])(Object(l["a"])().mark((function e(){return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getYear(),t.showPicker=!0;case 2:case"end":return e.stop()}}),e)})))()},onConfirm:function(t){this.showPicker=!1,this.nowYears=t,this.list=[],this.getData()},onCancel:function(){this.showPicker=!1},getYear:function(){if(!(this.years.length>=11))for(var t=(new Date).getFullYear(),e=0;e<=10;e++)this.years.push(t-e)},getData:function(){var t=this,e="";e=2==this.active?"-1":this.active;var i={year:this.nowYears,award_status:e};$http.post(this.getUrl,i,"加载中...").then((function(e){if(1==e.result){for(var i=0;i<e.data.length;i++)e.data[i].amounts>0&&(e.data[i].show=!1);t.list=e.data}else Object(o["a"])(e.msg)}))},getDetail:function(t,e){var i=this,s="";s=2==this.active?"-1":this.active;var a={year:t.year,month:t.month,award_status:s,page:t.page};$http.post(this.getDetailUrl,a,"加载中...").then((function(t){if(1==t.result){if(0==i.tapind||1==i.tapind)for(var s=0;s<t.data.data.length;s++)t.data.data[s].order_goods.length>0&&(t.data.data[s].show=!1);i.$set(i.list[e],"info",t.data.data),i.list[e].last_page=t.data.last_page}else Object(o["a"])(t.msg)}))},getMore:function(t,e){var i=this,s={year:t.year,month:t.month,award_status:this.active,page:t.page+1};$http.post(this.getDetailUrl,s,"加载中...").then((function(t){if(1==t.result){var s=t.data.data;i.list[e].info=i.list[e].info.concat(s),i.$set(i.list[e],"info",i.list[e].info),i.list[e].page=t.data.current_page,i.list[e].last_page=t.data.last_page}else Object(o["a"])(t.msg)}))}}}),c=r,d=(i("6ae2"),i("2877")),f=Object(d["a"])(c,s,a,!1,null,"c76ec022",null);e["default"]=f.exports},ef41:function(t,e,i){var s=i("17da");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=i("499e").default;a("9673948c",s,!0,{sourceMap:!1,shadowMode:!1})}}]);