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.

54 lines
904 B

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="navbar bx">
  3. <div class="leftClick"
  4. v-if="leftClick"
  5. @click="leftClick();$play()">
  6. <uni-icons color="#000" type="left" size="30rpx"></uni-icons>
  7. </div>
  8. <div>{{ title }}</div>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. name:"m-navbar",
  14. props : ['leftClick', 'title'],
  15. data() {
  16. return {
  17. };
  18. },
  19. methods : {
  20. }
  21. }
  22. </script>
  23. <style scoped lang="scss">
  24. .navbar{
  25. position: sticky;
  26. top: 0;
  27. width: 100%;
  28. height: 90rpx;
  29. // background: linear-gradient(to right, #4899a6, #6fc6ad);
  30. background: #fff;
  31. border-bottom: 1px solid #ccc;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. color: #000;
  36. font-size: 26rpx;
  37. z-index: 9999;
  38. .leftClick{
  39. position: absolute;
  40. left: 0px;
  41. top: 0;
  42. width: 80rpx;
  43. height: 100%;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. }
  48. }
  49. .navbar-b{
  50. height: 90rpx;
  51. }
  52. </style>