dollar-list.vue 22 KB

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