index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  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. if (!app.globalData.isColdLaunch) {
  254. let token = uni.getStorageSync("token");
  255. if (token) {
  256. this.getLastOrder();
  257. }
  258. return
  259. }
  260. eventBus.on("loginSuccess", (data) => {
  261. console.log(data, "登录成功loginSuccess");
  262. this.loginSuccess(data);
  263. app.globalData.isColdLaunch = false;
  264. });;
  265. },
  266. //针对多次扫码的热启动场景,需要判断是否是冷启动
  267. onLoad(options) {
  268. console.log(options, app.globalData.isColdLaunch, "onLoad");
  269. if (app.globalData.isColdLaunch) return
  270. if (options.scene) {
  271. let params = {};
  272. // 对 scene 进行解码
  273. const decodeScene = decodeURIComponent(options.scene);
  274. // 拆分参数
  275. const paramPairs = decodeScene.split('&');
  276. paramPairs.forEach((pair) => {
  277. const [key, value] = pair.split('=');
  278. params[key] = value;
  279. });
  280. if (params.upsellCode) {
  281. this.$refs.shareRef?.open(params.upsellCode);
  282. this.getLastOrder();
  283. }
  284. if (params.reduceCode) {
  285. this.$refs.reduceShareRef?.open(params.reduceCode);
  286. }
  287. } else if (options.upsellCode) {
  288. this.$refs.shareRef?.open(options.upsellCode);
  289. } else if (options.reduceCode) {
  290. this.$refs.reduceShareRef?.open(options.reduceCode);
  291. } else {
  292. this.getLastOrder();
  293. }
  294. },
  295. // #ifdef MP-ALIPAY
  296. onPullDownRefresh() {
  297. this.getLastOrder()
  298. },
  299. // #endif
  300. //卸载loginSuccess事件
  301. onUnload() {
  302. uni.removeStorageSync("upsellCode");
  303. eventBus.off("loginSuccess");
  304. },
  305. methods: {
  306. // 登录成功之后
  307. loginSuccess(data) {
  308. let upsellCode = uni.getStorageSync("upsellCode");
  309. if (upsellCode) {
  310. console.log(upsellCode, "登录成功之后助力的 code值:", upsellCode);
  311. this.$refs.shareRef?.open(upsellCode);
  312. }
  313. let reduceCode = data.params.reduceCode;
  314. if (reduceCode) {
  315. console.log(reduceCode, "登录成功之后助力的 code值:", reduceCode);
  316. this.$refs.reduceShareRef?.open(reduceCode);
  317. }
  318. this.getLastOrder();
  319. },
  320. //删除书籍
  321. handleDeleteBook(book) {
  322. this.deleteBook = book;
  323. this.$refs.deleteDialog.openPopup(book);
  324. },
  325. //支付宝小程序的客服
  326. navigateToCustomerService() {
  327. uni.navigateTo({
  328. url: "/pages-mine/pages/customer-service",
  329. });
  330. },
  331. confirmDelete() {
  332. uni.$u.http
  333. .post("/token/order/removeBook", {
  334. orderId: this.deleteBook.orderId,
  335. isbn: this.deleteBook.isbn,
  336. })
  337. .then((res) => {
  338. if (res.code == 200) {
  339. this.$u.toast("删除成功");
  340. this.getLastOrder();
  341. }
  342. });
  343. },
  344. //扫码助力
  345. handleScanCode(data = {}) {
  346. this.$refs.upsellQrcodeRef.open(data);
  347. },
  348. //查看活动规则
  349. handleViewSellRules() {
  350. this.$refs.upsellRulesRef.open();
  351. },
  352. handleStart() {
  353. this.showPopup = true;
  354. },
  355. //套装书确认
  356. handleSetBookConfirm() {
  357. this.$refs.confirmBooks.openPopup(this.currentBook);
  358. },
  359. //书册补全
  360. handleIncomplete() {
  361. this.$refs.scanBookList.handleDeleteBook(this.currentBook);
  362. },
  363. handleValidate() {
  364. if (this.bookList.some((v) => v.canInvite == 1)) {
  365. this.$refs.noUpsellDialog.openPopup();
  366. } else {
  367. this.onNext();
  368. }
  369. },
  370. //提交
  371. onNext() {
  372. let orderId = this.orderInfo.orderId;
  373. //预提交
  374. uni.$u.http
  375. .get("/token/order/preSubmit?orderId=" + orderId)
  376. .then((res) => {
  377. if (res.code == 200) {
  378. if (res.data.code == 1 || res.data.code == 2) {
  379. uni.navigateTo({
  380. url: "/pages-home/pages/book-order",
  381. });
  382. uni.setStorageSync("orderId", orderId);
  383. } else {
  384. uni.showToast({
  385. icon: "none",
  386. title: res.msg,
  387. });
  388. }
  389. } else {
  390. uni.showToast({
  391. icon: "none",
  392. title: res.msg,
  393. });
  394. }
  395. });
  396. },
  397. // 加价
  398. handleUpsell(book) {
  399. this.$refs.upsellRef.open(book);
  400. },
  401. updateBooksList(data, book) {
  402. this.bookList = data;
  403. // book.upsellMoney && this.getLastOrder();
  404. this.getLastOrder();
  405. },
  406. toggleCollapse(step) {
  407. this.$set(this.collapseState, step, !this.collapseState[step]);
  408. },
  409. handleScan() {
  410. uni.scanCode({
  411. scanType: ["barCode"],
  412. success: (res) => {
  413. this.checkBookISBN(res.result, "scan");
  414. },
  415. fail: () => {
  416. uni.showToast({
  417. title: "扫码失败",
  418. icon: "none",
  419. });
  420. },
  421. });
  422. },
  423. checkBookISBN(isbn, type) {
  424. let url =
  425. type == "input"
  426. ? `/token/order/inputIsbn?isbn=${isbn}`
  427. : `/token/order/scanIsbn?isbn=${isbn}`;
  428. uni.$u.http.get(url).then((res) => {
  429. if (res.code == 200) {
  430. let code = res.data.code;
  431. if (code == 1) {
  432. res.data.num = 1;
  433. res.data.status = 1;
  434. res.data.recyclePrice = res.data.recycleMoney;
  435. this.currentBook = res.data;
  436. this.bookList.unshift(res.data);
  437. if (res.data.suit == 1) {
  438. this.$refs.setBookDialog.openPopup();
  439. }
  440. if (res.data.canInvite == 1) {
  441. this.$refs.upsellRef.open(res.data);
  442. }
  443. } else if (code == 2) {
  444. let item = this.bookList.find((v) => v.isbn === isbn);
  445. item.num = item.num + 1;
  446. if (res.data.canInvite == 1) {
  447. this.$refs.upsellRef.open(res.data);
  448. }
  449. } else {
  450. this.handleBookCode(res.data.code);
  451. }
  452. this.getLastOrder();
  453. } else {
  454. uni.showToast({
  455. title: res.msg,
  456. icon: "none",
  457. });
  458. }
  459. });
  460. },
  461. //处理扫码之后不同的状态 0-扫码频繁 1-成功 2-本单已有该书,数量+1 3-没有该书 4-本书暂不回收 5-超过每单最大可卖数量 6-单个订单最多40本书
  462. handleBookCode(code) {
  463. if (code == 1) {
  464. this.bookList.push();
  465. }
  466. let tempKeys = [
  467. "tiredDialog",
  468. "",
  469. "",
  470. "noInfoDialog",
  471. "notAcceptDialog",
  472. "maxAcceptDialog",
  473. "orderMaxNumDialog",
  474. ];
  475. let key = tempKeys[code];
  476. if (key) {
  477. this.$refs[key].openPopup();
  478. }
  479. },
  480. //获取当前用户未提交订单 /api/token/order/lastOrder
  481. getLastOrder() {
  482. uni.$u.http.get("/token/order/lastOrder").then((res) => {
  483. if (res.code == 200) {
  484. this.orderInfo = res.data;
  485. if (res.data.showDialog == 1) {
  486. this.$refs.firstOrderFreePopup.openPopup();
  487. } else if (res.data.showDialog == 2) {
  488. this.$refs.kindReminder.openPopup();
  489. }
  490. this.bookList = res.data?.orderDetailList
  491. ? res.data.orderDetailList.map((v) => {
  492. v.orderId = res.data.orderId;
  493. return v;
  494. })
  495. : [];
  496. this.serviceList = res.data.serviceList || [];
  497. } else {
  498. uni.showToast({
  499. title: res.msg,
  500. icon: "none",
  501. });
  502. }
  503. }).finally(() => {
  504. // #ifdef MP-ALIPAY
  505. my.stopPullDownRefresh()
  506. // #endif
  507. })
  508. },
  509. goToScannedBooks() {
  510. uni.navigateTo({
  511. url: "/pages-home/pages/scaned-book",
  512. });
  513. },
  514. goToInputISBN() {
  515. this.$refs.isbnPopup.openPopup();
  516. },
  517. handleStartSelling() {
  518. // 标记已显示过温馨提示
  519. uni.setStorageSync("kindReminderShown", true);
  520. },
  521. // 处理位置变更
  522. handlePositionChange(position) {
  523. this.servicePosition = position;
  524. },
  525. },
  526. };
  527. </script>
  528. <style lang="scss" scoped>
  529. .service-btn {
  530. height: max-content;
  531. background-color: transparent;
  532. padding: 0;
  533. }
  534. .container {
  535. height: 100%;
  536. position: relative;
  537. overflow: auto;
  538. z-index: 1;
  539. /* #ifdef MP-WEIXIN */
  540. min-height: 100vh;
  541. /* #endif */
  542. /* #ifndef MP-WEIXIN */
  543. min-height: calc(100vh - 120rpx);
  544. /* #endif */
  545. &.book-list {
  546. padding-bottom: 300rpx;
  547. }
  548. padding-bottom: 130rpx;
  549. .nav-title {
  550. font-family: PingFang SC;
  551. font-weight: bold;
  552. font-size: 34rpx;
  553. color: #ffffff;
  554. padding-left: 40rpx;
  555. /* #ifdef MP-ALIPAY */
  556. padding-left: 70rpx;
  557. /* #endif */
  558. }
  559. }
  560. .common-text {
  561. font-family: PingFang SC;
  562. font-weight: 500;
  563. font-size: 28rpx;
  564. color: #999999;
  565. &.tip {
  566. color: #ff8a4b;
  567. font-size: 26rpx;
  568. }
  569. }
  570. .color-red {
  571. color: #ff0000;
  572. margin: 0 10rpx;
  573. }
  574. .color-green {
  575. color: #276f1e;
  576. }
  577. .bottom-fixed {
  578. position: fixed;
  579. left: 0;
  580. right: 0;
  581. bottom: 0;
  582. z-index: 9;
  583. background-color: #ffffff;
  584. /* #ifdef H5 */
  585. padding-bottom: 120rpx;
  586. /* #endif */
  587. .btn-wrap {
  588. display: flex;
  589. gap: 20rpx;
  590. padding: 20rpx;
  591. padding-bottom: 0;
  592. button {
  593. flex: 1;
  594. height: 88rpx;
  595. border-radius: 10rpx;
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. gap: 10rpx;
  600. border: none;
  601. text {
  602. font-size: 32rpx;
  603. }
  604. &::after {
  605. border: none;
  606. }
  607. }
  608. .isbn-btn {
  609. background-color: #ffffff;
  610. color: #4cd964;
  611. border: 3rpx solid #4cd964;
  612. }
  613. }
  614. .scan-btn {
  615. background-color: #4cd964;
  616. color: #ffffff;
  617. }
  618. .next-btn {
  619. margin: 0;
  620. margin-left: 40rpx;
  621. &[aria-disabled="true"] {
  622. background-color: #cccccc;
  623. color: #ffffff;
  624. opacity: 0.7;
  625. cursor: not-allowed;
  626. }
  627. }
  628. }
  629. </style>