1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3315b6d3"],{"0a9f":function(e,t,i){e.exports=i.p+"static/app/img/background.dcb3e305.png"},"2e61":function(e,t,i){e.exports=i.p+"static/app/img/calendatBackground.d7247bf4.png"},3650:function(e,t,i){e.exports=i.p+"static/app/img/succee.24b8ebf5.png"},5204:function(e,t,i){e.exports=i.p+"static/app/img/circle.89c3bd97.png"},6510:function(e,t,i){var a=i("24fb"),o=i("1de5"),n=i("3650"),r=i("0a9f"),d=i("2e61"),s=i("5204");t=a(!1);var c=o(n),l=o(r),f=o(d),b=o(s);t.push([e.i,"#storeSign[data-v-23d3f2cf]{min-height:100vh}#storeSign .icon-adsystem_icon_cancle[data-v-23d3f2cf]{color:#fff;margin-top:1rem;font-size:2.5rem}#storeSign .intrShowBox[data-v-23d3f2cf]{width:100%;height:20rem;background:#fff;border-radius:1rem;margin-bottom:1rem;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}#storeSign .intrShowBox .title[data-v-23d3f2cf]{padding:.8rem}#storeSign .intrShowBox .introHtml[data-v-23d3f2cf]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:0 1rem;border-radius:0 0 1rem 1rem;text-align:left}#storeSign .showBox[data-v-23d3f2cf]{width:17.53rem;height:15.44rem;border-radius:1.31rem;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;margin-bottom:1rem}#storeSign .showBox .showBoxBottom[data-v-23d3f2cf]{width:100%;height:4.59rem;background:#fff;font-size:1rem;text-align:center;line-height:4.59rem;border-radius:0 0 1.31rem 1.31rem}#storeSign .showBox .showBoxTop[data-v-23d3f2cf]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-repeat:no-repeat;background-size:cover;background-image:url("+c+")}#storeSign .calendarBox[data-v-23d3f2cf]{overflow:hidden;width:100%;position:relative;padding:0 .91rem;padding-bottom:1.88rem;background-repeat:no-repeat;background-size:100% 20.41rem;background-image:url("+l+")}#storeSign .calendarBox .intro[data-v-23d3f2cf]{width:100%;text-align:center;color:#858585;font-size:.63rem;margin-top:1.13rem}#storeSign .calendarBox .intro[data-v-23d3f2cf],#storeSign .calendarBox .intro .icona[data-v-23d3f2cf]{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}#storeSign .calendarBox .intro .icona[data-v-23d3f2cf]{width:1rem;height:1rem;background-color:#b2b2b2;border-radius:100%;margin-right:.38rem}#storeSign .calendarBox .intro .icona .iconfont[data-v-23d3f2cf]{font-size:.5rem;color:#fff}#storeSign .calendarBox .calendarBottom[data-v-23d3f2cf]{width:100%;height:7.81rem;padding:0 .81rem;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;background-color:#fff;-webkit-box-shadow:0 .06rem .56rem 0 hsla(0,0%,78%,.29);box-shadow:0 .06rem .56rem 0 hsla(0,0%,78%,.29);border-radius:.31rem;padding-top:1rem}#storeSign .calendarBox .calendarBottom .signDetail[data-v-23d3f2cf]{-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}#storeSign .calendarBox .calendarBottom .signDetail[data-v-23d3f2cf],#storeSign .calendarBox .calendarBottom .signDetail .signDetail_list[data-v-23d3f2cf]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#storeSign .calendarBox .calendarBottom .signDetail .signDetail_list[data-v-23d3f2cf]{height:100%;-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}#storeSign .calendarBox .calendarBottom .signDetail .signDetail_list .txt[data-v-23d3f2cf]{font-size:1.13rem;color:#1b1b1b;margin-bottom:.5rem}#storeSign .calendarBox .calendarBottom .detail[data-v-23d3f2cf]{border-bottom:1px solid #e8e8e8;padding-bottom:.91rem;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;font-size:.88rem}#storeSign .calendarBox .calendarView[data-v-23d3f2cf]{margin-top:.84rem;width:100%;height:20.31rem;background-repeat:no-repeat;background-size:contain;background-image:url("+f+');padding-top:2.08rem}#storeSign .calendarBox .calendarView ol[data-v-23d3f2cf]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}#storeSign .calendarBox .calendarView ol>li[data-v-23d3f2cf]{display:inline-block;width:14.27%;float:left;line-height:2rem}#storeSign .calendarBox .calendarView ul[data-v-23d3f2cf]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .3rem}#storeSign .calendarBox .calendarView ul>li[data-v-23d3f2cf]{list-style:none;width:14.27%;height:2.4rem}#storeSign .calendarBox .calendarView ul>li .dayTxt[data-v-23d3f2cf]{display:block;margin:.55rem 0 .4rem 0;position:relative;font-size:.75rem}#storeSign .calendarBox .calendarView ul>li .dayTxt img[data-v-23d3f2cf]{position:absolute;left:.95rem;top:-.15rem;border-radius:50%;width:1.28rem;height:1.31rem;display:block}#storeSign .calendarBox .calendarView ul[data-v-23d3f2cf]:after{content:"";width:100%;height:.0625rem;z-index:1;background:#fff;position:relative;left:0;bottom:.0625rem}#storeSign .calendarBox .calendarView .month[data-v-23d3f2cf]{text-align:center;font-size:.88rem;color:#1b1b1b}#storeSign .calendarBox .background_Img[data-v-23d3f2cf]{position:absolute;top:0;left:0;width:100%;height:0 auto}#storeSign .calendarBox .headTop[data-v-23d3f2cf]{padding-top:2.28rem;width:100%}#storeSign .calendarBox .headTop[data-v-23d3f2cf],#storeSign .calendarBox .headTop .headTopRight[data-v-23d3f2cf]{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}#storeSign .calendarBox .headTop .headTopRight[data-v-23d3f2cf]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:10.25rem;height:10.28rem;z-index:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:1.44rem;background-image:url('+b+");background-repeat:no-repeat;background-size:cover;position:relative}#storeSign .calendarBox .headTop .headTopRight .headTopRight_conten[data-v-23d3f2cf]{font-size:.75rem;color:#fff;width:60%}#storeSign .calendarBox .headTop .headTopRight .headTopRight_conten .headTopRight_contentxt[data-v-23d3f2cf]{margin-bottom:.4rem}#storeSign .calendarBox .headTop .headTopRight .headTopRight_conten .clear[data-v-23d3f2cf]{margin-bottom:0}#storeSign .calendarBox .headTop .headTopRight .headTopRight_conten .headTopRight_contentxt2[data-v-23d3f2cf]{font-size:1.88rem}#storeSign .calendarBox .headTop .headTopRight .headTopRight_conten .headTopRight_contentxt2 span[data-v-23d3f2cf]{font-size:.88rem}#storeSign .calendarBox .headTop .headTopRight .btnbox[data-v-23d3f2cf]{position:absolute;bottom:.81rem;width:100%;height:1.88rem;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}#storeSign .calendarBox .headTop .headTopRight .btnbox .btn[data-v-23d3f2cf]{width:5.63rem;height:1.88rem;background-color:#fff;border-radius:.94rem;font-size:.81rem;color:#ff2c29;text-align:center;line-height:1.88rem}#storeSign .calendarBox .headTop .headTopleft[data-v-23d3f2cf]{overflow:hidden;z-index:1;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-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;font-size:.75rem;color:#fff}#storeSign .calendarBox .headTop .headTopleft .headTopleft_point[data-v-23d3f2cf]{font-size:1.5rem;margin-bottom:.7rem;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#storeSign .calendarBox .headTop .headTopleft .headTopleft_txt[data-v-23d3f2cf]{margin-bottom:.8rem}#storeSign .calendarBox .headTop .headTopleft .headTopleft_txt2[data-v-23d3f2cf]{margin-bottom:2rem}",""]),e.exports=t},"7c0b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"storeSign"}},[a("c-title",{attrs:{hide:!1}}),a("div",{staticClass:"calendarBox"},[a("div",{staticClass:"headTop"},[a("div",{staticClass:"headTopleft"},[a("div",{staticClass:"headTopleft_point"},[e._v(e._s(e.info.store_accumulate_integral||0))]),a("div",{staticClass:"headTopleft_txt"},[e._v("累计打卡分")]),a("div",{staticClass:"headTopleft_txt2"},[e._v("今日打卡可得 "+e._s(e.info.can_get_integral||0)+" 打卡分")])]),a("div",{staticClass:"headTopRight"},[a("div",{staticClass:"headTopRight_conten"},[e.info.new_finish_task?a("tamplate",[a("div",{staticClass:"headTopRight_contentxt clear"},[e._v("已完成门店新用户打卡任务")])]):a("tamplate",[a("div",{staticClass:"headTopRight_contentxt"},[e._v("-已连续打卡-")]),a("div",{staticClass:"headTopRight_contentxt2"},[e._v(e._s(e.info.continuity||0)),a("span",[e._v("天")])])])],1),a("div",{staticClass:"btnbox"},[a("div",{staticClass:"btn",on:{click:e.attendance}},[e._v(e._s(e.info.attended?"已打卡":"立即打卡"))])])])]),a("div",{staticClass:"calendarView"},[a("div",{staticClass:"month"},[e._v(e._s(e.year)+"年"+e._s(e.month)+"月")]),a("div",{staticClass:"calendarList"},[e._m(0),a("div",[a("ul",[a("div",{style:{width:e.w+"%"}}),e._l(e.m,(function(t,o){return a("li",{key:o},[a("div",{staticClass:"dayTxt"},[e._v(" "+e._s(t)+" "),e.checkKey(o)?a("img",{attrs:{src:i("ee80")}}):e._e()])])}))],2)])])]),a("div",{staticClass:"calendarBottom"},[a("div",{staticClass:"detail",on:{click:e.goDetail}},[a("span",[e._v("打卡明细")]),a("van-icon",{attrs:{name:"arrow"}})],1),a("div",{staticClass:"signDetail"},[a("div",{staticClass:"signDetail_list"},[a("div",{staticClass:"txt"},[e._v(e._s(e.info.surplus_count))]),a("div",[e._v("剩余打卡次数")])]),a("div",{staticClass:"signDetail_list"},[a("div",{staticClass:"txt"},[e._v(e._s(e.info.store_accumulate_count))]),a("div",[e._v("累计已打卡次数")])])])]),a("div",{staticClass:"intro",on:{click:function(t){e.intrShow=!0}}},[e._m(1),e._v(" 打卡规则 ")])]),a("van-popup",{staticClass:"mint-popup",staticStyle:{"border-radius":"1.31rem",background:"transparent"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[a("div",{staticClass:"showBox"},[a("div",{staticClass:"showBoxTop"}),a("div",{staticClass:"showBoxBottom"},[e._v("打卡成功,奖励"+e._s(e.awardinfo)+"打卡分!")])]),a("i",{staticClass:"iconfont icon-adsystem_icon_cancle",on:{click:function(t){e.show=!1}}})]),a("van-popup",{staticClass:"mint-popup",staticStyle:{width:"80%","border-radius":"1rem",background:"transparent"},model:{value:e.intrShow,callback:function(t){e.intrShow=t},expression:"intrShow"}},[a("div",{staticClass:"intrShowBox"},[a("div",{staticClass:"title"},[e._v("打卡规则")]),e.info.attendance_describe?a("div",{staticClass:"introHtml",domProps:{innerHTML:e._s(e.info.attendance_describe)}}):e._e()]),a("i",{staticClass:"iconfont icon-adsystem_icon_cancle",on:{click:function(t){e.intrShow=!1}}})])],1)},o=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ol",[i("li",[e._v("日")]),i("li",[e._v("一")]),i("li",[e._v("二")]),i("li",[e._v("三")]),i("li",[e._v("四")]),i("li",[e._v("五")]),i("li",[e._v("六")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"icona"},[i("i",{staticClass:"iconfont icon-qhm_shuoming"})])}],n=(i("e7e5"),i("d399")),r={data:function(){return{year:"",month:"",m:"",w:"",show:!1,intrShow:!1,info:[],awardinfo:[],store_id:""}},activated:function(){this.store_id=this.$route.params.id,this.getDataNum(1),this.getData(),window.scrollTo(0,0)},methods:{checkKey:function(e){if(this.info.attendance_date)return this.info.attendance_date.indexOf(e+1)+1},goDetail:function(){this.$router.push(this.fun.getUrl("storeSignDetail",{}))},getDataNum:function(e){var t=new Date,i=t.getFullYear();this.year=i;var a=t.getMonth()+e;this.month=a;var o=new Date(i,a,0);this.m=o.getDate();var n=new Date(i,a-1,1),r=n.getDay();this.w=14.27*r},getData:function(){var e=this,t={year:this.year,month:this.month,store_id:this.store_id};$http.get("plugin.store-attendance.frontend.dashboard.index",t,"").then((function(t){1==t.result?e.info=t.data:Object(n["a"])(t.msg)})).catch((function(e){}))},attendance:function(){var e=this;this.info.attended?Object(n["a"])("已打卡"):$http.get("plugin.store-attendance.frontend.member.attendance",{store_id:this.store_id},"").then((function(t){1==t.result?(e.awardinfo=t.data.award,e.show=!0,e.getData()):Object(n["a"])(t.msg)})).catch((function(e){}))}}},d=r,s=(i("d5aa"),i("2877")),c=Object(s["a"])(d,a,o,!1,null,"23d3f2cf",null);t["default"]=c.exports},a8bb:function(e,t,i){var a=i("6510");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("6bbe5eea",a,!0,{sourceMap:!1,shadowMode:!1})},d5aa:function(e,t,i){"use strict";i("a8bb")},ee80:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAuCAYAAACBHPFSAAAC1UlEQVRogc2aWU8bMRSFT5yUJA2oFFGqLqJVoeKl//+X8IYqdVGSUugKNCkEUt3oWLpy7Xg8zOJPGk2wkplzbN/rjc4EO2iRhwBeARgCmAH4COBPqhzTooEOgAMa6fB+wM9JtGliAGDDKdtgeRJtmrgBsHTKlixPondPIVJrm7wPWCldALcA7gDMeV3yrlkAGAN4qcrGLE+iTGCL2F0Ajz3dYR3XAH4AOHcM9VVg/3V+L3Gyz7sE/Cdf4KeYkAc9A7Cd4jjATwDTSCaSAH/nVJRUxLHbDYt0J+kezwE8KZM5AkhFPAJwBmDC7ueyLvBnKSaGTHv9isRrpEL2aOa9K0wFvq44b+Cvy05bAI5qMqCR5x/xfRob+Bpv4IdiQh74tsLuUwSp5RMAF853beabezLcCl9LSAAfNmwAfN8h36+ZMxF4DcBjQoL4TYuDoOH7u6k/0uw3EAMx+tRRGJ2dJA5andIqdjgouvEx9Mx6Z7olXrQiN4yrx8bMiD1oZGPXmthiYU6MnLQbGvz61sRuZgYsWldo1rswbJoq5kN1sK2ST3Dw67HJ2lxXrMNQ3y/+fcrPNrBXY0eP64Gc2VQm4Bu5DV3lTFSfyWBwixHVZypYotZNVJ/JOKgtUX3Gk3tzI6rPBJaGORHVZ7j4zpmoPrNusZEJUX2mzAZuw0T1iYnfmZuI6jPcdbtqRk8yV55dwf+wOfhbpiYK6dImkjdya2aRauKO09yc+EJdhU2AJnJJt6Lja9EvaxNL7h60PQ1J1uFOri49S8CmGVNHYXwzxFNuubfBWZnYDE1zP3PzqknO+d5kQgsO2y+vecBSNxOeHJUitmqactR8DeBBDUZkL+nDfac+Rc/sujyv26toy3/JFDqtYj2TenoqrfGUG75lWkZq/juDN/m8OkTZ/+3ocFPLXoPAmcItB64LdVU+DpXd6RAh0o91XxYT8jwxuNojbWTpC+AfVwufxo0PUIYAAAAASUVORK5CYII="}}]); |