applyMember.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view class="common_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title="报名信息" bgColor="#FFFFFF"></cus-header>
  4. <div class="add">
  5. <div class="btn adfacjc" @tap="handleAdd">
  6. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/09/af9133fd-e15e-454d-9152-e4629fd0ce28.png"></image>
  7. <text>添加</text>
  8. </div>
  9. </div>
  10. <template v-if="list.length">
  11. <div class="list">
  12. <up-list @scrolltolower="scrolltolower" style="height: 100%;">
  13. <up-list-item v-for="(item, index) in list" :key="index">
  14. <div class="box adfacjb">
  15. <div class="box-left adfac" @tap="handleEdit(item,index)">
  16. <div class="box-left-edit">
  17. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/09/7799f9f2-1dca-4af3-980b-7f6def10e22f.png"></image>
  18. </div>
  19. <div class="box-left-info">
  20. <div class="box-left-info-top adfac">
  21. <div class="name">{{'张琳琳'}}</div>
  22. <image class="sex" v-if="item.sex==2" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/b6d1fcb3-55ba-4104-b8cd-756b963a4da8.png"></image>
  23. <image class="sex" v-else-if="item.sex==1" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/a1899fd0-c468-48d9-b554-2f17b75a4157.png"></image>
  24. <div class="age" :class="{'women':item.sex==2,'man':item.sex==1}">{{46}}岁</div>
  25. </div>
  26. <div class="box-left-info-bottom">
  27. 身份证 {{'340123**********09'}}
  28. </div>
  29. </div>
  30. </div>
  31. <div class="box-right" @tap="handleSelect(item,index)">
  32. <image v-if="item.select" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/87b5b244-d14f-43cd-991b-4ac9f48d909e.png"></image>
  33. <image v-else src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/b8a5cabd-57f8-4ad7-9677-f6372423c50a.png"></image>
  34. </div>
  35. </div>
  36. </up-list-item>
  37. </up-list>
  38. </div>
  39. <div class="confirm">确定,已选择{{2}}人</div>
  40. </template>
  41. <template v-else>
  42. <div class="empty">暂无可选人员,请添加</div>
  43. </template>
  44. </view>
  45. </template>
  46. <script setup name="">
  47. import CusHeader from '@/components/CusHeader/index.vue'
  48. import { ref } from 'vue'
  49. const list = ref([{sex:1},{sex:2},{sex:2}])
  50. const handleAdd = () => {
  51. uni.navigateTo({
  52. url:'/pagesHome/applyMemberVindicate'
  53. })
  54. }
  55. const handleEdit = (item,index) => {
  56. uni.navigateTo({
  57. url:'/pagesHome/applyMemberVindicate?member='+encodeURIComponent(JSON.stringify(item))
  58. })
  59. }
  60. const handleSelect = (item,index) => {
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .common_page{
  65. padding-bottom: 60rpx;
  66. .add{
  67. margin-top: 20rpx;
  68. background: #FFFFFF;
  69. border-radius: 20rpx 20rpx 0 0;
  70. padding: 30rpx 24rpx 20rpx;
  71. .btn{
  72. width: 100%;
  73. background: rgba(112,207,82,0.08);
  74. border-radius: 24rpx;
  75. border: 1rpx dotted #70CF52;
  76. padding: 21rpx 0;
  77. image{
  78. width: 36rpx;
  79. height: 36rpx;
  80. }
  81. text{
  82. font-family: PingFang-SC, PingFang-SC;
  83. font-weight: bold;
  84. font-size: 28rpx;
  85. color: #70CF52;
  86. line-height: 40rpx;
  87. margin-left: 18rpx;
  88. letter-spacing: 2rpx;
  89. }
  90. }
  91. }
  92. .list{
  93. flex: 1;
  94. overflow: auto;
  95. background: #FFFFFF;
  96. border-radius: 0 0 20rpx 20rpx;
  97. padding: 0 24rpx;
  98. .box{
  99. padding: 37rpx 0;
  100. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #F2F2F2;
  101. &-left{
  102. width: calc(100% - 76rpx);
  103. &-edit{
  104. width: 36rpx;
  105. height: 36rpx;
  106. image{
  107. width: 100%;
  108. height: 100%;
  109. }
  110. }
  111. &-info{
  112. width: calc(100% - 36rpx);
  113. padding-left: 20rpx;
  114. box-sizing: border-box;
  115. &-top{
  116. .name{
  117. font-family: PingFang-SC, PingFang-SC;
  118. font-weight: bold;
  119. font-size: 32rpx;
  120. color: #151B29;
  121. line-height: 32rpx;
  122. }
  123. .sex{
  124. width: 44rpx;
  125. height: 32rpx;
  126. margin-left: 16rpx;
  127. }
  128. .age{
  129. border-radius: 13rpx;
  130. font-family: PingFangSC, PingFang SC;
  131. font-weight: 400;
  132. font-size: 20rpx;
  133. line-height: 24rpx;
  134. padding: 4rpx 10rpx;
  135. margin-left: 13rpx;
  136. &.women{
  137. background: rgba(244,101,122,0.14);
  138. color: #F4657A;
  139. }
  140. &.man{
  141. background: rgba(5,169,254,0.12);
  142. color: #05A9FE;
  143. }
  144. }
  145. }
  146. &-bottom{
  147. font-family: PingFangSC, PingFang SC;
  148. font-weight: 400;
  149. font-size: 24rpx;
  150. color: #989998;
  151. line-height: 24rpx;
  152. margin-top: 23rpx;
  153. }
  154. }
  155. }
  156. &-right{
  157. width: 36rpx;
  158. height: 36rpx;
  159. image{
  160. width: 100%;
  161. height: 100%;
  162. }
  163. }
  164. }
  165. }
  166. .confirm{
  167. padding: 0 40rpx;
  168. margin: 40rpx 0 64rpx;
  169. display: inline-block;
  170. height: 90rpx;
  171. background: #B7F358;
  172. border-radius: 45rpx;
  173. font-family: PingFang-SC, PingFang-SC;
  174. font-weight: bold;
  175. font-size: 32rpx;
  176. color: #151B29;
  177. line-height: 90rpx;
  178. text-align: center;
  179. letter-spacing: 2rpx;
  180. }
  181. .empty{
  182. margin-top: 300rpx;
  183. text-align: center;
  184. font-size: 32rpx;
  185. color: #666666;
  186. }
  187. }
  188. </style>