bztang-admin/addons/yun_shop/static/app/js/chunk-0c27e23e.0d32fb99.js

1 line
10 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-0c27e23e"],{"0bd0":function(t,e,a){var i=a("7196");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("42cb5006",i,!0,{sourceMap:!1,shadowMode:!1})},1807:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{style:{minHeight:t.minHeight},attrs:{id:"background_box"}})},o=[],r={props:{minHeight:{type:String,default:"12.125rem"}},data:function(){return{}}},s=r,n=(a("ddd1"),a("2877")),l=Object(n["a"])(s,i,o,!1,null,"36281e6e",null);e["a"]=l.exports},"23b4":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#background_box[data-v-36281e6e]{color:#382c0a;background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(var(--themeBaseColor)),to(#f5f5f5));background-image:-webkit-linear-gradient(var(--themeBaseColor),#f5f5f5);background-image:linear-gradient(var(--themeBaseColor),#f5f5f5)}",""]),t.exports=e},"2cb7":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:"get_record"}},[a("c-title",{attrs:{hide:!1,text:"领取记录"}}),a("diyBackGround"),a("div",{staticClass:"statusBox"}),t.noneShow?[a("div",{key:t.index,staticClass:"timeSelect"},[a("div",{staticClass:"timeBox",on:{click:function(e){t.show=!1}}},[a("div",{staticClass:"time"},[t._v(t._s(t.postDate))]),a("van-icon",{attrs:{name:"arrow-down",size:"12px"}})],1),a("div",{staticClass:"totalNum"},[t._v("支出¥0.00 收入¥0.00")])]),t._m(0)]:[t._l(t.record_list.data,(function(e,i){return[a("div",{key:i,staticClass:"timeSelect"},[a("div",{staticClass:"timeBox",on:{click:function(e){t.show=!1}}},[a("div",{staticClass:"time"},[t._v(t._s(i))])]),a("div",{staticClass:"totalNum"},[t._v(t._s(t.integral?t.integral:"积分")+""+t._s(t.money_arr[i]?t.money_arr[i].income:"0.00"))])]),a("div",{key:i,staticClass:"list"},t._l(e,(function(e,i){return a("div",{key:i,staticClass:"lis"},[a("div",{staticClass:"lisTop"},[a("div",{staticClass:"txtName"},[t._v(t._s(e.name))]),a("div",{staticClass:"price"},[t._v(t._s(e.point))])]),a("div",{staticClass:"lisTop dob"},[a("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),e.validity_at?a("div",{staticClass:"balance"},[t._v("有效期:"+t._s(e.validity_at))]):t._e()])])})),0)]}))],a("van-popup",{style:{height:"40%"},attrs:{position:"bottom"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("van-datetime-picker",{attrs:{type:"year-month",title:"选择年月","max-date":t.maxDate,formatter:t.formatter},on:{confirm:t.pickConfirm},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1),t._e()],2)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("div",{staticClass:"listTxt"},[t._v("暂无记录")])])}],r=a("2909"),s=(a("99af"),a("6968")),n=a("ac0d"),l=a("1807"),c={mixins:[n["a"]],data:function(){return{dataList:[],money_arr:[],record_list:[],statusValue:0,selectShow:!1,selectType:0,currentDate:new Date,maxDate:new Date,show:!1,postDate:"",noneShow:!1,selectTimeDate:"",loading:!1,isLoadMore:!0,page:1,total_page:0,integral:window.localStorage.integral}},created:function(){},methods:{getData:function(){var t=this,e=this;$http.post("plugin.point-activity.Frontend.Modules.Activity.Controllers.receive-records.index",{page_id:1},"正在加载").then((function(a){if(1===a.result){var i=a.data;e.record_list=i.record_list,e.total_page=i.record_list.last_page,t.noneShow=!1,t.money_arr=i.point_arr,e.total_page||(e.total_page=0)}else e.$dialog.alert({message:a.msg})}),(function(t){}))},loadMore:function(){this.isLoadMore&&this.getMoreData(this.page)},getMoreData:function(t){var e=this;if(this.isLoadMore){var a=this;if(this.page>=this.total_page)return;this.page=this.page+1,$http.post("plugin.point-activity.Frontend.Modules.Activity.Controllers.receive-records.index",{page_id:this.page},"加载中...").then((function(t){if(1!==t.result)return a.page=a.page-1,a.loading=!0,void(a.isLoadMore=!1);var i=t.data.record_list.data;for(var o in e.money_arr=Object.assign(e.money_arr,t.data.point_arr),i)e.record_list.data[o]?e.$set(e.record_list.data,o,[].concat(Object(r["a"])(e.record_list.data[o]),Object(r["a"])(i[o]))):e.$set(e.record_list.data,o,i[o]);e.isLoadMore=!0}),(function(t){}))}},initData:function(){this.page=1,this.total_page=0,this.loading=!1,this.isLoadMore=!0,this.dataList=[]}},activated:function(){this.initData(),this.getData()},deactivated:function(){this.loading=!0},components:{cTitle:s["a"],diyBackGround:l["a"]}},d=c,f=d,m=(a("693b"),a("2877")),g=Object(m["a"])(f,i,o,!1,null,"658a6318",null);e["default"]=g.exports},"693b":function(t,e,a){"use strict";a("0bd0")},7196:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#get_record .listTxt[data-v-658a6318]{padding:2rem 0}@-webkit-keyframes ident-data-v-658a6318{0%{opacity:0}50%{opacity:.75}to{opacity:1}}@keyframes ident-data-v-658a6318{0%{opacity:0}50%{opacity:.75}to{opacity:1}}#get_record .showPosBox[data-v-658a6318]{-webkit-animation:ident-data-v-658a6318 .5s;animation:ident-data-v-658a6318 .5s}#get_record .background_box[data-v-658a6318]{color:#382c0a;background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(var(--themeBaseColor)),to(#f5f5f5));background-image:-webkit-linear-gradient(var(--themeBaseColor),#f5f5f5);background-image:linear-gradient(var(--themeBaseColor),#f5f5f5);min-height:9.25rem;padding:1.5938rem 1.0938rem 0 1.0938rem}#get_record .statusBox[data-v-658a6318]{margin:0 .625rem;margin-top:-7rem;margin-bottom:.625rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;z-index:1;position:relative}#get_record .statusBox[data-v-658a6318],#get_record .statusBox .statusBox_left[data-v-658a6318]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#get_record .statusBox .statusBox_left[data-v-658a6318]{font-size:.75rem;color:#262626}#get_record .statusBox .statusBox_left .txt[data-v-658a6318]{line-height:1.875rem;width:3.75rem}#get_record .statusBox .statusBox_left .showtxt[data-v-658a6318]{width:3.75rem;height:1.875rem;background:#fff;border-radius:.9375rem}#get_record .statusBox .statusBox_right[data-v-658a6318]{min-width:5.3125rem;height:1.875rem;background:#fdefbd;border-radius:.3125rem;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;padding:0 .4688rem;position:relative}#get_record .statusBox .statusBox_right .txt[data-v-658a6318]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}#get_record .statusBox .statusBox_right .statusBox_right_pos[data-v-658a6318]{background:#fdefbd;position:absolute;bottom:-4.3rem;left:0;width:100%;z-index:22222222;border-radius:0 0 .3125rem .3125rem}#get_record .statusBox .statusBox_right .statusBox_right_pos .postxt[data-v-658a6318]{height:1.5rem;line-height:1.5rem}#get_record .list[data-v-658a6318]{margin:0 .625rem;padding:0 .875rem;margin-top:.9375rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem}#get_record .list .lis[data-v-658a6318]:first-child{border:none}#get_record .list .lis[data-v-658a6318]{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;padding:.9375rem 0;border-bottom:1px solid #f6f6f6}#get_record .list .lis .dob[data-v-658a6318]{margin-top:.4688rem}#get_record .list .lis .lisTop[data-v-658a6318]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#get_record .list .lis .lisTop .txtName[data-v-658a6318]{font-size:14px}#get_record .list .lis .lisTop .price[data-v-658a6318]{font-size:14px;font-weight:500;color:#f20606}#get_record .list .lis .lisTop .time[data-v-658a6318]{font-size:.6875rem;color:#999}#get_record .list .lis .lisTop .balance[data-v-658a6318]{font-size:.6875rem;font-weight:400;color:#666}#get_record .timeSelect[data-v-658a6318]{margin-top:-5rem;height:2.5rem;background:#fff;border-radius:.625rem;margin:0 .625rem;padding:0 .9063rem;position:-webkit-sticky;position:sticky;top:40px}#get_record .timeSelect[data-v-658a6318],#get_record .timeSelect .timeBox[data-v-658a6318]{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}#get_record .timeSelect .timeBox[data-v-658a6318]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#get_record .timeSelect .timeBox .time[data-v-658a6318]{margin-right:.5rem;font-size:.8125rem}#get_record .timeSelect .totalNum[data-v-658a6318]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px;color:#333}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=document.documentElement,o=document.body,r={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},ddd1:function(t,e,a){"use strict";a("e89c")},e89c:function(t,e,a){var i=a("23b4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("42413b76",i,!0,{sourceMap:!1,shadowMode:!1})}}]);