orderDetail.uvue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. <template>
  2. <!-- #ifdef APP -->
  3. <scroll-view class="page-scroll">
  4. <!-- #endif -->
  5. <view class="page">
  6. <view class="header-card">
  7. <view class="header-status">
  8. <u-icon name="customerservice" :size="24" />
  9. <text class="header-status-text">
  10. {{ detail.stateText }}
  11. </text>
  12. </view>
  13. </view>
  14. <view class="section-card">
  15. <view class="address-section">
  16. <text class="address-label">
  17. 服务地址
  18. </text>
  19. <text class="address-text">
  20. {{ detail.address }}
  21. </text>
  22. <text class="phone-text">
  23. {{ detail.customerPhone }}
  24. </text>
  25. </view>
  26. <view class="time-section">
  27. <text class="time-label">
  28. 预约服务时间
  29. </text>
  30. <text class="time-value">
  31. {{ detail.serviceTime }}
  32. </text>
  33. </view>
  34. </view>
  35. <view class="section-card">
  36. <view class="project-section">
  37. <image class="project-image"
  38. :src="detail.projectImage"
  39. mode="aspectFill">
  40. </image>
  41. <view class="project-info">
  42. <text class="project-title">
  43. {{ detail.projectTitle }}
  44. </text>
  45. <text class="project-duration">
  46. 服务时长: {{ detail.durationText }}
  47. </text>
  48. </view>
  49. <text class="project-price">
  50. {{ detail.projectAmount }}
  51. </text>
  52. </view>
  53. </view>
  54. <view class="section-card">
  55. <text class="section-title">
  56. 预估收入
  57. </text>
  58. <view class="income-row">
  59. <text class="income-label">
  60. 项目分成
  61. </text>
  62. <text class="income-value">
  63. {{ detail.projectShare }}
  64. </text>
  65. </view>
  66. <view class="income-row">
  67. <text class="income-label">
  68. 路费
  69. </text>
  70. <text class="income-value">
  71. {{ detail.roadFee }}
  72. </text>
  73. </view>
  74. <view class="income-total">
  75. <text class="income-total-label">
  76. 总收入
  77. </text>
  78. <text class="income-total-value">
  79. {{ detail.totalIncome }}
  80. </text>
  81. </view>
  82. </view>
  83. <view class="section-card">
  84. <view class="order-info-row">
  85. <text class="order-info-label">
  86. 订单编号
  87. </text>
  88. <view class="order-info-value">
  89. <text>
  90. {{ detail.orderNo }}
  91. </text>
  92. <text class="copy-button" @click="copyOrderNo">
  93. 复制
  94. </text>
  95. </view>
  96. </view>
  97. <view class="order-info-row">
  98. <text class="order-info-label">
  99. 下单时间
  100. </text>
  101. <text class="order-info-value">
  102. {{ detail.createdAt }}
  103. </text>
  104. </view>
  105. <view class="order-info-row">
  106. <text class="order-info-label">
  107. 支付金额
  108. </text>
  109. <text class="order-info-value">
  110. {{ detail.payAmount }}
  111. </text>
  112. </view>
  113. <view class="order-info-row">
  114. <text class="order-info-label">
  115. 出行车费
  116. </text>
  117. <text class="order-info-value">
  118. {{ detail.deliveryFee }}
  119. </text>
  120. </view>
  121. <view class="order-info-row">
  122. <text class="order-info-label">
  123. 支付时间
  124. </text>
  125. <text class="order-info-value">
  126. {{ detail.paymentTime }}
  127. </text>
  128. </view>
  129. <view class="order-info-row">
  130. <text class="order-info-label">
  131. 备注
  132. </text>
  133. <text class="order-info-value">
  134. {{ detail.remark }}
  135. </text>
  136. </view>
  137. </view>
  138. <view class="section-card">
  139. <view v-for="(item, index) in detail.statusList" :key="index"
  140. :class="['progress-item', item.active ? 'active' : '']">
  141. <view class="progress-dot">
  142. </view>
  143. <view v-if="index < detail.statusList.length - 1"
  144. :class="['progress-line', item.active ? 'active' : '']">
  145. </view>
  146. <view class="progress-content">
  147. <text :class="['progress-text', item.active ? 'active' : '']">
  148. {{ item.status }}
  149. </text>
  150. <text class="progress-time">
  151. {{ item.time }}
  152. </text>
  153. </view>
  154. </view>
  155. </view>
  156. <view class="button-row">
  157. <view v-if="showSecondaryButton" class="secondary-button"
  158. @click="detail.state == 2 ? handleTransfer : callCustomer">
  159. <u-icon name="customerservice" :size="24" />
  160. <text class="secondary-button-text">
  161. {{ secondaryActionText }}
  162. </text>
  163. </view>
  164. <view v-if="showPrimaryButton" :class="['primary-button', { 'full-width': !showSecondaryButton }]"
  165. @click="detail.state == 8 || detail.state == 9 ? contactService : handleAction">
  166. <text class="primary-button-text">
  167. {{ actionText }}
  168. </text>
  169. </view>
  170. </view>
  171. </view>
  172. <!-- #ifdef APP -->
  173. </scroll-view>
  174. <!-- #endif -->
  175. </template>
  176. <script setup lang="uts">
  177. import { computed, reactive } from 'vue'
  178. import { getCurrentLocation } from '@/utils/api/location.uts'
  179. import { navigateToMobile } from '@/utils/api/tool.uts'
  180. import { getOrderDetaile, acceptOrder, departOrder, arriveOrder, leaveOrder, transferOrder } from '@/utils/api/order.uts'
  181. type StatusItem = {
  182. status : string
  183. time : string
  184. active : boolean
  185. }
  186. type DetailState = {
  187. orderId : string
  188. orderNo : string
  189. state : number
  190. stateText : string
  191. address : string
  192. customer : string
  193. customerPhone : string
  194. serviceTime : string
  195. projectTitle : string
  196. projectImage : string
  197. durationText : string
  198. projectAmount : string
  199. deliveryFee : string
  200. payAmount : string
  201. createdAt : string
  202. paymentTime : string
  203. remark : string
  204. projectShare : string
  205. roadFee : string
  206. totalIncome : string
  207. statusList : Array<StatusItem>
  208. }
  209. const detail = reactive<DetailState>({
  210. orderId: '',
  211. orderNo: '',
  212. state: 0,
  213. stateText: '订单详情',
  214. address: '',
  215. customer: '',
  216. customerPhone: '',
  217. serviceTime: '',
  218. projectTitle: '',
  219. projectImage: '',
  220. durationText: '',
  221. projectAmount: '0',
  222. deliveryFee: '0',
  223. payAmount: '0',
  224. createdAt: '',
  225. paymentTime: '',
  226. remark: '',
  227. projectShare: '0',
  228. roadFee: '0',
  229. totalIncome: '0',
  230. statusList: [
  231. { status: '已接单', time: '', active: false },
  232. { status: '已出发', time: '', active: false },
  233. { status: '到达', time: '', active: false },
  234. { status: '开始服务', time: '', active: false },
  235. { status: '服务完成', time: '', active: false }]
  236. })
  237. const actionText = computed(() : string => {
  238. if (detail.state == 2) { // 已支付
  239. return '确认接单'
  240. }
  241. if (detail.state == 4) { // 已接单
  242. return '已出发'
  243. }
  244. if (detail.state == 8 || detail.state == 9) { // 已退款或已取消
  245. return '联系客服'
  246. }
  247. if (detail.state == 5) {
  248. return '确认到达'
  249. }
  250. if (detail.state == 10) {
  251. return '确认撤离'
  252. }
  253. return '刷新详情'
  254. })
  255. const secondaryActionText = computed(() : string => {
  256. if (detail.state == 2) { // 已支付
  257. return '我要转单'
  258. }
  259. if (detail.state == 4) { // 已接单
  260. return '拨打电话'
  261. }
  262. if (detail.state == 8 || detail.state == 9) { // 已退款或已取消
  263. return ''
  264. }
  265. return '拨打电话'
  266. })
  267. const showSecondaryButton = computed(() : boolean => {
  268. return detail.state == 2 || detail.state == 4
  269. })
  270. const showPrimaryButton = computed(() : boolean => {
  271. return detail.state == 2 || detail.state == 4 || detail.state == 8 || detail.state == 9
  272. })
  273. const toNumber = (value : any | null) : number => {
  274. const numberValue = value as number | null
  275. if (numberValue != null) {
  276. return numberValue
  277. }
  278. const stringValue = value as string | null
  279. if (stringValue != null && stringValue.length > 0) {
  280. return parseFloat(stringValue)
  281. }
  282. return 0
  283. }
  284. const getLocationPayload = async () : Promise<UTSJSONObject | null> => {
  285. const response = await getCurrentLocation()
  286. const data = response['data'] as UTSJSONObject | null
  287. const location = data?.['location'] as UTSJSONObject | null
  288. if (location == null) {
  289. return null
  290. }
  291. return {
  292. latitude: (location['latitude'] as number | null) ?? 0,
  293. longitude: (location['longitude'] as number | null) ?? 0,
  294. } as UTSJSONObject
  295. }
  296. const getActiveStatusIndex = (state : number) : number => {
  297. switch (state) {
  298. case 2: // 待接单
  299. return 0
  300. case 4: // 已接单
  301. return 1
  302. case 5: // 已出发
  303. return 2
  304. case 6: // 已到达
  305. return 3
  306. case 7: // 服务中
  307. case 8: // 服务完成
  308. return 4
  309. default:
  310. return 0
  311. }
  312. }
  313. const applyDetail = (data : UTSJSONObject) : void => {
  314. const address = data['address'] as UTSJSONObject | null
  315. const project = data['project'] as UTSJSONObject | null
  316. const state = (data['state'] as number | null) ?? 0
  317. const num = (data['num'] as number | null) ?? 1
  318. detail.orderNo = (data['order_no'] as string | null) ?? ''
  319. detail.state = state
  320. detail.stateText = (data['state_text'] as string | null) ?? '已支付'
  321. // 拼接完整地址
  322. const province = (address?.['province'] as string | null) ?? ''
  323. const city = (address?.['city'] as string | null) ?? ''
  324. const district = (address?.['district'] as string | null) ?? ''
  325. const detailAddr = (address?.['detail'] as string | null) ?? ''
  326. detail.address = `${province}${city}${district}${detailAddr}`
  327. const customerName = (address?.['name'] as string | null) ?? ''
  328. const customerPhone = (address?.['phone'] as string | null) ?? ''
  329. detail.customer = `${customerName} ${customerPhone}`
  330. detail.customerPhone = customerPhone
  331. detail.serviceTime = (data['service_time'] as string | null) ?? ''
  332. detail.projectTitle = (project?.['title'] as string | null) ?? '服务项目'
  333. // 获取项目图片
  334. const coverUrls = project?.['cover_urls'] as Array<UTSJSONObject> | null
  335. if (coverUrls != null && coverUrls.length > 0) {
  336. detail.projectImage = (coverUrls[0]['medium_url'] as string | null) ?? ''
  337. } else {
  338. detail.projectImage = ''
  339. }
  340. const duration = (project?.['duration'] as number | null) ?? 0
  341. detail.durationText = `${duration * num}分钟`
  342. detail.projectAmount = `¥${toNumber(data['project_amount']).toFixed(2)}`
  343. detail.deliveryFee = `¥${toNumber(data['delivery_fee']).toFixed(2)}`
  344. detail.payAmount = `¥${(toNumber(data['pay_amount']) + toNumber(data['balance_amount'])).toFixed(2)}`
  345. detail.createdAt = (data['created_at'] as string | null) ?? ''
  346. detail.paymentTime = (data['payment_time'] as string | null) ?? ''
  347. detail.remark = (data['remark'] as string | null) ?? '无'
  348. // 预估收入相关字段(根据接口数据计算)
  349. const commissionAmount = toNumber(data['commission_amount'])
  350. const deliveryFee = toNumber(data['delivery_fee'])
  351. detail.projectShare = `¥${commissionAmount.toFixed(2)}`
  352. detail.roadFee = `¥${deliveryFee.toFixed(2)}`
  353. detail.totalIncome = `¥${(commissionAmount + deliveryFee).toFixed(2)}`
  354. // 更新状态列表
  355. const statusList = data['status_list'] as Array<UTSJSONObject> | null
  356. if (statusList != null && statusList.length > 0) {
  357. for (let i = 0; i < statusList.length; i++) {
  358. const item = statusList[i]
  359. if (i < detail.statusList.length) {
  360. detail.statusList[i].status = (item['status'] as string | null) ?? detail.statusList[i].status
  361. detail.statusList[i].time = (item['time'] as string | null) ?? ''
  362. detail.statusList[i].active = (item['active'] as boolean | null) ?? false
  363. }
  364. }
  365. } else {
  366. // 根据订单状态设置默认激活状态
  367. for (let i = 0; i < detail.statusList.length; i++) {
  368. detail.statusList[i].active = i < getActiveStatusIndex(state)
  369. detail.statusList[i].time = detail.createdAt
  370. }
  371. }
  372. }
  373. const loadDetail = async () : Promise<void> => {
  374. if (detail.orderId.length == 0) {
  375. return
  376. }
  377. try {
  378. const response = await getOrderDetaile({ id: detail.orderId } as UTSJSONObject) as UTSJSONObject
  379. const code = (response['code'] as number | null) ?? -1
  380. if (code != 0 && code != 200) {
  381. return
  382. }
  383. const data = response['data'] as UTSJSONObject | null
  384. if (data != null) {
  385. applyDetail(data)
  386. }
  387. } catch (error) {
  388. uni.showToast({ title: '订单加载失败', icon: 'none' })
  389. }
  390. }
  391. const callCustomer = () : void => {
  392. if (detail.customerPhone.length == 0) {
  393. uni.showToast({ title: '暂无客户电话', icon: 'none' })
  394. return
  395. }
  396. navigateToMobile(detail.customerPhone)
  397. }
  398. const copyOrderNo = () : void => {
  399. if (detail.orderNo.length == 0) {
  400. return
  401. }
  402. uni.setClipboardData({
  403. data: detail.orderNo,
  404. success: function () {
  405. uni.showToast({ title: '复制成功', icon: 'success' })
  406. }
  407. })
  408. }
  409. // 商户转单
  410. const httptransferOrder = async (orderId : number,) => {
  411. try {
  412. const res = await transferOrder({
  413. order_id: orderId,
  414. }) as UTSJSONObject;
  415. if (res?.code === 200) {
  416. uni.showToast({ title: '转单成功', icon: 'success' });
  417. // await httpGetOrderList();
  418. } else {
  419. uni.showToast({
  420. title: (res?.msg) as String ?? '转单失败',
  421. icon: 'none'
  422. });
  423. }
  424. } catch (err) {
  425. console.error('转单异常', err);
  426. uni.showToast({
  427. title: '转单失败,请重试',
  428. icon: 'none'
  429. });
  430. }
  431. };
  432. const handleTransfer = () : void => {
  433. // 转单逻辑
  434. uni.showModal({
  435. title: '转单确认',
  436. content: '确定要将此订单转单吗?',
  437. confirmText: '确定',
  438. cancelText: '取消',
  439. success: function (res) {
  440. if (res.confirm) {
  441. // 调用转单接口
  442. httptransferOrder(toNumber(detail.orderId))
  443. }
  444. }
  445. })
  446. }
  447. const contactService = () : void => {
  448. // 联系客服逻辑
  449. uni.showModal({
  450. title: '联系客服',
  451. content: '客服电话:400-123-4567',
  452. confirmText: '拨打电话',
  453. cancelText: '取消',
  454. success: function (res) {
  455. if (res.confirm) {
  456. // 拨打电话
  457. navigateToMobile('4001234567')
  458. }
  459. }
  460. })
  461. }
  462. const handleAction = async () : Promise<void> => {
  463. if (detail.orderId.length == 0) {
  464. return
  465. }
  466. if (detail.state != 2 && detail.state != 4 && detail.state != 5 && detail.state != 10) {
  467. loadDetail()
  468. return
  469. }
  470. const locationPayload = await getLocationPayload()
  471. if (locationPayload == null) {
  472. uni.showToast({ title: '定位失败,请重试', icon: 'none' })
  473. return
  474. }
  475. try {
  476. if (detail.state == 2) {
  477. await acceptOrder({
  478. order_id: detail.orderId,
  479. latitude: locationPayload['latitude'],
  480. longitude: locationPayload['longitude']
  481. } as UTSJSONObject)
  482. } else if (detail.state == 4) {
  483. await departOrder(detail.orderId, locationPayload)
  484. } else if (detail.state == 5) {
  485. await arriveOrder(detail.orderId, locationPayload)
  486. } else if (detail.state == 10) {
  487. await leaveOrder(detail.orderId, locationPayload)
  488. }
  489. uni.showToast({ title: '操作成功', icon: 'none' })
  490. loadDetail()
  491. } catch (error) {
  492. uni.showToast({ title: '操作失败', icon: 'none' })
  493. }
  494. }
  495. onLoad((option : UTSJSONObject) => {
  496. detail.orderId = (option['orderId'] as string | null) ?? ''
  497. loadDetail()
  498. })
  499. </script>
  500. <style>
  501. .page-scroll {
  502. flex: 1;
  503. }
  504. .page {
  505. min-height: 1000rpx;
  506. padding: 0;
  507. box-sizing: border-box;
  508. background-color: #f5f5f5;
  509. flex-direction: column;
  510. }
  511. .header-card {
  512. padding: 36rpx;
  513. background-color: #ffdb5a;
  514. flex-direction: column;
  515. align-items: center;
  516. }
  517. .header-status {
  518. flex-direction: row;
  519. align-items: center;
  520. }
  521. .header-status-icon {
  522. font-size: 24rpx;
  523. color: #3a3330;
  524. margin-right: 8rpx;
  525. }
  526. .header-status-text {
  527. font-size: 32rpx;
  528. font-weight: 700;
  529. color: #3a3330;
  530. }
  531. .section-card {
  532. margin-top: 12rpx;
  533. padding: 24rpx;
  534. background-color: #ffffff;
  535. flex-direction: column;
  536. }
  537. .address-section {
  538. margin-bottom: 20rpx;
  539. }
  540. .address-label {
  541. font-size: 24rpx;
  542. color: #ff9500;
  543. margin-bottom: 8rpx;
  544. }
  545. .address-text {
  546. font-size: 26rpx;
  547. color: #333333;
  548. line-height: 36rpx;
  549. }
  550. .phone-text {
  551. font-size: 26rpx;
  552. color: #333333;
  553. margin-top: 8rpx;
  554. }
  555. .time-section {
  556. flex-direction: row;
  557. justify-content: space-between;
  558. align-items: center;
  559. padding-top: 16rpx;
  560. border-top: 1rpx solid #f0f0f0;
  561. }
  562. .time-label {
  563. font-size: 26rpx;
  564. color: #666666;
  565. }
  566. .time-value {
  567. font-size: 26rpx;
  568. color: #333333;
  569. }
  570. .project-section {
  571. flex-direction: row;
  572. align-items: center;
  573. }
  574. .project-image {
  575. width: 120rpx;
  576. height: 120rpx;
  577. border-radius: 12rpx;
  578. margin-right: 16rpx;
  579. }
  580. .project-info {
  581. flex: 1;
  582. }
  583. .project-title {
  584. font-size: 28rpx;
  585. font-weight: 600;
  586. color: #333333;
  587. margin-bottom: 8rpx;
  588. }
  589. .project-duration {
  590. font-size: 24rpx;
  591. color: #999999;
  592. }
  593. .project-price {
  594. font-size: 32rpx;
  595. font-weight: 700;
  596. color: #ff3b30;
  597. }
  598. .section-title {
  599. font-size: 28rpx;
  600. font-weight: 600;
  601. color: #333333;
  602. margin-bottom: 16rpx;
  603. }
  604. .income-row {
  605. flex-direction: row;
  606. justify-content: space-between;
  607. margin-bottom: 12rpx;
  608. }
  609. .income-label {
  610. font-size: 26rpx;
  611. color: #666666;
  612. }
  613. .income-value {
  614. font-size: 26rpx;
  615. color: #333333;
  616. }
  617. .income-total {
  618. flex-direction: row;
  619. justify-content: space-between;
  620. margin-top: 16rpx;
  621. padding-top: 16rpx;
  622. border-top: 1rpx solid #f0f0f0;
  623. }
  624. .income-total-label {
  625. font-size: 26rpx;
  626. font-weight: 600;
  627. color: #333333;
  628. }
  629. .income-total-value {
  630. font-size: 30rpx;
  631. font-weight: 700;
  632. color: #ff3b30;
  633. }
  634. .order-info-row {
  635. flex-direction: row;
  636. justify-content: space-between;
  637. margin-bottom: 16rpx;
  638. }
  639. .order-info-label {
  640. font-size: 26rpx;
  641. color: #666666;
  642. }
  643. .order-info-value {
  644. font-size: 26rpx;
  645. color: #333333;
  646. flex-direction: row;
  647. align-items: center;
  648. }
  649. .copy-button {
  650. margin-left: 16rpx;
  651. font-size: 24rpx;
  652. color: #007aff;
  653. padding: 4rpx 12rpx;
  654. border: 1rpx solid #e0e0e0;
  655. border-radius: 16rpx;
  656. }
  657. .progress-item {
  658. flex-direction: row;
  659. position: relative;
  660. padding-bottom: 32rpx;
  661. }
  662. .progress-item:last-child {
  663. padding-bottom: 0;
  664. }
  665. .progress-dot {
  666. width: 20rpx;
  667. height: 20rpx;
  668. border-radius: 50%;
  669. background-color: #e0e0e0;
  670. margin-right: 16rpx;
  671. position: relative;
  672. z-index: 2;
  673. }
  674. .progress-line {
  675. position: absolute;
  676. left: 9rpx;
  677. top: 20rpx;
  678. width: 2rpx;
  679. height: 64rpx;
  680. background-color: #e0e0e0;
  681. z-index: 1;
  682. }
  683. .progress-item.active .progress-dot {
  684. background-color: #ff9500;
  685. }
  686. .progress-item.active .progress-line {
  687. background-color: #ff9500;
  688. }
  689. .progress-content {
  690. flex: 1;
  691. }
  692. .progress-text {
  693. font-size: 26rpx;
  694. color: #999999;
  695. margin-bottom: 4rpx;
  696. }
  697. .progress-text.active {
  698. color: #333333;
  699. font-weight: 600;
  700. }
  701. .progress-time {
  702. font-size: 24rpx;
  703. color: #999999;
  704. }
  705. .button-row {
  706. margin-top: 32rpx;
  707. margin-bottom: 32rpx;
  708. padding: 0 24rpx;
  709. flex-direction: row;
  710. justify-content: space-between;
  711. }
  712. .secondary-button {
  713. width: 48%;
  714. height: 88rpx;
  715. border-radius: 44rpx;
  716. border-width: 2rpx;
  717. border-style: solid;
  718. border-color: #ffdb5a;
  719. flex-direction: row;
  720. justify-content: center;
  721. align-items: center;
  722. background-color: #ffffff;
  723. }
  724. .secondary-button-text {
  725. font-size: 28rpx;
  726. color: #3a3330;
  727. }
  728. .primary-button {
  729. width: 48%;
  730. height: 88rpx;
  731. border-radius: 44rpx;
  732. background-color: #ffdb5a;
  733. flex-direction: row;
  734. justify-content: center;
  735. align-items: center;
  736. }
  737. .primary-button-text {
  738. font-size: 28rpx;
  739. font-weight: 700;
  740. color: #3a3330;
  741. }
  742. .primary-button.full-width {
  743. width: 100%;
  744. }
  745. </style>