index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <view class="mine-page">
  3. <!-- <u-navbar title="我的" bgColor="transparent" titleBold></u-navbar> -->
  4. <!-- 顶部用户信息 -->
  5. <view class="user-info">
  6. <view class="user-header" @tap="handleUpdateUserInfo">
  7. <view class="user-avatar">
  8. <image
  9. class="avatar"
  10. :src="userInfo.imgPath"
  11. mode="aspectFill"
  12. v-if="userInfo.imgPath"
  13. style="width: 100%; height: 100%; display: block"
  14. ></image>
  15. <image
  16. class="avatar"
  17. src="https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/logo3.png"
  18. mode="heightFix"
  19. v-else
  20. style="width: 100%; height: 116rpx; display: block; border-radius: 10%"
  21. ></image>
  22. </view>
  23. <view class="user-detail">
  24. <view class="nickname">{{ userInfo.nickName }}</view>
  25. <view class="user-tag" v-for="(tag, index) in userInfo.tags" :key="index">{{ tag }}</view>
  26. </view>
  27. </view>
  28. <!-- 用户数据 -->
  29. <view class="user-data">
  30. <view class="data-item" @click="navigateToTool('/pages-mine/pages/wallet')">
  31. <view class="amount">{{ userInfo.accountMoney || 0 }}</view>
  32. <view class="label">我的钱包</view>
  33. </view>
  34. <view class="data-item">
  35. <view class="amount">{{ userInfo.couponNum || 0 }}</view>
  36. <view class="label">优惠券</view>
  37. <view class="badge" v-if="userInfo.couponNum">{{ userInfo.couponNum }}张可领</view>
  38. </view>
  39. <view class="data-item">
  40. <view class="amount">{{ userInfo.point || 0 }}</view>
  41. <view class="label">我的积分</view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 卖书订单 -->
  46. <view class="order-section">
  47. <view class="section-header">
  48. <text>卖书订单</text>
  49. <view class="view-all" @click="viewAllOrders">
  50. <text>查看全部</text>
  51. <u-icon name="arrow-right" size="24" color="#999"></u-icon>
  52. </view>
  53. </view>
  54. <view class="order-types" style="padding: 0 20rpx">
  55. <view
  56. class="type-item flex-d flex-a-c"
  57. v-for="(item, index) in orderTypes"
  58. :key="index"
  59. @click="navigateToOrder(item.path)"
  60. >
  61. <image class="type-icon" :src="item.icon" mode="aspectFit"></image>
  62. <text>{{ item.name }}</text>
  63. <view class="badge" v-if="item.badge">{{ item.badge }}</view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 实用工具 -->
  68. <view class="tools-section">
  69. <view class="section-title">实用工具</view>
  70. <view class="tools-grid">
  71. <view
  72. class="tool-item flex-d flex-a-c"
  73. v-for="(tool, index) in tools"
  74. :key="index"
  75. @click="navigateToTool(tool.path)"
  76. >
  77. <button class="link-service flex-d flex-a-c" open-type="contact" v-if="tool.path == 'link-service'">
  78. <image class="tool-icon" :src="tool.icon" mode="aspectFit"></image>
  79. <text>联系客服</text>
  80. </button>
  81. <block v-else>
  82. <image class="tool-icon" :src="tool.icon" mode="aspectFit"></image>
  83. <text>{{ tool.name }}</text>
  84. </block>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 悬浮提现确认按钮 -->
  89. <view
  90. class="withdrawal-confirm"
  91. :style="{
  92. left: buttonPosition.left + 'px',
  93. right: buttonPosition.right + 'px',
  94. bottom: buttonPosition.bottom + 'px',
  95. }"
  96. @touchstart="touchStart"
  97. @touchmove="touchMove"
  98. @touchend="touchEnd"
  99. @click="navigateToWithdrawal"
  100. v-if="withdrawalOrder && withdrawalOrder.length > 0"
  101. >
  102. <view class="confirm-btn">
  103. <text>提现</text>
  104. <text>确认</text>
  105. </view>
  106. </view>
  107. <!-- 提现进度弹窗 -->
  108. <withdrawal-progress
  109. :orderInfo="currentWithdrawalOrder"
  110. @confirm="confirmWithdrawal"
  111. ref="withdrawalRef"
  112. />
  113. </view>
  114. </template>
  115. <script>
  116. import WithdrawalProgress from "./components/withdrawal-progress.vue";
  117. export default {
  118. components: {
  119. WithdrawalProgress,
  120. },
  121. data() {
  122. return {
  123. userInfo: {
  124. userId: 0,
  125. openid: "",
  126. imgPath: "",
  127. nickName: "这里是微信昵称.",
  128. mobile: "",
  129. tags: [],
  130. accountMoney: 0,
  131. couponNum: 0,
  132. point: 0,
  133. firstAuditNum: 0,
  134. pickUpNum: 0,
  135. auditNum: 0,
  136. payNum: 0,
  137. refundNum: 0,
  138. },
  139. orderTypes: [
  140. {
  141. name: "待初审",
  142. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/1.png",
  143. badge: 0,
  144. key: "firstAuditNum",
  145. path: "/pages-mine/pages/order-page?status=2",
  146. },
  147. {
  148. name: "待取件",
  149. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/2.png",
  150. badge: 0,
  151. key: "pickUpNum",
  152. path: "/pages-mine/pages/order-page?status=3",
  153. },
  154. {
  155. name: "待审核",
  156. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/3.png",
  157. badge: 0,
  158. key: "auditNum",
  159. path: "/pages-mine/pages/order-page?status=8",
  160. },
  161. {
  162. name: "待到款",
  163. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/4.png",
  164. badge: 0,
  165. key: "payNum",
  166. path: "/pages-mine/pages/order-page?status=10",
  167. },
  168. {
  169. name: "申请退回",
  170. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/5.png",
  171. badge: 0,
  172. key: "refundNum",
  173. path: "/pages-mine/pages/apply-return",
  174. },
  175. ],
  176. tools: [
  177. {
  178. name: "消息通知",
  179. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t1.png",
  180. path: "/pages-mine/pages/notice",
  181. },
  182. { name: "我的收藏", icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t2.png", path: "" },
  183. { name: "我的足迹", icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t3.png", path: "" },
  184. {
  185. name: "我的地址",
  186. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t4.png",
  187. path: "/pages-mine/pages/address/list",
  188. },
  189. { name: "我的优惠券", icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t5.png", path: "" },
  190. {
  191. name: "联系客服",
  192. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t6.png",
  193. path: "link-service",
  194. },
  195. {
  196. name: "意见反馈",
  197. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t7.png",
  198. path: "/pages-mine/pages/feedback",
  199. },
  200. {
  201. name: "到货提醒",
  202. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t8.png",
  203. path: "/pages/tools/arrival-notice",
  204. },
  205. {
  206. name: "合伙人计划",
  207. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t9.png",
  208. path: "/pages-mine/pages/partner/partner-rule",
  209. },
  210. {
  211. name: "买卖答疑",
  212. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t10.png",
  213. path: "/pages-mine/pages/rules-for-sellbooks",
  214. },
  215. {
  216. name: "关于书嗨",
  217. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t11.png",
  218. path: "/pages-home/pages/about-us",
  219. },
  220. {
  221. name: "我的余额",
  222. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t12.png",
  223. path: "/pages-mine/pages/wallet",
  224. },
  225. {
  226. name: "用户设置",
  227. icon: "https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t13.png",
  228. path: "/pages-mine/pages/setting",
  229. },
  230. ],
  231. // 悬浮按钮位置
  232. buttonPosition: {
  233. left: "auto",
  234. right: 0,
  235. bottom: "20%",
  236. },
  237. // 触摸开始位置
  238. startX: 0,
  239. startY: 0,
  240. // 屏幕宽度和高度
  241. screenWidth: 0,
  242. screenHeight: 0,
  243. // 初始位置记录,用于计算拖动
  244. initialLeft: 0,
  245. initialBottom: 0,
  246. // 是否正在更新位置,用于防止频繁更新
  247. isUpdatingPosition: false,
  248. withdrawalOrder: [],
  249. // 提现进度弹窗相关
  250. showWithdrawalModal: false,
  251. currentWithdrawalOrder: {},
  252. };
  253. },
  254. methods: {
  255. //获取是否存在待确认提现的订单
  256. getWithdrawalOrder() {
  257. uni.$u.http.get("/token/user/withdrawWindows").then((res) => {
  258. console.log(res);
  259. if (res.code == 200) {
  260. this.withdrawalOrder = res.data;
  261. }
  262. });
  263. },
  264. //用户信息
  265. handleUpdateUserInfo() {
  266. uni.navigateTo({
  267. url: "/pages-mine/pages/setting",
  268. });
  269. },
  270. //查看全部订单
  271. viewAllOrders() {
  272. uni.navigateTo({
  273. url: "/pages-mine/pages/order-page?status=-1",
  274. });
  275. },
  276. //跳转订单
  277. navigateToOrder(path) {
  278. uni.navigateTo({
  279. url: path,
  280. });
  281. },
  282. //跳转工具
  283. navigateToTool(path) {
  284. if (!path)
  285. return uni.showToast({
  286. title: "开发中...",
  287. icon: "none",
  288. });
  289. if (path == "/pages-mine/pages/partner/partner-rule") {
  290. this.getPartnerStatus();
  291. } else {
  292. uni.navigateTo({
  293. url: path,
  294. });
  295. }
  296. },
  297. // 导航到提现确认页面
  298. navigateToWithdrawal() {
  299. if (this.withdrawalOrder && this.withdrawalOrder.length > 0) {
  300. // 显示提现进度弹窗,使用第一个提现订单
  301. this.currentWithdrawalOrder = this.withdrawalOrder[0];
  302. this.$refs.withdrawalRef.openModal();
  303. } else {
  304. // 如果没有待确认的提现订单,直接跳转到钱包页面
  305. uni.navigateTo({
  306. url: "/pages-mine/pages/wallet",
  307. });
  308. }
  309. },
  310. //获取用户信息
  311. getUserInfo() {
  312. uni.$u.http.get("/token/user/detail").then((res) => {
  313. console.log(res);
  314. if (res.code == 200) {
  315. this.userInfo = res.data;
  316. uni.setStorageSync("userInfo", this.userInfo);
  317. this.orderTypes.forEach((item) => {
  318. item.badge = this.userInfo[item.key];
  319. });
  320. }
  321. });
  322. },
  323. //获取合伙人状态
  324. getPartnerStatus() {
  325. let item = this.tools.find((item) => item.name == "合伙人计划");
  326. uni.$u.get("/token/getUserPartnerInfo").then((res) => {
  327. if (res.code == 200) {
  328. let { status } = res.data;
  329. if (status == -1 || status == 4) {
  330. item.path = "/pages-mine/pages/partner/partner-rule";
  331. } else if (status == 1) {
  332. item.path = "/pages-mine/pages/partner/partner-home";
  333. } else {
  334. item.path = "/pages-mine/pages/partner/partner-status";
  335. }
  336. } else {
  337. item.path = "/pages-mine/pages/partner/partner-status";
  338. }
  339. uni.navigateTo({
  340. url: item.path,
  341. });
  342. });
  343. },
  344. // 触摸开始
  345. touchStart(e) {
  346. const touch = e.touches[0];
  347. this.startX = touch.clientX;
  348. this.startY = touch.clientY;
  349. // 记录初始位置,用于计算移动距离
  350. if (this.buttonPosition.right !== "auto") {
  351. // 如果是靠右定位,记录当前位置但不立即改变显示位置
  352. this.initialLeft = this.screenWidth - 120;
  353. } else {
  354. this.initialLeft = parseFloat(this.buttonPosition.left);
  355. }
  356. // 如果bottom是百分比,转换为具体像素值
  357. if (typeof this.buttonPosition.bottom === "string" && this.buttonPosition.bottom.includes("%")) {
  358. const percentage = parseFloat(this.buttonPosition.bottom) / 100;
  359. this.initialBottom = this.screenHeight * percentage;
  360. } else {
  361. this.initialBottom = parseFloat(this.buttonPosition.bottom);
  362. }
  363. },
  364. // 触摸移动
  365. touchMove(e) {
  366. // 阻止默认行为,防止页面滚动
  367. e.preventDefault && e.preventDefault();
  368. e.stopPropagation && e.stopPropagation();
  369. const touch = e.touches[0];
  370. // 计算移动距离
  371. const deltaX = touch.clientX - this.startX;
  372. const deltaY = touch.clientY - this.startY;
  373. // 使用初始位置计算新位置,避免累积误差
  374. let newLeft = this.initialLeft + deltaX;
  375. let newBottom = this.initialBottom - deltaY; // 注意:y轴方向是相反的
  376. // 确保按钮不超出屏幕边界
  377. if (newLeft < 0) {
  378. newLeft = 0;
  379. } else if (newLeft > this.screenWidth - 120) {
  380. newLeft = this.screenWidth - 120;
  381. }
  382. // 确保按钮不超出屏幕垂直边界
  383. if (newBottom < 20) {
  384. newBottom = 20;
  385. } else if (newBottom > this.screenHeight - 120) {
  386. newBottom = this.screenHeight - 120;
  387. }
  388. // 使用节流方式更新位置,避免过于频繁的更新
  389. if (!this.isUpdatingPosition) {
  390. this.isUpdatingPosition = true;
  391. // 更新位置 - 第一次移动时才真正改变right为auto
  392. this.buttonPosition = {
  393. left: newLeft,
  394. right: "auto",
  395. bottom: newBottom,
  396. };
  397. // 使用setTimeout代替requestAnimationFrame,在微信小程序中更兼容
  398. setTimeout(() => {
  399. this.isUpdatingPosition = false;
  400. }, 16); // 约等于60fps的刷新率
  401. }
  402. },
  403. // 触摸结束,实现吸附效果
  404. touchEnd() {
  405. // 确保不再有待处理的更新
  406. this.isUpdatingPosition = false;
  407. const buttonCenter = this.buttonPosition.left + 60; // 按钮中心位置
  408. const halfScreen = this.screenWidth / 2;
  409. // 判断是吸附到左边还是右边
  410. if (buttonCenter < halfScreen) {
  411. // 吸附到左边
  412. this.buttonPosition = {
  413. left: 0,
  414. right: "auto",
  415. bottom: this.buttonPosition.bottom,
  416. };
  417. } else {
  418. // 吸附到右边
  419. this.buttonPosition = {
  420. left: "auto",
  421. right: 0,
  422. bottom: this.buttonPosition.bottom,
  423. };
  424. }
  425. },
  426. // 关闭提现进度弹窗
  427. closeWithdrawalModal() {
  428. this.$refs.withdrawalRef.handleClose();
  429. },
  430. confirmWithdrawal(item) {
  431. uni.$u.http
  432. .post("/token/user/withdrawConfirm", {
  433. orderNo: item.orderNo,
  434. })
  435. .then((res) => {
  436. if (res.code === 200) {
  437. this.handleConfirmReceipt(res.data);
  438. }
  439. })
  440. .catch((err) => {
  441. uni.showToast({
  442. title: err.message || "确认失败",
  443. icon: "none",
  444. });
  445. });
  446. },
  447. //执行微信确认收款操作
  448. handleConfirmReceipt(data) {
  449. if (wx.canIUse("requestMerchantTransfer")) {
  450. wx.requestMerchantTransfer({
  451. mchId: data.mchId,
  452. appId: data.appId,
  453. package: data.packageStr,
  454. success: (res) => {
  455. // res.err_msg将在页面展示成功后返回应用时返回ok,并不代表付款成功
  456. uni.showToast({
  457. title: "确认收款成功",
  458. icon: "none",
  459. });
  460. this.closeWithdrawalModal();
  461. // 刷新列表
  462. this.getWithdrawalOrder();
  463. },
  464. fail: (res) => {
  465. console.log("fail:", res);
  466. },
  467. });
  468. } else {
  469. wx.showModal({
  470. content: "你的微信版本过低,请更新至最新版本。",
  471. showCancel: false,
  472. });
  473. }
  474. },
  475. },
  476. onReady() {
  477. // 获取屏幕宽度和高度
  478. uni.getSystemInfo({
  479. success: (res) => {
  480. this.screenWidth = res.windowWidth;
  481. this.screenHeight = res.windowHeight;
  482. },
  483. });
  484. },
  485. onShow() {
  486. let token = uni.getStorageSync("token");
  487. if (token) {
  488. this.getUserInfo();
  489. this.getWithdrawalOrder();
  490. }
  491. },
  492. };
  493. </script>
  494. <style lang="scss" scoped>
  495. .mine-page {
  496. min-height: 100vh;
  497. background-color: #f5f5f5;
  498. .link-service {
  499. background: transparent;
  500. border: none;
  501. padding: 0;
  502. margin: 0;
  503. width: 100%;
  504. height: 100%;
  505. line-height: 36rpx;
  506. }
  507. .user-info {
  508. background: url("/static/img/bg.png") no-repeat center center;
  509. background-size: 100% 100%;
  510. position: absolute;
  511. top: 0;
  512. left: 0;
  513. padding: 20rpx 50rpx 120rpx;
  514. color: #fff;
  515. position: relative;
  516. padding-top: 160rpx;
  517. &::after {
  518. width: 140%;
  519. position: absolute;
  520. left: -20%;
  521. top: 0;
  522. z-index: -1;
  523. content: "";
  524. border-radius: 0 0 50% 50%;
  525. background: #fd6954;
  526. }
  527. .user-header {
  528. display: flex;
  529. align-items: center;
  530. margin-bottom: 40rpx;
  531. .user-avatar {
  532. border-radius: 50%;
  533. margin-right: 20rpx;
  534. border: 4rpx solid #fff;
  535. width: 128rpx;
  536. height: 128rpx;
  537. overflow: hidden;
  538. flex-shrink: 0;
  539. background: #fff;
  540. .avatar {
  541. width: 100%;
  542. height: 100%;
  543. border-radius: 50%;
  544. object-fit: cover;
  545. }
  546. }
  547. .user-detail {
  548. .nickname {
  549. font-size: 32rpx;
  550. font-weight: 500;
  551. margin-bottom: 8rpx;
  552. }
  553. .user-tag {
  554. display: inline-block;
  555. font-size: 22rpx;
  556. padding: 4rpx 12rpx;
  557. background: linear-gradient(-90deg, #272321, #4b4542);
  558. border-radius: 4rpx;
  559. margin-top: 8rpx;
  560. margin-right: 10rpx;
  561. }
  562. }
  563. }
  564. .user-data {
  565. display: flex;
  566. justify-content: space-between;
  567. position: relative;
  568. z-index: 1;
  569. padding: 0 40rpx;
  570. .data-item {
  571. position: relative;
  572. text-align: center;
  573. .amount {
  574. font-size: 38rpx;
  575. font-weight: 500;
  576. margin-bottom: 8rpx;
  577. }
  578. .label {
  579. font-size: 24rpx;
  580. font-weight: 400;
  581. opacity: 0.9;
  582. }
  583. .badge {
  584. position: absolute;
  585. top: -15rpx;
  586. right: -120%;
  587. padding: 0 10rpx;
  588. font-size: 20rpx;
  589. line-height: 30rpx;
  590. height: 30rpx;
  591. background: #ff8400;
  592. border-radius: 15rpx 15rpx 15rpx 0rpx;
  593. }
  594. }
  595. }
  596. }
  597. .order-section {
  598. margin: -90rpx 30rpx 20rpx;
  599. background: #fff;
  600. border-radius: 12rpx;
  601. padding: 30rpx;
  602. position: relative;
  603. z-index: 2;
  604. .section-header {
  605. display: flex;
  606. justify-content: space-between;
  607. align-items: center;
  608. margin-bottom: 30rpx;
  609. .view-all {
  610. display: flex;
  611. align-items: center;
  612. color: #999;
  613. font-size: 26rpx;
  614. }
  615. }
  616. .order-types {
  617. display: flex;
  618. justify-content: space-between;
  619. .type-item {
  620. text-align: center;
  621. position: relative;
  622. .badge {
  623. position: absolute;
  624. top: -15rpx;
  625. right: -6px;
  626. padding: 0 10rpx;
  627. font-size: 20rpx;
  628. line-height: 30rpx;
  629. height: 30rpx;
  630. background: #f56c6c;
  631. color: #fff;
  632. border-radius: 15rpx 15rpx 15rpx 0rpx;
  633. }
  634. .type-icon {
  635. width: 60rpx;
  636. height: 60rpx;
  637. margin-bottom: 12rpx;
  638. }
  639. text {
  640. font-size: 26rpx;
  641. color: #333;
  642. }
  643. }
  644. }
  645. }
  646. .tools-section {
  647. margin: 30rpx;
  648. background: #fff;
  649. border-radius: 12rpx;
  650. padding: 30rpx;
  651. position: relative;
  652. z-index: 2;
  653. .section-title {
  654. font-size: 30rpx;
  655. font-weight: 500;
  656. margin-bottom: 30rpx;
  657. }
  658. .tools-grid {
  659. display: grid;
  660. grid-template-columns: repeat(4, 1fr);
  661. gap: 30rpx;
  662. .tool-item {
  663. text-align: center;
  664. .tool-icon {
  665. width: 60rpx;
  666. height: 60rpx;
  667. margin-bottom: 12rpx;
  668. }
  669. text {
  670. font-size: 24rpx;
  671. color: #333;
  672. }
  673. }
  674. }
  675. }
  676. // 悬浮提现确认按钮样式
  677. .withdrawal-confirm {
  678. position: fixed;
  679. bottom: 10%;
  680. z-index: 999;
  681. width: 120rpx;
  682. height: 120rpx;
  683. transition: all 0.3s ease;
  684. .confirm-btn {
  685. width: 100%;
  686. height: 100%;
  687. background-color: #4cd964;
  688. border-radius: 50%;
  689. display: flex;
  690. flex-direction: column;
  691. align-items: center;
  692. justify-content: center;
  693. border: 4rpx solid #fff;
  694. box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.2);
  695. text {
  696. color: #ffffff;
  697. font-size: 34rpx;
  698. text-align: center;
  699. font-weight: 500;
  700. padding: 0 10rpx;
  701. line-height: 1.2;
  702. }
  703. }
  704. }
  705. }
  706. </style>