index.vue 24 KB

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