family.vue 19 KB

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