detail.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="uni-main">
  3. <view class="sticky-nav">
  4. <view class="nav-box">
  5. <image src="../../static/index/gongdeng/back_arrow.png" class="back" ></image>
  6. <text class="header-text">详情</text>
  7. <image src="../../static/index/icon/menu_more_white.png" class="header_operate" @click="showMask"></image>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. info: {
  17. },
  18. }
  19. },
  20. methods: {
  21. showMask(){
  22. }
  23. },
  24. }
  25. </script>
  26. <style lang="less" scoped>
  27. .uni-main {
  28. width: 100%;
  29. height: 100%;
  30. background-color: #f6f7f5;
  31. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  32. }
  33. .sticky-nav {
  34. position: sticky;
  35. width: 100%;
  36. top: 0;
  37. z-index: 1;
  38. }
  39. .nav-box {
  40. width: 100%;
  41. padding-top: 90rpx;
  42. display: flex;
  43. align-items: center;
  44. background: linear-gradient(rgb(255, 152, 101), rgb(255, 122, 85));
  45. height: 135rpx;
  46. padding-bottom: 50rpx;
  47. .back {
  48. width: 85rpx;
  49. height: 85rpx;
  50. // padding-right: 35rpx;
  51. }
  52. .header-text {
  53. font-size: 45rpx;
  54. color: #fff;
  55. font-weight: bold;
  56. width: 100%;
  57. // text-align: center;
  58. margin-left: 20rpx;
  59. }
  60. .header_operate {
  61. width: 100rpx;
  62. height: 84rpx;
  63. float: right;
  64. margin-right: 20rpx;
  65. }
  66. }
  67. </style>