edit.vue 19 KB

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