bztang-admin/addons/yun_shop/static/app/js/chunk-19fe7b7b.e7b2f8fa.js

1 line
6.3 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-19fe7b7b"],{3417:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-e41b5290]{min-height:100vh;background:#fff}.header[data-v-e41b5290]{padding-top:.938rem;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;background-color:#f6f8fc}.header[data-v-e41b5290],.header .headerItem[data-v-e41b5290]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.header .headerItem[data-v-e41b5290]{width:6.25rem;height:3.313rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;padding:.5rem 0;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-radius:.625rem .625rem 0 0;color:#fff}.header .headerItem .num[data-v-e41b5290]{font-size:1.125rem}.header .headerItem .desc[data-v-e41b5290]{font-size:.813rem}.header .headerItem1[data-v-e41b5290]{background-color:#ff8988}.header .headerItem2[data-v-e41b5290]{background-color:#ffbc74}.header .headerItem3[data-v-e41b5290]{background-color:#3fddbc}.listData[data-v-e41b5290]{text-align:left}.wrapper .t1[data-v-e41b5290]{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}.wrapper .t1 .name[data-v-e41b5290]{width:12rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}",""]),t.exports=e},"8aea":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",{staticClass:"page"},[a("c-title",{attrs:{hide:!1,text:"我的卡"}}),a("div",{staticClass:"header"},[a("div",{staticClass:"headerItem headerItem1"},[a("div",{staticClass:"num"},[t._v(t._s(t.total_count))]),a("div",{staticClass:"desc"},[t._v("总数")])]),a("div",{staticClass:"headerItem headerItem2"},[a("div",{staticClass:"num"},[t._v(t._s(t.notused_count))]),a("div",{staticClass:"desc"},[t._v("未使用")])]),a("div",{staticClass:"headerItem headerItem3"},[a("div",{staticClass:"num"},[t._v(t._s(t.isused_count))]),a("div",{staticClass:"desc"},[t._v("已使用")])])]),a("van-tabs",{on:{change:t.changeActive},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"全部"}}),a("van-tab",{attrs:{title:"未使用"}}),a("van-tab",{attrs:{title:"已使用"}})],1),a("div",{staticClass:"listData"},[a("van-collapse",{attrs:{accordion:""},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[t._l(t.listData,(function(e){return[1==e.status?a("van-collapse-item",{key:e.id,attrs:{title:"提货卡ID"+e.id,name:e.id,"label-class":"vanCollapseItem"},scopedSlots:t._u([{key:"value",fn:function(){return[a("span",{staticStyle:{color:"#f15353"}},[t._v("已使用")])]},proxy:!0},{key:"default",fn:function(){return[e.uses_record?a("div",{staticClass:"wrapper"},[a("div",{staticClass:"t1"},[e.uses_record.member?a("div",{staticClass:"name"},[t._v(" [ID:"+t._s(e.uses_record.member.uid)+"]"+t._s(e.uses_record.member.nickname)+" ")]):t._e(),a("div",{staticClass:"time"},[t._v(t._s(e.uses_record.created_at))])]),e.uses_record.member?a("div",{staticClass:"t2"},[t._v(" "+t._s(e.uses_record.member.mobile)+" ")]):t._e()]):t._e()]},proxy:!0}],null,!0)}):t._e(),0==e.status?a("van-collapse-item",{key:e.id,attrs:{disabled:""},scopedSlots:t._u([{key:"title",fn:function(){return[a("span",{staticStyle:{color:"#323233"}},[t._v("提货卡ID"+t._s(e.id))])]},proxy:!0},{key:"value",fn:function(){return[a("span",{staticStyle:{color:"#f15353"}},[t._v("未使用")])]},proxy:!0},{key:"right-icon",fn:function(){return[a("span",{staticStyle:{color:"#f15353","padding-right":"1.3rem"}})]},proxy:!0}],null,!0)}):t._e()]}))],2)],1)],1)},s=[],n=(a("99af"),a("6968")),o=a("ac0d"),c={mixins:[o["a"]],components:{cTitle:n["a"]},data:function(){return{active:0,activeNames:"1",listData:[],total_count:0,isused_count:0,notused_count:0,page:1,isLoadMore:!0,total_page:0}},created:function(){this.getData()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0},getData:function(){var t=this;this.initData(),$http.get("plugin.picking-card.frontend.pickingCard.bindMemberCardList",{status:this.active,card_id:this.$route.query.cardId}).then((function(e){1===e.result&&(t.listData=e.data.data,t.total_count=e.data.total_count,t.isused_count=e.data.isused_count,t.notused_count=e.data.notused_count,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0))}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.picking-card.frontend.pickingCard.bindMemberCardList",{page:this.page,status:this.active,card_id:this.$route.query.cardId}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))},changeActive:function(t){this.getData()}}},r=c,l=r,d=(a("94be"),a("2877")),u=Object(d["a"])(l,i,s,!1,null,"e41b5290",null);e["default"]=u.exports},"8eff":function(t,e,a){var i=a("3417");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("5a282b70",i,!0,{sourceMap:!1,shadowMode:!1})},"94be":function(t,e,a){"use strict";a("8eff")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,s=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 i&&i.scrollTop?t=i.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}}}]);