index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="container">
  3. <view class="back-btn" @click="backToBefore()">
  4. <u-icon name="arrow-left" color="#fff" size="20" customStyle="margin:0 auto"></u-icon>
  5. <text class="back-text">企业查看</text>
  6. </view>
  7. <view class="main">
  8. <view class="item" v-for="item in itemList" :key="item.name" @click="goToPage(item.url)">
  9. <view class="item-name">{{item.name}}</view>
  10. <u-icon name="arrow-right"></u-icon>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script setup>
  16. import {
  17. ref
  18. } from 'vue'
  19. import {
  20. onLoad
  21. } from "@dcloudio/uni-app"
  22. function backToBefore() {
  23. uni.navigateBack({})
  24. };
  25. let itemList = ref([{
  26. name: '基本信息',
  27. url: '/pages/enterpriseInfo/baseInfo/index'
  28. }, {
  29. name: '法人信息',
  30. url: '/pages/enterpriseInfo/legalPerson/index'
  31. }, {
  32. name: '业务负责人信息',
  33. url: '/pages/enterpriseInfo/businessPerson/index'
  34. }])
  35. let id = ref(null)
  36. function goToPage(url) {
  37. uni.navigateTo({
  38. url: `${url}?id=${id.value}`
  39. })
  40. }
  41. onLoad((option) => {
  42. id.value = option.id
  43. })
  44. </script>
  45. <style lang="scss" scoped>
  46. page {
  47. height: 100%;
  48. background-color: #EAF0FA;
  49. }
  50. .container {
  51. position: relative;
  52. width: 100%;
  53. height: 100%;
  54. background: linear-gradient(180deg, #1869F6 0%, #EAF0FA 64%, #EAF0FA 100%);
  55. .back-btn {
  56. position: absolute;
  57. top: 8%;
  58. left: 4%;
  59. display: flex;
  60. font-size: 40rpx;
  61. font-weight: 500;
  62. color: #FFF;
  63. .back-text {
  64. margin-left: 28rpx;
  65. }
  66. }
  67. }
  68. .main {
  69. position: absolute;
  70. top: 14%;
  71. left: 4%;
  72. width: 92%;
  73. height: 354rpx;
  74. padding: 0 40rpx;
  75. background-color: #fff;
  76. border-radius: 40rpx;
  77. overflow: hidden;
  78. }
  79. .item {
  80. display: flex;
  81. justify-content: space-between;
  82. width: 100%;
  83. height: 33%;
  84. box-sizing: border-box;
  85. border-bottom: 2rpx solid #EAF0FA;
  86. .item-name {
  87. display: flex;
  88. flex-direction: column;
  89. justify-content: center;
  90. font-size: 32rpx;
  91. color: #343437;
  92. }
  93. }
  94. </style>