1 line
5.3 KiB
JavaScript
1 line
5.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e35f7f1c","chunk-2d0d83d6"],{"30f3":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#grab_group_reward .top-member[data-v-22473dda]{padding:1.875rem 1.625rem 2rem;background:#ee2e2b;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;overflow:hidden;width:100%}#grab_group_reward .top-member .avator[data-v-22473dda]{width:2.875rem;height:2.875rem;border-radius:100%;overflow:hidden;margin-right:.75rem}#grab_group_reward .top-member .name[data-v-22473dda]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;font-size:1rem;color:#fff;font-weight:700;text-align:left;text-overflow:ellipsis;white-space:nowrap}#grab_group_reward .tab_box[data-v-22473dda]{padding:0 .75rem;background:#fff}#grab_group_reward .tab_box .list_child[data-v-22473dda]{width:100%;height:4.5rem;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-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem}#grab_group_reward .tab_box .list_child .childs[data-v-22473dda]{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;line-height:1.625rem}#grab_group_reward .tab_box .list_child .childs .order_sn[data-v-22473dda]{color:#000;font-size:.875rem}#grab_group_reward .tab_box .list_child .childs .money[data-v-22473dda]{color:#f15353}#grab_group_reward .tab_box .list_child .childs .status[data-v-22473dda],#grab_group_reward .tab_box .list_child .childs .time[data-v-22473dda]{color:#666}",""]),t.exports=e},"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},8325:function(t,e,a){"use strict";a("bc3f")},"9e6c":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:"grab_group_reward"}},[a("c-title",{attrs:{hide:!1,text:"我的抢团"}}),a("div",{staticClass:"top-member"},[a("img",{staticClass:"avator",attrs:{src:t.member.avatar,alt:""}}),a("div",{staticClass:"name"},[t._v(t._s(t.member.nickname))])]),a("div",{staticClass:"tab_box"},[a("van-tabs",{attrs:{sticky:""},on:{change:t.getData},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"奖励记录"}},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"list_child"},[a("div",{staticClass:"childs"},[a("div",{staticClass:"order_sn"},[t._v("订单号:"+t._s(e.order_sn))]),a("div",{staticClass:"money"},[t._v(t._s(e.money)+" "+t._s(t.$i18n.t("元")))])]),a("div",{staticClass:"childs"},[a("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"status"},[t._v(t._s(e.settlement_type_name))])])])})),0)],1),a("yz-blank",{attrs:{datas:t.list,text:"暂无记录",isBtn:!1}})],1)],1)},r=[],o=(a("e7e5"),a("d399")),s=(a("99af"),a("6968")),n=a("ac0d"),l=a("eb17"),d={mixins:[n["a"]],data:function(){return{member:{},list:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getData()},components:{cTitle:s["a"],yzBlank:l["default"]},computed:{},methods:{getData:function(){var t=this;$http.post("plugin.snatch-regiment.api.index.getSnatchData",{art:"rewardRecord"},"").then((function(e){1===e.result?(t.isLoading=!1,t.total_page=e.data.rewardRecord.list.last_page,t.total_page||(t.total_page=0),t.member=e.data.rewardRecord.member,t.list=e.data.rewardRecord.list.data):Object(o["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){this.isLoadMore=!1;var t=this;t.page>=t.total_page||(t.page+=1,$http.get("plugin.snatch-regiment.api.index.getSnatchData",{page:t.page,art:"rewardRecord"},"加载中").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var a=e.data.rewardRecord.list.data;t.list=t.list.concat(a)})).catch((function(t){})))}}},c=d,g=(a("8325"),a("2877")),b=Object(g["a"])(c,i,r,!1,null,"22473dda",null);e["default"]=b.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,r=document.body,o={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:r&&(t=r.scrollTop),t},getClientHeight:function(){var t=0;return t=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(r.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(){}}}},bc3f:function(t,e,a){var i=a("30f3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("2c8edfca",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |