選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

card-loop.vue 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. <!-- 存储卡圈存 -->
  2. <template>
  3. <view class="search-box">
  4. <image :src="`${$imgUrl}service/icon-search.png`" class="icon"></image>
  5. <input class="search" placeholder="储值卡圈存/ETC卡号" />
  6. </view>
  7. <view class="search-time">
  8. <view class="search-time-box" @click="show = true">
  9. <u-calendar v-model="show" mode="date" @change="changeHandle" max-date="2100-01-01"
  10. range-bg-color="#00B38B" active-bg-color="#00B38B" range-color="#fff"></u-calendar>
  11. <view class="show-info">
  12. <view class="show-text" v-if="chooseDate">
  13. <text class="date-text text-val">{{chooseDate}}</text>
  14. </view>
  15. <view class="show-text" v-else>
  16. <text class="date-text">圈存时间</text>
  17. </view>
  18. <u-icon name="calendar" :custom-style="{color:'#999999', size: '28rpx'}"></u-icon>
  19. </view>
  20. </view>
  21. <view class="search-payment-box" @click="isShowPayment = true">
  22. <u-picker mode="selector" v-model="isShowPayment" :range="payments" rangeKey="pay"
  23. @confirm="choosePayment" title="支付方式"></u-picker>
  24. <view class="show-text" v-if="payText">
  25. <text class="date-text text-val">{{payText}}</text>
  26. </view>
  27. <view class="show-text" v-else>
  28. <text class="date-text">支付方式</text>
  29. </view>
  30. <u-icon name="arrow-down" :custom-style="{color:'#999999', size: '28rpx'}"></u-icon>
  31. </view>
  32. <view class="time-btn">查询</view>
  33. </view>
  34. <view class="list bg-white">
  35. <view class="sub-tabs">
  36. <view class="sub-item active">全部</view>
  37. <view class="sub-item">半条流水</view>
  38. <view class="sub-item">已冲正</view>
  39. <view class="sub-item">圈存成功</view>
  40. <view class="sub-item">退款中</view>
  41. </view>
  42. <view class="item">
  43. <view class="head">
  44. <view class="name">
  45. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  46. <text class="title m-10">20230010330</text>
  47. </view>
  48. <view class="status text-green">退款中</view>
  49. </view>
  50. <view class="detail">
  51. <view class="orders">
  52. <view class="order-text">
  53. <text class="type">圈存单号:</text>
  54. <text class="value">GZ0000238100101</text>
  55. </view>
  56. <view class="order-text odd">
  57. <text class="type">业务类型:</text>
  58. <text class="value">储值卡圈存</text>
  59. </view>
  60. <view class="order-text">
  61. <text class="type">支付方式:</text>
  62. <text class="value">微信支付</text>
  63. </view>
  64. <view class="order-text odd">
  65. <text class="type">充值时间:</text>
  66. <text class="value">2023-01-08 10:09:23</text>
  67. </view>
  68. </view>
  69. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  70. </view>
  71. <view class="btns">
  72. <view class="btn btn-normal" @click="$util.navTo('/subpackage/orders/cardAmountDetail')">查看进度</view>
  73. </view>
  74. </view>
  75. <view class="item">
  76. <view class="head">
  77. <view class="name">
  78. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  79. <text class="title m-10">20230010330</text>
  80. </view>
  81. <view class="status text-green">半条流水</view>
  82. </view>
  83. <view class="detail">
  84. <view class="orders">
  85. <view class="order-text">
  86. <text class="type">圈存单号:</text>
  87. <text class="value">GZ0000238100101</text>
  88. </view>
  89. <view class="order-text odd">
  90. <text class="type">业务类型:</text>
  91. <text class="value">储值卡圈存</text>
  92. </view>
  93. <view class="order-text">
  94. <text class="type">支付方式:</text>
  95. <text class="value">微信支付</text>
  96. </view>
  97. <view class="order-text odd">
  98. <text class="type">充值时间:</text>
  99. <text class="value">2023-01-08 10:09:23</text>
  100. </view>
  101. </view>
  102. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  103. </view>
  104. <view class="btns">
  105. <view class="btn btn-normal" @click="$util.navTo('/subpackage/orders/refund-deposit-card')">申请退款</view>
  106. <view class="btn btn-primary" @click="$util.navTo('/subpackage/pages/recharge/recharge')">圈存修复</view>
  107. </view>
  108. </view>
  109. <view class="item">
  110. <view class="head">
  111. <view class="name">
  112. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  113. <text class="title m-10">20230010330</text>
  114. </view>
  115. <view class="status text-green">已冲正</view>
  116. </view>
  117. <view class="detail">
  118. <view class="orders">
  119. <view class="order-text">
  120. <text class="type">圈存单号:</text>
  121. <text class="value">GZ0000238100101</text>
  122. </view>
  123. <view class="order-text odd">
  124. <text class="type">业务类型:</text>
  125. <text class="value">储值卡圈存</text>
  126. </view>
  127. <view class="order-text">
  128. <text class="type">支付方式:</text>
  129. <text class="value">微信支付</text>
  130. </view>
  131. <view class="order-text odd">
  132. <text class="type">充值时间:</text>
  133. <text class="value">2023-01-08 10:09:23</text>
  134. </view>
  135. </view>
  136. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  137. </view>
  138. <view class="btns">
  139. <view class="btn btn-primary" @click="$util.navTo('/pages/recharge/recharge')">圈存修复</view>
  140. </view>
  141. </view>
  142. <view class="item">
  143. <view class="head">
  144. <view class="name">
  145. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  146. <text class="title m-10">20230010330</text>
  147. </view>
  148. <view class="status text-orange">圈存成功</view>
  149. </view>
  150. <view class="detail">
  151. <view class="orders">
  152. <view class="order-text">
  153. <text class="type">圈存单号:</text>
  154. <text class="value">GZ0000238100101</text>
  155. </view>
  156. <view class="order-text odd">
  157. <text class="type">业务类型:</text>
  158. <text class="value">储值卡圈存</text>
  159. </view>
  160. <view class="order-text">
  161. <text class="type">支付方式:</text>
  162. <text class="value">微信支付</text>
  163. </view>
  164. <view class="order-text odd">
  165. <text class="type">充值时间:</text>
  166. <text class="value">2023-01-08 10:09:23</text>
  167. </view>
  168. </view>
  169. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  170. </view>
  171. <view class="btns">
  172. <view class="btn btn-primary" @click="$util.navTo('/subpackage/orders/order-evaluate')">去评价</view>
  173. </view>
  174. </view>
  175. <view class="item finished">
  176. <view class="head">
  177. <view class="name">
  178. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  179. <text class="title m-10">20230010330</text>
  180. </view>
  181. <view class="status text-orange">退款完成</view>
  182. </view>
  183. <view class="detail">
  184. <view class="orders">
  185. <view class="order-text">
  186. <text class="type">圈存单号:</text>
  187. <text class="value">GZ0000238100101</text>
  188. </view>
  189. <view class="order-text odd">
  190. <text class="type">业务类型:</text>
  191. <text class="value">储值卡圈存</text>
  192. </view>
  193. <view class="order-text">
  194. <text class="type">支付方式:</text>
  195. <text class="value">微信支付</text>
  196. </view>
  197. <view class="order-text odd">
  198. <text class="type">充值时间:</text>
  199. <text class="value">2023-01-08 10:09:23</text>
  200. </view>
  201. </view>
  202. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  203. </view>
  204. <view class="btns">
  205. <view class="btn btn-primary" @click="$util.navTo('/subpackage/orders/order-evaluate')">去评价</view>
  206. </view>
  207. </view>
  208. </view>
  209. </template>
  210. <script setup lang="ts">
  211. import {
  212. ref,
  213. reactive
  214. } from "vue";
  215. const chooseDate = ref(null);
  216. const show = ref(false);
  217. const isShowPayment = ref(false);
  218. const payText = ref(null)
  219. const payments = reactive([{
  220. id: 1,
  221. pay: '微信'
  222. }, {
  223. id: 2,
  224. pay: '云闪付'
  225. }, {
  226. id: 3,
  227. pay: '账户'
  228. }])
  229. const timeData = reactive({
  230. startDate: '',
  231. endDate: ""
  232. })
  233. /* 选择日期 */
  234. const changeHandle = (e) => {
  235. chooseDate.value = e.result
  236. if (e.startDate) {
  237. timeData.startDate = e.startDate
  238. timeData.endDate = e.endDate
  239. }
  240. }
  241. const choosePayment = (e) => {
  242. payText.value = payments[e].pay
  243. }
  244. </script>
  245. <style>
  246. page {
  247. background: #eef7f7;
  248. }
  249. </style>
  250. <style lang="scss" scoped>
  251. .search-btn{
  252. color: white;
  253. background-color: #00B38B;
  254. width: 140rpx;
  255. height: 75rpx;
  256. line-height: 75rpx;
  257. font-size: 32rpx;
  258. border-radius: 40rpx;
  259. text-align: center;
  260. margin-right: 30rpx;
  261. margin-top: 10rpx;
  262. }
  263. .search-box {
  264. margin: 30rpx 30rpx 20rpx 30rpx;
  265. height: 72rpx;
  266. height: 81rpx;
  267. background: #FFFFFF;
  268. border: 1px solid #DCDCDC;
  269. border-radius: 40rpx;
  270. display: flex;
  271. justify-content: center;
  272. align-items: center;
  273. box-sizing: border-box;
  274. flex: 1;
  275. }
  276. .search-box .icon {
  277. width: 48rpx;
  278. height: 48rpx;
  279. margin: 0 20rpx;
  280. }
  281. .search-box .search {
  282. flex: 1;
  283. margin-right: 20rpx;
  284. height: 100%;
  285. padding: 0 10rpx;
  286. font-size: 28rpx;
  287. color: #00b38b;
  288. }
  289. .scroll-view {
  290. white-space: nowrap;
  291. position: sticky;
  292. top: 0;
  293. background: #ffffff;
  294. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  295. }
  296. .top-menu {
  297. display: flex;
  298. }
  299. .top-menu .tab {
  300. font-size: 26rpx;
  301. padding: 38rpx 30rpx;
  302. color: #333;
  303. position: relative;
  304. }
  305. .top-menu .active .border {
  306. position: absolute;
  307. width: 70%;
  308. height: 16rpx;
  309. background: #00b38b;
  310. opacity: 0.3;
  311. bottom: 40rpx;
  312. z-index: -99;
  313. left: 15%;
  314. border-radius: 6rpx;
  315. }
  316. .top-menu .active {
  317. font-weight: bold;
  318. font-size: 28rpx;
  319. }
  320. .top-menu .active::before {
  321. width: 100%;
  322. height: 16rpx;
  323. background: #00b38b;
  324. opacity: 0.3;
  325. }
  326. .search-time {
  327. display: flex;
  328. margin: 20rpx 30rpx 48rpx 30rpx;
  329. justify-content: space-between;
  330. .time-btn {
  331. width: 230rpx;
  332. height: 80rpx;
  333. background: #00B38B;
  334. border-radius: 40rpx;
  335. color: #FFFFFF;
  336. font-size: 32rpx;
  337. line-height: 80rpx;
  338. text-align: center;
  339. }
  340. .show-info {
  341. width: 260rpx;
  342. height: 80rpx;
  343. padding: 0 31rpx;
  344. background: #FFFFFF;
  345. border: 1px solid #DCDCDC;
  346. border-radius: 40rpx;
  347. display: flex;
  348. justify-content: space-between;
  349. align-items: center;
  350. .show-text {
  351. display: flex;
  352. align-items: center;
  353. }
  354. .date-text {
  355. color: #999999;
  356. font-size: 28rpx;
  357. }
  358. .text-val {
  359. color: #333;
  360. font-size: 28rpx;
  361. }
  362. .line {
  363. width: 25rpx;
  364. height: 1rpx;
  365. background: #999999;
  366. margin: 0 24rpx;
  367. }
  368. }
  369. .show-info2 {
  370. width: 541rpx;
  371. height: 80rpx;
  372. padding: 0 31rpx;
  373. background: #FFFFFF;
  374. border: 1px solid #DCDCDC;
  375. border-radius: 40rpx;
  376. display: flex;
  377. justify-content: space-between;
  378. align-items: center;
  379. .show-text {
  380. display: flex;
  381. align-items: center;
  382. flex: 1;
  383. justify-content: space-evenly;
  384. }
  385. .date-text {
  386. color: #999999;
  387. font-size: 28rpx;
  388. }
  389. .text-val {
  390. color: #333;
  391. font-size: 28rpx;
  392. }
  393. .line {
  394. width: 25rpx;
  395. height: 1rpx;
  396. background: #999999;
  397. margin: 0 24rpx;
  398. }
  399. }
  400. }
  401. .count {
  402. margin: 0 30rpx 25rpx 30rpx;
  403. font-size: 28rpx;
  404. font-family: Noto Sans S Chinese;
  405. font-weight: 400;
  406. color: #999999;
  407. line-height: 36rpx;
  408. }
  409. .search-payment-box {
  410. width: 260rpx;
  411. height: 80rpx;
  412. padding: 0 31rpx;
  413. background: #FFFFFF;
  414. border: 1px solid #DCDCDC;
  415. border-radius: 40rpx;
  416. display: flex;
  417. justify-content: space-between;
  418. align-items: center;
  419. color: #999999;
  420. font-size: 28rpx;
  421. }
  422. .list {
  423. padding: 0 30rpx;
  424. display: flex;
  425. flex-direction: column;
  426. }
  427. .bg-white {
  428. background: #FFFFFF;
  429. border-radius: 30rpx 30rpx 0 0;
  430. }
  431. .bg-white .sub-tabs{
  432. display: flex;
  433. justify-content: space-evenly;
  434. align-items: center;
  435. }
  436. .bg-white .sub-item{
  437. padding: 10rpx 0;
  438. margin: 20rpx 0 30rpx;
  439. border-bottom: 6rpx solid #fff;
  440. font-size: 26rpx;
  441. }
  442. .bg-white .active{
  443. border-bottom: 6rpx solid #00B38B;
  444. color: #00B38B;
  445. font-size: 30rpx;
  446. font-weight: bold;
  447. }
  448. .bg-none {
  449. background: none;
  450. border-radius: 30rpx 30rpx 0 0;
  451. }
  452. .list .item {
  453. background: #ffffff;
  454. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  455. border-radius: 20rpx;
  456. box-sizing: border-box;
  457. display: flex;
  458. flex-direction: column;
  459. margin-bottom: 30rpx;
  460. }
  461. .list.bg-white .item {
  462. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  463. }
  464. .list .item .head {
  465. display: flex;
  466. justify-content: space-between;
  467. align-items: center;
  468. padding: 20rpx 28rpx;
  469. border-bottom: 1px solid #dcdcdc;
  470. }
  471. .list .item .head {
  472. .head-row {
  473. display: flex;
  474. width: 100%;
  475. justify-content: space-between;
  476. align-items: center;
  477. }
  478. .name {}
  479. .name>text {
  480. font-size: 26rpx;
  481. font-family: Noto Sans S Chinese;
  482. font-weight: 400;
  483. color: #999999;
  484. line-height: 36rpx;
  485. }
  486. }
  487. .list .item .head .icon {
  488. width: 48rpx;
  489. height: 48rpx;
  490. }
  491. .list .item .head .name {
  492. display: flex;
  493. align-items: center;
  494. }
  495. .list .text-green {
  496. font-size: 26rpx;
  497. color: #00b38b;
  498. }
  499. .list .text-orange {
  500. font-size: 26rpx;
  501. color: #ff8000;
  502. }
  503. .list .text-black {
  504. font-size: 28rpx;
  505. color: #333;
  506. font-weight: 500;
  507. }
  508. .list .title {
  509. font-size: 30rpx;
  510. color: #333;
  511. }
  512. .list .tag-green {
  513. font-size: 22rpx;
  514. height: 40rpx;
  515. line-height: 40rpx;
  516. padding: 0 12rpx;
  517. border-radius: 6rpx;
  518. background: #d9f4ee;
  519. color: #00b38b;
  520. }
  521. .list .tag-grey {
  522. font-size: 22rpx;
  523. height: 40rpx;
  524. line-height: 40rpx;
  525. padding: 0 12rpx;
  526. border-radius: 6rpx;
  527. background: #e8e8e8;
  528. color: #666;
  529. }
  530. .list .detail {
  531. display: flex;
  532. justify-content: space-between;
  533. align-items: center;
  534. padding: 30rpx 32rpx;
  535. }
  536. .list .detail .type {
  537. font-size: 26rpx;
  538. color: #999;
  539. }
  540. .list .detail .value {
  541. font-size: 26rpx;
  542. color: #333;
  543. }
  544. .list .finished .detail .value {
  545. color: #999;
  546. }
  547. .list .detail .odd {
  548. margin: 20rpx 0;
  549. }
  550. .list .cny {
  551. font-size: 26rpx;
  552. color: #333;
  553. }
  554. .list .finished .cny {
  555. color: #999;
  556. }
  557. .list .amount {
  558. font-size: 40rpx;
  559. font-weight: bold;
  560. }
  561. .list .bottom .amount {
  562. color: #ff8000;
  563. }
  564. .list .finished .amount {
  565. color: #999;
  566. }
  567. .list .btns {
  568. position: relative;
  569. display: flex;
  570. align-items: center;
  571. justify-content: flex-end;
  572. border-top: 1px solid #dcdcdc;
  573. margin: 0 30rpx;
  574. padding: 20rpx 0;
  575. }
  576. .list .bottom {
  577. display: flex;
  578. justify-content: space-between;
  579. align-items: center;
  580. border-top: 1px solid #dcdcdc;
  581. margin: 0 30rpx;
  582. padding: 20rpx 0;
  583. }
  584. .list .btn {
  585. height: 60rpx;
  586. line-height: 58rpx;
  587. border-radius: 30rpx;
  588. padding: 0 24rpx;
  589. font-size: 26rpx;
  590. box-sizing: border-box;
  591. margin-right: 20rpx;
  592. }
  593. .list .btns .btn:last-child {
  594. margin: 0;
  595. }
  596. .list .btns .state {
  597. position: absolute;
  598. left: 0;
  599. font-size: 26rpx;
  600. font-family: Noto Sans S Chinese;
  601. font-weight: 400;
  602. color: #999999;
  603. line-height: 58rpx;
  604. text {
  605. font-size: 26rpx;
  606. font-family: Noto Sans S Chinese;
  607. font-weight: 400;
  608. color: #00B38B;
  609. line-height: 58rpx;
  610. }
  611. }
  612. .list .btn-primary {
  613. border: 1px solid #00b38b;
  614. color: #00b38b;
  615. }
  616. .list .btn-disable {
  617. border: 1px solid #999;
  618. color: #999;
  619. }
  620. .list .btn-normal {
  621. border: 1px solid #dcdcdc;
  622. color: #333;
  623. }
  624. .m-10 {
  625. margin: 0 10rpx;
  626. }
  627. //
  628. .detail2 {
  629. display: flex;
  630. justify-content: space-between;
  631. align-items: center;
  632. padding: 30rpx 32rpx;
  633. position: relative;
  634. view {
  635. text-align: center;
  636. text {
  637. display: block;
  638. margin: 20rpx 0;
  639. }
  640. view {
  641. font-size: 24rpx;
  642. font-family: Noto Sans S Chinese;
  643. font-weight: 400;
  644. color: #999999;
  645. line-height: 36rpx;
  646. text {
  647. margin: 0;
  648. }
  649. }
  650. }
  651. .indicator {
  652. position: absolute;
  653. left: 50%;
  654. top: 50%;
  655. transform: translate(-50%, -50%);
  656. display: flex;
  657. flex-direction: column;
  658. text {
  659. margin: 0;
  660. font-size: 26rpx;
  661. font-family: Noto Sans S Chinese;
  662. font-weight: 400;
  663. color: #666666;
  664. line-height: 36rpx;
  665. }
  666. image {
  667. width: 186rpx;
  668. height: 12rpx;
  669. }
  670. }
  671. .state {
  672. position: absolute;
  673. left: 0;
  674. font-size: 26rpx;
  675. font-family: Noto Sans S Chinese;
  676. font-weight: 400;
  677. color: #999999;
  678. line-height: 58rpx;
  679. }
  680. }
  681. </style>