open-app.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view>
  3. <view class="open_App">
  4. <view style="display: flex; align-items: center;">
  5. <img src="@/static/logo.png" />
  6. <text style="font-weight: 600;">OhPlay猫王妙播</text>
  7. </view>
  8. <uni-button type="submit" @click="open">打开App</uni-button>
  9. </view>
  10. <view style="height: 88rpx" v-if="isShow" />
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. props: {
  16. // 界面类型
  17. page: {
  18. type: Number,
  19. default: null
  20. },
  21. // 频道类型
  22. channel: {
  23. type: Number,
  24. default: null
  25. },
  26. // 音频类型
  27. audioType: {
  28. type: Number,
  29. default: null
  30. },
  31. // 音频Id
  32. audioId: {
  33. type: Number,
  34. default: null
  35. },
  36. // 是否覆盖
  37. isShow: {
  38. type: Boolean,
  39. default: true
  40. }
  41. },
  42. watch: {
  43. channel(val) {
  44. return val
  45. },
  46. audioType(val) {
  47. return val
  48. },
  49. audioId(val) {
  50. return val
  51. }
  52. },
  53. methods: {
  54. // 打开app
  55. open() {
  56. this.openApp(this.page, this.channel, this.audioType, this.audioId)
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .open_App {
  63. position: fixed;
  64. top: 0;
  65. left: 0;
  66. width: 100%;
  67. height: 120rpx;
  68. background: rgba(255, 255, 255, 0.15);
  69. backdrop-filter: blur(16px);
  70. padding: 0 32rpx;
  71. display: flex;
  72. justify-content: space-between;
  73. align-items: center;
  74. z-index: 99;
  75. img {
  76. width: 64rpx;
  77. height: 64rpx;
  78. border-radius: 10rpx;
  79. }
  80. text {
  81. font-size: 32rpx;
  82. margin-left: 20rpx;
  83. }
  84. uni-button {
  85. width: 160rpx;
  86. height: 56rpx;
  87. line-height: 56rpx;
  88. font-size: 26rpx;
  89. border-radius: 50rpx;
  90. margin: 0;
  91. }
  92. }
  93. </style>