edit.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. <template>
  2. <view class="container">
  3. <!-- 导航栏 -->
  4. <custom-navbar title="访客申请" :showBack="true"></custom-navbar>
  5. <!-- 表单内容 -->
  6. <view class="form-container">
  7. <!-- 第一块:对接人信息 -->
  8. <view class="section">
  9. <view class="section-title">
  10. <image class="title-icon" src="/static/images/person.png" mode="aspectFit"></image>
  11. 对接人信息
  12. </view>
  13. <view class="form-item" @tap="showDepartmentPicker" style="z-index: 999;">
  14. <text class="label">所属部门</text>
  15. <view class="input-wrapper" @tap="showDepartmentPicker">
  16. <text class="placeholder" v-if="!formData.department">请选择所属部门</text>
  17. <text v-else>{{ formData.department }}</text>
  18. <uni-icons type="right" size="16" color="#c0c4cc"></uni-icons>
  19. </view>
  20. </view>
  21. <view class="form-item">
  22. <text class="label">员工姓名</text>
  23. <input class="input" v-model="formData.employeeName" placeholder="请输入员工姓名"
  24. placeholder-style="color: #c0c4cc" />
  25. </view>
  26. </view>
  27. <!-- 第二块:访问信息 -->
  28. <view class="section">
  29. <view class="section-title">
  30. <image class="title-icon" src="/static/images/calendar.png" mode="aspectFit"></image>
  31. 访问信息
  32. </view>
  33. <view class="form-item">
  34. <text class="label">访问事由</text>
  35. <input class="input" v-model="formData.visitReason" placeholder="请输入访问事由"
  36. placeholder-style="color: #c0c4cc" />
  37. </view>
  38. <view class="form-item">
  39. <text class="label">到访时间</text>
  40. <uni-datetime-picker type="datetime" v-model="formData.visitTime" @change="onVisitTimeChange"
  41. :clear-icon="false" placeholder="请选择到访时间" format="YYYY-MM-DD HH:mm" :hide-second="true">
  42. <view class="input-wrapper">
  43. <text class="placeholder" v-if="!formData.visitTime">请选择到访时间</text>
  44. <text v-else>{{ formData.visitTime }}</text>
  45. <uni-icons type="calendar" size="16" color="#c0c4cc"></uni-icons>
  46. </view>
  47. </uni-datetime-picker>
  48. </view>
  49. <view class="form-item">
  50. <text class="label">访客姓名</text>
  51. <input class="input" v-model="formData.visitorName" placeholder="请输入访客姓名"
  52. placeholder-style="color: #c0c4cc" />
  53. </view>
  54. <view class="form-item">
  55. <text class="label">访客单位</text>
  56. <input class="input" v-model="formData.visitorCompany" placeholder="请输入访客单位"
  57. placeholder-style="color: #c0c4cc" />
  58. </view>
  59. <view class="form-item">
  60. <text class="label">手机号</text>
  61. <input class="input" v-model="formData.visitorPhone" placeholder="请输入手机号"
  62. placeholder-style="color: #c0c4cc" type="number" />
  63. </view>
  64. </view>
  65. <!-- 第三块:随行人员 -->
  66. <view class="section">
  67. <view class="section-title">随行人员</view>
  68. <view class="accompany-list">
  69. <view class="accompany-item" v-for="(item, index) in formData.accompanyPersons" :key="index">
  70. <view class="form-item">
  71. <text class="label">随行人员</text>
  72. <input class="input" v-model="item.name" placeholder="请输入随行人员姓名"
  73. placeholder-style="color: #c0c4cc" />
  74. </view>
  75. <view class="form-item">
  76. <text class="label">手机号</text>
  77. <input class="input" v-model="item.phone" placeholder="请输入手机号"
  78. placeholder-style="color: #c0c4cc" type="number" />
  79. </view>
  80. <view class="delete-btn" v-if="formData.accompanyPersons.length > 1"
  81. @click="removeAccompany(index)">
  82. <uni-icons type="trash" size="18" color="#ff4757"></uni-icons>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="add-accompany-btn" @click="addAccompany">
  87. <uni-icons type="plus" size="16" color="#007aff"></uni-icons>
  88. <text>添加随行人员</text>
  89. </view>
  90. </view>
  91. <!-- 第四块:使用车辆 -->
  92. <view class="section">
  93. <view class="vehicle-header">
  94. <view class="section-title">
  95. <image class="title-icon" src="/static/images/cart.png" mode="aspectFit"></image>
  96. 使用车辆
  97. </view>
  98. <switch :checked="formData.useVehicle" @change="onVehicleChange" color="#007aff" />
  99. </view>
  100. <view v-if="formData.useVehicle" class="vehicle-content">
  101. <view class="form-item">
  102. <text class="label">接客时间</text>
  103. <uni-datetime-picker type="datetime" v-model="formData.pickupTime" @change="onPickupTimeChange"
  104. :clear-icon="false" placeholder="请选择接客时间" format="YYYY-MM-DD HH:mm" :hide-second="true">
  105. <view class="input-wrapper">
  106. <text class="placeholder" v-if="!formData.pickupTime">请选择接客时间</text>
  107. <text v-else>{{ formData.pickupTime }}</text>
  108. <uni-icons type="calendar" size="16" color="#c0c4cc"></uni-icons>
  109. </view>
  110. </uni-datetime-picker>
  111. </view>
  112. <view class="form-item">
  113. <text class="label">接客地点</text>
  114. <input class="input" v-model="formData.pickupLocation" placeholder="请输入接客地点"
  115. placeholder-style="color: #c0c4cc" />
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <!-- 提交按钮 -->
  121. <view class="submit-container">
  122. <button class="submit-btn" @click="submitForm">提交</button>
  123. </view>
  124. <!-- 部门选择器 -->
  125. <uni-popup ref="departmentPopup" type="bottom" style="z-index: 999;">
  126. <view class="picker-container">
  127. <view class="picker-header">
  128. <text @click="$refs.departmentPopup.close()">取消</text>
  129. <text class="picker-title">选择所属部门</text>
  130. <text @click="confirmDepartment">确定</text>
  131. </view>
  132. <picker-view class="picker-view" :value="departmentIndex" @change="onDepartmentChange">
  133. <picker-view-column>
  134. <view class="picker-item" v-for="(item, index) in departments" :key="index">
  135. {{ item }}
  136. </view>
  137. </picker-view-column>
  138. </picker-view>
  139. </view>
  140. </uni-popup>
  141. <!-- 提交成功弹框 -->
  142. <uni-popup ref="successPopup" type="center" :mask-click="false">
  143. <view class="success-popup">
  144. <view class="popup-content">
  145. <view class="success-icon">
  146. <uni-icons type="checkmarkempty" size="60" color="#52c41a"></uni-icons>
  147. </view>
  148. <view class="popup-title">申请提交成功</view>
  149. <view class="popup-message">您的申请已成功提交,请关注公众号即时查询审核结果</view>
  150. <view class="popup-buttons">
  151. <button class="cancel-btn" @click="closeSuccessPopup">取消</button>
  152. <button class="follow-btn" @click="showQRCode">关注</button>
  153. </view>
  154. </view>
  155. </view>
  156. </uni-popup>
  157. <!-- 二维码弹框 -->
  158. <uni-popup ref="qrcodePopup" type="center" :mask-click="false">
  159. <view class="qrcode-popup">
  160. <view class="qrcode-content">
  161. <view class="qrcode-title">扫描二维码关注公众号</view>
  162. <view class="qrcode-image" @click="previewQRCode">
  163. <image src="/static/images/qrcode.png" mode="aspectFit"></image>
  164. <view class="preview-tip">
  165. <uni-icons type="search" size="16" color="#fff"></uni-icons>
  166. <text>点击查看大图</text>
  167. </view>
  168. </view>
  169. <view class="qrcode-tip">扫描上方二维码,关注公众号获取审核结果</view>
  170. <button class="qrcode-close-btn" @click="closeQRCode">我知道了</button>
  171. </view>
  172. </view>
  173. </uni-popup>
  174. </view>
  175. </template>
  176. <script>
  177. export default {
  178. data() {
  179. return {
  180. type: '', // 从上一页传递过来的参数
  181. formData: {
  182. department: '',
  183. employeeName: '',
  184. visitReason: '',
  185. visitTime: '',
  186. visitorName: '',
  187. visitorCompany: '',
  188. visitorPhone: '',
  189. accompanyPersons: [{
  190. name: '',
  191. phone: ''
  192. }],
  193. useVehicle: false,
  194. pickupTime: '',
  195. pickupLocation: ''
  196. },
  197. // 部门假数据
  198. departments: [
  199. '技术部',
  200. '市场部',
  201. '人事部',
  202. '财务部',
  203. '运营部',
  204. '产品部',
  205. '设计部',
  206. '客服部'
  207. ],
  208. departmentIndex: [0],
  209. tempDepartmentIndex: [0]
  210. }
  211. },
  212. onLoad(options) {
  213. // 获取传递过来的参数
  214. if (options.type) {
  215. this.type = options.type;
  216. }
  217. },
  218. methods: {
  219. // 显示部门选择器
  220. showDepartmentPicker() {
  221. this.$refs.departmentPopup.open();
  222. },
  223. // 部门选择改变
  224. onDepartmentChange(e) {
  225. this.tempDepartmentIndex = e.detail.value;
  226. },
  227. // 确认选择部门
  228. confirmDepartment() {
  229. this.departmentIndex = [...this.tempDepartmentIndex];
  230. this.formData.department = this.departments[this.departmentIndex[0]];
  231. this.$refs.departmentPopup.close();
  232. },
  233. // 到访时间改变
  234. onVisitTimeChange(e) {
  235. this.formData.visitTime = e;
  236. },
  237. // 接客时间改变
  238. onPickupTimeChange(e) {
  239. this.formData.pickupTime = e;
  240. },
  241. // 获取当前日期时间
  242. getCurrentDatetime() {
  243. const now = new Date();
  244. const year = now.getFullYear();
  245. const month = String(now.getMonth() + 1).padStart(2, '0');
  246. const day = String(now.getDate()).padStart(2, '0');
  247. const hour = String(now.getHours()).padStart(2, '0');
  248. const minute = String(now.getMinutes()).padStart(2, '0');
  249. return `${year}-${month}-${day} ${hour}:${minute}`;
  250. },
  251. // 添加随行人员
  252. addAccompany() {
  253. this.formData.accompanyPersons.push({
  254. name: '',
  255. phone: ''
  256. });
  257. },
  258. // 删除随行人员
  259. removeAccompany(index) {
  260. if (this.formData.accompanyPersons.length > 1) {
  261. this.formData.accompanyPersons.splice(index, 1);
  262. }
  263. },
  264. // 车辆开关改变
  265. onVehicleChange(e) {
  266. this.formData.useVehicle = e.detail.value;
  267. if (!this.formData.useVehicle) {
  268. // 关闭车辆使用时清空相关信息
  269. this.formData.pickupTime = '';
  270. this.formData.pickupLocation = '';
  271. }
  272. },
  273. // 手机号格式校验
  274. validatePhone(phone) {
  275. const phoneRegex = /^1[3-9]\d{9}$/;
  276. return phoneRegex.test(phone);
  277. },
  278. // 表单验证
  279. validateForm() {
  280. if (!this.formData.department) {
  281. uni.showToast({
  282. title: '请选择所属部门',
  283. icon: 'none'
  284. });
  285. return false;
  286. }
  287. if (!this.formData.employeeName) {
  288. uni.showToast({
  289. title: '请输入员工姓名',
  290. icon: 'none'
  291. });
  292. return false;
  293. }
  294. if (!this.formData.visitReason) {
  295. uni.showToast({
  296. title: '请输入访问事由',
  297. icon: 'none'
  298. });
  299. return false;
  300. }
  301. if (!this.formData.visitTime) {
  302. uni.showToast({
  303. title: '请选择到访时间',
  304. icon: 'none'
  305. });
  306. return false;
  307. }
  308. if (!this.formData.visitorName) {
  309. uni.showToast({
  310. title: '请输入访客姓名',
  311. icon: 'none'
  312. });
  313. return false;
  314. }
  315. if (!this.formData.visitorCompany) {
  316. uni.showToast({
  317. title: '请输入访客单位',
  318. icon: 'none'
  319. });
  320. return false;
  321. }
  322. if (!this.formData.visitorPhone) {
  323. uni.showToast({
  324. title: '请输入手机号',
  325. icon: 'none'
  326. });
  327. return false;
  328. }
  329. // 校验访客手机号格式
  330. if (!this.validatePhone(this.formData.visitorPhone)) {
  331. uni.showToast({
  332. title: '请输入正确的手机号格式',
  333. icon: 'none'
  334. });
  335. return false;
  336. }
  337. // 验证随行人员信息
  338. for (let i = 0; i < this.formData.accompanyPersons.length; i++) {
  339. const person = this.formData.accompanyPersons[i];
  340. if (person.name && !person.phone) {
  341. uni.showToast({
  342. title: `请输入第${i + 1}个随行人员的手机号`,
  343. icon: 'none'
  344. });
  345. return false;
  346. }
  347. if (!person.name && person.phone) {
  348. uni.showToast({
  349. title: `请输入第${i + 1}个随行人员的姓名`,
  350. icon: 'none'
  351. });
  352. return false;
  353. }
  354. // 校验随行人员手机号格式
  355. if (person.phone && !this.validatePhone(person.phone)) {
  356. uni.showToast({
  357. title: `第${i + 1}个随行人员手机号格式不正确`,
  358. icon: 'none'
  359. });
  360. return false;
  361. }
  362. }
  363. // 验证车辆使用信息
  364. if (this.formData.useVehicle) {
  365. if (!this.formData.pickupTime) {
  366. uni.showToast({
  367. title: '请选择接客时间',
  368. icon: 'none'
  369. });
  370. return false;
  371. }
  372. if (!this.formData.pickupLocation) {
  373. uni.showToast({
  374. title: '请选择接客地点',
  375. icon: 'none'
  376. });
  377. return false;
  378. }
  379. }
  380. return true;
  381. },
  382. // 提交表单
  383. submitForm() {
  384. if (!this.validateForm()) {
  385. return;
  386. }
  387. // 过滤空的随行人员
  388. const validAccompanyPersons = this.formData.accompanyPersons.filter(person =>
  389. person.name && person.phone
  390. );
  391. const submitData = {
  392. ...this.formData,
  393. accompanyPersons: validAccompanyPersons,
  394. type: this.type
  395. };
  396. console.log('提交数据:', submitData);
  397. // TODO: 这里调用后端接口提交数据
  398. // this.submitToServer(submitData);
  399. // 显示提交成功弹框
  400. this.$refs.successPopup.open();
  401. },
  402. // 关闭成功弹框
  403. closeSuccessPopup() {
  404. this.$refs.successPopup.close();
  405. // 返回上一页
  406. uni.navigateBack();
  407. },
  408. // 显示二维码
  409. showQRCode() {
  410. this.$refs.successPopup.close();
  411. this.$refs.qrcodePopup.open();
  412. },
  413. // 关闭二维码弹框
  414. closeQRCode() {
  415. this.$refs.qrcodePopup.close();
  416. // 返回上一页
  417. uni.navigateBack();
  418. },
  419. // 预览二维码
  420. previewQRCode() {
  421. uni.previewImage({
  422. urls: ['/static/images/qrcode.png'],
  423. current: 0
  424. });
  425. },
  426. // 提交到服务器的方法(预留)
  427. async submitToServer(data) {
  428. // 这里是后端接口调用的预留方法
  429. // try {
  430. // const response = await this.$request.post('/api/visit/apply', data);
  431. // return response;
  432. // } catch (error) {
  433. // console.error('提交失败:', error);
  434. // throw error;
  435. // }
  436. }
  437. }
  438. }
  439. </script>
  440. <style lang="scss" scoped>
  441. .container {
  442. background-color: #f5f5f5;
  443. min-height: 100vh;
  444. padding-bottom: 120rpx;
  445. }
  446. .form-container {
  447. padding: 20rpx;
  448. }
  449. .section {
  450. background-color: #fff;
  451. border-radius: 12rpx;
  452. margin-bottom: 20rpx;
  453. padding: 30rpx;
  454. }
  455. .section-title {
  456. font-size: 32rpx;
  457. font-weight: 600;
  458. color: #333;
  459. margin-bottom: 30rpx;
  460. display: flex;
  461. align-items: center;
  462. }
  463. .title-icon {
  464. width: 40rpx;
  465. height: 40rpx;
  466. margin-right: 15rpx;
  467. }
  468. .form-item {
  469. display: flex;
  470. align-items: center;
  471. margin-bottom: 30rpx;
  472. position: relative;
  473. &:last-child {
  474. margin-bottom: 0;
  475. }
  476. }
  477. .label {
  478. width: 160rpx;
  479. font-size: 28rpx;
  480. color: #666;
  481. flex-shrink: 0;
  482. }
  483. .input {
  484. flex: 1;
  485. height: 70rpx;
  486. padding: 0 20rpx;
  487. background-color: #f8f8f8;
  488. border-radius: 8rpx;
  489. font-size: 28rpx;
  490. color: #333;
  491. }
  492. .input-wrapper {
  493. flex: 1;
  494. height: 70rpx;
  495. padding: 0 20rpx;
  496. background-color: #f8f8f8;
  497. border-radius: 8rpx;
  498. display: flex;
  499. align-items: center;
  500. justify-content: space-between;
  501. }
  502. .placeholder {
  503. color: #c0c4cc;
  504. font-size: 28rpx;
  505. }
  506. .accompany-list {
  507. .accompany-item {
  508. position: relative;
  509. padding: 20rpx;
  510. background-color: #f8f8f8;
  511. border-radius: 8rpx;
  512. margin-bottom: 20rpx;
  513. &:last-child {
  514. margin-bottom: 0;
  515. }
  516. .form-item {
  517. margin-bottom: 20rpx;
  518. &:last-child {
  519. margin-bottom: 0;
  520. }
  521. }
  522. }
  523. }
  524. .delete-btn {
  525. position: absolute;
  526. top: 10rpx;
  527. right: 10rpx;
  528. width: 60rpx;
  529. height: 60rpx;
  530. display: flex;
  531. align-items: center;
  532. justify-content: center;
  533. background-color: #fff;
  534. border-radius: 50%;
  535. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  536. }
  537. .add-accompany-btn {
  538. display: flex;
  539. align-items: center;
  540. justify-content: center;
  541. height: 80rpx;
  542. background-color: #f8f9fa;
  543. border: 2rpx dashed #c0c4cc;
  544. border-radius: 8rpx;
  545. color: #909399;
  546. font-size: 28rpx;
  547. text {
  548. margin-left: 10rpx;
  549. }
  550. }
  551. .vehicle-header {
  552. display: flex;
  553. align-items: center;
  554. margin-bottom: 30rpx;
  555. .section-title {
  556. flex: 1;
  557. margin-bottom: 0;
  558. margin-left: 15rpx;
  559. }
  560. }
  561. .vehicle-content {
  562. padding-top: 20rpx;
  563. border-top: 1rpx solid #eee;
  564. }
  565. .submit-container {
  566. position: fixed;
  567. bottom: 0;
  568. left: 0;
  569. right: 0;
  570. padding: 20rpx;
  571. background-color: #fff;
  572. box-shadow: 0 -2rpx 8rpx rgba(0, 0, 0, 0.1);
  573. }
  574. .submit-btn {
  575. width: 100%;
  576. height: 88rpx;
  577. background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
  578. border-radius: 44rpx;
  579. border: none;
  580. color: #fff;
  581. font-size: 32rpx;
  582. font-weight: 600;
  583. }
  584. .picker-container {
  585. background-color: #fff;
  586. border-radius: 20rpx 20rpx 0 0;
  587. }
  588. .picker-header {
  589. display: flex;
  590. align-items: center;
  591. justify-content: space-between;
  592. padding: 30rpx;
  593. border-bottom: 1rpx solid #eee;
  594. text {
  595. color: #007aff;
  596. font-size: 28rpx;
  597. }
  598. }
  599. .picker-title {
  600. font-size: 32rpx;
  601. font-weight: 600;
  602. color: #333 !important;
  603. }
  604. .picker-view {
  605. height: 400rpx;
  606. }
  607. .picker-item {
  608. display: flex;
  609. align-items: center;
  610. justify-content: center;
  611. height: 80rpx;
  612. font-size: 28rpx;
  613. color: #333;
  614. }
  615. // 提交成功弹框样式
  616. .success-popup {
  617. .popup-content {
  618. background-color: #fff;
  619. border-radius: 20rpx;
  620. padding: 60rpx 40rpx 40rpx;
  621. width: 560rpx;
  622. text-align: center;
  623. }
  624. .success-icon {
  625. margin-bottom: 30rpx;
  626. }
  627. .popup-title {
  628. font-size: 36rpx;
  629. font-weight: 600;
  630. color: #333;
  631. margin-bottom: 20rpx;
  632. }
  633. .popup-message {
  634. font-size: 28rpx;
  635. color: #666;
  636. line-height: 1.6;
  637. margin-bottom: 50rpx;
  638. }
  639. .popup-buttons {
  640. display: flex;
  641. gap: 20rpx;
  642. button {
  643. flex: 1;
  644. height: 80rpx;
  645. border-radius: 40rpx;
  646. font-size: 28rpx;
  647. border: none;
  648. }
  649. .cancel-btn {
  650. background-color: #f5f5f5;
  651. color: #666;
  652. }
  653. .follow-btn {
  654. background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
  655. color: #fff;
  656. }
  657. }
  658. }
  659. // 二维码弹框样式
  660. .qrcode-popup {
  661. .qrcode-content {
  662. background-color: #fff;
  663. border-radius: 20rpx;
  664. padding: 50rpx 40rpx;
  665. width: 560rpx;
  666. text-align: center;
  667. }
  668. .qrcode-title {
  669. font-size: 32rpx;
  670. font-weight: 600;
  671. color: #333;
  672. margin-bottom: 40rpx;
  673. }
  674. .qrcode-image {
  675. width: 400rpx;
  676. height: 400rpx;
  677. margin: 0 auto 30rpx;
  678. border: 1rpx solid #eee;
  679. border-radius: 12rpx;
  680. overflow: hidden;
  681. position: relative;
  682. image {
  683. width: 100%;
  684. height: 100%;
  685. }
  686. .preview-tip {
  687. position: absolute;
  688. left: 0;
  689. right: 0;
  690. bottom: 0;
  691. height: 60rpx;
  692. background: rgba(0, 0, 0, 0.5);
  693. display: flex;
  694. align-items: center;
  695. justify-content: center;
  696. color: #fff;
  697. font-size: 24rpx;
  698. text {
  699. margin-left: 10rpx;
  700. }
  701. }
  702. &:active {
  703. opacity: 0.8;
  704. }
  705. }
  706. .qrcode-tip {
  707. font-size: 26rpx;
  708. color: #999;
  709. margin-bottom: 40rpx;
  710. line-height: 1.5;
  711. }
  712. .qrcode-close-btn {
  713. width: 100%;
  714. height: 80rpx;
  715. background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
  716. border-radius: 40rpx;
  717. color: #fff;
  718. font-size: 28rpx;
  719. border: none;
  720. }
  721. }
  722. </style>