register.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <view class="container">
  3. <!-- 提示信息区域 -->
  4. <view class="header">
  5. <view class="header_top">欢迎加入七年级一班!!</view>
  6. <view>为确保您的信息顺利通过,请上传有效信息</view>
  7. </view>
  8. <!-- 姓名区域 -->
  9. <view class="box">
  10. <view class="box_key">
  11. <text class="text">*</text>
  12. 孩子姓名
  13. </view>
  14. <view class="box_value">
  15. <input class="input" type="text" placeholder="请输入孩子姓名" v-model="name" />
  16. </view>
  17. </view>
  18. <!-- 性别区域 -->
  19. <!-- <view class="box">
  20. <view class="box_key">
  21. <text class="text">*</text>
  22. 性别
  23. </view>
  24. <view class="box_value">
  25. <view class="men" @click="handlegender(1)">
  26. <radio color="#0061FF" style="transform: scale(0.7)" :checked="gender == 1" />
  27. </view>
  28. <view class="women" @click="handlegender(2)">
  29. <radio color="#0061FF" style="transform: scale(0.7)" :checked="gender == 2" />
  30. </view>
  31. </view>
  32. </view> -->
  33. <!-- 人脸图片区域 -->
  34. <view class="box2">
  35. <view class="box_key">
  36. <text class="text">*</text>
  37. 人脸图片
  38. </view>
  39. <view class="box_upload">
  40. <uni-icons type="plusempty" size="30" color="#666666"></uni-icons>
  41. 上传照片
  42. </view>
  43. </view>
  44. <view class="tips">注:支持.jpg .png,五官清晰无遮挡,大小不超过2M</view>
  45. <!-- 时间组区域 -->
  46. <!-- <view class="box">
  47. <view class="box_key">
  48. <text class="text">*</text>
  49. 时间组
  50. </view>
  51. <picker @change="bindPickerChange" :value="currentIndex" :range="array">
  52. <view class="box_value" :class="{ unactive: !currentIndex }">
  53. {{ currentIndex ? array[currentIndex] : '请选择' }}
  54. <image class="value_img" src="/static/images/bottom2.png" mode="aspectFill"></image>
  55. </view>
  56. </picker>
  57. </view> -->
  58. <view class="box_list">
  59. <!-- 家属区域 -->
  60. <view class="box">
  61. <view class="box_key">
  62. <text class="text">*</text>
  63. 家属
  64. </view>
  65. <view class="box_value">
  66. <input class="input" type="text" placeholder="请输入姓名" />
  67. <view class="value_icon">
  68. <uni-icons type="plus" size="25" color="#0061FF"></uni-icons>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 手机号码区域 -->
  73. <view class="box">
  74. <view class="box_key">
  75. <text class="text">*</text>
  76. 手机号码
  77. </view>
  78. <view class="box_value">
  79. <input class="input" type="text" placeholder="请输入手机号码" />
  80. </view>
  81. </view>
  82. <!-- 家属与本人的关系区域 -->
  83. <view class="box">
  84. <view class="box_key">
  85. <text class="text">*</text>
  86. 家属与本人的关系
  87. </view>
  88. <view class="box_value">
  89. <input class="input" type="text" placeholder="请输入家属与本人的关系" />
  90. </view>
  91. </view>
  92. </view>
  93. <view class="btn">确认</view>
  94. </view>
  95. </template>
  96. <script setup>
  97. import { ref } from 'vue'
  98. // 姓名
  99. const name = ref()
  100. // 性别
  101. const gender = ref(1)
  102. // 时间组当前激活索引
  103. const currentIndex = ref()
  104. // 时间组数据
  105. const array = ref(['上午', '下午'])
  106. // 切换性别回调
  107. const handlegender = (v) => {
  108. gender.value = v
  109. }
  110. // 切换时间组回调
  111. const bindPickerChange = (e) => {
  112. currentIndex.value = e.detail.value
  113. }
  114. </script>
  115. <style lang="scss" scoped>
  116. .container {
  117. box-sizing: border-box;
  118. padding: 10rpx 0 30rpx 15rpx;
  119. height: 100vh;
  120. font-size: 28rpx;
  121. .header {
  122. display: flex;
  123. flex-direction: column;
  124. justify-content: center;
  125. padding: 0 20rpx;
  126. height: 137rpx;
  127. font-size: 24rpx;
  128. font-weight: bold;
  129. background-color: #f2f7ff;
  130. .header_top {
  131. margin-bottom: 5rpx;
  132. font-size: 32rpx;
  133. }
  134. }
  135. .box {
  136. display: flex;
  137. justify-content: space-between;
  138. align-items: center;
  139. height: 96rpx;
  140. border-bottom: 2rpx solid #e6e6e6;
  141. .box_key {
  142. display: flex;
  143. align-items: center;
  144. font-weight: bold;
  145. .text {
  146. color: #d43030;
  147. }
  148. }
  149. .box_value {
  150. display: flex;
  151. align-items: center;
  152. justify-content: flex-end;
  153. padding-right: 20rpx;
  154. width: 320rpx;
  155. height: 96rpx;
  156. .input {
  157. height: 100%;
  158. text-align: end;
  159. }
  160. .men,
  161. .women {
  162. display: flex;
  163. align-items: center;
  164. }
  165. .women {
  166. margin-left: 20rpx;
  167. }
  168. .value_icon {
  169. margin-left: 15rpx;
  170. }
  171. .value_img {
  172. margin-left: 20rpx;
  173. width: 27rpx;
  174. height: 16rpx;
  175. }
  176. }
  177. .unactive {
  178. color: #6a6a6a;
  179. }
  180. }
  181. .box2 {
  182. display: flex;
  183. margin-top: 40rpx;
  184. .box_key {
  185. display: flex;
  186. font-weight: bold;
  187. .text {
  188. color: #d43030;
  189. }
  190. }
  191. .box_upload {
  192. display: flex;
  193. flex-direction: column;
  194. justify-content: center;
  195. align-items: center;
  196. margin-left: 30rpx;
  197. width: 160rpx;
  198. height: 160rpx;
  199. font-size: 24rpx;
  200. color: #666666;
  201. border-radius: 6rpx;
  202. background-color: #f2f2f2;
  203. }
  204. }
  205. .tips {
  206. margin-top: 20rpx;
  207. margin-bottom: 5rpx;
  208. font-size: 24rpx;
  209. color: #a6a6a6;
  210. }
  211. .btn {
  212. display: flex;
  213. justify-content: center;
  214. align-items: center;
  215. margin: 200rpx auto 0;
  216. width: 710rpx;
  217. height: 100rpx;
  218. color: #fff;
  219. font-size: 32rpx;
  220. border-radius: 8rpx;
  221. background-color: #0061ff;
  222. }
  223. }
  224. </style>