applyForm.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view>
  3. <view class="sticky-nav">
  4. <view class="nav-box">
  5. <u-icon name="arrow-left" color="#000" size="48" @click="backHome()"></u-icon>
  6. <text class="apply-record">表单详情</text>
  7. </view>
  8. </view>
  9. <view class="left-nav">
  10. <ul>
  11. <li v-for="(item,index) in navList" :class="{active:!(index-menuIndex)}" @click="menuShow(index)"
  12. :key="index">
  13. {{item}}
  14. </li>
  15. </ul>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default{
  21. data(){
  22. return{
  23. menuIndex: 0,
  24. navList: ['法师', '善知识'],
  25. }
  26. },
  27. methods:{
  28. backHome() {
  29. uni.navigateBack({
  30. delta: 1
  31. });
  32. },
  33. menuShow(index) {
  34. this.menuIndex = index;
  35. },
  36. }
  37. }
  38. </script>
  39. <style>
  40. page {
  41. background-color: rgb(247, 246, 242);
  42. }
  43. </style>
  44. <style lang="less" scoped>
  45. .sticky-nav {
  46. position: sticky;
  47. width: 100%;
  48. top: 0;
  49. z-index: 1;
  50. border-bottom: 1rpx solid rgb(229,229,229);
  51. }
  52. .nav-box {
  53. width: 100%;
  54. padding-top: 50rpx;
  55. display: flex;
  56. align-items: center;
  57. background: #fff;
  58. height: 100rpx;
  59. padding-bottom: 50rpx;
  60. /deep/.u-icon{
  61. margin-left: 20rpx!important;
  62. }
  63. .apply-record {
  64. font-size: 38rpx;
  65. color: #000;
  66. margin-left: 250rpx;
  67. }
  68. }
  69. .left-nav {
  70. width: 100%;
  71. background-color: #fff;
  72. ul {
  73. padding: 0;
  74. display: flex;
  75. justify-content: space-around;
  76. align-items: center;
  77. }
  78. ul li {
  79. list-style: none;
  80. display: inline-block;
  81. height: 65rpx;
  82. line-height: 65rpx;
  83. color: #000;
  84. font-size: 16px;
  85. }
  86. .active {
  87. color: rgb(166,166,166);
  88. font-size: 18px;
  89. border-bottom: 2px solid rgb(187,13,38);
  90. }
  91. }
  92. </style>