bztang-admin/addons/yun_shop/static/app/js/chunk-2f3b9f64.8ad8cbd6.js

1 line
10 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f3b9f64"],{5362:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"storeSignDetail"}},[i("c-title",{attrs:{hide:!1,text:"打卡明细"}}),i("div",{staticClass:"headBox"},[i("div",{staticClass:"line bga"},[i("div",{staticClass:"min"},[i("div",{staticClass:"point"},[t._v(t._s(t.info.points||0))]),i("div",{staticClass:"txt"},[t._v("我的打卡分")])]),i("div",{staticClass:"min"},[i("div",{staticClass:"point"},[t._v(t._s(t.info.withdraw_points||0))]),i("div",{staticClass:"txt"},[t._v("可提现打卡分")])])]),i("div",{staticClass:"line"},[i("div",{staticClass:"min"},[i("div",{staticClass:"point"},[t._v(t._s(t.info.attendance_surplus||0))]),i("div",{staticClass:"txt"},[t._v("剩余打卡次数")])]),i("div",{staticClass:"min"},[i("div",{staticClass:"point"},[t._v(t._s(t.info.attendance_count||0))]),i("div",{staticClass:"txt"},[t._v("累计已打卡次数")])])]),i("div",{staticClass:"lineBottom",on:{click:function(e){t.show=!0}}},[i("div",{staticClass:"txt"},[t._v("去提现")]),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("div",{staticClass:"coline"}),i("van-tabs",{on:{change:t.changeTap},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:"list"},[t._l(t.list,(function(e,a){return[i("div",{key:a,staticClass:"lis"},[i("div",{staticClass:"left"},[0==t.active?[i("div",{staticClass:"title"},[t._v(t._s(e.type_name))]),i("div",{staticClass:"sn"},[t._v(t._s(e.remark))]),i("div",{staticClass:"time"},[t._v(t._s(e.created_at))])]:t._e(),1==t.active?[i("div",{staticClass:"title"},[t._v(t._s(e.type_name))]),i("div",{staticClass:"sn"},[t._v(t._s(e.store_name))]),i("div",{staticClass:"time"},[t._v(t._s(e.created_at))])]:t._e(),2==t.active?[i("div",{staticClass:"title"},[t._v(t._s(e.type_name))]),i("div",{staticClass:"time"},[t._v(t._s(e.created_at))])]:t._e()],2),i("div",{staticClass:"right"},[t._v(t._s(0==t.active?e.count:1==t.active?e.attendance_bonus:"-"+e.amount))])])]}))],2),i("van-popup",{staticStyle:{width:"80%","border-radius":"1rem",background:"transparent"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{staticClass:"intrShowBox"},[i("div",{staticClass:"title"},[t._v("提现打卡分")]),i("div",{staticClass:"intro"},[i("van-field",{attrs:{type:"number",placeholder:"请输入要提现的打卡分"},model:{value:t.points,callback:function(e){t.points=e},expression:"points"}})],1),i("div",{staticClass:"txt"},[t._v("最多可输入"+t._s(t.info.withdraw_points))]),i("div",{staticClass:"txta"},[t._v("提现到"+t._s(t.withdraw_type))]),i("div",{staticClass:"btn"},[i("div",{staticClass:"cancle",on:{click:function(e){t.show=!1}}},[t._v("取消")]),i("div",{staticClass:"confirm",on:{click:t.withdrawablePoints}},[t._v("确认")])])])])],1)},n=[],s=(i("e7e5"),i("d399")),o=i("ac0d"),l={mixins:[o["a"]],data:function(){return{active:0,show:!1,points:"",info:[],withdraw_type:"",list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initPage(),this.getData(),this.getList()},methods:{changeTap:function(){this.initPage(),this.getList()},withdrawablePoints:function(){var t=this;this.fun.isTextEmpty(this.points)&&this.$dialog.alert({message:"请输入打卡分"}),this.points>this.info.withdraw_points?this.$dialog.alert({message:"输入打卡分大于可提现打卡分,请重新输入"}):$http.get("plugin.store-attendance.frontend.member.withdrawablePoints",{points:this.points},"").then((function(e){1==e.result?(t.show=!1,t.points="",t.getData(),Object(s["a"])(e.msg)):Object(s["a"])(e.msg)})).catch((function(t){}))},initPage:function(){this.list=[],this.page=1,this.total_page=0,this.isLoadMore=!0},getList:function(){var t=this,e="";0==this.active?e="plugin.store-attendance.frontend.member.detailed":1==this.active?e="plugin.store-attendance.frontend.member.record":2==this.active&&(e="plugin.store-attendance.frontend.member.withdraw"),$http.get(e,{},"").then((function(e){1==e.result?(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.list=e.data):Object(s["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this,e="";this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,0==this.active?e="plugin.store-attendance.frontend.member.detailed":1==this.active?e="plugin.store-attendance.frontend.member.record":2==this.active&&(e="plugin.store-attendance.frontend.member.withdraw"),$http.get(e,{page:this.page},"").then((function(e){1==e.result?(t.isLoadMore=!0,t.list=e.data):(t.page=t.page-1,t.isLoadMore=!1,Object(s["a"])(e.msg))})).catch((function(t){})))},getData:function(){var t=this;$http.get("plugin.store-attendance.frontend.member.index",{},"").then((function(e){1==e.result?(t.info=e.data.statistics,t.withdraw_type=e.data.withdraw_type):Object(s["a"])(e.msg)})).catch((function(t){}))}}},r=l,c=(i("ce0d"),i("2877")),d=Object(c["a"])(r,a,n,!1,null,"5984b385",null);e["default"]=d.exports},"5c44":function(t,e,i){var a=i("81ad");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("23a9d19a",a,!0,{sourceMap:!1,shadowMode:!1})},"81ad":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#storeSignDetail[data-v-5984b385]{background:#fff;min-height:100vh}#storeSignDetail .intrShowBox[data-v-5984b385]{background:#fff;padding-bottom:1rem;padding:.9rem}#storeSignDetail .intrShowBox .title[data-v-5984b385]{padding:1rem 0}#storeSignDetail .intrShowBox .intro[data-v-5984b385]{border:1px solid #ececec}#storeSignDetail .intrShowBox .btn[data-v-5984b385]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1.5rem}#storeSignDetail .intrShowBox .btn .cancle[data-v-5984b385]{border:1px solid #bbb;margin-right:.7rem;border-radius:.35rem}#storeSignDetail .intrShowBox .btn .cancle[data-v-5984b385],#storeSignDetail .intrShowBox .btn .confirm[data-v-5984b385]{padding:.5rem 1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#storeSignDetail .intrShowBox .btn .confirm[data-v-5984b385]{border-radius:.35rem;background:#ec3511;color:#fff}#storeSignDetail .intrShowBox .txt[data-v-5984b385]{color:#999;text-align:left;font-size:14px;margin-top:.3rem}#storeSignDetail .intrShowBox .txta[data-v-5984b385]{text-align:left;font-size:14px;margin-top:.5rem}#storeSignDetail .coline[data-v-5984b385]{width:100%;height:.63rem;background-color:#ebebeb}#storeSignDetail .list[data-v-5984b385]{margin:0 .97rem 0 .91rem}#storeSignDetail .list .lis[data-v-5984b385]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.84rem 0;border-bottom:1px solid #ebebeb}#storeSignDetail .list .lis .right[data-v-5984b385]{padding-top:.74rem;font-size:.81rem;color:#f15353;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#storeSignDetail .list .lis .left[data-v-5984b385]{height:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;font-size:.75rem;color:#6c6c6c;overflow:hidden}#storeSignDetail .list .lis .left .title[data-v-5984b385]{text-align:left;width:100%;margin-bottom:.5rem;font-size:.88rem;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#storeSignDetail .list .lis .left .sn[data-v-5984b385]{margin-bottom:.3rem}#storeSignDetail .headBox[data-v-5984b385]{width:23.44rem;height:10rem;background-color:#f15353;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;position:relative}#storeSignDetail .headBox .bga[data-v-5984b385]{margin-bottom:1.66rem;margin-top:1rem}#storeSignDetail .headBox .line[data-v-5984b385]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#storeSignDetail .headBox .line .min[data-v-5984b385]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font-size:.94rem;color:#fff}#storeSignDetail .headBox .line .min .txt[data-v-5984b385]{font-size:.75rem;margin-top:.1rem}#storeSignDetail .headBox .lineBottom[data-v-5984b385]{position:absolute;bottom:0;left:0;width:100%;height:1.88rem;background-color:#f36868;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;padding:0 .94rem;color:#fff}#storeSignDetail .headBox .lineBottom .txt[data-v-5984b385]{font-size:.81rem;font-weight:700}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,n=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,a.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(){}}}},ce0d:function(t,e,i){"use strict";i("5c44")}}]);