dollar-list.vue 22 KB

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