index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. <template>
  2. <view class="container" :style="{ background: containerBg }" :class="bookList.length ? 'book-list' : 'no-list'">
  3. <u-navbar :is-back="false" :border-bottom="false" :background="{ background: navbarBackground }">
  4. <text class="nav-title">卖书给书嗨</text>
  5. </u-navbar>
  6. <not-scanned v-if="!bookList.length"></not-scanned>
  7. <scan-book-list v-else @updateBooks="updateBooksList" @deleted="handleDeleteBook" :bookList="bookList"
  8. ref="scanBookList" @upsell="handleUpsell" @refresh="getLastOrder"></scan-book-list>
  9. <!-- 底部固定按钮 -->
  10. <view class="bottom-fixed">
  11. <view class="btn-wrap mb-20">
  12. <button class="scan-btn flex-1" @click="handleScan">
  13. <u-icon name="scan" color="#FFFFFF" size="40"></u-icon>
  14. <text>扫码卖书</text>
  15. </button>
  16. <button class="isbn-btn flex-1" @click="goToInputISBN">
  17. <u-icon name="edit-pen" color="#4CD964" size="40"></u-icon>
  18. <text>输入ISBN</text>
  19. </button>
  20. </view>
  21. <view class="flex-a flex-j-b pad-20" style="padding-top: 0" v-if="bookList.length">
  22. <view class="left-info" style="min-width: 194px">
  23. <view class="flex-a common-text">
  24. <text class="color-red">{{ orderInfo.totalNum }}</text>
  25. 件 预估回收价
  26. <text class="color-red">¥{{ orderInfo.totalRecycleMoney || 0 }}</text>
  27. </view>
  28. <text class="common-text tip">*<text v-if="orderInfo.minOrderNum">旧书满{{ orderInfo.minOrderNum
  29. }}本,或</text>预估价格满{{ orderInfo.minOrderMoney }}元起收</text>
  30. </view>
  31. <button class="scan-btn next-btn" @click="handleValidate" :disabled="isDisabled">
  32. 下一步
  33. </button>
  34. </view>
  35. <service-info v-if="bookList.length" :serviceList="serviceList"
  36. :firstOrder="orderInfo.firstOrder"></service-info>
  37. </view>
  38. <InputIsbn ref="isbnPopup" @submit="(isbn) => checkBookISBN(isbn, 'input')" />
  39. <!-- 套装书说明弹窗 -->
  40. <CommonDialog ref="setBookDialog" title="套装书说明" :showCancel="false" @confirm="handleSetBookConfirm">
  41. <text>套装书(ISBN码相同的系列书箱)只需扫描其中一册,扫码价即套装价。打包时请把所有单册统在一起或放在一个袋子里寄出。</text>
  42. </CommonDialog>
  43. <!-- 暂不回收弹窗 -->
  44. <CommonDialog ref="notAcceptDialog" title="暂不回收" :showCancel="false">
  45. <text>这本书暂时不回收,请您过段时间再来试试~</text>
  46. </CommonDialog>
  47. <!-- 暂无信息弹窗 -->
  48. <CommonDialog ref="noInfoDialog" title="暂无信息" :showCancel="false">
  49. <text>抱歉,没有该书的信息,书嗨会定期补充图书信息,请您过段时间再来试试~</text>
  50. </CommonDialog>
  51. <!-- 扫累了弹窗 -->
  52. <CommonDialog ref="tiredDialog" title="温馨提示" :showCancel="false">
  53. <text>扫累了,休息休息吧~</text>
  54. </CommonDialog>
  55. <!-- 该书超出最大回收本数 maxAcceptDialog-->
  56. <CommonDialog ref="maxAcceptDialog" title="温馨提示" :showCancel="false">
  57. <text>该书超出最大回收本数</text>
  58. </CommonDialog>
  59. <!-- 单个订单最多40本书 orderMaxNumDialog-->
  60. <CommonDialog ref="orderMaxNumDialog" title="温馨提示" :showCancel="false">
  61. <text>单个订单最多40本书</text>
  62. </CommonDialog>
  63. <!-- 删除活动书籍弹窗 -->
  64. <common-dialog ref="deleteDialog" title="温馨提示" @confirm="confirmDelete">
  65. <text>{{
  66. deleteBook.upsellMoney
  67. ? "此书为限时加价收图书,删除后再次添加将失去加价收资格,确定删除吗?"
  68. : "确定删除这本图书吗?"
  69. }}</text>
  70. </common-dialog>
  71. <!-- 此订单还有未加价的图书,提交订单后将失去加价资格,确定提交吗? -->
  72. <common-dialog ref="noUpsellDialog" title="温馨提示" @confirm="onNext">
  73. <text>此订单还有未加价的图书,提交订单后将失去加价资格,确定提交吗?</text>
  74. </common-dialog>
  75. <!-- 温馨提示弹窗 -->
  76. <KindReminder ref="kindReminder" @start="handleStartSelling" />
  77. <!-- 客服按钮 -->
  78. <FloatingDrag :width="126" :height="140" :initial-position="servicePosition"
  79. @position-change="handlePositionChange">
  80. <!-- #ifdef MP-ALIPAY -->
  81. <button class="service-btn" @click="navigateToCustomerService">
  82. <image src="/static/img/kf.png" mode="widthFix" style="width: 126rpx; height: 140rpx"></image>
  83. </button>
  84. <!-- #endif -->
  85. <!-- #ifndef MP-ALIPAY -->
  86. <button class="service-btn" open-type="contact">
  87. <image src="/static/img/kf.png" mode="widthFix" style="width: 126rpx; height: 140rpx"></image>
  88. </button>
  89. <!-- #endif -->
  90. </FloatingDrag>
  91. <ConfirmBooks ref="confirmBooks" @incomplete="handleIncomplete" />
  92. <!-- 首单免费弹窗 -->
  93. <FirstOrderFreePopup ref="firstOrderFreePopup" />
  94. <!-- 图书加价弹窗 -->
  95. <UpsellBook ref="upsellRef" @scan="handleScanCode" />
  96. <!-- 加价分享弹窗 -->
  97. <UpsellShare ref="shareRef" @viewRules="handleViewSellRules" />
  98. <!-- 加价二维码弹窗 -->
  99. <UpsellQrcode ref="upsellQrcodeRef" />
  100. <!-- 加价规则弹窗 -->
  101. <UpsellRules ref="upsellRulesRef" />
  102. <!-- 减价分享弹窗 -->
  103. <ReduceShare ref="reduceShareRef" @viewRules="handleViewSellRules" />
  104. </view>
  105. </template>
  106. <script>
  107. import notScanned from "./components/notScanned.vue";
  108. import InputIsbn from "./components/InputIsbn.vue";
  109. import ScanBookList from "./components/ScanBookList.vue";
  110. import CommonDialog from "@/components/common-dialog.vue";
  111. import KindReminder from "./components/KindReminder.vue";
  112. import ServiceInfo from "./components/ServiceInfo.vue";
  113. import ConfirmBooks from "./components/ConfirmBooks.vue";
  114. import FirstOrderFreePopup from "./components/FirstOrderFreePopup.vue";
  115. import UpsellBook from "./components/upsell-book.vue";
  116. import UpsellRules from "./components/upsell-rules.vue";
  117. import UpsellShare from "./components/upsell-share.vue";
  118. import UpsellQrcode from "./components/upsell-qrcode.vue";
  119. import ReduceShare from "./components/reduce-share.vue";
  120. import FloatingDrag from "@/components/floating-drag.vue";
  121. import { eventBus } from "@/utils/event-bus";
  122. const app = getApp();
  123. export default {
  124. components: {
  125. notScanned,
  126. InputIsbn,
  127. ScanBookList,
  128. CommonDialog,
  129. KindReminder,
  130. ServiceInfo,
  131. ConfirmBooks,
  132. FirstOrderFreePopup,
  133. UpsellBook,
  134. UpsellRules,
  135. UpsellShare,
  136. UpsellQrcode,
  137. ReduceShare,
  138. FloatingDrag,
  139. },
  140. data() {
  141. return {
  142. orderInfo: {},
  143. collapseState: {
  144. step1: false,
  145. step3: false,
  146. },
  147. scrollTop: 0,
  148. bookList: [],
  149. serviceList: [],
  150. currentBook: {},
  151. // 客服按钮位置
  152. servicePosition: {
  153. left: "auto",
  154. right: 0,
  155. bottom: "20%",
  156. },
  157. shareData: {},
  158. deleteBook: {},
  159. };
  160. },
  161. computed: {
  162. navbarBackground() {
  163. if (this.scrollTop > 0) {
  164. return "linear-gradient(180deg, #4CD964 0%, #5ff178 100%)";
  165. }
  166. return "transparent";
  167. },
  168. containerBg() {
  169. return this.bookList.length > 0
  170. ? "linear-gradient(180deg, #4CD964 0%, #F8F8F8 25%)"
  171. : "linear-gradient(180deg, #4CD964 0%, #ffffff 25%)";
  172. },
  173. containerPb() {
  174. return this.bookList.length > 0 ? "300rpx" : "110rpx";
  175. },
  176. totalBooks() {
  177. return this.bookList.reduce((sum, book) => sum + (book.num || 1), 0);
  178. },
  179. totalPrice() {
  180. return this.bookList
  181. .reduce(
  182. (sum, book) =>
  183. sum + book.recyclePrice * (book.num || 1) + book.currUpsellMoney ||
  184. 0,
  185. 0
  186. )
  187. .toFixed(2);
  188. },
  189. isDisabled() {
  190. //minOrderNum或minOrderMoney可能没有值,
  191. let { minOrderNum, minOrderMoney } = this.orderInfo
  192. if (!minOrderMoney && !minOrderNum) return false
  193. //minOrderMoney没有值,minOrderNum有值
  194. if (minOrderNum && !minOrderMoney) return minOrderNum > this.totalBooks
  195. if (minOrderNum && !minOrderMoney) return minOrderMoney > this.totalPrice
  196. if (minOrderNum && minOrderMoney) return minOrderNum > this.totalBooks && minOrderMoney > this.totalPrice
  197. },
  198. },
  199. onPageScroll(e) {
  200. this.$nextTick(() => {
  201. this.scrollTop = e.scrollTop;
  202. });
  203. },
  204. // 分享配置
  205. onShareAppMessage(res) {
  206. if (res.from === "button") {
  207. let upsellCode = uni.getStorageSync("upsellCodeShare");
  208. console.log(upsellCode, "分享");
  209. // 调用分享接口
  210. uni.$u.http.get("/token/order/goToShare?upsellCode=" + upsellCode);
  211. return {
  212. title: "书嗨",
  213. path: "/pages/home/index?upsellCode=" + upsellCode,
  214. imageUrl: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/share.jpg",
  215. desc: "书嗨,专注于书籍交易的平台,提供新书和二手书的买卖服务",
  216. };
  217. } else {
  218. return {
  219. title: "书嗨",
  220. page: "/pages/home/index",
  221. };
  222. }
  223. },
  224. // 分享到朋友圈
  225. onShareTimeline(res) {
  226. if (res.from === "button") {
  227. let upsellCode = uni.getStorageSync("upsellCodeShare");
  228. // 调用分享接口
  229. uni.$u.http.get("/token/order/goToShare?upsellCode=" + upsellCode);
  230. return {
  231. title: "书嗨",
  232. path: "/pages/home/index?upsellCode=" + upsellCode,
  233. imageUrl: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/share.jpg",
  234. desc: "书嗨,专注于书籍交易的平台,提供新书和二手书的买卖服务",
  235. };
  236. } else {
  237. return {
  238. title: "书嗨",
  239. page: "/pages/home/index",
  240. };
  241. }
  242. },
  243. onReady() {
  244. // 获取屏幕宽度和高度
  245. uni.getSystemInfo({
  246. success: (res) => {
  247. this.screenWidth = res.windowWidth;
  248. this.screenHeight = res.windowHeight;
  249. },
  250. });
  251. },
  252. onShow() {
  253. this.$updateCartBadge();
  254. if (!app.globalData.isColdLaunch) {
  255. let token = uni.getStorageSync("token");
  256. if (token) {
  257. this.getLastOrder();
  258. }
  259. return
  260. }
  261. eventBus.on("loginSuccess", (data) => {
  262. console.log(data, "登录成功loginSuccess");
  263. this.loginSuccess(data);
  264. app.globalData.isColdLaunch = false;
  265. });;
  266. },
  267. //针对多次扫码的热启动场景,需要判断是否是冷启动
  268. onLoad(options) {
  269. console.log(options, app.globalData.isColdLaunch, "onLoad");
  270. if (app.globalData.isColdLaunch) return
  271. if (options.scene) {
  272. let params = {};
  273. // 对 scene 进行解码
  274. const decodeScene = decodeURIComponent(options.scene);
  275. // 拆分参数
  276. const paramPairs = decodeScene.split('&');
  277. paramPairs.forEach((pair) => {
  278. const [key, value] = pair.split('=');
  279. params[key] = value;
  280. });
  281. if (params.upsellCode) {
  282. this.$refs.shareRef?.open(params.upsellCode);
  283. this.getLastOrder();
  284. }
  285. if (params.reduceCode) {
  286. this.$refs.reduceShareRef?.open(params.reduceCode);
  287. }
  288. } else if (options.upsellCode) {
  289. this.$refs.shareRef?.open(options.upsellCode);
  290. } else if (options.reduceCode) {
  291. this.$refs.reduceShareRef?.open(options.reduceCode);
  292. } else {
  293. this.getLastOrder();
  294. }
  295. },
  296. // #ifdef MP-ALIPAY
  297. onPullDownRefresh() {
  298. this.getLastOrder()
  299. },
  300. // #endif
  301. //卸载loginSuccess事件
  302. onUnload() {
  303. uni.removeStorageSync("upsellCode");
  304. eventBus.off("loginSuccess");
  305. },
  306. methods: {
  307. // 登录成功之后
  308. loginSuccess(data) {
  309. let upsellCode = uni.getStorageSync("upsellCode");
  310. if (upsellCode) {
  311. console.log(upsellCode, "登录成功之后助力的 code值:", upsellCode);
  312. this.$refs.shareRef?.open(upsellCode);
  313. }
  314. let reduceCode = data.params.reduceCode;
  315. if (reduceCode) {
  316. console.log(reduceCode, "登录成功之后助力的 code值:", reduceCode);
  317. this.$refs.reduceShareRef?.open(reduceCode);
  318. }
  319. this.getLastOrder();
  320. },
  321. //删除书籍
  322. handleDeleteBook(book) {
  323. this.deleteBook = book;
  324. this.$refs.deleteDialog.openPopup(book);
  325. },
  326. //支付宝小程序的客服
  327. navigateToCustomerService() {
  328. uni.navigateTo({
  329. url: "/pages-mine/pages/customer-service",
  330. });
  331. },
  332. confirmDelete() {
  333. uni.$u.http
  334. .post("/token/order/removeBook", {
  335. orderId: this.deleteBook.orderId,
  336. isbn: this.deleteBook.isbn,
  337. })
  338. .then((res) => {
  339. if (res.code == 200) {
  340. this.$u.toast("删除成功");
  341. this.getLastOrder();
  342. }
  343. });
  344. },
  345. //扫码助力
  346. handleScanCode(data = {}) {
  347. this.$refs.upsellQrcodeRef.open(data);
  348. },
  349. //查看活动规则
  350. handleViewSellRules() {
  351. this.$refs.upsellRulesRef.open();
  352. },
  353. handleStart() {
  354. this.showPopup = true;
  355. },
  356. //套装书确认
  357. handleSetBookConfirm() {
  358. this.$refs.confirmBooks.openPopup(this.currentBook);
  359. },
  360. //书册补全
  361. handleIncomplete() {
  362. this.$refs.scanBookList.handleDeleteBook(this.currentBook);
  363. },
  364. handleValidate() {
  365. if (this.bookList.some((v) => v.canInvite == 1)) {
  366. this.$refs.noUpsellDialog.openPopup();
  367. } else {
  368. this.onNext();
  369. }
  370. },
  371. //提交
  372. onNext() {
  373. let orderId = this.orderInfo.orderId;
  374. //预提交
  375. uni.$u.http
  376. .get("/token/order/preSubmit?orderId=" + orderId)
  377. .then((res) => {
  378. if (res.code == 200) {
  379. if (res.data.code == 1 || res.data.code == 2) {
  380. uni.navigateTo({
  381. url: "/pages-home/pages/book-order",
  382. });
  383. uni.setStorageSync("orderId", orderId);
  384. } else {
  385. uni.showToast({
  386. icon: "none",
  387. title: res.msg,
  388. });
  389. }
  390. } else {
  391. uni.showToast({
  392. icon: "none",
  393. title: res.msg,
  394. });
  395. }
  396. });
  397. },
  398. // 加价
  399. handleUpsell(book) {
  400. this.$refs.upsellRef.open(book);
  401. },
  402. updateBooksList(data, book) {
  403. this.bookList = data;
  404. // book.upsellMoney && this.getLastOrder();
  405. this.getLastOrder();
  406. },
  407. toggleCollapse(step) {
  408. this.$set(this.collapseState, step, !this.collapseState[step]);
  409. },
  410. handleScan() {
  411. uni.scanCode({
  412. scanType: ["barCode"],
  413. success: (res) => {
  414. this.checkBookISBN(res.result, "scan");
  415. },
  416. fail: () => {
  417. uni.showToast({
  418. title: "扫码失败",
  419. icon: "none",
  420. });
  421. },
  422. });
  423. },
  424. checkBookISBN(isbn, type) {
  425. let url =
  426. type == "input"
  427. ? `/token/order/inputIsbn?isbn=${isbn}`
  428. : `/token/order/scanIsbn?isbn=${isbn}`;
  429. uni.$u.http.get(url).then((res) => {
  430. if (res.code == 200) {
  431. let code = res.data.code;
  432. if (code == 1) {
  433. res.data.num = 1;
  434. res.data.status = 1;
  435. res.data.recyclePrice = res.data.recycleMoney;
  436. this.currentBook = res.data;
  437. this.bookList.unshift(res.data);
  438. if (res.data.suit == 1) {
  439. this.$refs.setBookDialog.openPopup();
  440. }
  441. if (res.data.canInvite == 1) {
  442. this.$refs.upsellRef.open(res.data);
  443. }
  444. } else if (code == 2) {
  445. let item = this.bookList.find((v) => v.isbn === isbn);
  446. item.num = item.num + 1;
  447. if (res.data.canInvite == 1) {
  448. this.$refs.upsellRef.open(res.data);
  449. }
  450. } else {
  451. this.handleBookCode(res.data.code);
  452. }
  453. this.getLastOrder();
  454. } else {
  455. uni.showToast({
  456. title: res.msg,
  457. icon: "none",
  458. });
  459. }
  460. });
  461. },
  462. //处理扫码之后不同的状态 0-扫码频繁 1-成功 2-本单已有该书,数量+1 3-没有该书 4-本书暂不回收 5-超过每单最大可卖数量 6-单个订单最多40本书
  463. handleBookCode(code) {
  464. if (code == 1) {
  465. this.bookList.push();
  466. }
  467. let tempKeys = [
  468. "tiredDialog",
  469. "",
  470. "",
  471. "noInfoDialog",
  472. "notAcceptDialog",
  473. "maxAcceptDialog",
  474. "orderMaxNumDialog",
  475. ];
  476. let key = tempKeys[code];
  477. if (key) {
  478. this.$refs[key].openPopup();
  479. }
  480. },
  481. //获取当前用户未提交订单 /api/token/order/lastOrder
  482. getLastOrder() {
  483. uni.$u.http.get("/token/order/lastOrder").then((res) => {
  484. if (res.code == 200) {
  485. this.orderInfo = res.data;
  486. if (res.data.showDialog == 1) {
  487. this.$refs.firstOrderFreePopup.openPopup();
  488. } else if (res.data.showDialog == 2) {
  489. this.$refs.kindReminder.openPopup();
  490. }
  491. this.bookList = res.data?.orderDetailList
  492. ? res.data.orderDetailList.map((v) => {
  493. v.orderId = res.data.orderId;
  494. return v;
  495. })
  496. : [];
  497. this.serviceList = res.data.serviceList || [];
  498. } else {
  499. uni.showToast({
  500. title: res.msg,
  501. icon: "none",
  502. });
  503. }
  504. }).finally(() => {
  505. // #ifdef MP-ALIPAY
  506. my.stopPullDownRefresh()
  507. // #endif
  508. })
  509. },
  510. goToScannedBooks() {
  511. uni.navigateTo({
  512. url: "/pages-home/pages/scaned-book",
  513. });
  514. },
  515. goToInputISBN() {
  516. this.$refs.isbnPopup.openPopup();
  517. },
  518. handleStartSelling() {
  519. // 标记已显示过温馨提示
  520. uni.setStorageSync("kindReminderShown", true);
  521. },
  522. // 处理位置变更
  523. handlePositionChange(position) {
  524. this.servicePosition = position;
  525. },
  526. },
  527. };
  528. </script>
  529. <style lang="scss" scoped>
  530. .service-btn {
  531. height: max-content;
  532. background-color: transparent;
  533. padding: 0;
  534. }
  535. .container {
  536. height: 100%;
  537. position: relative;
  538. overflow: auto;
  539. z-index: 1;
  540. /* #ifdef MP-WEIXIN */
  541. min-height: 100vh;
  542. /* #endif */
  543. /* #ifndef MP-WEIXIN */
  544. min-height: calc(100vh - 120rpx);
  545. /* #endif */
  546. &.book-list {
  547. padding-bottom: 300rpx;
  548. }
  549. padding-bottom: 130rpx;
  550. .nav-title {
  551. font-family: PingFang SC;
  552. font-weight: bold;
  553. font-size: 34rpx;
  554. color: #ffffff;
  555. padding-left: 40rpx;
  556. /* #ifdef MP-ALIPAY */
  557. padding-left: 70rpx;
  558. /* #endif */
  559. }
  560. }
  561. .common-text {
  562. font-family: PingFang SC;
  563. font-weight: 500;
  564. font-size: 28rpx;
  565. color: #999999;
  566. &.tip {
  567. color: #ff8a4b;
  568. font-size: 26rpx;
  569. }
  570. }
  571. .color-red {
  572. color: #ff0000;
  573. margin: 0 10rpx;
  574. }
  575. .color-green {
  576. color: #276f1e;
  577. }
  578. .bottom-fixed {
  579. position: fixed;
  580. left: 0;
  581. right: 0;
  582. bottom: 0;
  583. z-index: 9;
  584. background-color: #ffffff;
  585. /* #ifdef H5 */
  586. padding-bottom: 120rpx;
  587. /* #endif */
  588. .btn-wrap {
  589. display: flex;
  590. gap: 20rpx;
  591. padding: 20rpx;
  592. padding-bottom: 0;
  593. button {
  594. flex: 1;
  595. height: 88rpx;
  596. border-radius: 10rpx;
  597. display: flex;
  598. align-items: center;
  599. justify-content: center;
  600. gap: 10rpx;
  601. border: none;
  602. text {
  603. font-size: 32rpx;
  604. }
  605. &::after {
  606. border: none;
  607. }
  608. }
  609. .isbn-btn {
  610. background-color: #ffffff;
  611. color: #4cd964;
  612. border: 3rpx solid #4cd964;
  613. }
  614. }
  615. .scan-btn {
  616. background-color: #4cd964;
  617. color: #ffffff;
  618. }
  619. .next-btn {
  620. margin: 0;
  621. margin-left: 40rpx;
  622. &[aria-disabled="true"] {
  623. background-color: #cccccc;
  624. color: #ffffff;
  625. opacity: 0.7;
  626. cursor: not-allowed;
  627. }
  628. }
  629. }
  630. </style>