order.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <template>
  2. <view class="safeAreas">
  3. <nav-bar title="预约考试"></nav-bar>
  4. <view class="appointment">
  5. <view class="appointmentItem">
  6. <view class="title">考试地点:</view>
  7. <view class="place" @click="showAddress">
  8. <view class="name">{{ addressName }}</view>
  9. <view
  10. ><u-icon name="arrow-right" color="#999999" size="28"></u-icon
  11. ></view>
  12. </view>
  13. </view>
  14. <view class="appointmentItem" v-if="activeList.length">
  15. <view class="title">考试时间:</view>
  16. <view class="main">
  17. <view
  18. v-for="(item, index) in activeList"
  19. class="item"
  20. :key="index"
  21. @click="choItem(index)"
  22. >
  23. <view class="checkbox"
  24. ><u-checkbox
  25. v-if="item.status === 0"
  26. v-model="item.checked"
  27. shape="circle"
  28. ></u-checkbox
  29. ></view>
  30. <view class="box">
  31. <view
  32. :class="[
  33. 'time',
  34. { active: item.checked },
  35. { no: item.status !== 0 },
  36. ]"
  37. >{{
  38. item.dataTime + " " + item.startTime + " ~ " + item.endTime
  39. }}</view
  40. >
  41. <view class="statusInfo" v-if="item.status !== 0">
  42. <template v-if="item.status === 2"> 预约名额已满 </template>
  43. <template v-if="item.status === 1">
  44. 此时段您已经有其他考试预约
  45. </template>
  46. </view>
  47. </view>
  48. <view class="num"
  49. >已报:{{ item.registration }}/{{ item.num }}</view
  50. >
  51. </view>
  52. </view>
  53. </view>
  54. <view v-else class="appointmentItem">
  55. <view class="title">
  56. <text v-if="addressName && addressName != '请选择'">
  57. 该考试地点暂无考试时间,建议重新选择考试地点
  58. </text>
  59. <!-- <text v-else>
  60. 当前考培地点无考前培训时间点
  61. </text> -->
  62. </view>
  63. </view>
  64. <!-- 考试疫情承诺书 -->
  65. <view v-if="reportStatus == 1" class="appointmentItem">
  66. <view class="title"
  67. ><text class="star_red">*</text>考试疫情防控承诺书</view
  68. >
  69. <view class="commitment">
  70. 本人参加“住房和城乡建设领域施工现场专业人员岗位”考试,愿意遵守疫情防控各项管理的相关要求,秉承对自己、对他人负责的原则,承担疫情防控社会责任,郑重作出以下承诺:<br />
  71. 一、充分理解并遵守考试期间考点各项防疫安全的要求。<br />
  72. 二、在考试前14天内,没有到过国内疫情中风险、高风险地区,未出境,不存在自境外回国情形。<br />
  73. 三、在考试前14天内,每日自觉监测体温,体温均未出现高于37.3度的情形,无发热和呼吸道门诊就诊史。<br />
  74. 四、在考试前14天内,未和新冠肺炎病例或疑似病例密切接触或间接接触,没有发烧、干咳、乏力、咳痰、气短、肌肉痛或关节痛、咽喉痛、头痛、寒颤、恶心或呕吐、鼻塞、腹泻、咳血、结膜充血等疑似新冠肺炎症状。<br />
  75. 五、如出现与前述第二、三、四项任何一项不符的情形之一的,本人将及时在考前向相关管理机构报告,自觉配合采取隔离或其他防疫措施,并根据情况,自愿放弃参加考试。<br />
  76. 六、考试当日自行做好防护工作,佩戴防护口罩。提前抵达考点,配合查验健康码、测量体温等。<br />
  77. 七、考试期间,将严格遵守应考人员考场守则及疫情防控相关管理要求,完成考试后立即离场,不扎堆,不聚集。<br />
  78. 八、本人承诺遵守《应考人员安全承诺书》中所有承诺内容,若因有瞒报、谎报造成新冠肺炎疫情传播的,一经查实,由本人承担相应的法律和经济责任。
  79. </view>
  80. </view>
  81. <view v-if="reportStatus == 1" class="appointmentItem">
  82. <view class="title"><text class="star_red">*</text>签名板</view>
  83. <view class="dis_stys">
  84. <text style="color: #999999">请在下方签名区进行签名</text>
  85. <text @click="retDraw" mode="">清空</text>
  86. </view>
  87. <view class="handCenter">
  88. <view v-show="!address_show" class="can_vas">
  89. <canvas
  90. class="handWriting"
  91. disable-scroll="true"
  92. :catchtouchmove="true"
  93. @touchstart="uploadScaleStart"
  94. @touchmove="uploadScaleMove"
  95. @touchend="uploadScaleEnd"
  96. canvas-id="handWriting"
  97. ></canvas>
  98. </view>
  99. <view v-show="address_show" class="no_true"></view>
  100. <!-- <view
  101. v-else
  102. style="width: 100%; height: 100%; position: relative"
  103. >
  104. <view class="ctoples">图片</view>
  105. <image
  106. style="width: 100%; height: 100%"
  107. :src="$method.splitImgHost(form[item.fieldKey])"
  108. mode=""
  109. ></image>
  110. </view> -->
  111. </view>
  112. </view>
  113. <view class="btnMain">
  114. <view class="return" @click="backPage">上一步</view>
  115. <view class="sure" @click="sureOppoint">{{
  116. dataId === 1 ? "下一步" : dataId === 2 ? "确定预约" : "异常"
  117. }}</view>
  118. </view>
  119. </view>
  120. <!-- 弹框-->
  121. <u-popup v-model="address_show" mode="bottom" class="addModel">
  122. <view class="tipBox safeArea">
  123. <view class="line"></view>
  124. <view class="title">温馨提示</view>
  125. <u-line color="#EEEEEE" />
  126. <scroll-view class="addressList" :scroll-y="true">
  127. <view
  128. class="item"
  129. v-for="(item, index) in listData"
  130. :key="index"
  131. @click="choAddress(item, index)"
  132. >
  133. <u-checkbox
  134. class="checkbox"
  135. v-model="item.checked"
  136. shape="circle"
  137. ></u-checkbox>
  138. <view :class="['address', { active: item.checked }]">{{
  139. item.siteAddress
  140. }}</view>
  141. </view>
  142. </scroll-view>
  143. <u-line color="#EEEEEE" />
  144. <view class="btn" @click="sureAddress">确认</view>
  145. </view>
  146. </u-popup>
  147. <u-modal v-model="showSuccessTip" width="560" @confirm="confirmTip">
  148. <view class="slot-content">
  149. <view class="modal_centent">
  150. <view>
  151. <text>考试时间:</text
  152. ><text v-if="activeList.length">{{
  153. activeList[0].dataTime +
  154. " " +
  155. activeList[0].startTime +
  156. " ~ " +
  157. activeList[0].endTime
  158. }}</text>
  159. </view>
  160. <view>
  161. <text>考试地址:</text><text>{{ addressName }}</text>
  162. </view>
  163. <view> <text>考试时间:</text><text>2小时 </text> </view>
  164. <view> <text>考试形式:</text><text>机考</text> </view>
  165. <view>
  166. <text>考试成绩:</text>
  167. <text>提交试卷后即刻显示成绩,60 分以上合格。</text>
  168. </view>
  169. <view>
  170. <text style="width: 194rpx">学校咨询电话:</text
  171. ><text>{{ userInfo && userInfo.eduPhone }}</text>
  172. </view>
  173. </view>
  174. <view class="modal_tip">
  175. 注意事项:考试当天请学员携带本人身份证提前 30
  176. 分钟到达考场,迟到将不得进入考场,并被认定为缺考处理。
  177. </view>
  178. </view>
  179. </u-modal>
  180. </view>
  181. </template>
  182. <script>
  183. import { mapGetters } from "vuex";
  184. import Handwriting from "@/common/signature.js";
  185. export default {
  186. data() {
  187. return {
  188. orderGoodsId: 0,
  189. address_show: false,
  190. addressName: "请选择",
  191. addressId: null, //当前选中考试点ID
  192. listData: [], //考试地点数据
  193. activeList: [], //选中考试地点列表
  194. applyId: null, //考试计划ID
  195. goodsId: null, //商品ID
  196. applyStatus: null, //学员状态ID
  197. sysTime: 0,
  198. dataId: null, //跳转拷贝
  199. handwriting: "",
  200. lineColor: "black",
  201. slideValue: 30,
  202. openVerify: false, // 控制是否手动验证
  203. commitment_electr_signature: "",
  204. isUploading: false,
  205. siteId: "", // 考场id
  206. reportStatus: 0, // 是否线上签署疫情防控承诺书, 1是,0否
  207. baseAddress: "", // 签名转成base64
  208. showSuccessTip: false,
  209. };
  210. },
  211. async onLoad(option) {
  212. this.applyId = Number(option.applyId);
  213. this.goodsId = Number(option.goodsId);
  214. this.applyStatus = Number(option.applyStatus);
  215. this.dataId = Number(option.dataId);
  216. this.orderGoodsId = Number(option.orderGoodsId);
  217. this.reportStatus = option.reportStatus;
  218. await this.commonSystemTime();
  219. this.getInfo();
  220. },
  221. onReady(res) {
  222. this.handwriting = new Handwriting({
  223. lineColor: this.lineColor,
  224. slideValue: this.slideValue, // 0, 25, 50, 75, 100
  225. canvasName: "handWriting",
  226. });
  227. // this.$refs.uForm.setRules(this.rules);
  228. },
  229. methods: {
  230. commonSystemTime() {
  231. return new Promise((resolve) => {
  232. this.$api.commonSystemTime().then((res) => {
  233. this.sysTime = res.data.data;
  234. resolve();
  235. });
  236. });
  237. },
  238. //获取考试地点
  239. getInfo() {
  240. // apply/subscribeApplySite
  241. this.$api
  242. .getApplysubscribeApplySite({ applyId: this.applyId })
  243. .then((res) => {
  244. if (res.data.code === 200) {
  245. res.data.data.forEach((item, index) => {
  246. item.checked = false;
  247. });
  248. this.listData = res.data.data;
  249. console.log("this.listData:", this.listData);
  250. }
  251. });
  252. },
  253. showAddress() {
  254. this.address_show = true;
  255. },
  256. choAddress(item, index) {
  257. this.siteId = item.siteId;
  258. this.listData.forEach((item, idx) => {
  259. this.$set(item, "checked", false);
  260. if (idx === index) {
  261. this.$set(item, "checked", true);
  262. }
  263. });
  264. },
  265. sureAddress() {
  266. var self = this;
  267. const index = this.listData.findIndex((item) => item.checked);
  268. if (index === -1) {
  269. uni.showToast({
  270. title: "请选择考试地点",
  271. icon: "none",
  272. });
  273. return;
  274. }
  275. this.siteId = this.listData[index].siteId;
  276. console.log("siteId: ", this.siteId, index);
  277. if (this.addressId === this.listData[index].id) {
  278. this.address_show = false;
  279. return;
  280. }
  281. this.addressName = this.listData[index].siteAddress;
  282. console.log("addressName", this.addressName, this.listData);
  283. this.addressId = this.listData[index].id;
  284. var arrays = [];
  285. this.listData[index].examUserApplySiteTime.forEach((item) => {
  286. item.examApplySiteTimeTwoVo.forEach((items) => {
  287. arrays.push({
  288. examTime: item.examTime,
  289. startTimeC: items.startTime,
  290. endTimeC: items.endTime,
  291. dataTime: self.$method
  292. .timestampToTime(item.examTime)
  293. .replace(/-/g, "/"),
  294. startTime: items.startTime,
  295. endTime: items.endTime,
  296. num: items.num,
  297. registration: items.registration,
  298. checked: false,
  299. status:
  300. items.status === 1
  301. ? items.status
  302. : items.registration >= items.num
  303. ? 2
  304. : items.status,
  305. });
  306. });
  307. });
  308. console.log("arrays", arrays);
  309. this.activeList = arrays.filter((item, index) => {
  310. console.log(item);
  311. // const newTime = parseInt(new Date().getTime() / 1000)
  312. // console.log(
  313. // item.dataTime.replace(/-/g, "/") + "" + item.startTime + ":00"
  314. // );
  315. const liTime = parseInt(
  316. new Date(
  317. item.dataTime.replace(/-/g, "/") + "" + item.startTime + ":00"
  318. ).getTime() / 1000
  319. );
  320. console.log(liTime, "liTime");
  321. console.log(this.sysTime, "newTime");
  322. if (liTime > this.sysTime) {
  323. return item;
  324. }
  325. });
  326. console.log("----", this.activeList);
  327. this.address_show = false;
  328. },
  329. choItem(index) {
  330. const item = this.activeList[index];
  331. if (item.status !== 0) {
  332. return;
  333. }
  334. this.activeList.forEach((item, idx) => {
  335. item.checked = false;
  336. if (idx === index) {
  337. item.checked = true;
  338. }
  339. });
  340. },
  341. async sureOppoint() {
  342. if (this.isUploading) {
  343. return;
  344. }
  345. this.isUploading = true;
  346. var self = this;
  347. if (self.addressId) {
  348. var ast = self.activeList.some((item) => {
  349. return item.checked === true;
  350. });
  351. console.log("ast", this.activeList, ast);
  352. if (ast) {
  353. if (this.reportStatus == 1) {
  354. await this.subCanvas();
  355. if (!this.commitment_electr_signature) {
  356. uni.showToast({
  357. title: "请签名",
  358. icon: "none",
  359. });
  360. this.isUploading = false;
  361. return;
  362. } else {
  363. // await this.submitApi()
  364. uni.getFileSystemManager().readFile({
  365. filePath: this.commitment_electr_signature, //临时路径
  366. encoding: "base64", //编码格式
  367. success: (res) => {
  368. console.log("返回结果", res);
  369. const base64 = "data:image/png;base64," + res.data;
  370. console.log("sfs签名转成base64", base64);
  371. this.baseAddress = base64;
  372. // return
  373. this.submits();
  374. },
  375. fail: (err) => {
  376. console.log("转base64错误", err);
  377. this.isUploading = false;
  378. },
  379. });
  380. // uni.request({
  381. // url: this.commitment_electr_signature, //临时路径
  382. // responseType: 'arraybuffer', //设置返回的数据格式为arraybuffer
  383. // success: res => {
  384. // const base64 = "data:image/png;base64," + uni.arrayBufferToBase64(res.data)
  385. // console.log('sfs签名转成base64', base64)
  386. // this.baseAddress = base64
  387. // this.submits()
  388. // },
  389. // fail: err => {
  390. // console.log('转base64错误', err)
  391. // this.isUploading = false
  392. // }
  393. // })
  394. }
  395. } else {
  396. this.submits();
  397. }
  398. } else {
  399. uni.showToast({
  400. title: "请选择考试时间",
  401. icon: "none",
  402. });
  403. this.isUploading = false;
  404. }
  405. } else {
  406. uni.showToast({
  407. title: "请选择考试地点",
  408. icon: "none",
  409. });
  410. this.isUploading = false;
  411. }
  412. },
  413. submits() {
  414. uni.showLoading({
  415. title: "拼命加载中...",
  416. mask: true,
  417. });
  418. var copyData = JSON.parse(JSON.stringify(this.activeList));
  419. const index = copyData.findIndex((item) => item.checked);
  420. var data = {
  421. applyId: this.applyId,
  422. goodsId: this.goodsId,
  423. studentType: this.applyStatus,
  424. applySiteAddress: this.addressName,
  425. applySiteExamTime: copyData[index].examTime,
  426. applySiteStartTime: copyData[index].startTimeC,
  427. applySiteEndTime: copyData[index].endTimeC,
  428. orderGoodsId: this.orderGoodsId,
  429. siteId: this.siteId, // 考场id
  430. };
  431. if (this.reportStatus == 1) {
  432. data.signImageStr = this.baseAddress;
  433. }
  434. console.log("-----data", data, this.dataId);
  435. // return
  436. if (this.dataId === 1) {
  437. this.$store.commit("updateApplyData", data);
  438. this.$navTo.togo("/pages2/appointment/kporder", {
  439. applyId: this.applyId,
  440. applyStatus: this.applyStatus,
  441. goodsId: this.goodsId,
  442. orderGoodsId: this.orderGoodsId,
  443. });
  444. uni.hideLoading();
  445. }
  446. if (this.dataId === 2) {
  447. this.$api.addApply(data).then((res) => {
  448. if (res.data.code === 200) {
  449. // uni.reLaunch({
  450. // url: `/pages2/appointment/appointment_success?subscribeId=${res.data.data}`,
  451. // });
  452. this.$u.toast("预约成功");
  453. setTimeout(() => {
  454. this.showSuccessTip = true;
  455. }, 500);
  456. } else {
  457. uni.showToast({
  458. icon: "none",
  459. title: res.data.msg || "预约失败,请重新预约",
  460. });
  461. }
  462. uni.hideLoading();
  463. });
  464. }
  465. this.isUploading = false;
  466. },
  467. backPage() {
  468. uni.navigateBack({
  469. delta: 1,
  470. });
  471. },
  472. retDraw() {
  473. this.handwriting.retDraw();
  474. this.commitment_electr_signature = "";
  475. // this.$set(this.form, "commitment_electr_signature", "");
  476. this.openVerify = false;
  477. },
  478. uploadScaleStart(event) {
  479. this.handwriting.uploadScaleStart(event);
  480. },
  481. uploadScaleMove(event) {
  482. this.handwriting.uploadScaleMove(event);
  483. },
  484. uploadScaleEnd(event) {
  485. this.handwriting.uploadScaleEnd(event);
  486. },
  487. async subCanvas() {
  488. console.log("签名-------");
  489. return new Promise((resolve, reject) => {
  490. if (this.commitment_electr_signature) {
  491. resolve();
  492. return;
  493. }
  494. this.handwriting
  495. .saveCanvas()
  496. .then((res) => {
  497. if (this.handwriting.linePrack.length) {
  498. console.log("签名-----res", res);
  499. this.commitment_electr_signature = res;
  500. }
  501. resolve(res);
  502. })
  503. .catch((err) => {
  504. uni.showToast({
  505. title: "签名上传失败",
  506. icon: "error",
  507. });
  508. this.isUploading = false;
  509. });
  510. });
  511. },
  512. confirmTip() {
  513. uni.switchTab({
  514. url: "/pages/learn/index",
  515. });
  516. },
  517. },
  518. computed: {
  519. ...mapGetters(["userInfo"]),
  520. },
  521. };
  522. </script>
  523. <style>
  524. page {
  525. background-color: #eaeef1;
  526. }
  527. .addModel .u-drawer-bottom {
  528. box-shadow: 0px 0px 16px 4px rgba(145, 156, 178, 0.1);
  529. border-radius: 32rpx 32rpx 0px 0px;
  530. }
  531. </style>
  532. <style scoped lang="scss">
  533. .slot-content {
  534. padding: 30rpx;
  535. .modal_centent {
  536. view {
  537. display: flex;
  538. margin: 20rpx 0;
  539. text {
  540. &:nth-of-type(1) {
  541. width: 140rpx;
  542. color: #606266;
  543. font-size: 28rpx;
  544. }
  545. &:nth-of-type(2) {
  546. flex: 1;
  547. color: #909399;
  548. font-size: 26rpx;
  549. }
  550. }
  551. }
  552. }
  553. .modal_tip {
  554. margin-top: 30rpx;
  555. font-size: 28rpx;
  556. color: red;
  557. }
  558. }
  559. .safeAreas {
  560. padding-bottom: 30rpx;
  561. }
  562. .appointment {
  563. padding: 0 8rpx;
  564. .appointmentItem {
  565. margin: 24rpx 0 40rpx;
  566. .title {
  567. font-size: 30rpx;
  568. font-family: PingFang SC;
  569. font-weight: 500;
  570. color: #333333;
  571. line-height: 1;
  572. margin-bottom: 16rpx;
  573. padding-left: 24rpx;
  574. .star_red {
  575. color: red;
  576. }
  577. }
  578. .place {
  579. height: 80rpx;
  580. background: #ffffff;
  581. border-radius: 16rpx;
  582. display: flex;
  583. justify-content: space-between;
  584. align-items: center;
  585. padding: 0 24rpx;
  586. }
  587. .commitment {
  588. padding: 12rpx;
  589. height: 300rpx;
  590. background: #ffffff;
  591. overflow-y: auto;
  592. }
  593. .handCenter,
  594. .dis_stys,
  595. .commitment {
  596. margin: 0rpx 24rpx;
  597. }
  598. .dis_stys {
  599. display: flex;
  600. justify-content: space-between;
  601. align-items: center;
  602. margin-bottom: 16rpx;
  603. }
  604. .handCenter {
  605. .handWriting,
  606. .no_true {
  607. width: 100%;
  608. height: 400rpx;
  609. background: #fff;
  610. }
  611. }
  612. }
  613. .main {
  614. background: #ffffff;
  615. border-radius: 16rpx;
  616. padding: 32rpx 16rpx;
  617. .item {
  618. display: flex;
  619. align-items: center;
  620. margin-bottom: 16rpx;
  621. font-size: 28rpx;
  622. font-family: PingFang SC;
  623. font-weight: 500;
  624. color: #333333;
  625. .statusInfo {
  626. font-size: 24rpx;
  627. font-family: PingFang SC;
  628. font-weight: 500;
  629. color: #ff3b30;
  630. padding-left: 24rpx;
  631. }
  632. .checkbox {
  633. width: 32rpx;
  634. height: 32rpx;
  635. display: flex;
  636. align-items: center;
  637. }
  638. .time {
  639. width: 430rpx;
  640. height: 80rpx;
  641. line-height: 80rpx;
  642. background: #f5f5f5;
  643. border: 2rpx solid #f5f5f5;
  644. border-radius: 16rpx;
  645. font-size: 30rpx;
  646. font-family: PingFang SC;
  647. font-weight: bold;
  648. text-align: center;
  649. color: #333333;
  650. margin: 0 18rpx 0 8rpx;
  651. &.active {
  652. background: #ebf5ff;
  653. border: 2rpx solid #007aff;
  654. }
  655. &.no {
  656. background: #ffdddb;
  657. border: 2rpx solid #ffdddb;
  658. }
  659. }
  660. }
  661. }
  662. .btnMain {
  663. display: flex;
  664. justify-content: center;
  665. text-align: center;
  666. .return {
  667. width: 200rpx;
  668. height: 80rpx;
  669. line-height: 80rpx;
  670. background: #f5f5f5;
  671. border-radius: 40rpx;
  672. font-size: 30rpx;
  673. font-family: PingFang SC;
  674. font-weight: bold;
  675. color: #007aff;
  676. }
  677. .sure {
  678. width: 438rpx;
  679. height: 80rpx;
  680. line-height: 80rpx;
  681. background: #007aff;
  682. border-radius: 40rpx;
  683. font-size: 30rpx;
  684. font-family: PingFang SC;
  685. font-weight: bold;
  686. color: #ffffff;
  687. margin-left: 24rpx;
  688. }
  689. }
  690. }
  691. .tipBox {
  692. width: 100%;
  693. font-family: PingFang SC;
  694. .line {
  695. width: 80rpx;
  696. height: 8rpx;
  697. background: #999999;
  698. border-radius: 4rpx;
  699. margin: 8rpx auto;
  700. }
  701. .title {
  702. text-align: center;
  703. font-size: 24rpx;
  704. font-family: PingFang SC;
  705. font-weight: 500;
  706. color: #999999;
  707. margin: 15rpx 0;
  708. }
  709. .main {
  710. font-size: 30rpx;
  711. font-weight: 500;
  712. color: #666666;
  713. line-height: 48rpx;
  714. margin-bottom: 40rpx;
  715. }
  716. .addressList {
  717. height: 500rpx;
  718. padding-top: 24rpx;
  719. .item {
  720. display: flex;
  721. align-items: center;
  722. padding: 0 24rpx;
  723. margin-bottom: 24rpx;
  724. .checkbox {
  725. width: 32rpx;
  726. height: 32rpx;
  727. display: flex;
  728. align-items: center;
  729. margin-right: 8rpx;
  730. }
  731. .address {
  732. width: 654rpx;
  733. height: 80rpx;
  734. line-height: 80rpx;
  735. background: #f5f5f5;
  736. border-radius: 16rpx;
  737. font-size: 30rpx;
  738. font-family: PingFang SC;
  739. font-weight: bold;
  740. color: #333333;
  741. padding: 0 24rpx;
  742. &.active {
  743. background: #ebf5ff;
  744. border: 2rpx solid #007aff;
  745. }
  746. }
  747. }
  748. }
  749. .btn {
  750. width: 200rpx;
  751. height: 64rpx;
  752. line-height: 64rpx;
  753. background: linear-gradient(0deg, #015eea, #00c0fa);
  754. border-radius: 32rpx;
  755. margin: 17rpx auto;
  756. font-size: 30rpx;
  757. font-family: PingFang SC;
  758. font-weight: 500;
  759. text-align: center;
  760. color: #ffffff;
  761. }
  762. }
  763. </style>