index.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div class="user">
  3. <van-cell label="未绑定手机号" is-link center>
  4. <template #icon>
  5. <m-user-avatar class="user-avatar" />
  6. </template>
  7. <template #title>
  8. <m-user-name />
  9. </template>
  10. </van-cell>
  11. <van-cell-group class="group">
  12. <van-cell title="我要提现" value="" is-link center @click="goCashOut">
  13. <template #icon>
  14. <m-icon type="hyyxq" class="cell-icon" />
  15. </template>
  16. </van-cell>
  17. <van-cell
  18. title="会员有效期"
  19. :value="expireTime ? expireTime : '开通会员'"
  20. is-link
  21. center
  22. @click="goBuyVip"
  23. >
  24. <template #icon>
  25. <m-icon type="hyyxq" class="cell-icon" />
  26. </template>
  27. </van-cell>
  28. </van-cell-group>
  29. <van-cell-group class="group">
  30. <van-cell
  31. title="0.01捐款(内部专用)"
  32. is-link
  33. center
  34. @click="loopPrepareOrder"
  35. >
  36. <template #icon>
  37. <m-icon type="fkbz" class="cell-icon" />
  38. </template>
  39. </van-cell>
  40. <van-cell
  41. title="反馈帮助"
  42. is-link
  43. center
  44. url="https://support.qq.com/product/359609"
  45. >
  46. <template #icon>
  47. <m-icon type="fkbz" class="cell-icon" />
  48. </template>
  49. </van-cell>
  50. </van-cell-group>
  51. </div>
  52. </template>
  53. <script lang="ts">
  54. import { useExpireTime, RouterBus } from "@/hooks";
  55. </script>
  56. <script lang="ts" setup>
  57. import { loopPrepareOrder } from "@/api";
  58. const { expireTime } = useExpireTime();
  59. const { goBuyVip, goCashOut } = new RouterBus();
  60. </script>
  61. <style scoped lang="scss">
  62. .user {
  63. background-color: #f2f3f5;
  64. height: 100vh;
  65. .group {
  66. margin: 10px 0;
  67. }
  68. .user-avatar {
  69. width: 46px;
  70. height: 46px;
  71. margin-right: 10px;
  72. }
  73. }
  74. .cell-icon {
  75. margin-right: 5px;
  76. }
  77. </style>