bztang-admin/addons/yun_shop/static/app/js/chunk-4d803d73.93459d64.js

1 line
4.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d803d73"],{"30ba":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",{staticClass:"page"},[a("c-title",{attrs:{hide:!1,text:"店商联盟"}}),a("div",{staticClass:"listData"},t._l(t.listData,(function(e){return a("div",{key:e.id,staticClass:"listItem"},[a("div",{staticClass:"title"},[t._v("任务:"+t._s(e.task_reward_day)+"天内推广增加"+t._s(e.task_reward_stores)+"家门店,可获得"+t._s(e.task_reward_monry)+"元奖励")]),a("div",{staticClass:"startTime"},[t._v("开始时间:"+t._s(e.created_at))]),a("div",{staticClass:"endTime"},[t._v("结束时间:"+t._s(e.settlement_time))]),a("div",{staticClass:"progress"},[a("div",{staticClass:"text"},[t._v("完成进度:")]),a("div",{staticClass:"pgwrapper"},[a("div",{staticClass:"bar",style:{width:e.store_num/e.task_reward_stores*100+"%"}})]),a("div",{staticClass:"num"},[t._v(t._s(e.store_num)+"/"+t._s(e.task_reward_stores))])])])})),0)],1)},s=[],r=(a("e7e5"),a("d399")),o=(a("99af"),a("ac0d")),n={mixins:[o["a"]],data:function(){return{listData:[],page:1,isLoadMore:!0,total_page:0}},created:function(){this.getDate(),window.addEventListener("scroll",this.handleScroll)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getDate:function(){var t=this;$http.get("plugin.store-business-alliance.frontend.index.task-progress",{}).then((function(e){if(1!=e.result)return Object(r["a"])(e.msg);t.listData=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.store-business-alliance.frontend.index.task-progress",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))}}},l=n,c=l,d=(a("688f"),a("2877")),g=Object(d["a"])(c,i,s,!1,null,"708cc21f",null);e["default"]=g.exports},5383:function(t,e,a){var i=a("78c0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("11e7c2b4",i,!0,{sourceMap:!1,shadowMode:!1})},"688f":function(t,e,a){"use strict";a("5383")},"78c0":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-708cc21f]{min-height:100vh}.listData[data-v-708cc21f]{padding-top:.5rem}.listData .listItem[data-v-708cc21f]{width:22rem;height:7.69rem;margin:.8rem auto;padding:.6rem .906rem;text-align:left;background:#fff;border-radius:.31rem}.listData .listItem .title[data-v-708cc21f]{font-size:.8rem;font-weight:700;color:#000}.listData .listItem .startTime[data-v-708cc21f]{margin-top:1rem;font-size:.7rem}.listData .listItem .endTime[data-v-708cc21f]{font-size:.7rem;margin-top:.6rem}.listData .listItem .progress[data-v-708cc21f]{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;height:2rem}.listData .listItem .progress .text[data-v-708cc21f]{font-size:.7rem}.listData .listItem .progress .num[data-v-708cc21f]{margin-left:.3rem;font-size:.7rem}.listData .listItem .progress .pgwrapper[data-v-708cc21f]{position:relative;width:8rem;height:.5rem;border-radius:.5rem;background:#eee}.listData .listItem .progress .pgwrapper .bar[data-v-708cc21f]{position:relative;left:0;top:0;max-width:100%;height:.5rem;border-radius:.5rem;background:#ff6868}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=document.documentElement,s=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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}}}]);