index.vue 19 KB

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