混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

812 lines
18 KiB

3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
  1. <template>
  2. <view class="page">
  3. <navbar title="订单详情" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="content">
  5. <!-- 订单状态卡片 -->
  6. <view class="status-card">
  7. <view class="status-header">
  8. <view class="status-icon" :class="orderInfo.status">
  9. <uv-icon :name="getStatusIcon(orderInfo.status)" size="30" color="#fff"></uv-icon>
  10. </view>
  11. <view class="status-info">
  12. <view class="status-text">{{ getStatusText(orderInfo.status) }}</view>
  13. <view class="status-desc">{{ getStatusDesc(orderInfo.status) }}</view>
  14. </view>
  15. </view>
  16. <!-- 进度条 -->
  17. <view v-if="orderInfo.status === 'processing'" class="progress-container">
  18. <view class="progress-bar">
  19. <view class="progress-fill" :style="{width: orderInfo.progress + '%'}"></view>
  20. </view>
  21. <view class="progress-text">{{ orderInfo.progress }}%</view>
  22. </view>
  23. </view>
  24. <!-- 订单基本信息 -->
  25. <view class="order-info-card">
  26. <view class="section-title">
  27. <view class="title-bar"></view>
  28. <text>订单信息</text>
  29. </view>
  30. <view class="info-item">
  31. <view class="label">订单编号</view>
  32. <view class="value order-no-value">
  33. <text>{{ orderInfo.orderNo }}</text>
  34. <uv-icon name="copy" size="16" color="#007AFF" @click="copyOrderNo"></uv-icon>
  35. </view>
  36. </view>
  37. <view class="info-item">
  38. <view class="label">项目名称</view>
  39. <view class="value">{{ orderInfo.projectName }}</view>
  40. </view>
  41. <view class="info-item">
  42. <view class="label">工作地址</view>
  43. <view class="value address-value">
  44. <text>{{ orderInfo.workAddress }}</text>
  45. <uv-icon name="map-pin" size="16" color="#007AFF" @click="openMap"></uv-icon>
  46. </view>
  47. </view>
  48. <view class="info-item">
  49. <view class="label">服务类型</view>
  50. <view class="value">{{ orderInfo.serviceType }}</view>
  51. </view>
  52. <view class="info-item">
  53. <view class="label">工作时间</view>
  54. <view class="value">{{ orderInfo.workTime }}</view>
  55. </view>
  56. <view class="info-item">
  57. <view class="label">混凝土方量</view>
  58. <view class="value">{{ orderInfo.volume }}m³</view>
  59. </view>
  60. <view class="info-item">
  61. <view class="label">预计趟数</view>
  62. <view class="value">{{ orderInfo.tripCount }}</view>
  63. </view>
  64. </view>
  65. <!-- 联系人信息 -->
  66. <view class="contact-card">
  67. <view class="section-title">
  68. <view class="title-bar"></view>
  69. <text>联系人信息</text>
  70. </view>
  71. <view class="contact-info">
  72. <view class="contact-item">
  73. <view class="contact-label">联系人</view>
  74. <view class="contact-value">{{ orderInfo.contactName }}</view>
  75. </view>
  76. <view class="contact-item">
  77. <view class="contact-label">联系电话</view>
  78. <view class="contact-value">
  79. <text>{{ orderInfo.contactPhone }}</text>
  80. <uv-icon name="phone" size="20" color="#007AFF" @click="makeCall"></uv-icon>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 司机信息 -->
  86. <view v-if="orderInfo.driverInfo" class="driver-card">
  87. <view class="section-title">
  88. <view class="title-bar"></view>
  89. <text>司机信息</text>
  90. </view>
  91. <view class="driver-info">
  92. <view class="driver-avatar">
  93. <image :src="orderInfo.driverInfo.avatar" mode="aspectFill"></image>
  94. </view>
  95. <view class="driver-details">
  96. <view class="driver-name">{{ orderInfo.driverInfo.name }}</view>
  97. <view class="driver-phone">{{ orderInfo.driverInfo.phone }}</view>
  98. <view class="driver-vehicle">车牌号{{ orderInfo.driverInfo.vehicleNo }}</view>
  99. <view class="driver-rating">
  100. <text>评分{{ orderInfo.driverInfo.rating }}</text>
  101. <text>完成订单{{ orderInfo.driverInfo.completedOrders }}</text>
  102. </view>
  103. </view>
  104. <view class="driver-actions">
  105. <view class="action-btn" @click="callDriver">
  106. <uv-icon name="phone" size="20" color="#fff"></uv-icon>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <!-- 订单步骤 -->
  112. <view class="steps-container">
  113. <view class="section-title">
  114. <view class="title-bar"></view>
  115. <text>订单进度</text>
  116. <view v-if="orderInfo.status === 'processing' || orderInfo.status === 'completed'" class="track-btn" @click="viewTrack">
  117. <text>查看轨迹</text>
  118. <uv-icon name="arrow-right" size="14" color="#007AFF"></uv-icon>
  119. </view>
  120. </view>
  121. <uv-steps
  122. activeColor="#007AFF"
  123. :current="stepsCurrent"
  124. direction="column">
  125. <uv-steps-item
  126. v-for="(item, index) in steps"
  127. :key="index"
  128. :title="item.title"
  129. :desc="item.desc">
  130. </uv-steps-item>
  131. </uv-steps>
  132. </view>
  133. <!-- 费用明细 -->
  134. <view class="cost-card">
  135. <view class="section-title">
  136. <view class="title-bar"></view>
  137. <text>费用明细</text>
  138. </view>
  139. <view class="cost-item">
  140. <view class="cost-label">单价</view>
  141. <view class="cost-value">{{ orderInfo.unitPrice }}/</view>
  142. </view>
  143. <view class="cost-item">
  144. <view class="cost-label">预计趟数</view>
  145. <view class="cost-value">{{ orderInfo.tripCount }}</view>
  146. </view>
  147. <view class="cost-item">
  148. <view class="cost-label">小计</view>
  149. <view class="cost-value">{{ orderInfo.subtotal }}</view>
  150. </view>
  151. <view class="cost-item total">
  152. <view class="cost-label">总金额</view>
  153. <view class="cost-value total-amount">¥{{ orderInfo.totalAmount }}</view>
  154. </view>
  155. </view>
  156. <!-- 快捷操作 -->
  157. <view class="quick-actions">
  158. <view class="action-item" @click="shareOrder">
  159. <uv-icon name="share" size="24" color="#007AFF"></uv-icon>
  160. <text>分享</text>
  161. </view>
  162. <view class="action-item" @click="copyOrderNo">
  163. <uv-icon name="copy" size="24" color="#007AFF"></uv-icon>
  164. <text>复制</text>
  165. </view>
  166. <view v-if="orderInfo.status === 'processing' || orderInfo.status === 'completed'" class="action-item" @click="viewTrack">
  167. <uv-icon name="map" size="24" color="#007AFF"></uv-icon>
  168. <text>轨迹</text>
  169. </view>
  170. <view class="action-item" @click="contactCustomer">
  171. <uv-icon name="phone" size="24" color="#007AFF"></uv-icon>
  172. <text>联系</text>
  173. </view>
  174. </view>
  175. <!-- 操作按钮 -->
  176. <view class="action-buttons">
  177. <view v-if="orderInfo.status === 'pending'" class="btn-group">
  178. <view class="btn secondary" @click="cancelOrder">取消订单</view>
  179. <view class="btn primary" @click="confirmOrder">确认接单</view>
  180. </view>
  181. <view v-if="orderInfo.status === 'processing'" class="btn-group">
  182. <view class="btn secondary" @click="contactCustomer">联系客户</view>
  183. <view class="btn primary" @click="completeOrder">完成订单</view>
  184. </view>
  185. <view v-if="orderInfo.status === 'completed'" class="btn-group">
  186. <view class="btn secondary" @click="rateOrder">评价订单</view>
  187. <view class="btn primary" @click="reorder">再次下单</view>
  188. </view>
  189. <view v-if="orderInfo.status === 'cancelled'" class="btn-group">
  190. <view class="btn primary full-width" @click="reorder">重新下单</view>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. import navbar from '@/components/base/navbar.vue'
  198. export default {
  199. name: 'OrderDetail',
  200. components: {
  201. navbar
  202. },
  203. data() {
  204. return {
  205. orderId: '',
  206. stepsCurrent: 2,
  207. orderInfo: {
  208. orderNo: 'ORD202401150001',
  209. projectName: '长沙市雨花区建设项目混凝土运输',
  210. workAddress: '长沙市雨花区某某路123号建设工地',
  211. serviceType: '泵车运输',
  212. workTime: '2024-01-16 08:00 - 18:00',
  213. volume: '200',
  214. tripCount: '8',
  215. unitPrice: '350',
  216. subtotal: '2800',
  217. totalAmount: '2800',
  218. contactName: '张工',
  219. contactPhone: '13800138000',
  220. status: 'processing', // pending, processing, completed, cancelled
  221. progress: 65,
  222. driverInfo: {
  223. name: '李师傅',
  224. phone: '13900139000',
  225. avatar: '/static/re/logo.png',
  226. vehicleNo: '湘A12345',
  227. rating: 4.8,
  228. completedOrders: 156
  229. }
  230. },
  231. steps: [
  232. {
  233. title: '订单确认',
  234. desc: '2024-01-15 14:30'
  235. },
  236. {
  237. title: '司机接单',
  238. desc: '2024-01-15 15:00'
  239. },
  240. {
  241. title: '前往工地',
  242. desc: '2024-01-16 07:30'
  243. },
  244. {
  245. title: '开始运输',
  246. desc: '预计 2024-01-16 08:00'
  247. },
  248. {
  249. title: '运输完成',
  250. desc: '预计 2024-01-16 18:00'
  251. }
  252. ]
  253. }
  254. },
  255. onLoad(options) {
  256. this.orderId = options.id || '1';
  257. uni.setNavigationBarTitle({
  258. title: '订单详情'
  259. });
  260. // 根据订单ID加载订单详情
  261. this.loadOrderDetail();
  262. },
  263. methods: {
  264. loadOrderDetail() {
  265. // 模拟加载订单详情
  266. console.log('加载订单详情:', this.orderId);
  267. // 根据订单ID设置不同的订单状态和信息
  268. if (this.orderId === '1') {
  269. this.orderInfo.status = 'pending';
  270. this.stepsCurrent = 0;
  271. } else if (this.orderId === '2') {
  272. this.orderInfo.status = 'processing';
  273. this.stepsCurrent = 2;
  274. } else if (this.orderId === '3') {
  275. this.orderInfo.status = 'completed';
  276. this.stepsCurrent = 4;
  277. }
  278. },
  279. getStatusIcon(status) {
  280. switch(status) {
  281. case 'pending': return 'clock';
  282. case 'processing': return 'play-circle';
  283. case 'completed': return 'checkmark-circle';
  284. case 'cancelled': return 'close-circle';
  285. default: return 'help-circle';
  286. }
  287. },
  288. getStatusText(status) {
  289. switch(status) {
  290. case 'pending': return '待接单';
  291. case 'processing': return '运输中';
  292. case 'completed': return '已完成';
  293. case 'cancelled': return '已取消';
  294. default: return '未知状态';
  295. }
  296. },
  297. getStatusDesc(status) {
  298. switch(status) {
  299. case 'pending': return '等待司机接单';
  300. case 'processing': return '司机正在运输中';
  301. case 'completed': return '订单已完成';
  302. case 'cancelled': return '订单已取消';
  303. default: return '';
  304. }
  305. },
  306. openMap() {
  307. uni.openLocation({
  308. latitude: 28.2282,
  309. longitude: 112.9388,
  310. name: this.orderInfo.projectName,
  311. address: this.orderInfo.workAddress
  312. });
  313. },
  314. makeCall() {
  315. uni.makePhoneCall({
  316. phoneNumber: this.orderInfo.contactPhone
  317. });
  318. },
  319. callDriver() {
  320. uni.makePhoneCall({
  321. phoneNumber: this.orderInfo.driverInfo.phone
  322. });
  323. },
  324. cancelOrder() {
  325. uni.showModal({
  326. title: '确认取消',
  327. content: '确定要取消这个订单吗?',
  328. success: (res) => {
  329. if (res.confirm) {
  330. uni.showToast({
  331. title: '订单已取消',
  332. icon: 'success'
  333. });
  334. this.orderInfo.status = 'cancelled';
  335. }
  336. }
  337. });
  338. },
  339. confirmOrder() {
  340. uni.showModal({
  341. title: '确认接单',
  342. content: '确定要接取这个订单吗?',
  343. success: (res) => {
  344. if (res.confirm) {
  345. uni.showToast({
  346. title: '接单成功',
  347. icon: 'success'
  348. });
  349. this.orderInfo.status = 'processing';
  350. this.stepsCurrent = 2;
  351. }
  352. }
  353. });
  354. },
  355. contactCustomer() {
  356. this.makeCall();
  357. },
  358. completeOrder() {
  359. uni.showModal({
  360. title: '确认完成',
  361. content: '确定已完成这个订单吗?',
  362. success: (res) => {
  363. if (res.confirm) {
  364. uni.showToast({
  365. title: '订单已完成',
  366. icon: 'success'
  367. });
  368. this.orderInfo.status = 'completed';
  369. this.stepsCurrent = 4;
  370. }
  371. }
  372. });
  373. },
  374. rateOrder() {
  375. uni.showToast({
  376. title: '评价功能开发中',
  377. icon: 'none'
  378. });
  379. },
  380. reorder() {
  381. uni.navigateTo({
  382. url: '/pages_order/staff/create'
  383. });
  384. },
  385. // 分享订单
  386. shareOrder() {
  387. uni.share({
  388. provider: 'weixin',
  389. scene: 'WXSceneSession',
  390. type: 0,
  391. title: '订单详情',
  392. summary: `订单号:${this.orderInfo.orderNo}`,
  393. targetUrl: `pages_order/order/orderDetail?id=${this.orderId}`,
  394. success: function (res) {
  395. uni.showToast({
  396. title: '分享成功',
  397. icon: 'success'
  398. });
  399. },
  400. fail: function (err) {
  401. console.log('分享失败:', err);
  402. }
  403. });
  404. },
  405. // 复制订单号
  406. copyOrderNo() {
  407. uni.setClipboardData({
  408. data: this.orderInfo.orderNo,
  409. success: function () {
  410. uni.showToast({
  411. title: '订单号已复制',
  412. icon: 'success'
  413. });
  414. }
  415. });
  416. },
  417. // 查看运输轨迹
  418. viewTrack() {
  419. if (this.orderInfo.status === 'processing' || this.orderInfo.status === 'completed') {
  420. uni.navigateTo({
  421. url: `/pages_order/order/track?id=${this.orderId}`
  422. });
  423. } else {
  424. uni.showToast({
  425. title: '订单未开始运输',
  426. icon: 'none'
  427. });
  428. }
  429. }
  430. }
  431. }
  432. </script>
  433. <style scoped lang="scss">
  434. .page {
  435. display: flex;
  436. flex-direction: column;
  437. height: 100vh;
  438. background-color: #f5f5f5;
  439. }
  440. .content {
  441. padding: 20rpx;
  442. min-height: 100vh;
  443. background-color: #f5f5f5;
  444. padding-bottom: 120rpx;
  445. }
  446. .status-card {
  447. background-color: #fff;
  448. border-radius: 15rpx;
  449. padding: 30rpx;
  450. margin-bottom: 20rpx;
  451. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  452. .status-header {
  453. display: flex;
  454. align-items: center;
  455. gap: 20rpx;
  456. .status-icon {
  457. width: 80rpx;
  458. height: 80rpx;
  459. border-radius: 40rpx;
  460. display: flex;
  461. align-items: center;
  462. justify-content: center;
  463. &.pending {
  464. background-color: #ff9500;
  465. }
  466. &.processing {
  467. background-color: #007AFF;
  468. }
  469. &.completed {
  470. background-color: #34c759;
  471. }
  472. &.cancelled {
  473. background-color: #ff3b30;
  474. }
  475. }
  476. .status-info {
  477. flex: 1;
  478. .status-text {
  479. font-size: 36rpx;
  480. font-weight: bold;
  481. color: #333;
  482. margin-bottom: 8rpx;
  483. }
  484. .status-desc {
  485. font-size: 28rpx;
  486. color: #666;
  487. }
  488. }
  489. }
  490. .progress-container {
  491. margin-top: 30rpx;
  492. .progress-bar {
  493. height: 8rpx;
  494. background-color: #f0f0f0;
  495. border-radius: 4rpx;
  496. overflow: hidden;
  497. margin-bottom: 10rpx;
  498. .progress-fill {
  499. height: 100%;
  500. background-color: #007AFF;
  501. transition: width 0.3s;
  502. }
  503. }
  504. .progress-text {
  505. font-size: 24rpx;
  506. color: #007AFF;
  507. text-align: right;
  508. }
  509. }
  510. }
  511. .section-title {
  512. display: flex;
  513. align-items: center;
  514. gap: 15rpx;
  515. margin-bottom: 30rpx;
  516. font-size: 32rpx;
  517. font-weight: bold;
  518. color: #333;
  519. justify-content: space-between;
  520. .title-bar {
  521. width: 8rpx;
  522. height: 30rpx;
  523. background-color: #007AFF;
  524. border-radius: 4rpx;
  525. }
  526. .track-btn {
  527. display: flex;
  528. align-items: center;
  529. gap: 5rpx;
  530. font-size: 26rpx;
  531. color: #007AFF;
  532. font-weight: normal;
  533. }
  534. }
  535. .order-info-card,
  536. .contact-card,
  537. .driver-card,
  538. .steps-container,
  539. .cost-card {
  540. background-color: #fff;
  541. border-radius: 15rpx;
  542. padding: 30rpx;
  543. margin-bottom: 20rpx;
  544. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  545. }
  546. .info-item {
  547. display: flex;
  548. justify-content: space-between;
  549. align-items: center;
  550. padding: 20rpx 0;
  551. border-bottom: 1rpx solid #f0f0f0;
  552. &:last-child {
  553. border-bottom: none;
  554. }
  555. .label {
  556. font-size: 28rpx;
  557. color: #666;
  558. width: 200rpx;
  559. }
  560. .value {
  561. flex: 1;
  562. font-size: 28rpx;
  563. color: #333;
  564. text-align: right;
  565. &.address-value {
  566. display: flex;
  567. align-items: center;
  568. justify-content: flex-end;
  569. gap: 10rpx;
  570. }
  571. &.order-no-value {
  572. display: flex;
  573. align-items: center;
  574. justify-content: flex-end;
  575. gap: 10rpx;
  576. }
  577. }
  578. }
  579. .contact-info {
  580. .contact-item {
  581. display: flex;
  582. justify-content: space-between;
  583. align-items: center;
  584. padding: 15rpx 0;
  585. .contact-label {
  586. font-size: 28rpx;
  587. color: #666;
  588. }
  589. .contact-value {
  590. display: flex;
  591. align-items: center;
  592. gap: 15rpx;
  593. font-size: 28rpx;
  594. color: #333;
  595. }
  596. }
  597. }
  598. .driver-info {
  599. display: flex;
  600. align-items: center;
  601. gap: 20rpx;
  602. .driver-avatar {
  603. width: 120rpx;
  604. height: 120rpx;
  605. border-radius: 60rpx;
  606. overflow: hidden;
  607. image {
  608. width: 100%;
  609. height: 100%;
  610. }
  611. }
  612. .driver-details {
  613. flex: 1;
  614. .driver-name {
  615. font-size: 32rpx;
  616. font-weight: bold;
  617. color: #333;
  618. margin-bottom: 8rpx;
  619. }
  620. .driver-phone,
  621. .driver-vehicle {
  622. font-size: 26rpx;
  623. color: #666;
  624. margin-bottom: 5rpx;
  625. }
  626. .driver-rating {
  627. display: flex;
  628. gap: 20rpx;
  629. font-size: 24rpx;
  630. color: #999;
  631. }
  632. }
  633. .driver-actions {
  634. .action-btn {
  635. width: 80rpx;
  636. height: 80rpx;
  637. background-color: #007AFF;
  638. border-radius: 40rpx;
  639. display: flex;
  640. align-items: center;
  641. justify-content: center;
  642. }
  643. }
  644. }
  645. .cost-item {
  646. display: flex;
  647. justify-content: space-between;
  648. align-items: center;
  649. padding: 20rpx 0;
  650. border-bottom: 1rpx solid #f0f0f0;
  651. &:last-child {
  652. border-bottom: none;
  653. }
  654. &.total {
  655. padding-top: 30rpx;
  656. border-top: 2rpx solid #f0f0f0;
  657. margin-top: 20rpx;
  658. }
  659. .cost-label {
  660. font-size: 28rpx;
  661. color: #666;
  662. }
  663. .cost-value {
  664. font-size: 28rpx;
  665. color: #333;
  666. &.total-amount {
  667. font-size: 36rpx;
  668. font-weight: bold;
  669. color: #ff3b30;
  670. }
  671. }
  672. }
  673. .quick-actions {
  674. background-color: #fff;
  675. border-radius: 15rpx;
  676. padding: 30rpx;
  677. margin-bottom: 20rpx;
  678. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  679. display: flex;
  680. justify-content: space-around;
  681. .action-item {
  682. display: flex;
  683. flex-direction: column;
  684. align-items: center;
  685. gap: 10rpx;
  686. padding: 20rpx;
  687. border-radius: 10rpx;
  688. transition: background-color 0.3s;
  689. &:active {
  690. background-color: #f0f0f0;
  691. }
  692. text {
  693. font-size: 24rpx;
  694. color: #333;
  695. }
  696. }
  697. }
  698. .action-buttons {
  699. position: fixed;
  700. bottom: 0;
  701. left: 0;
  702. right: 0;
  703. background-color: #fff;
  704. padding: 20rpx;
  705. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  706. .btn-group {
  707. display: flex;
  708. gap: 20rpx;
  709. .btn {
  710. flex: 1;
  711. height: 80rpx;
  712. border-radius: 40rpx;
  713. display: flex;
  714. align-items: center;
  715. justify-content: center;
  716. font-size: 28rpx;
  717. font-weight: bold;
  718. &.primary {
  719. background-color: #007AFF;
  720. color: #fff;
  721. }
  722. &.secondary {
  723. background-color: #f8f8f8;
  724. color: #333;
  725. border: 1rpx solid #e0e0e0;
  726. }
  727. &.full-width {
  728. width: 100%;
  729. }
  730. }
  731. }
  732. }
  733. </style>