chunk-08a9836c.74fb0878.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08a9836c"],{"0fd9":function(t,e,s){"use strict";s("4b85");var r=s("2b0e"),i=s("d9f7"),n=s("80d2");const a=["sm","md","lg","xl"],o=["start","end","center"];function c(t,e){return a.reduce((s,r)=>(s[t+Object(n["E"])(r)]=e(),s),{})}const l=t=>[...o,"baseline","stretch"].includes(t),d=c("align",()=>({type:String,default:null,validator:l})),u=t=>[...o,"space-between","space-around"].includes(t),h=c("justify",()=>({type:String,default:null,validator:u})),g=t=>[...o,"space-between","space-around","stretch"].includes(t),f=c("alignContent",()=>({type:String,default:null,validator:g})),p={align:Object.keys(d),justify:Object.keys(h),alignContent:Object.keys(f)},v={align:"align",justify:"justify",alignContent:"align-content"};function m(t,e,s){let r=v[t];if(null!=s){if(e){const s=e.replace(t,"");r+="-"+s}return r+="-"+s,r.toLowerCase()}}const b=new Map;e["a"]=r["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:l},...d,justify:{type:String,default:null,validator:u},...h,alignContent:{type:String,default:null,validator:g},...f},render(t,{props:e,data:s,children:r}){let n="";for(const i in e)n+=String(e[i]);let a=b.get(n);if(!a){let t;for(t in a=[],p)p[t].forEach(s=>{const r=e[s],i=m(t,s,r);i&&a.push(i)});a.push({"no-gutters":e.noGutters,"row--dense":e.dense,["align-"+e.align]:e.align,["justify-"+e.justify]:e.justify,["align-content-"+e.alignContent]:e.alignContent}),b.set(n,a)}return t(e.tag,Object(i["a"])(s,{staticClass:"row",class:a}),r)}})},1140:function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=this,s=e.$createElement,r=e._self._c||s;return r("v-container",{attrs:{"fill-height":""}},[null==this.$store.state.user.userInfo||!1===this.$store.state.user.userInfo.vip?r("v-row",{attrs:{justify:"center",align:"center"}},[r("v-col",[r("v-card",{staticClass:"mx-auto",attrs:{"max-width":"500"}},[r("v-row",{attrs:{justify:"center"}},[r("v-col",{staticStyle:{"text-align":"center"},attrs:{cols:"10"}},[r("h3",[e._v("开启VIP,享受无限观看次数。获取专属VIP标记!")])])],1),r("v-row",{attrs:{justify:"center"}},[r("v-col",{staticStyle:{"text-align":"center"},attrs:{cols:"10"}},[r("v-btn",{attrs:{"x-large":"",outlined:"",color:"indigo"},on:{click:function(){return t.$router.push("/vip/plan")}}},[e._v("开启")])],1)],1)],1)],1)],1):r("v-row",{attrs:{justify:"center",align:"center"}},[r("v-col",[r("v-card",{staticClass:"mx-auto",attrs:{"max-width":"400"}},[r("v-img",{staticClass:"white--text align-end",attrs:{height:"200px",src:"https://cdn.vuetifyjs.com/images/cards/docks.jpg"}},[r("v-card-title",[e._v("你好,尊贵的 VIP: "+e._s(this.$store.state.user.userInfo.username))])],1),r("v-card-text",{staticClass:"text--primary"},[r("div",[e._v("VIP 到期时间: "),r("strong",[e._v(e._s(this.$store.state.user.userInfo.expiredAt))])])]),r("v-card-actions",[r("v-btn",{attrs:{color:"orange",text:""},on:{click:function(){return t.$router.push("/vip/plan")}}},[e._v(" 续费 ")])],1)],1)],1)],1)],1)},i=[],n=s("f3a1"),a=s("9878"),o={name:"UserVip",data:function(){return{checkPower:n["a"],TimeUtil:a["a"]}},created:function(){console.log(this.$store.state.user.userInfo.vip)}},c=o,l=s("2877"),d=s("6544"),u=s.n(d),h=s("8336"),g=s("b0af"),f=s("99d9"),p=s("62ad"),v=s("a523"),m=s("adda"),b=s("0fd9"),S=Object(l["a"])(c,r,i,!1,null,null,null);e["default"]=S.exports;u()(S,{VBtn:h["a"],VCard:g["a"],VCardActions:f["a"],VCardText:f["b"],VCardTitle:f["c"],VCol:p["a"],VContainer:v["a"],VImg:m["a"],VRow:b["a"]})},"36a7":function(t,e,s){},"615b":function(t,e,s){},"62ad":function(t,e,s){"use strict";s("4b85");var r=s("2b0e"),i=s("d9f7"),n=s("80d2");const a=["sm","md","lg","xl"],o=(()=>a.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),c=(()=>a.reduce((t,e)=>(t["offset"+Object(n["E"])(e)]={type:[String,Number],default:null},t),{}))(),l=(()=>a.reduce((t,e)=>(t["order"+Object(n["E"])(e)]={type:[String,Number],default:null},t),{}))(),d={col:Object.keys(o),offset:Object.keys(c),order:Object.keys(l)};function u(t,e,s){let r=t;if(null!=s&&!1!==s){if(e){const s=e.replace(t,"");r+="-"+s}return"col"!==t||""!==s&&!0!==s?(r+="-"+s,r.toLowerCase()):r.toLowerCase()}}const h=new Map;e["a"]=r["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...c,order:{type:[String,Number],default:null},...l,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:s,children:r,parent:n}){let a="";for(const i in e)a+=String(e[i]);let o=h.get(a);if(!o){let t;for(t in o=[],d)d[t].forEach(s=>{const r=e[s],i=u(t,s,r);i&&o.push(i)});const s=o.some(t=>t.startsWith("col-"));o.push({col:!s||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),h.set(a,o)}return t(e.tag,Object(i["a"])(s,{class:o}),r)}})},"8efc":function(t,e,s){},"90a2":function(t,e,s){"use strict";function r(t,e){const s=e.modifiers||{},r=e.value,{handler:n,options:a}="object"===typeof r?r:{handler:r,options:{}},o=new IntersectionObserver((e=[],r)=>{if(t._observe){if(n&&(!s.quiet||t._observe.init)){const t=Boolean(e.find(t=>t.isIntersecting));n(e,r,t)}t._observe.init&&s.once?i(t):t._observe.init=!0}},a);t._observe={init:!1,observer:o},o.observe(t)}function i(t){t._observe&&(t._observe.observer.unobserve(t),delete t._observe)}const n={inserted:r,unbind:i};e["a"]=n},9878:function(t,e,s){"use strict";s("b65f");function r(t){if(""===t||null==t)return"";var e=new Date(t);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()}function i(t){if(""===t||null==t)return"";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日 "+e.getHours()+"时"+e.getMinutes()+"分"}function n(t,e){return i(t)+" ~ "+i(e)}function a(t){var e=(new Date).getTime(),s=e-t;return s=Math.trunc(s/1e3),s<60?s+"秒前":(s=Math.trunc(s/60),s<60?s+"分钟前":(s=Math.trunc(s/60),s<24?s+"小时前":(s=Math.trunc(s/24),s<30?s+"天前":r(t))))}var o,c,l={timeToNowStrning:a,renderTime:r,formateTimeToChinese:i,formateTime:n},d=l,u=s("2877"),h=Object(u["a"])(d,o,c,!1,null,null,null);e["a"]=h.exports},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return o})),s.d(e,"c",(function(){return c}));var r=s("b0af"),i=s("80d2");const n=Object(i["h"])("v-card__actions"),a=Object(i["h"])("v-card__subtitle"),o=Object(i["h"])("v-card__text"),c=Object(i["h"])("v-card__title");r["a"]},adda:function(t,e,s){"use strict";s("8efc");var r=s("90a2"),i=(s("36a7"),s("24b2")),n=s("58df"),a=Object(n["a"])(i["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),o=a,c=s("7560"),l=s("d9f7"),d=s("d9bd");const u="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(n["a"])(o,c["a"]).extend({name:"v-img",directives:{intersect:r["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const s=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[s]):s}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,s){if(!u||s||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(d["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,t.src=this.normalisedSrc.src,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const s=()=>{const{naturalHeight:r,naturalWidth:i}=t;r||i?(this.naturalWidth=i,this.calculatedAspectRatio=i/r):null!=e&&!this.hasError&&setTimeout(s,e)};s()},genContent(){const t=o.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){if(this.$slots.placeholder){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(t){const e=o.options.render.call(this,t),s=Object(l["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:u?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,s,e.children)}})},b0af:function(t,e,s){"use strict";s("615b");var r=s("10d2"),i=s("297c"),n=s("1c87"),a=s("58df");e["a"]=Object(a["a"])(i["a"],n["a"],r["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...n["a"].options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...r["a"].options.computed.classes.call(this)}},styles(){const t={...r["a"].options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=i["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},b65f:function(t,e,s){var r=s("23e7"),i=Math.ceil,n=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?n:i)(t)}})},f3a1:function(t,e,s){"use strict";function r(t){return"user"}function i(t){return!0}function n(t){return!0}var a,o,c={checkPower:r,updateUserRole:n,checkVip:i},l=c,d=s("2877"),u=Object(d["a"])(l,a,o,!1,null,null,null);e["a"]=u.exports}}]);