1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8a3bde66","chunk-2d0dd411"],{"3c0e":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#date[data-v-bf93a5ca]{width:21.5625rem;border-radius:.375rem;overflow:hidden;margin:0 auto}#date .date-headed[data-v-bf93a5ca]{margin-bottom:1rem;padding:.5rem 1rem}#date .date-headed .left[data-v-bf93a5ca]{border-right:.6rem solid #999}#date .date-headed .left[data-v-bf93a5ca],#date .date-headed .right[data-v-bf93a5ca]{width:0;height:0;border-top:.5rem solid transparent;border-bottom:.5rem solid transparent;position:relative;top:.8rem}#date .date-headed .right[data-v-bf93a5ca]{border-left:.6rem solid #999;-webkit-transform:rotate(180edg);transform:rotate(180edg)}#date .calendar[data-v-bf93a5ca]{background-color:#fff;margin:0 auto;width:21.36rem;border-radius:.71rem}#date .calendar .flex-wrap[data-v-bf93a5ca]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#date .calendar .calendar-header[data-v-bf93a5ca]{text-align:center;padding:1rem;font-size:40rpx}#date .calendar .calendar-header .icon-operate[data-v-bf93a5ca]{display:inline-block;color:#666;font-size:1.13rem}#date .calendar .calendar-header .disabled[data-v-bf93a5ca]{color:#999}#date .calendar .calendar-header .calender-header-date[data-v-bf93a5ca]{display:inline-block;margin:0 3rem;color:#333;font-size:1.13rem;font-weight:700}#date .calendar .calendar-body .days-col[data-v-bf93a5ca]{margin:.5rem 0;width:14.28%;text-align:center}#date .calendar .calendar-body .days-col-text[data-v-bf93a5ca]{display:block;margin:auto;width:2.14rem;height:2.14rem;line-height:2.14rem;text-align:center;border-radius:50%;font-size:1rem}#date .calendar .calendar-body .is-signed .days-col-text[data-v-bf93a5ca]{background-color:#f84949;color:#fff}#date .calendar .calendar-body .is-today .days-col-text[data-v-bf93a5ca]{background-color:#fff;color:#f84949}#date .calendar .calendar-body .last-day[data-v-bf93a5ca]{color:#999}",""]),t.exports=e},"6aa0":function(t,e,a){var i=a("3c0e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("be041a1a",i,!0,{sourceMap:!1,shadowMode:!1})},"6ccf":function(t,e,a){"use strict";a("6aa0")},"782d":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:"sign"}},[a("c-title",{attrs:{hide:!1,text:t.sign_name,tolink:"signrules"}}),a("div",{staticClass:"headed"},[a("div",{staticClass:"user"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:t.avatar_image,alt:""}})]),a("div",{staticClass:"userInfo"},[a("span",{staticClass:"name"},[t._v(t._s(t.username))]),a("span",{staticClass:"id"},[t._v("ID: "+t._s(t.uid))])])]),a("router-link",{attrs:{to:t.fun.getUrl("signrecord")}},[a("div",{staticClass:"record",staticStyle:{"margin-bottom":"0.33rem"}},[a("span",[t._v("奖励记录")]),a("img",{attrs:{width:"1.33rem",height:"1.33rem",src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/signPage/record-icon.png",alt:""}})])])],1),t.sign_status?t._e():a("div",{staticClass:"gift-list"},t._l(t.show_list,(function(e,i){return a("div",{key:i,staticStyle:{display:"inline-block",transform:"rotate(-7deg)","background-image":"url('https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/signPage/decoration2.png')",width:"4rem",height:"4rem","background-size":"cover"}},[a("span",{staticClass:"span-top"},[t._v(t._s(e.name))]),a("div",{staticClass:"span-bottom"},[t._v(t._s(e.total))])])})),0),t._m(0),a("div",{staticClass:"sign-info"},[a("div",{staticStyle:{display:"flex","justify-content":"space-between","margin-left":"1rem"}},[t.sign_status?a("div",{staticClass:"title"},[t._v("Hi,今天已经"+t._s(t.sign_name)+"成功")]):a("div",{staticClass:"title"},[t._v("Hi,"),a("span",{staticStyle:{display:"inline-block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",width:"3rem",position:"relative",top:"3px"}},[t._v(t._s(t.username))]),t._v("请不要忘记打卡哟!")]),a("router-link",{attrs:{to:t.fun.getUrl("signrules")}},[a("div",{staticClass:"directions"},[t._v(t._s(t.sign_name)+"说明>")])])],1),a("div",{staticClass:"date"},[t._v(t._s(t.getDateTime()))]),t._m(1),a("div",{staticClass:"statistics"},[a("div",[a("span",[t._v(t._s(t.continueDays))]),t._v("/天 "),a("div",[t._v("连续"+t._s(t.sign_name))])]),a("div",{staticStyle:{width:"0.1rem",height:"3.5rem","background-color":"#e7e7e7"}}),a("div",[a("span",[t._v(t._s(t.signTotal))]),t._v("/天 "),a("div",[t._v("累计"+t._s(t.sign_name))])])]),a("div",{class:{btn:!t.sign_status,"complete-btn":t.sign_status},on:{click:t.signnow}},[t._v(t._s(t.sign_status?t.sign_name+"完成":"立即"+t.sign_name))]),(t.sign_status,a("div",{staticStyle:{display:"flex","justify-content":"space-around"}},[a("div",{staticStyle:{width:"0.5rem",height:"2rem",background:"#fde6c5",position:"relative",right:"3rem","border-radius":"0.83rem"}}),a("div",{staticStyle:{width:"0.5rem",height:"2rem",background:"#fde6c5",position:"relative",left:"3rem","border-radius":"0.83rem"}})]))]),a("date",{attrs:{signlog:t.sign_log,signedList:t.sign_log}})],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("img",{staticClass:"decoration",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/signPage/decoration1.png",alt:""}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[a("div",{staticStyle:{width:"1.5rem",height:"1.5rem",background:"var(--themeBaseColor)","border-radius":"100%",position:"relative",right:"1.5rem"}}),a("div",{staticStyle:{width:"1.5rem",height:"1.5rem",background:"var(--themeBaseColor)","border-radius":"100%",position:"relative",left:"1.5rem"}})])}],r=(a("e7e5"),a("d399")),s=(a("4de4"),a("d3b7"),a("a9e3"),a("6968")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"date"}},[a("div",{staticClass:"calendar"},[a("div",{staticClass:"calendar-header"},[a("div",{staticStyle:{"background-color":"#f5f5f5","border-radius":"0.71rem",display:"flex","justify-content":"center","align-items":"center",height:"2rem","margin-top":"1rem"}},[a("div",{staticClass:"icon-operate icon-pre",on:{click:t.handlePreMonth}},[t._v("◀")]),a("div",{staticClass:"calender-header-date"},[t._v(t._s(t.currentYear)+"年"+t._s(t.currentMonth)+"月")]),a("div",{staticClass:"icon-operate icon-next",on:{click:t.handleNextMonth}},[t._v("▶")])])]),a("div",{staticClass:"calendar-body"},[a("div",{staticClass:"calendar-week flex-wrap"},t._l(t.weekList,(function(e,i){return a("div",{key:i,staticClass:"days-col",staticStyle:{color:"#999"}},[t._v(t._s(e))])})),0),a("div",{staticClass:"calendar-days flex-wrap"},t._l(t.monthDayList,(function(e,i){return a("div",{key:i,class:{"days-col":!0,"is-signed":!!e&&t.isSigned(e.date,t.formatSignedList),"is-today":!!e&&(e.date==t.today&&!t.sign_status)}},[a("div",{class:{"days-col-text":!0,"last-day":!!e&&t.isLastDay(e.time)}},[t._v(t._s(e?t.formatZero(e.day):""))])])})),0)])])])},d=[],c=(a("99af"),a("14d9"),{props:["signlog","signedList"],data:function(){return{weekList:["一","二","三","四","五","六","日"],monthDayList:[],currentYear:"",currentMonth:"",currentDay:"",today:"",selectedDate:"",formatSignedList:[],isDisabledNextMonth:!0}},watch:{sign_status:function(t){this.status=t},signedList:function(t){this.formatSignedList=t}},methods:{isSigned:function(t,e){return e.indexOf(t)>-1},formatZero:function(t){return t},initCurrentDate:function(t){this.currentDate=t||new Date,this.currentYear=this.currentDate.getFullYear(),this.currentMonth=this.currentDate.getMonth()+1,this.currentDay=this.currentDate.getDate(),t||(this.today="".concat(this.currentYear,"/").concat(this.currentMonth,"/").concat(this.currentDay),this.days=this.currentDay),this.initMonthDayList()},initMonthDayList:function(){var t=new Date(this.currentYear,this.currentMonth-1,1),e=t.getDay(),a=new Date(this.currentYear,this.currentMonth,0),i=a.getDate(),n=[];if(0==e)for(var r=0;r<6;r++)n.push(null);else for(var s=0;s<e-1;s++)n.push(null);for(var o=1;o<=i;o++)if(this.currentMonth>=1&&this.currentMonth<10)if(o>=1&&o<10){var d="".concat(this.currentYear,"/0").concat(this.currentMonth,"/0").concat(o),c={day:o,date:d,time:new Date("".concat(this.currentYear,"/").concat(this.currentMonth,"/").concat(o)).getTime()};n.push(c)}else{var l="".concat(this.currentYear,"/0").concat(this.currentMonth,"/").concat(o),g={day:o,date:l,time:new Date("".concat(this.currentYear,"/").concat(this.currentMonth,"/").concat(o)).getTime()};n.push(g)}else if(this.currentMonth>=10)if(o>=1&&o<10){var u="".concat(this.currentYear,"/").concat(this.currentMonth,"/0").concat(o),h={day:o,date:u,time:new Date("".concat(this.currentYear,"/").concat(this.currentMonth,"/").concat(o)).getTime()};n.push(h)}else{var f="".concat(this.currentYear,"/").concat(this.currentMonth,"/").concat(o),m={day:o,date:f,time:new Date("".concat(this.currentYear,"/").concat(this.currentMonth,"/").concat(o)).getTime()};n.push(m)}this.monthDayList=n},handlePreMonth:function(){this.handleToggleMonth(-1),this.getnewDate()},handleNextMonth:function(){this.handleToggleMonth(1),this.getnewDate()},handleToggleMonth:function(t){var e=this.currentMonth+=t,a=this.currentYear;e<=0?(e=12,a--):e>12&&(e=1,a++),this.currentYear=a,this.currentMonth=e,this.initMonthDayList()},getSign:function(){var t=this;$http.get("plugin.sign.Frontend.Modules.Sign.Controllers.sign-log.index",{},"loading").then((function(e){t.formatSignedList=e.data.sign_log,t.fun.setWXTitle(t.sign_name||"签到")}))},isLastDay:function(t){return(new Date).getTime()>t},getnewDate:function(){var t=this,e={month:this.currentMonth,year:this.currentYear};$http.post("plugin.sign.Frontend.Modules.Sign.Controllers.sign-log.index",e,"loading").then((function(e){t.formatSignedList=e.data.sign_log}))}},computed:{},created:function(){this.initCurrentDate(),this.getSign()},mounted:function(){}}),l=c,g=l,u=(a("6ccf"),a("2877")),h=Object(u["a"])(g,o,d,!1,null,"bf93a5ca",null),f=h.exports,m=a("8135"),p={data:function(){return{sign_status:"",sign_total:"",continue_days:"",cumulative:"",sign_log:"",sign_name:"",sharedata:{},signnowBol:!1,nowDate:"",username:"",uid:"",avatar_image:"",show_list:[]}},methods:{signnow:function(){var t=this;if(t.signnowBol)return!1;var e=Object(m["a"])({scene:4,title:"".concat(this.sign_name)});e&&(t.signnowBol=!0,$http.get("plugin.sign.Frontend.Modules.Sign.Controllers.sign.sign",{}," ").then((function(e){1===e.result?t.$dialog.alert({message:e.msg}).then((function(){e.data.success_url&&location.href!=e.data.success_url?location.href=e.data.success_url:t.getSign()})).catch((function(){})):Object(r["a"])(e.msg)})))},getData:function(){var t=this;$http.get("plugin.sign.Frontend.Controllers.share.index",{}," ").then((function(e){1===e.result&&(t.sharedata=e.data.share,t.fun.wxShare("",{},{title:t.sharedata.share_title?t.sharedata.share_title:"",imgUrl:t.sharedata.share_icon?t.sharedata.share_icon:"",description:t.sharedata.share_desc?t.sharedata.share_desc:""}))}))},getSign:function(){var t=this;$http.get("plugin.sign.Frontend.Modules.Sign.Controllers.sign-log.index",{},"loading").then((function(e){if(t.sign_status=e.data.sign_status,t.sign_total=e.data.sign_total,t.continue_days=e.data.continue_days,t.cumulative=window.localStorage.integral+e.data.cumulative.substr(2),t.sign_log=e.data.sign_log,t.sign_name=e.data.sign_name,t.username=e.data.member.username,t.uid=e.data.member.uid,t.avatar_image=e.data.member.avatar_image,t.fun.setWXTitle(t.sign_name||"签到"),t.isShow(e.data.show_list),e.basic_info){localStorage.setItem("basic_color",e.basic_info.theme_color);var a=document.querySelector(":root");a.style.setProperty("--themeBaseColor",e.basic_info.theme_color)}}))},getDateTime:function(t){var e=new Date,a="-",i=":",n=e.getFullYear(),r=e.getMonth()+1,s=e.getDate(),o=e.getHours(),d=e.getMinutes(),c=e.getSeconds();r>=1&&r<=9&&(r="0"+r),s>=0&&s<=9&&(s="0"+s),o>=0&&o<=9&&(o="0"+o),d>=0&&d<=9&&(d="0"+d),c>=0&&c<=9&&(c="0"+c);var l="";return"year"==t?(l=n,l):"month"==t?(l=n+a+r,l):(l=n+a+r+a+s+" "+o+" "+i+" "+d+" "+i+" "+c,l)},isShow:function(t){var e=t.filter((function(t){return Number(t.total)}));this.show_list=e}},mounted:function(){this.nowDate=new Date},activated:function(){this.getSign(),this.getData()},computed:{signTotal:function(){return"暂无"==this.sign_total?0:this.sign_total.substring(0,this.sign_total.length-1)},continueDays:function(){return"暂无"==this.continue_days?0:this.continue_days.substring(0,this.continue_days.length-1)}},components:{cTitle:s["a"],date:f}},b=p,v=b,w=(a("9dad"),Object(u["a"])(v,i,n,!1,null,"a5064682",null));e["default"]=w.exports},"7bb7":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#sign[data-v-a5064682]{background-color:var(--themeBaseColor);padding:0;margin:0;padding-bottom:1rem}#sign .headed[data-v-a5064682]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#sign .headed[data-v-a5064682],#sign .headed .user[data-v-a5064682]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#sign .headed .user[data-v-a5064682]{margin-top:1.33rem;width:9.86rem;height:3.71rem;background:-webkit-gradient(linear,left top,left bottom,from(#fde6c5),to(#fff));background:-webkit-linear-gradient(top,#fde6c5,#fff);background:linear-gradient(180deg,#fde6c5,#fff);border-radius:0 5.55rem 5.55rem 0;-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}#sign .headed .user .avatar img[data-v-a5064682]{max-width:2.43rem;max-height:2.43rem;margin-right:.5rem;border-radius:50%}#sign .headed .user .userInfo .name[data-v-a5064682]{display:block;font-weight:700;text-align:left;color:#333;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:5rem}#sign .headed .user .userInfo .id[data-v-a5064682]{display:block;font-weight:400;text-align:left;color:#999;font-size:.7rem}#sign .headed .record[data-v-a5064682]{width:6.67rem;height:2.08rem;padding:.29rem .57rem;border:.01rem solid #fafafa;margin-right:.75rem;margin-top:2.5rem;border-radius:1.67rem;color:#fff;text-align:center;line-height:2rem;font-size: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}#sign .headed .record img[data-v-a5064682]{width:1.14rem;height:1.14rem}#sign .gift-list[data-v-a5064682]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;position:relative;top:2rem;color:#fff;z-index:10}#sign .gift-list[data-v-a5064682] :first-child{-webkit-animation:bounce-down-data-v-a5064682 1.6s linear infinite;animation:bounce-down-data-v-a5064682 1.6s linear infinite}#sign .gift-list[data-v-a5064682] :nth-child(2){-webkit-animation:bounce-down-data-v-a5064682 1.5s linear infinite;animation:bounce-down-data-v-a5064682 1.5s linear infinite}#sign .gift-list[data-v-a5064682] :nth-child(3){-webkit-animation:bounce-down-data-v-a5064682 1.7s linear infinite;animation:bounce-down-data-v-a5064682 1.7s linear infinite}#sign .gift-list[data-v-a5064682] :nth-child(4){-webkit-animation:bounce-down-data-v-a5064682 1.8s linear infinite;animation:bounce-down-data-v-a5064682 1.8s linear infinite}#sign .gift-list .span-top[data-v-a5064682]{position:relative;bottom:1.5rem;font-size:.5rem}#sign .gift-list .span-bottom[data-v-a5064682]{display:block;position:absolute;top:2.6rem;left:1.2rem;font-size:.8rem;color:#333;font-weight:700}#sign .sign-info[data-v-a5064682]{width:21.5625rem;margin-right:auto;margin-bottom:.5rem;margin-left:auto;height:15.3rem;background-color:#fff;border-radius:.71rem;padding:1rem;position:relative}#sign .sign-info .title[data-v-a5064682]{text-align:left;font-weight:700;color:#333;font-size:1rem}#sign .sign-info .directions[data-v-a5064682]{position:absolute;right:0;width:5rem;height:1.5rem;background-color:#000;opacity:.2;border-radius:1.875rem 0 0 1.875rem;color:#fff;text-align:center;line-height:1.5rem}#sign .sign-info .date[data-v-a5064682]{text-align:left;color:#999;margin-left:1rem}#sign .sign-info .statistics[data-v-a5064682]{margin-top:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;font-size:.875rem;color:#999}#sign .sign-info .statistics span[data-v-a5064682]{font-size:2.125rem;font-weight:700;color:#333}#sign .sign-info .complete-btn[data-v-a5064682]{opacity:.5}#sign .sign-info .btn[data-v-a5064682],#sign .sign-info .complete-btn[data-v-a5064682]{width:12rem;height:3rem;background-color:#f84949;margin:1.5rem auto 0 auto;border-radius:2rem;color:#fff;font-size:1.25rem;text-align:center;line-height:3rem}#sign .decoration[data-v-a5064682]{width:3rem;height:3rem;position:relative;left:8rem;top:1.5rem}@-webkit-keyframes bounce-down-data-v-a5064682{25%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}50%,to{-webkit-transform:translateY(2);transform:translateY(2)}75%{-webkit-transform:translateY(6px);transform:translateY(6px)}}@keyframes bounce-down-data-v-a5064682{25%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}50%,to{-webkit-transform:translateY(2);transform:translateY(2)}75%{-webkit-transform:translateY(6px);transform:translateY(6px)}}",""]),t.exports=e},8135:function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("b64b"),a("14d9");function i(t){var e=JSON.parse(sessionStorage.getItem("validate_page")).drainage_code||{},a=e.drainage_scene,i=e.has_add_employee;return!(a&&!i)||(!(t.scene&&a.indexOf(t.scene)>-1)||(t.type=1,t.url=window.location.href,window.__lendApp__.$router.push(window.__lendApp__.fun.getUrl("critical-customer-share",{scene_data:t},{})),!1))}},"9dad":function(t,e,a){"use strict";a("be71")},be71:function(t,e,a){var i=a("7bb7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("192d36b0",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |