open-app.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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猫王妙播Pro</text>
  7. </view>
  8. <uni-button type="submit" @click="getOpen()">打开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. isShow: {
  18. type: Boolean,
  19. default: true
  20. }
  21. },
  22. methods: {
  23. // 打开app
  24. getOpen() {
  25. this.$emit('open')
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .open_App {
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 120rpx;
  37. background: rgba(255, 255, 255, 0.15);
  38. backdrop-filter: blur(16px);
  39. padding: 0 32rpx;
  40. display: flex;
  41. justify-content: space-between;
  42. align-items: center;
  43. z-index: 99;
  44. img {
  45. width: 64rpx;
  46. height: 64rpx;
  47. border-radius: 10rpx;
  48. }
  49. text {
  50. font-size: 32rpx;
  51. margin-left: 20rpx;
  52. }
  53. uni-button {
  54. width: 160rpx;
  55. height: 56rpx;
  56. line-height: 56rpx;
  57. font-size: 26rpx;
  58. border-radius: 50rpx;
  59. margin: 0;
  60. }
  61. }
  62. </style>