bztang-admin/addons/yun_shop/static/app/js/chunk-5c311bea.43537de7.js

1 line
8.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c311bea"],{"29de":function(t,e,a){var i=a("5c3e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("374192c4",i,!0,{sourceMap:!1,shadowMode:!1})},"5c3e":function(t,e,a){var i=a("24fb"),o=a("1de5"),r=a("c6a5");e=i(!1);var n=o(r);e.push([t.i,"#record[data-v-660184e6]{color:#fff;text-align:left}#record .record-content[data-v-660184e6]{height:9.4375rem;background-image:url("+n+");background-repeat:no-repeat;background-size:100%}#record .record-content h3[data-v-660184e6]{line-height:2.5rem;padding:.625rem .75rem 0 .75rem;font-size:18px}#record .record-content .record-data[data-v-660184e6]{padding-top:.625rem;padding-bottom:.625rem;font-size:15px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#record .record-content .record-data .data_box[data-v-660184e6]{width:6.875rem;padding-left:.75rem}#record .record-content .record-data div .data[data-v-660184e6]{font-size:20px}#record .record-content .record-data div .amount[data-v-660184e6]{font-size:12px}#record .record-detail[data-v-660184e6]{color:#000;background:#fff}#record .record-detail h3[data-v-660184e6]{line-height:2.5rem;border-bottom:.0625rem solid #ebebeb;padding-left:.875rem;font-size:18px;color:#666}#record .record-detail .record-detail-list[data-v-660184e6]{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;color:#8c8c8c;margin-left:.875rem;padding-right:.875rem;font-size:17px;height:2.75rem;line-height:2.75rem}#record .record-detail .record-detail-list .time[data-v-660184e6]{font-size:14px}#record .record-detail .record-detail-list .state[data-v-660184e6]{color:#666}#record .record-detail .record-detail-list .amount[data-v-660184e6]{float:right;color:#ffb14c}",""]),t.exports=e},"5e7e6":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:"clockinrecord"}},[a("div",{attrs:{id:"record"}},[a("c-title",{attrs:{hide:!1,text:t.title}}),t._m(0),a("div",{staticClass:"record-content"},[a("h3",[t._v("我的战绩")]),a("div",{staticClass:"record-data"},[a("div",{staticClass:"data_box"},[a("span",{staticClass:"data"},[t._v(t._s(t.payAmount))]),a("br"),a("span",{staticClass:"amount"},[t._v("累计投入("+t._s(t.$i18n.t("元"))+")")])]),a("div",{staticClass:"data_box"},[a("span",{staticClass:"data"},[t._v(t._s(t.rewardAmount))]),a("br"),a("span",{staticClass:"amount"},[t._v("累计赚取("+t._s(t.$i18n.t("元"))+")")])]),a("div",{staticClass:"data_box"},[a("span",{staticClass:"data"},[t._v(t._s(t.clockNum))]),a("br"),a("span",{staticClass:"amount"},[t._v("累计打卡(天)")])])])]),t.recordDetailShow?a("div",{staticClass:"record-detail"},[a("h3",[t._v("战绩明细")]),a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.recordDetail,(function(e,i){return a("div",{key:i,staticClass:"record-detail-list"},[a("span",{staticClass:"time"},[t._v(t._s(e.created_at))]),a("span",{staticClass:"state"},[t._v(t._s(e.clock_in_status_name))]),a("span",{staticClass:"amount"},[t._v(t._s(t.fun.isTextEmpty(e.has_one_reward)?"":e.has_one_reward.amount))])])})),0)],1):t._e()],1)])},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"content"}},[a("div")])}],r=(a("e7e5"),a("d399")),n=(a("99af"),a("6968")),c=a("ac0d"),s={mixins:[c["a"]],data:function(){return{title:"我的战绩",payAmount:"",rewardAmount:"",clockNum:0,recordDetail:[],rewardDetail:"",recordDetailShow:!1,recordDetailAmountShow:!1,share_title:"",share_icon:"",share_desc:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0}},methods:{getMyRecord:function(){var t=this;$http.get("plugin.clock-in.api.clock-in-member.statistic",{}).then((function(e){1==e.result&&(t.payAmount=e.data.pay_amount,t.rewardAmount=e.data.reward_amount,t.clockNum=e.data.colck_num)})).catch((function(t){}))},getMyRecordDetail:function(){var t=this;$http.get("plugin.clock-in.api.clock-in-member.get-clock-list",{page:this.page}).then((function(e){1==e.result&&(t.fun.isTextEmpty(e.data.data)||(t.recordDetailShow=!0,t.recordDetail=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)),t.isLoading=!1)})).catch((function(t){}))},detailDate:function(t){var e=new Date(t),a=e.getMonth()+1<10?"0"+e.getMonth()+1:e.getMonth()+1,i=e.getDate()<10?"0"+e.getDate():e.getDate();return a+"-"+i},getShareData:function(){var t=this;$http.get("plugin.clock-in.api.clock-in.get-set",{}).then((function(e){t.share_title=e.data.share.share_title,t.share_icon=e.data.share.share_icon,t.share_desc=e.data.share.share_desc,t.fun.wxShare("",{},{title:t.share_title,imgUrl:t.share_icon,description:t.share_desc})})).catch((function(t){}))},initShare:function(){var t=this,e=document.location.href,a={url:e};$http.post("member.member.wxJsSdkConfig",a).then((function(e){1==e.result&&t.share(e.data)}),(function(t){}))},share:function(t){var e=this;wx.config(t.config),wx.ready((function(){var a=e.share_title,i=document.location.href;i=e.fun.isMid(i,t.info.uid);var o=e.share_icon,n=e.share_desc;wx.showOptionMenu(),wx.onMenuShareTimeline({title:a,link:i,imgUrl:o,success:function(){Object(r["a"])("分享成功")},cancel:function(){Object(r["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:a,desc:n,link:i,imgUrl:o,type:"link",dataUrl:"",success:function(){Object(r["a"])("分享成功")},cancel:function(){Object(r["a"])("取消分享")}})}))},getMoreDetail:function(){var t=this;this.page!=this.total_page&&(this.page>=this.total_page?this.loading=!0:(this.page=this.page+1,$http.get("plugin.clock-in.api.clock-in-member.get-clock-list",{page:this.page},"加载中...").then((function(e){if(1!=e.result)return t.page=that.page-1,t.loading=!0,void(t.isLoadMore=!1);t.loading=!1,t.recordDetail=t.recordDetail.concat(e.data.data)})).catch((function(t){}))))},getMoreData:function(){var t=this;this.isLoadMore=!1;var e=this;this.loading=!1,e.page>=e.total_page?this.loading=!0:(this.page=this.page+1,$http.get("plugin.clock-in.api.clock-in-member.get-clock-list",{page:this.page},"加载中...").then((function(a){if(1==a.result){t.loading=!1,t.allLoaded=!1;var i=a.data.data;t.recordDetail=t.recordDetail.concat(i)}else e.page=e.page-1,e.isLoadMore=!1,t.loading=!0,t.allLoaded=!0})).catch((function(t){})))},initData:function(){this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.recordDetail=[]},loadTop:function(){this.initData(),this.getMyRecordDetail()},loadBottom:function(){this.isLoadMore&&(this.getMoreDetail(this.page),this.$refs.coupon_loadmore.onBottomLoaded())}},activated:function(){},mounted:function(){this.share_title="",this.share_icon="",this.share_desc="",this.getMyRecord(),this.getMyRecordDetail(),this.getShareData()},components:{cTitle:n["a"]}},d=s,l=d,h=(a("bba9"),a("2877")),u=Object(h["a"])(l,i,o,!1,null,"660184e6",null);e["default"]=u.exports},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(){}}}},bba9:function(t,e,a){"use strict";a("29de")},c6a5:function(t,e,a){t.exports=a.p+"static/app/img/clockin_bg.957159b9.png"}}]);