bztang-admin/addons/yun_shop/static/app/js/chunk-7f35f856.ba6c7635.js

1 line
5.2 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-7f35f856"],{"45c5":function(t,a,e){"use strict";e("5dc9")},"5dc9":function(t,a,e){var i=e("b4cd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("499e").default;o("3717bce8",i,!0,{sourceMap:!1,shadowMode:!1})},aec7:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"reward"}},[e("c-title",{attrs:{hide:!1,text:"奖励记录"}}),e("section",{attrs:{id:"detail"}},[e("section",{attrs:{id:"reward-box"}},[e("ul",{staticClass:"reward"},[e("li",[e("span",[t._v(t._s(t.amount))]),e("span",[t._v("奖励积分")])]),e("li",[e("span",[t._v(t._s(t.amount_finishi))]),e("span",[t._v("已奖励积分")])]),e("li",[e("span",[t._v(t._s(t.amount_surplus))]),e("span",[t._v("未奖励积分")])])]),e("section",{attrs:{id:"reward-list"}},[e("van-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[e("van-tab",{attrs:{name:"0",title:"奖励记录"}})],1),e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.activeName,expression:"activeName==0"}]},[t.goload?e("mt-loadmore",{ref:"coupon_loadmore",attrs:{"top-method":t.loadTop,"bottom-method":t.loadBottom,"bottom-all-loaded":t.allLoaded,bottomPullText:"",bottomDropText:"下拉加载...",bottomLoadingText:"",autoFill:!1,id:"olis"}},t._l(t.list,(function(a,i){return e("ul",{key:i,staticClass:"list"},[e("h1",[e("span",[t._v("奖励记录ID"+t._s(a.id))]),e("span",[t._v(t._s(a.amount))])]),e("li",[e("span",[t._v("时间ID:"+t._s(a.id))]),e("span",[t._v(t._s(a.created_at))])]),e("li",{on:{click:function(e){return t.gotoDetail(a.id)}}},[e("span",[t._v("查看记录")]),e("span",[e("i",{staticClass:"fa fa-angle-right"})])])])})),0):t._e()],1)])],1)])])],1)},o=[],s=(e("99af"),e("6968")),l={data:function(){return{activeName:0,list:[],amount:"",amount_finishi:"",amount_surplus:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initData(),this.getData(),this.getList()},mounted:function(){},methods:{getData:function(){var t=this;$http.get("plugin.member-return.frontend.queue.index",{},"...").then((function(a){1==a.result&&(t.amount=a.data.queue.amount,t.amount_finishi=a.data.queue.amount_finish,t.amount_surplus=a.data.queue.amount_surplus)})).catch((function(t){}))},getList:function(){var t=this;$http.get("plugin.member-return.frontend.log.get-list",{page:this.page},"加载中...").then((function(a){1==a.result&&(t.list=a.data.data,t.total_page=a.data.last_page)})).catch((function(t){}))},gotoDetail:function(t){this.$router.push(this.fun.getUrl("RecordOfAwards",{id:t}))},loadTop:function(){this.initData(),this.getList(),this.$refs.coupon_loadmore.onTopLoaded()},loadBottom:function(){this.isLoadMore&&(this.getMoreData(this.page),this.$refs.coupon_loadmore.onBottomLoaded())},getMoreData:function(t){var a=this;if(this.page!=this.total_page)return this.page>=this.total_page?(a.loading=!0,void(a.allLoaded=!0)):(this.page=this.page+1,void $http.get("plugin.member-return.frontend.log.get-list",{page:this.page},"加载中...").then((function(t){if(1!=t.result)return a.page=a.page-1,a.loading=!0,a.allLoaded=!0,void(a.isLoadMore=!1);var e=t.data.data;a.loading=!1,a.allLoaded=!1,a.list=a.list.concat(e)}),(function(t){})))},initData:function(){this.activeName=0,this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.list=[]}},components:{cTitle:s["a"]}},n=l,r=n,d=(e("45c5"),e("2877")),c=Object(d["a"])(r,i,o,!1,null,"7c02cb64",null);a["default"]=c.exports},b4cd:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,"#reward-box .reward[data-v-7c02cb64]{background-color:#f15353;color:#fff;padding:.625rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.625rem}#reward-box .reward li[data-v-7c02cb64]{width:33.3%;line-height:1.5rem}#reward-box .reward li span[data-v-7c02cb64]{display:block}#reward-box .reward li span[data-v-7c02cb64]:first-child{font-size:18px}#reward-box #reward-list .list[data-v-7c02cb64]{margin-bottom:.375rem;background-color:#fff}#reward-box #reward-list .list h1[data-v-7c02cb64]{height:2.5rem;line-height:2.5rem;padding:0 .875rem;font-size:16px;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;border-bottom:.0625rem solid #ebebeb}#reward-box #reward-list .list h1 span[data-v-7c02cb64]:last-child{font-weight:400;color:#f15353}#reward-box #reward-list .list li[data-v-7c02cb64]:nth-child(2){height:1.625rem;line-height:1.625rem;margin-top:.625rem;color:#8c8c8c}#reward-box #reward-list .list li[data-v-7c02cb64]:last-child,#reward-box #reward-list .list li[data-v-7c02cb64]:nth-child(2){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;font-size:14px;padding:0 .875rem}#reward-box #reward-list .list li[data-v-7c02cb64]:last-child{height:2.75rem;line-height:2.75rem}#reward-box #reward-list .list li:last-child i[data-v-7c02cb64]{font-size:1.5rem;color:#c9c9c9;line-height:2.75rem}",""]),t.exports=a}}]);