family.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <template>
  2. <view class="container">
  3. <view class="header">注:请按照自己的真实情况填写</view>
  4. <view class="form">
  5. <view class="form_box">
  6. <view class="form_key">手机号码:</view>
  7. <view class="form_value">
  8. <input class="input" type="text" placeholder="请输入手机号码" placeholder-style="color:#ccc;font-size:28rpx" v-model="studentInfo.phone" />
  9. </view>
  10. </view>
  11. <view class="form_box">
  12. <view class="form_key">籍贯:</view>
  13. <view class="form_select">
  14. <!-- 省 -->
  15. <picker @change="bindPickerChange" :value="currtIndex" :range="provinceList" range-key="name">
  16. <view class="select_box" :class="{ active: currtIndex != null }">
  17. <view class="box_text">
  18. {{ currtIndex != null ? provinceList[currtIndex].name : '请选择省' }}
  19. </view>
  20. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  21. </view>
  22. </picker>
  23. <!-- 市 -->
  24. <picker @change="bindPickerChange_city" :value="currtIndex_city" :range="cityList" range-key="name" :disabled="!provinceId">
  25. <view class="select_box" :class="{ active: currtIndex_city != null }">
  26. <view class="box_text">
  27. {{ currtIndex_city != null ? cityList[currtIndex_city].name : '请选择市' }}
  28. </view>
  29. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  30. </view>
  31. </picker>
  32. <!-- 区 -->
  33. <picker @change="bindPickerChange_district" :value="currtIndex_district" :range="districtList" range-key="name" :disabled="!cityId">
  34. <view class="select_box" :class="{ active: currtIndex_district != null }">
  35. <view class="box_text">
  36. {{ currtIndex_district != null ? districtList[currtIndex_district].name : '请选择区' }}
  37. </view>
  38. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  39. </view>
  40. </picker>
  41. </view>
  42. </view>
  43. <view class="form_box">
  44. <view class="form_key">家庭住址:</view>
  45. <view class="form_select">
  46. <!-- 省 -->
  47. <picker @change="bindPickerChange2" :value="currtIndex2" :range="provinceList2" range-key="name">
  48. <view class="select_box" :class="{ active: currtIndex2 != null }">
  49. <view class="box_text">{{ currtIndex2 != null ? provinceList2[currtIndex2].name : '请选择省' }}</view>
  50. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  51. </view>
  52. </picker>
  53. <!-- 市 -->
  54. <picker @change="bindPickerChange_city2" :value="currtIndex_city2" :range="cityList2" range-key="name" :disabled="!provinceId2">
  55. <view class="select_box" :class="{ active: currtIndex_city2 != null }">
  56. <view class="box_text">
  57. {{ currtIndex_city2 != null ? cityList2[currtIndex_city2].name : '请选择市' }}
  58. </view>
  59. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  60. </view>
  61. </picker>
  62. <!-- 区 -->
  63. <picker @change="bindPickerChange_district2" :value="currtIndex_district2" :range="districtList2" range-key="name" :disabled="!cityId2">
  64. <view class="select_box" :class="{ active: currtIndex_district2 != null }">
  65. <view class="box_text">{{ currtIndex_district2 != null ? districtList2[currtIndex_district2].name : '请选择区' }}</view>
  66. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  67. </view>
  68. </picker>
  69. </view>
  70. </view>
  71. <view class="form_box">
  72. <view class="form_key"></view>
  73. <view class="form_value">
  74. <input class="input" type="text" placeholder="请输入家庭住址" placeholder-style="color:#ccc;font-size:28rpx" v-model="studentInfo.address" />
  75. </view>
  76. </view>
  77. <view class="form_box">
  78. <view class="form_key">邮编:</view>
  79. <view class="form_value">
  80. <input class="input" type="text" placeholder="请输入邮编" placeholder-style="color:#ccc;font-size:28rpx" v-model="studentInfo.zipCode" />
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 家庭成员区域 -->
  85. <view class="family">
  86. <view class="family_top">
  87. <uni-icons type="staff" size="30"></uni-icons>
  88. <view class="top_title">家庭成员</view>
  89. <uni-icons style="margin-left: auto" type="personadd" size="26" color="#0061FF" @click="handleAdd"></uni-icons>
  90. </view>
  91. <view class="family_table" v-if="fvs.length">
  92. <view class="table_box top">
  93. <view class="title">称谓</view>
  94. <view class="name">姓名</view>
  95. <view class="work">工作单位</view>
  96. <view class="phone">联系方式</view>
  97. </view>
  98. <view class="table_box" v-for="(item, index) in fvs" :key="index">
  99. <view class="title">{{ item.familyShip }}</view>
  100. <view class="name">{{ item.name }}</view>
  101. <view class="work">{{ item.workUnit }}</view>
  102. <view class="phone">{{ item.phone }}</view>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 温馨提示区域 -->
  107. <view class="tips">
  108. <view class="tips_box">
  109. <view class="box_title">温馨提示:</view>
  110. <view class="box_text">{{ info }}</view>
  111. </view>
  112. </view>
  113. <!-- 按钮区域 -->
  114. <view class="btns">
  115. <view v-if="!editType" class="btn up" @click="handleUp">上一步</view>
  116. <view class="btn down" @click="handleNext">下一步</view>
  117. </view>
  118. <!-- 添加家庭成员弹窗区域 -->
  119. <uni-popup ref="popup" :is-mask-click="false">
  120. <view class="pop">
  121. <image class="pop_img" src="/static/3.png" mode="aspectFill"></image>
  122. <!-- 关闭图标 -->
  123. <uni-icons class="pop_close" type="closeempty" color="#808080" size="20" @click="handleClose"></uni-icons>
  124. <view class="pop_box">
  125. <view class="box_key">称谓:</view>
  126. <picker @change="changeName" :value="currtIndex_name" :range="nameList">
  127. <view class="box_value">
  128. <view class="box_text" :class="{ active: currtIndex_name != null }">{{ currtIndex_name != null ? nameList[currtIndex_name] : '请选择称谓' }}</view>
  129. <uni-icons type="down" size="16" color="#ccc"></uni-icons>
  130. </view>
  131. </picker>
  132. </view>
  133. <view class="pop_box" v-if="currtIndex_name == 2">
  134. <view class="box_key"></view>
  135. <view class="box_value">
  136. <input class="input" type="text" placeholder="请输入称谓" placeholder-style="color:#CCCCCC;font-size:28rpx;" v-model="popObj.familyShip" />
  137. </view>
  138. </view>
  139. <view class="pop_box">
  140. <view class="box_key">姓名:</view>
  141. <view class="box_value">
  142. <input class="input" type="text" placeholder="请输入姓名" placeholder-style="color:#CCCCCC;font-size:28rpx;" v-model="popObj.name" />
  143. </view>
  144. </view>
  145. <view class="pop_box">
  146. <view class="box_key">工作单位:</view>
  147. <view class="box_value">
  148. <input class="input" type="text" placeholder="请输入工作单位" placeholder-style="color:#CCCCCC;font-size:28rpx;" v-model="popObj.workUnit" />
  149. </view>
  150. </view>
  151. <view class="pop_box">
  152. <view class="box_key">联系方式:</view>
  153. <view class="box_value">
  154. <input class="input" type="text" placeholder="请输入联系方式" placeholder-style="color:#CCCCCC;font-size:28rpx;" v-model="popObj.phone" />
  155. </view>
  156. </view>
  157. <view class="pop_btn" @click="handleConfirm">确定</view>
  158. </view>
  159. </uni-popup>
  160. </view>
  161. </template>
  162. <script setup>
  163. import { onLoad } from '@dcloudio/uni-app'
  164. import { ref } from 'vue'
  165. import { getProvinceGroupReq, getCityGroupReq, getDistrictGroupReq } from '@/api/index.js'
  166. // 学生信息
  167. const studentInfo = ref({})
  168. // 家庭成员数据
  169. const fvs = ref([])
  170. // 弹窗DOM
  171. const popup = ref()
  172. // 省数组
  173. const provinceList = ref([])
  174. const currtIndex = ref(null)
  175. const provinceId = ref()
  176. // 市数组
  177. const cityList = ref([])
  178. const currtIndex_city = ref(null)
  179. const cityId = ref()
  180. // 区数组
  181. const districtList = ref([])
  182. const currtIndex_district = ref(null)
  183. const districtId = ref()
  184. // 省数组
  185. const provinceList2 = ref([])
  186. const currtIndex2 = ref(null)
  187. const provinceId2 = ref()
  188. // 市数组
  189. const cityList2 = ref([])
  190. const currtIndex_city2 = ref(null)
  191. const cityId2 = ref()
  192. // 区数组
  193. const districtList2 = ref([])
  194. const currtIndex_district2 = ref(null)
  195. const districtId2 = ref()
  196. // 弹窗对象数据
  197. const popObj = ref({
  198. familyShip: '',
  199. name: '',
  200. workUnit: '',
  201. phone: ''
  202. })
  203. const info = ref()
  204. const nameList = ref(['父亲', '母亲', '其他'])
  205. const currtIndex_name = ref(null)
  206. const editType = ref()
  207. onLoad(() => {
  208. studentInfo.value = uni.getStorageSync('studentInfo') || {}
  209. info.value = uni.getStorageSync('settingInfo').familyInfo || ''
  210. fvs.value = studentInfo.value.fvs || []
  211. // console.log(studentInfo.value)
  212. editType.value = uni.getStorageSync('editType')
  213. // 获取省分组
  214. getProvinceGroup()
  215. })
  216. // 获取省分组
  217. const getProvinceGroup = async () => {
  218. const res = await getProvinceGroupReq()
  219. // console.log(res)
  220. if (res.code == 200) {
  221. provinceList.value = res.data
  222. provinceList2.value = res.data
  223. if (studentInfo.value.oprovinceId) {
  224. provinceList.value.forEach((ele, index) => {
  225. if (ele.id == studentInfo.value.oprovinceId) {
  226. currtIndex.value = index
  227. }
  228. })
  229. provinceId.value = studentInfo.value.oprovinceId
  230. getCityGroup()
  231. }
  232. if (studentInfo.value.provinceId) {
  233. provinceList2.value.forEach((ele, index) => {
  234. if (ele.id == studentInfo.value.provinceId) {
  235. currtIndex2.value = index
  236. }
  237. })
  238. provinceId2.value = studentInfo.value.provinceId
  239. getCityGroup2()
  240. }
  241. }
  242. }
  243. // 选择省回调
  244. const bindPickerChange = (e) => {
  245. cityId.value = null
  246. cityList.value = []
  247. currtIndex_city.value = null
  248. districtId.value = null
  249. districtList.value = []
  250. currtIndex_district.value = null
  251. currtIndex.value = e.detail.value
  252. provinceId.value = provinceList.value[currtIndex.value].id
  253. studentInfo.value.oprovinceId = provinceId.value
  254. studentInfo.value.oprovince = provinceList.value[currtIndex.value].name
  255. // 获取市分组
  256. getCityGroup()
  257. }
  258. // 获取市分组
  259. const getCityGroup = async () => {
  260. const res = await getCityGroupReq({
  261. provinceId: provinceId.value
  262. })
  263. // console.log(res)
  264. if (res.code == 200) {
  265. cityList.value = res.data
  266. if (studentInfo.value.ocityId) {
  267. cityList.value.forEach((ele, index) => {
  268. if (ele.id == studentInfo.value.ocityId) [(currtIndex_city.value = index)]
  269. })
  270. cityId.value = studentInfo.value.ocityId
  271. getDistrictGroup()
  272. }
  273. }
  274. }
  275. // 选择市回调
  276. const bindPickerChange_city = (e) => {
  277. districtId.value = null
  278. districtList.value = []
  279. currtIndex_district.value = null
  280. currtIndex_city.value = e.detail.value
  281. cityId.value = cityList.value[currtIndex_city.value].id
  282. studentInfo.value.ocityId = cityId.value
  283. studentInfo.value.ocity = cityList.value[currtIndex_city.value].name
  284. // 获取区分组
  285. getDistrictGroup()
  286. }
  287. // 获取区分组
  288. const getDistrictGroup = async () => {
  289. const res = await getDistrictGroupReq({
  290. cityId: cityId.value
  291. })
  292. // console.log(res)
  293. if (res.code == 200) {
  294. districtList.value = res.data
  295. if (studentInfo.value.odistrictId) {
  296. districtList.value.forEach((ele, index) => {
  297. if (ele.id == studentInfo.value.odistrictId) {
  298. currtIndex_district.value = index
  299. }
  300. })
  301. }
  302. }
  303. }
  304. // 选择区回调
  305. const bindPickerChange_district = (e) => {
  306. currtIndex_district.value = e.detail.value
  307. districtId.value = districtList.value[currtIndex_district.value].id
  308. studentInfo.value.odistrictId = districtId.value
  309. studentInfo.value.odistrict = districtList.value[currtIndex_district.value].name
  310. }
  311. // 选择称谓回调
  312. const changeName = (e) => {
  313. // console.log(e)
  314. currtIndex_name.value = e.detail.value
  315. if (currtIndex_name.value != 2) {
  316. popObj.value.familyShip = nameList.value[currtIndex_name.value]
  317. } else {
  318. popObj.value.familyShip = ''
  319. }
  320. }
  321. // 点击上一步按钮回调
  322. const handleUp = () => {
  323. uni.navigateBack()
  324. }
  325. // 点击下一步按钮回调
  326. const handleNext = () => {
  327. if (!studentInfo.value.phone) {
  328. uni.showToast({
  329. title: '请输入手机号码',
  330. icon: 'none'
  331. })
  332. return
  333. }
  334. let reg = /^1[3-9]\d{9}$/
  335. if (!reg.test(studentInfo.value.phone)) {
  336. uni.showToast({
  337. title: '手机号码格式错误',
  338. icon: 'none'
  339. })
  340. return
  341. }
  342. if (currtIndex.value == null) {
  343. uni.showToast({
  344. title: '请选择籍贯省',
  345. icon: 'none'
  346. })
  347. return
  348. }
  349. if (currtIndex_city.value == null) {
  350. uni.showToast({
  351. title: '请选择籍贯市',
  352. icon: 'none'
  353. })
  354. return
  355. }
  356. if (currtIndex_district.value == null) {
  357. uni.showToast({
  358. title: '请选择籍贯区',
  359. icon: 'none'
  360. })
  361. return
  362. }
  363. if (currtIndex2.value == null) {
  364. uni.showToast({
  365. title: '请选择家庭住址省',
  366. icon: 'none'
  367. })
  368. return
  369. }
  370. if (currtIndex_city2.value == null) {
  371. uni.showToast({
  372. title: '请选择家庭住址市',
  373. icon: 'none'
  374. })
  375. return
  376. }
  377. if (currtIndex_district2.value == null) {
  378. uni.showToast({
  379. title: '请选择家庭住址区',
  380. icon: 'none'
  381. })
  382. return
  383. }
  384. if (!studentInfo.value.address) {
  385. uni.showToast({
  386. title: '请输入家庭住址',
  387. icon: 'none'
  388. })
  389. return
  390. }
  391. // if (!studentInfo.value.zipCode) {
  392. // uni.showToast({
  393. // title: '请输入邮编',
  394. // icon: 'none'
  395. // })
  396. // return
  397. // }
  398. if (!fvs.value.length) {
  399. uni.showToast({
  400. title: '请至少添加一名家庭成员',
  401. icon: 'none'
  402. })
  403. return
  404. }
  405. studentInfo.value.fvs = fvs.value
  406. uni.setStorageSync('studentInfo', studentInfo.value)
  407. uni.navigateTo({
  408. url: '/pages/arrive/arrive'
  409. })
  410. }
  411. // 添加家庭成员按钮回调
  412. const handleAdd = () => {
  413. popup.value.open()
  414. }
  415. // 弹窗关闭图标回调
  416. const handleClose = () => {
  417. popup.value.close()
  418. currtIndex_name.value = null
  419. popObj.value = {
  420. familyShip: '',
  421. name: '',
  422. workUnit: '',
  423. phone: ''
  424. }
  425. }
  426. // 点击弹窗确定按钮回调
  427. const handleConfirm = () => {
  428. if (!popObj.value.familyShip) {
  429. uni.showToast({
  430. title: '请输入称谓',
  431. icon: 'none'
  432. })
  433. return
  434. }
  435. if (!popObj.value.name) {
  436. uni.showToast({
  437. title: '请输入姓名',
  438. icon: 'none'
  439. })
  440. return
  441. }
  442. if (!popObj.value.workUnit) {
  443. uni.showToast({
  444. title: '请输入工作单位',
  445. icon: 'none'
  446. })
  447. return
  448. }
  449. if (!popObj.value.phone) {
  450. uni.showToast({
  451. title: '请输入联系方式',
  452. icon: 'none'
  453. })
  454. return
  455. }
  456. let reg = /^1[3-9]\d{9}$/
  457. if (!reg.test(popObj.value.phone)) {
  458. uni.showToast({
  459. title: '联系方式格式错误',
  460. icon: 'none'
  461. })
  462. return
  463. }
  464. // console.log(popObj.value)
  465. uni.showModal({
  466. title: '提示',
  467. content: '确定添加吗?',
  468. success: (res) => {
  469. if (res.confirm) {
  470. fvs.value.push(popObj.value)
  471. handleClose()
  472. }
  473. }
  474. })
  475. }
  476. // 选择省回调
  477. const bindPickerChange2 = (e) => {
  478. cityId2.value = null
  479. cityList2.value = []
  480. currtIndex_city2.value = null
  481. districtId2.value = null
  482. districtList2.value = []
  483. currtIndex_district2.value = null
  484. currtIndex2.value = e.detail.value
  485. provinceId2.value = provinceList2.value[currtIndex2.value].id
  486. studentInfo.value.provinceId = provinceId2.value
  487. studentInfo.value.province = provinceList2.value[currtIndex2.value].name
  488. // 获取市分组
  489. getCityGroup2()
  490. }
  491. // 获取市分组
  492. const getCityGroup2 = async () => {
  493. const res = await getCityGroupReq({
  494. provinceId: provinceId2.value
  495. })
  496. // console.log(res)
  497. if (res.code == 200) {
  498. cityList2.value = res.data
  499. if (studentInfo.value.cityId) {
  500. cityList2.value.forEach((ele, index) => {
  501. if (ele.id == studentInfo.value.cityId) {
  502. currtIndex_city2.value = index
  503. }
  504. })
  505. cityId2.value = studentInfo.value.cityId
  506. getDistrictGroup2()
  507. }
  508. }
  509. }
  510. // 选择市回调
  511. const bindPickerChange_city2 = (e) => {
  512. districtId2.value = null
  513. districtList2.value = []
  514. currtIndex_district2.value = null
  515. currtIndex_city2.value = e.detail.value
  516. cityId2.value = cityList2.value[currtIndex_city2.value].id
  517. studentInfo.value.cityId = cityId2.value
  518. studentInfo.value.city = cityList2.value[currtIndex_city2.value].name
  519. // 获取区分组
  520. getDistrictGroup2()
  521. }
  522. // 获取区分组
  523. const getDistrictGroup2 = async () => {
  524. const res = await getDistrictGroupReq({
  525. cityId: cityId2.value
  526. })
  527. // console.log(res)
  528. if (res.code == 200) {
  529. districtList2.value = res.data
  530. if (studentInfo.value.districtId) {
  531. districtList2.value.forEach((ele, index) => {
  532. if (ele.id == studentInfo.value.districtId) {
  533. currtIndex_district2.value = index
  534. }
  535. })
  536. }
  537. }
  538. }
  539. // 选择区回调
  540. const bindPickerChange_district2 = (e) => {
  541. currtIndex_district2.value = e.detail.value
  542. districtId2.value = districtList2.value[currtIndex_district2.value].id
  543. studentInfo.value.districtId = districtId2.value
  544. studentInfo.value.district = districtList2.value[currtIndex_district2.value].name
  545. }
  546. </script>
  547. <style lang="scss" scoped>
  548. .container {
  549. min-height: 100vh;
  550. background-color: #f5f9ff;
  551. .header {
  552. padding-left: 20rpx;
  553. height: 93rpx;
  554. line-height: 93rpx;
  555. font-size: 28rpx;
  556. font-weight: bold;
  557. background-color: #fff;
  558. }
  559. .form {
  560. padding: 25rpx 0;
  561. margin-top: 10rpx;
  562. background-color: #fff;
  563. .form_box {
  564. display: flex;
  565. align-items: center;
  566. margin-bottom: 20rpx;
  567. height: 75rpx;
  568. .form_key {
  569. width: 170rpx;
  570. font-size: 28rpx;
  571. text-align: end;
  572. }
  573. .form_value {
  574. box-sizing: border-box;
  575. padding: 0 25rpx;
  576. width: 560rpx;
  577. height: 100%;
  578. border-radius: 4rpx;
  579. border: 2rpx solid #cccccc;
  580. .input {
  581. height: 100%;
  582. }
  583. }
  584. .form_select {
  585. display: flex;
  586. justify-content: space-between;
  587. width: 560rpx;
  588. .select_box {
  589. display: flex;
  590. align-items: center;
  591. justify-content: space-around;
  592. width: 178rpx;
  593. height: 74rpx;
  594. color: #ccc;
  595. font-size: 28rpx;
  596. border-radius: 4rpx;
  597. border: 2rpx solid #cccccc;
  598. .box_text {
  599. overflow: hidden;
  600. white-space: nowrap;
  601. text-overflow: ellipsis;
  602. }
  603. }
  604. .active {
  605. color: #000;
  606. }
  607. }
  608. }
  609. }
  610. .family {
  611. background-color: #fff;
  612. .family_top {
  613. display: flex;
  614. align-items: center;
  615. padding: 0 20rpx;
  616. height: 90rpx;
  617. .top_title {
  618. margin-left: 20rpx;
  619. font-size: 30rpx;
  620. font-weight: bold;
  621. }
  622. }
  623. .family_table {
  624. padding: 0 20rpx;
  625. font-size: 24rpx;
  626. .table_box {
  627. display: flex;
  628. justify-content: space-between;
  629. align-items: center;
  630. height: 70rpx;
  631. border-bottom: 2rpx solid #e6e6e6;
  632. .title {
  633. width: 140rpx;
  634. text-align: center;
  635. white-space: nowrap;
  636. text-overflow: ellipsis;
  637. overflow: hidden;
  638. }
  639. .name {
  640. width: 140rpx;
  641. text-align: center;
  642. white-space: nowrap;
  643. text-overflow: ellipsis;
  644. overflow: hidden;
  645. }
  646. .work {
  647. width: 200rpx;
  648. text-align: center;
  649. white-space: nowrap;
  650. text-overflow: ellipsis;
  651. overflow: hidden;
  652. }
  653. .phone {
  654. width: 200rpx;
  655. text-align: center;
  656. white-space: nowrap;
  657. text-overflow: ellipsis;
  658. overflow: hidden;
  659. }
  660. }
  661. .top {
  662. background-color: #f0f3f7;
  663. }
  664. }
  665. }
  666. .tips {
  667. padding: 15rpx;
  668. font-size: 24rpx;
  669. background-color: #fff;
  670. .tips_box {
  671. padding: 20rpx 0 20rpx 10rpx;
  672. line-height: 58rpx;
  673. background-color: #fff2f2;
  674. }
  675. }
  676. .btns {
  677. display: flex;
  678. align-items: center;
  679. justify-content: space-around;
  680. padding: 10rpx 0 50rpx;
  681. height: 100rpx;
  682. background-color: #fff;
  683. .btn {
  684. display: flex;
  685. align-items: center;
  686. justify-content: center;
  687. width: 300rpx;
  688. height: 100rpx;
  689. font-size: 32rpx;
  690. border-radius: 8rpx;
  691. }
  692. .up {
  693. border: 2rpx solid #0061ff;
  694. }
  695. .down {
  696. color: #fff;
  697. background-color: #0061ff;
  698. }
  699. }
  700. .pop {
  701. position: relative;
  702. display: flex;
  703. flex-direction: column;
  704. align-items: center;
  705. box-sizing: border-box;
  706. padding: 150rpx 20rpx 50rpx;
  707. width: 659rpx;
  708. height: 788rpx;
  709. border-radius: 15rpx;
  710. background: linear-gradient(180deg, #ebf2ff 0%, #ffffff 100%);
  711. .pop_img {
  712. position: absolute;
  713. top: -103rpx;
  714. left: 227rpx;
  715. width: 206rpx;
  716. height: 206rpx;
  717. }
  718. .pop_close {
  719. position: absolute;
  720. top: 19rpx;
  721. right: 29rpx;
  722. }
  723. .pop_box {
  724. display: flex;
  725. align-items: center;
  726. margin-bottom: 20rpx;
  727. .box_key {
  728. width: 150rpx;
  729. font-size: 28rpx;
  730. text-align: end;
  731. }
  732. .box_value {
  733. display: flex;
  734. align-items: center;
  735. justify-content: space-between;
  736. box-sizing: border-box;
  737. padding: 0 20rpx;
  738. width: 300rpx;
  739. height: 70rpx;
  740. border-radius: 4rpx;
  741. border: 2rpx solid #cccccc;
  742. .box_text {
  743. color: #ccc;
  744. font-size: 28rpx;
  745. }
  746. .input {
  747. // padding: 0 20rpx;
  748. height: 100%;
  749. }
  750. .active {
  751. color: #000;
  752. }
  753. }
  754. }
  755. .pop_btn {
  756. display: flex;
  757. align-items: center;
  758. justify-content: center;
  759. margin-top: 30rpx;
  760. width: 460rpx;
  761. height: 100rpx;
  762. color: #fff;
  763. font-size: 32rpx;
  764. border-radius: 8rpx;
  765. background-color: #0061ff;
  766. }
  767. }
  768. }
  769. </style>