index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <v-container fill-height>
  3. <v-row v-if="this.$store.state.user.userInfo == null || checkPower.checkVip(this.$store.state.user.userInfo) === false" justify="center" align="center">
  4. <v-col>
  5. <v-card
  6. class="mx-auto"
  7. max-width="500"
  8. >
  9. <v-row justify="center">
  10. <v-col cols="10" style="text-align: center">
  11. <h3>开启VIP,享受无限观看次数。获取专属VIP标记!</h3>
  12. </v-col>
  13. </v-row>
  14. <v-row justify="center">
  15. <v-col cols="10" style="text-align: center">
  16. <v-btn x-large outlined color="indigo" @click="()=>this.$router.push('/vip/pay')">开启</v-btn>
  17. </v-col>
  18. </v-row>
  19. </v-card>
  20. </v-col>
  21. </v-row>
  22. <v-row v-else justify="center" align="center">
  23. <v-col>
  24. <v-card
  25. class="mx-auto"
  26. max-width="400"
  27. >
  28. <v-img
  29. class="white--text align-end"
  30. height="200px"
  31. src="https://cdn.vuetifyjs.com/images/cards/docks.jpg"
  32. >
  33. <v-card-title>你好,尊贵的VIP: {{ this.$store.state.user.userInfo.username }}</v-card-title>
  34. </v-img>
  35. <v-card-text class="text--primary">
  36. <div>VIP到期时间: <strong>{{ TimeUtil.renderTime(this.$store.state.user.userInfo.vipStopTime) }}</strong></div>
  37. <div>剩余观看次数:<strong> ∞ </strong></div>
  38. </v-card-text>
  39. <v-card-actions>
  40. <v-btn
  41. color="orange"
  42. text
  43. @click="()=>this.$router.push('/vip/pay')"
  44. >
  45. 续费
  46. </v-btn>
  47. </v-card-actions>
  48. </v-card>
  49. </v-col>
  50. </v-row>
  51. </v-container>
  52. </template>
  53. <script>
  54. import checkPower from '@/utils/check-power.vue'
  55. import TimeUtil from '@/utils/time-util.vue'
  56. export default {
  57. name: 'VIP',
  58. data() {
  59. return {
  60. checkPower,
  61. TimeUtil
  62. }
  63. }
  64. }
  65. </script>
  66. <style>
  67. </style>