帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
1.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="navbar">
  3. <view class="title">
  4. <view class="left">
  5. <uv-icon name="arrow-left"
  6. v-if="leftClick"
  7. @click="$emit('leftClick')"
  8. color="#333" size="46rpx"></uv-icon>
  9. </view>
  10. <view>{{ title }}</view>
  11. <view class="icon">
  12. <uv-icon name="search"
  13. v-if="isSearch"
  14. color="#333" size="58rpx"></uv-icon>
  15. <uv-icon name="plus-circle" color="#333"
  16. v-if="isPlus"
  17. @click="plusCircleShow = true"
  18. size="46rpx" style="margin-left: 30rpx;"></uv-icon>
  19. <view v-if="moreClick" style="margin-left: 30rpx;">
  20. <uv-icon name="more-dot-fill" color="#333"
  21. v-if="!moreText"
  22. @click="moreClick()"
  23. size="46rpx"></uv-icon>
  24. <view v-else @click="moreClick"
  25. style="font-weight: 400;font-size: 30rpx;">
  26. {{ moreText }}
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. name:"navbar",
  36. props : {
  37. title : {
  38. type : String,
  39. default : ''
  40. },
  41. leftClick : {
  42. type : Boolean,
  43. },
  44. moreClick : {
  45. type : Function,
  46. },
  47. isSearch : {
  48. type : Boolean,
  49. default : false,
  50. },
  51. isPlus : {
  52. type : Boolean,
  53. default : false,
  54. },
  55. moreText : {
  56. }
  57. },
  58. created() {
  59. },
  60. beforeDestroy() {
  61. },
  62. data() {
  63. return {
  64. };
  65. },
  66. methods : {
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .navbar{
  72. width: 100%;
  73. height: 120rpx;
  74. padding-top: var(--status-bar-height);
  75. }
  76. .title{
  77. position: fixed;
  78. top: 0;
  79. left: 0;
  80. padding-top: calc(var(--status-bar-height) + 20rpx);
  81. width: 100%;
  82. height: 100rpx;
  83. background-color: #fff;
  84. display: flex;
  85. justify-content: center;
  86. font-size: 32rpx;
  87. align-items: center;
  88. z-index: 99999;
  89. .left{
  90. position: absolute;
  91. left: 40rpx;
  92. display: flex;
  93. justify-content: flex-start;
  94. }
  95. .icon{
  96. position: absolute;
  97. right: 40rpx;
  98. display: flex;
  99. justify-content: flex-end;
  100. }
  101. }
  102. @keyframes fade-in {
  103. 0% {
  104. opacity: 0;
  105. }
  106. 100% {
  107. opacity: 1;
  108. }
  109. }
  110. </style>