dollar-list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <cwg-header :title="t('wallet.item52')" />
  4. <view id="custom_history" class="">
  5. <view class="main-content">
  6. <!-- 无任务列表提示 -->
  7. <view class="list-empty-state" v-if="!tableData || tableData.length === 0">
  8. <cwg-empty-state :title="t('UtaskList.item12')" />
  9. </view>
  10. <!-- 数据卡片展示 -->
  11. <view class="outer-card" v-for="(item, index) in tableData" :key="index"
  12. v-show="tableData && tableData.length > 0">
  13. <view class="data-cards">
  14. <!-- 第一行:总数据 -->
  15. <view class="total-data-row">
  16. <view class="data-card total-card">
  17. <view class="card-content">
  18. <view class="card-title">{{ t("DollarActivity.fieldDepositAmount") }}</view>
  19. <view class="card-value">{{ cell(item.depositAmount) }}</view>
  20. </view>
  21. </view>
  22. <view class="data-card total-card">
  23. <view class="card-content">
  24. <view class="card-title">{{ t("DollarActivity.fieldEndDate") }}</view>
  25. <view class="card-value">{{ cell(item.endDate) }}</view>
  26. </view>
  27. </view>
  28. <view class="data-card total-card">
  29. <view class="card-content">
  30. <view class="card-title">{{ t("DollarActivity.fieldApplyDepositAmount") }}</view>
  31. <view class="card-value">{{ cell(item.applyDepositAmount) }}</view>
  32. </view>
  33. </view>
  34. <view class="data-card total-card">
  35. <view class="card-content">
  36. <view class="card-title">{{ t("DollarActivity.fieldApplyGiveNum") }}</view>
  37. <view class="card-value">{{ cell(item.applyGiveNum) }}</view>
  38. </view>
  39. </view>
  40. <view class="data-card total-card">
  41. <view class="card-content">
  42. <view class="card-title">{{ t("Label.State") }}</view>
  43. <view class="card-value" :style="statusStyle(item.status)">
  44. {{ statusText(item.status) }}
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 操作按钮行 -->
  50. <view class="card-actions">
  51. <view class="btn btn-outline-secondary btn-sm" @click="openApplyRecordDialog(item)">
  52. {{ t("DollarActivity.applyRecord") }}
  53. </view>
  54. <view v-if="Number(item.status) === 1" class="btn btn-dark waves-effect waves-light"
  55. :loading="cancelLoadingId === item.id" @click="confirmCancelDollarActivity(item)">
  56. {{ t("Btn.Cancel") }}
  57. </view>
  58. <!-- <view v-if="showDollarClaimRewardButton(item)" class="btn btn-dark waves-effect waves-light"
  59. @click="openClaimDialog(item)"> -->
  60. <view class="btn btn-dark waves-effect waves-light" @click="openClaimDialog(item)">
  61. {{ t("DollarActivity.claimReward") }}
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 领取奖励对话框 -->
  69. <cwg-popup v-model:visible="dialogClaimVisible" type="center" :mask-click="false" :showFooters="true"
  70. :showClose="false" :title="t('DollarActivity.dialogClaimTitle')">
  71. <view class="dialog-popup1">
  72. <cwg-combox v-model:value="selectedRuleId" :clearable="false" :options="ruleOptionsList"
  73. :placeholder="t('UtaskList.item19')" @change="handleGiftChange" />
  74. <template #footer>
  75. <button class="btn btn-danger btn-sm waves-effect waves-light" @click="closeApplyRecordDialog">{{
  76. t('Btn.Confirm') }}</button>
  77. </template>
  78. </view>
  79. <template #footer>
  80. <button class="btn btn-outline-secondary" @click="closeClaimDialog">{{ t("Btn.Cancel") }}</button>
  81. <button class="btn btn-dark waves-effect waves-light btn-primary" :loading="applySubmitting"
  82. :disabled="selectedRuleId === null || selectedRuleId === ''" @click="confirmClaimReward">{{
  83. t("Btn.Confirm") }}</button>
  84. </template>
  85. </cwg-popup>
  86. <!-- 申请记录对话框 -->
  87. <cwg-popup v-model:visible="dialogApplyRecordVisible" type="center" :mask-click="false" :showFooters="true"
  88. :width="'900px'" :showClose="false" :title="t('DollarActivity.applyRecord')">
  89. <view class="popup-content">
  90. <view class="dialog-body">
  91. <uni-loading v-if="applyRecordList.length === 0 && applyRecordLoading"
  92. v-loading="applyRecordLoading" />
  93. <view class="record-table" v-if="applyRecordList.length > 0">
  94. <view class="table-header">
  95. <text class="col-deposit">{{ t("DollarActivity.recordDepositAmount") }}</text>
  96. <text class="col-reward">{{ t("DollarActivity.recordRewardAmount") }}</text>
  97. <text class="col-standard">{{ t("DollarActivity.fieldStandardVolume") }}</text>
  98. <text class="col-ecn">{{ t("DollarActivity.fieldEcnVolume") }}</text>
  99. <text class="col-cent">{{ t("DollarActivity.fieldCentVolume") }}</text>
  100. <text class="col-time">{{ t("DollarActivity.fieldApplyTime") }}</text>
  101. </view>
  102. <!-- 表格内容 -->
  103. <view class="table-body">
  104. <view class="table-row" v-for="(record, idx) in applyRecordList" :key="idx">
  105. <text class="col-deposit">{{ cell(record.depositAmount) }}</text>
  106. <text class="col-reward">{{ cell(record.rewardAmount) }}</text>
  107. <text class="col-standard">{{ cell(record.standardVolume) }}</text>
  108. <text class="col-ecn">{{ cell(record.ecnVolume) }}</text>
  109. <text class="col-cent">{{ cell(record.centVolume) }}</text>
  110. <text class="col-time">{{ cell(record.addTime) }}</text>
  111. </view>
  112. </view>
  113. </view>
  114. <view v-if="applyRecordList.length === 0 && !applyRecordLoading" class="apply-record-empty">
  115. <cwg-empty-state />
  116. </view>
  117. </view>
  118. </view>
  119. <template #footer>
  120. <button class="btn btn-dark waves-effect waves-light" @click="closeApplyRecordDialog">{{
  121. t('Btn.Confirm') }}</button>
  122. </template>
  123. </cwg-popup>
  124. <cwg-confirm-popup />
  125. </cwg-page-wrapper>
  126. </template>
  127. <script setup lang="ts">
  128. import { ref, computed, onMounted } from 'vue'
  129. import { useI18n } from 'vue-i18n'
  130. import { activityApi } from "@/service/activity"
  131. import Config from "@/config/index"
  132. import useUserStore from "@/stores/use-user-store";
  133. import { useConfirm } from '@/hooks/useConfirm'
  134. const userStore = useUserStore();
  135. const confirm = useConfirm()
  136. const { t } = useI18n()
  137. let { Code } = Config
  138. // ---------- 响应式数据 ----------
  139. const flag = ref(false)
  140. const pictLoading = ref(false)
  141. const tableData = ref<any[]>([])
  142. // 领取奖励弹窗相关
  143. const claimDialog = ref<any>(null)
  144. const dialogClaimVisible = ref(false)
  145. const claimTaskId = ref<any>(null)
  146. const ruleOptions = ref<any[]>([])
  147. const selectedRuleId = ref<any>(null)
  148. const selectedRuleIndex = ref(-1)
  149. const ruleLoading = ref(false)
  150. const applySubmitting = ref(false)
  151. // 取消任务相关
  152. const cancelLoadingId = ref<any>(null)
  153. const ruleOptionsList = computed(() => {
  154. return ruleOptions.value.map((opt: any) => ({
  155. key: ruleOptionKey(opt),
  156. text: ruleOptionLabel(opt),
  157. value: ruleOptionValue(opt),
  158. disable: isRuleOptionDisabled(opt),
  159. }))
  160. })
  161. // 申请记录弹窗相关
  162. const applyRecordDialog = ref<any>(null)
  163. const dialogApplyRecordVisible = ref(false)
  164. const applyRecordLoading = ref(false)
  165. const applyRecordList = ref<any[]>([])
  166. const applyRecordTaskId = ref<any>(null)
  167. // ---------- 方法 ----------
  168. const cell = (v: any) => {
  169. if (v === null || v === undefined || v === "") {
  170. return "--"
  171. }
  172. return v
  173. }
  174. const formatApplyRecordCell = (row: any, column: any, cellValue: any) => {
  175. return cell(cellValue)
  176. }
  177. const statusText = (status: any) => {
  178. const s = Number(status)
  179. if (s === 1) {
  180. return t("DollarActivity.statusInTask")
  181. }
  182. if (s === 2) {
  183. return t("DollarActivity.statusEnded")
  184. }
  185. if (s === 3) {
  186. return t("DollarActivity.statusCancelled")
  187. }
  188. return "--"
  189. }
  190. const statusStyle = (status: any) => {
  191. const s = Number(status)
  192. if (s === 1) {
  193. return { color: "#52c41a" }
  194. }
  195. if (s === 2) {
  196. return { color: "#eb3f57" }
  197. }
  198. if (s === 3) {
  199. return { color: "#8c8c8c" }
  200. }
  201. return { color: "#333" }
  202. }
  203. /** 已结束且剩余可申请次数不为 0 时显示领取奖励 */
  204. const showDollarClaimRewardButton = (item: any) => {
  205. if (Number(item.status) !== 2) {
  206. return false
  207. }
  208. const n = item.applyGiveNum
  209. if (n === null || n === undefined) {
  210. return true
  211. }
  212. return Number(n) !== 0
  213. }
  214. const backActivity = () => {
  215. uni.navigateBack()
  216. }
  217. // picker 显示标签
  218. const rulePickerLabel = (opt: any) => {
  219. if (!opt) return ''
  220. const dep = cell(opt.depositAmount)
  221. const rew = cell(opt.rewardAmount)
  222. return `${t("DollarActivity.fieldDepositAmount")}: ${dep} - ${t("DollarActivity.fieldRewardAmount")}: ${rew}`
  223. }
  224. // 处理 picker 选择变化
  225. const onRuleChange = (e: any) => {
  226. const idx = e.detail.value
  227. if (idx !== undefined && ruleOptions.value[idx]) {
  228. selectedRuleIndex.value = idx
  229. selectedRuleId.value = ruleOptionValue(ruleOptions.value[idx])
  230. }
  231. }
  232. const ruleOptionValue = (opt: any) => {
  233. if (opt == null) {
  234. return null
  235. }
  236. const v = opt.id != null ? opt.id : opt.ruleId
  237. return v
  238. }
  239. const ruleOptionKey = (opt: any) => {
  240. const v = ruleOptionValue(opt)
  241. return v != null ? String(v) : Math.random()
  242. }
  243. const ruleOptionLabel = (opt: any) => {
  244. const dep = cell(opt.depositAmount)
  245. const rew = cell(opt.rewardAmount)
  246. return `${t("DollarActivity.fieldDepositAmount")}: ${dep} - ${t("DollarActivity.fieldRewardAmount")}: ${rew}`
  247. }
  248. /** display: 0 不可选(置灰),1 可选;未返回 display 时默认可选 */
  249. const isRuleOptionDisabled = (opt: any) => {
  250. if (opt == null || opt.display === undefined || opt.display === null) {
  251. return false
  252. }
  253. return Number(opt.display) !== 1
  254. }
  255. const normalizeRuleList = (data: any) => {
  256. if (Array.isArray(data)) {
  257. return data
  258. }
  259. if (data && typeof data === "object") {
  260. if (Array.isArray(data.list)) {
  261. return data.list
  262. }
  263. if (Array.isArray(data.rules)) {
  264. return data.rules
  265. }
  266. }
  267. return []
  268. }
  269. const normalizeGiveRecordList = (data: any) => {
  270. if (Array.isArray(data)) {
  271. return data
  272. }
  273. if (data && typeof data === "object") {
  274. if (Array.isArray(data.list)) {
  275. return data.list
  276. }
  277. if (Array.isArray(data.records)) {
  278. return data.records
  279. }
  280. }
  281. return []
  282. }
  283. const openApplyRecordDialog = (item: any) => {
  284. applyRecordTaskId.value = item.id
  285. applyRecordList.value = []
  286. dialogApplyRecordVisible.value = true
  287. loadApplyRecordList()
  288. }
  289. const closeApplyRecordDialog = () => {
  290. dialogApplyRecordVisible.value = false
  291. onApplyRecordDialogClosed()
  292. }
  293. const onApplyRecordDialogClosed = () => {
  294. applyRecordTaskId.value = null
  295. applyRecordList.value = []
  296. }
  297. const loadApplyRecordList = async () => {
  298. if (applyRecordTaskId.value == null || applyRecordTaskId.value === "") {
  299. return
  300. }
  301. applyRecordLoading.value = true
  302. try {
  303. const res = await activityApi.ActivityDollarGiveRecord({
  304. id: applyRecordTaskId.value,
  305. })
  306. if (res.code == Code.StatusOK) {
  307. applyRecordList.value = normalizeGiveRecordList(res.data)
  308. } else {
  309. uni.showToast({ title: res.msg, icon: "none" })
  310. applyRecordList.value = []
  311. }
  312. } catch {
  313. uni.showToast({ title: t("Msg.Fail"), icon: "none" })
  314. applyRecordList.value = []
  315. } finally {
  316. applyRecordLoading.value = false
  317. }
  318. }
  319. const confirmCancelDollarActivity = async (item: any) => {
  320. try {
  321. await confirm({
  322. title: t("Msg.SystemPrompt"),
  323. content: t("DollarActivity.confirmCancel"),
  324. confirmText: t("Btn.Confirm"),
  325. cancelText: t("Btn.Cancel"),
  326. })
  327. } catch {
  328. return
  329. }
  330. cancelLoadingId.value = item.id
  331. try {
  332. const res = await activityApi.ActivityDollarCancel({ id: item.id })
  333. if (res.code == Code.StatusOK) {
  334. uni.showToast({ title: res.msg || t("Msg.Success"), icon: "success" })
  335. await searchFunc()
  336. } else {
  337. uni.showToast({ title: res.msg, icon: "none" })
  338. }
  339. } catch {
  340. uni.showToast({ title: t("Msg.Fail"), icon: "none" })
  341. } finally {
  342. cancelLoadingId.value = null
  343. }
  344. }
  345. const openClaimDialog = async (item: any) => {
  346. claimTaskId.value = item.id
  347. selectedRuleId.value = null
  348. selectedRuleIndex.value = -1
  349. ruleOptions.value = []
  350. dialogClaimVisible.value = true
  351. await loadDollarRules()
  352. }
  353. const closeClaimDialog = () => {
  354. dialogClaimVisible.value = false
  355. onClaimDialogClosed()
  356. }
  357. const onClaimDialogClosed = () => {
  358. claimTaskId.value = null
  359. ruleOptions.value = []
  360. selectedRuleId.value = null
  361. selectedRuleIndex.value = -1
  362. }
  363. const loadDollarRules = async () => {
  364. if (claimTaskId.value == null || claimTaskId.value === "") {
  365. return
  366. }
  367. ruleLoading.value = true
  368. try {
  369. const res = await activityApi.ActivityDollarRule({ id: claimTaskId.value })
  370. if (res.code == Code.StatusOK) {
  371. ruleOptions.value = normalizeRuleList(res.data)
  372. // 为每个选项添加显示标签
  373. ruleOptions.value.forEach((opt: any) => {
  374. opt.displayLabel = ruleOptionLabel(opt)
  375. })
  376. if (ruleOptions.value.length === 0) {
  377. uni.showToast({ title: res.msg || t("DollarActivity.emptyRuleList"), icon: "none" })
  378. }
  379. } else {
  380. uni.showToast({ title: res.msg, icon: "none" })
  381. }
  382. } catch {
  383. uni.showToast({ title: t("Msg.Fail"), icon: "none" })
  384. } finally {
  385. ruleLoading.value = false
  386. }
  387. }
  388. const confirmClaimReward = async () => {
  389. if (selectedRuleId.value === null || selectedRuleId.value === "" || claimTaskId.value == null) {
  390. uni.showToast({ title: t("DollarActivity.selectRulePlaceholder"), icon: "none" })
  391. return
  392. }
  393. applySubmitting.value = true
  394. try {
  395. const res = await activityApi.ActivityDollarApply({
  396. id: claimTaskId.value,
  397. ruleId: selectedRuleId.value,
  398. })
  399. if (res.code == Code.StatusOK) {
  400. uni.showToast({ title: res.msg || t("Msg.Success"), icon: "success" })
  401. closeClaimDialog()
  402. await searchFunc()
  403. } else {
  404. uni.showToast({ title: res.msg, icon: "none" })
  405. }
  406. } catch {
  407. uni.showToast({ title: t("Msg.Fail"), icon: "none" })
  408. } finally {
  409. applySubmitting.value = false
  410. }
  411. }
  412. const searchFunc = async () => {
  413. if (flag.value) {
  414. return
  415. }
  416. flag.value = true
  417. pictLoading.value = true
  418. let res = await activityApi.ActivityDollarSearchList()
  419. if (res.code == Code.StatusOK) {
  420. tableData.value = Array.isArray(res.data) ? res.data : []
  421. } else {
  422. uni.showToast({ title: res.msg, icon: "none" })
  423. }
  424. pictLoading.value = false
  425. flag.value = false
  426. }
  427. // ---------- 生命周期 ----------
  428. onMounted(() => {
  429. searchFunc()
  430. })
  431. </script>
  432. <style lang="scss" scoped>
  433. @import "@/uni.scss";
  434. #custom_history {
  435. width: 100%;
  436. height: 100%;
  437. .main-content {
  438. width: 100%;
  439. height: calc(100% - 50px);
  440. padding: px2rpx(20);
  441. box-sizing: border-box;
  442. overflow: hidden;
  443. overflow-y: auto;
  444. }
  445. .outer-card {
  446. background: #ffffff;
  447. border-radius: px2rpx(16);
  448. padding: px2rpx(24);
  449. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  450. border: 1px solid #f0f0f0;
  451. margin-bottom: px2rpx(24);
  452. }
  453. .data-cards {
  454. .card-actions {
  455. margin-top: px2rpx(16);
  456. padding-top: px2rpx(12);
  457. border-top: 1px solid #f0f0f0;
  458. display: flex;
  459. flex-wrap: wrap;
  460. justify-content: center;
  461. align-items: center;
  462. gap: px2rpx(20);
  463. .btn {
  464. padding: px2rpx(8) px2rpx(16);
  465. font-size: px2rpx(14);
  466. border-radius: px2rpx(6);
  467. }
  468. }
  469. .total-data-row {
  470. display: grid;
  471. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  472. gap: px2rpx(16);
  473. }
  474. .data-card {
  475. background: #fafafa;
  476. border-radius: px2rpx(12);
  477. padding: px2rpx(20) px2rpx(16);
  478. border: 1px solid #f0f0f0;
  479. text-align: center;
  480. .card-title {
  481. font-size: px2rpx(14);
  482. color: #666;
  483. margin-bottom: px2rpx(10);
  484. font-weight: 500;
  485. }
  486. .card-value {
  487. font-size: px2rpx(18);
  488. font-weight: 600;
  489. color: #333;
  490. line-height: 1.3;
  491. word-break: break-word;
  492. }
  493. }
  494. }
  495. @media (max-width: 768px) {
  496. .data-cards .total-data-row {
  497. grid-template-columns: 1fr;
  498. }
  499. }
  500. }
  501. .dialog-body {
  502. min-height: px2rpx(120);
  503. max-height: 60vh;
  504. overflow-y: auto;
  505. .picker-view {
  506. display: flex;
  507. justify-content: space-between;
  508. align-items: center;
  509. padding: px2rpx(12) px2rpx(16);
  510. border: 1px solid #dcdfe6;
  511. border-radius: px2rpx(8);
  512. .placeholder-text {
  513. color: #c0c4cc;
  514. }
  515. .picker-arrow {
  516. color: #909399;
  517. font-size: px2rpx(14);
  518. }
  519. }
  520. .record-table {
  521. width: 100%;
  522. overflow-x: auto;
  523. font-size: px2rpx(14);
  524. .table-header,
  525. .table-row {
  526. display: flex;
  527. min-width: 600px;
  528. text-align: center;
  529. padding: px2rpx(20) px2rpx(8);
  530. border-bottom: 1px solid #ebeef5;
  531. }
  532. .table-header {
  533. background: #f5f7fa;
  534. font-weight: 600;
  535. color: #606266;
  536. }
  537. .col-deposit,
  538. .col-reward,
  539. .col-standard,
  540. .col-ecn,
  541. .col-cent,
  542. .col-time {
  543. flex: 1;
  544. word-break: break-word;
  545. }
  546. }
  547. .apply-record-empty {
  548. text-align: center;
  549. color: #999;
  550. padding: px2rpx(24) 0;
  551. font-size: px2rpx(14);
  552. }
  553. }
  554. // 弹窗样式
  555. .dialog-popup {
  556. background: #ffffff;
  557. border-radius: px2rpx(16);
  558. width: 85%;
  559. max-width: 480px;
  560. &.dialog-large {
  561. max-width: 90%;
  562. width: 90%;
  563. @media (min-width: 768px) {
  564. max-width: 900px;
  565. width: 900px;
  566. }
  567. }
  568. .dialog-header {
  569. display: flex;
  570. justify-content: space-between;
  571. align-items: center;
  572. padding: px2rpx(20) px2rpx(24);
  573. border-bottom: 1px solid #f0f0f0;
  574. .dialog-title {
  575. font-size: px2rpx(18);
  576. font-weight: 600;
  577. color: #333;
  578. }
  579. .dialog-close {
  580. width: px2rpx(32);
  581. height: px2rpx(32);
  582. display: flex;
  583. align-items: center;
  584. justify-content: center;
  585. cursor: pointer;
  586. .close-icon {
  587. font-size: px2rpx(20);
  588. color: #999;
  589. }
  590. }
  591. }
  592. .dialog-footer {
  593. display: flex;
  594. justify-content: flex-end;
  595. gap: px2rpx(12);
  596. padding: px2rpx(16) px2rpx(24);
  597. border-top: 1px solid #f0f0f0;
  598. button {
  599. padding: px2rpx(8) px2rpx(20);
  600. font-size: px2rpx(14);
  601. border-radius: px2rpx(6);
  602. }
  603. }
  604. }
  605. .dialog-popup1 {
  606. height: 20vh;
  607. max-height: 80vh;
  608. }
  609. // loading 状态
  610. [v-loading] {
  611. position: relative;
  612. }
  613. // 按钮样式
  614. .btn {
  615. border: none;
  616. border-radius: px2rpx(6);
  617. cursor: pointer;
  618. transition: all 0.3s ease;
  619. }
  620. .btn-primary {
  621. &[disabled] {
  622. background-color: #f56c6c;
  623. cursor: not-allowed;
  624. color: var(--bs-body-bg);
  625. }
  626. }
  627. .btn-danger {
  628. background-color: #f56c6c;
  629. color: white;
  630. &:active {
  631. background-color: #e85c5c;
  632. }
  633. }
  634. .btn-outline-secondary {
  635. background-color: transparent;
  636. border: 1px solid #dcdfe6;
  637. color: #606266;
  638. &:active {
  639. background-color: #f5f7fa;
  640. }
  641. }
  642. </style>