帧视界壹通告,付费看视频的微信小程序
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.

118 lines
1.9 KiB

11 months 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="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 : Function,
  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: 100rpx;
  74. }
  75. .title{
  76. position: fixed;
  77. top: 0;
  78. left: 0;
  79. padding-top: var(--status-bar-height);
  80. width: 100%;
  81. height: 100rpx;
  82. background-color: #f7f7f7;
  83. display: flex;
  84. justify-content: center;
  85. font-size: 32rpx;
  86. align-items: center;
  87. z-index: 99999;
  88. .left{
  89. position: absolute;
  90. left: 40rpx;
  91. display: flex;
  92. justify-content: flex-start;
  93. }
  94. .icon{
  95. position: absolute;
  96. right: 40rpx;
  97. display: flex;
  98. justify-content: flex-end;
  99. }
  100. }
  101. @keyframes fade-in {
  102. 0% {
  103. opacity: 0;
  104. }
  105. 100% {
  106. opacity: 1;
  107. }
  108. }
  109. </style>