您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

arrears.vue 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  1. <template>
  2. <view class="content-box" style="margin-top: 30rpx;">
  3. <view class="list" v-if="state.list.length>0">
  4. <u-checkbox-group @change="checkboxGroupChange" ref="checkbox">
  5. <view class="item" v-for="(item, index) in state.list" :key="index"
  6. :class="item.suppleStatus=='PAY'?'finished':''">
  7. <view class="head">
  8. <view class="name">
  9. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  10. <text class="title m-10">{{item.cardId}}</text>
  11. <text class="tag-green" v-if="item.suppleStatus=='NOTPAY'">待支付</text>
  12. <text class="tag-green" v-else-if="item.suppleStatus=='PAY'">已支付</text>
  13. <text class="tag-green" v-else>已下支付单</text>
  14. </view>
  15. <view class="status text-black">{{item.vehiclePlate}}</view>
  16. </view>
  17. <view class="detail">
  18. <view class="orders">
  19. <view class="order-text">
  20. <text class="type">补缴类型:</text>
  21. <text class="value">{{item.suppleType=='TRAFFIC'?'流水欠费补缴':'卡账欠费补缴'}}</text>
  22. </view>
  23. <view class="order-text">
  24. <text class="type">补缴单号:</text>
  25. <text class="value">{{item.suppleNo}}</text>
  26. </view>
  27. <view class="order-text">
  28. <text class="type">补缴单生成时间:</text>
  29. <text class="value">{{item.insertTime}}</text>
  30. </view>
  31. </view>
  32. <u-checkbox @change="checkboxChange" v-model="item.checked" :name="item.suppleNo"
  33. v-if="item.suppleStatus=='NOTPAY'">
  34. </u-checkbox>
  35. </view>
  36. <view class="detail1">
  37. <view class="order-text1">
  38. <text class="type">{{item.extolllaneName}}</text>
  39. <text class="value">{{item.exTime}}</text>
  40. </view>
  41. <view class="order-text1">
  42. <text class="type">{{item.entolllaneName}}</text>
  43. <text class="value">{{item.enTime}}</text>
  44. </view>
  45. </view>
  46. <view class="bottom">
  47. <view class="bottom-left"><text class="tit1">通行金额:¥</text><text
  48. class="amount1">{{item.fee}}</text>
  49. </view>
  50. <view class="bottom-left"><text class="tit1">服务费用:¥</text><text
  51. class="amount1">{{item.serviceFee}}</text>
  52. </view>
  53. <view class="bottom-left"><text class="tit">欠费总金额:¥</text><text
  54. class="amount">{{item.totalFee}}</text>
  55. </view>
  56. </view>
  57. </view>
  58. </u-checkbox-group>
  59. </view>
  60. <view class="tips" v-else>
  61. ~暂无数据~
  62. </view>
  63. <view class="footer">
  64. <u-checkbox-group>
  65. <u-checkbox @change="checkboxChangeAll" v-model="item.checked" v-for="(item, index) in list2"
  66. :key="index" :name="item.name">{{item.name}}</u-checkbox>
  67. </u-checkbox-group>
  68. <view class="footer-right">
  69. <view class="row1">
  70. 合计:¥{{allPrice}}
  71. </view>
  72. <view class="btn" @click="wxPayment">
  73. 支付
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script lang="ts" setup>
  80. import {
  81. getItem
  82. } from "@/utils/storage.ts"
  83. import {
  84. wechatAppID,
  85. wechatSecret,
  86. CardBillQuery,
  87. CardBillPlaceOrder,
  88. CardBillPayStatus,
  89. wechatPayConfigId,
  90. aliPayConfigId,
  91. obtainUserId,
  92. getOpenidApi
  93. } from "@/utils/network/api.js";
  94. import {
  95. request
  96. } from "@/utils/network/request.js";
  97. import {
  98. stringToJson
  99. } from "@/utils/network/encryption";
  100. import {
  101. onLoad,
  102. onShow,
  103. onPullDownRefresh
  104. } from "@dcloudio/uni-app";
  105. import {
  106. ref,
  107. reactive
  108. } from "vue"
  109. import {
  110. confirm,
  111. msg
  112. } from "@/utils/utils";
  113. const state = reactive({
  114. list: [],
  115. suppleNoList: [],
  116. openid: '',
  117. orderId: ''
  118. })
  119. const checkbox = ref()
  120. const list2 = reactive([{
  121. name: '全选',
  122. checked: false,
  123. disabled: false
  124. }])
  125. const allPrice = ref(0)
  126. const all = ref(true)
  127. // 获取列表数据
  128. const getlist = () => {
  129. allPrice.value = 0
  130. const options = {
  131. type: 2,
  132. data: {
  133. opId: getItem('openId')
  134. },
  135. method: "POST",
  136. showLoading: true,
  137. };
  138. request(CardBillQuery, options).then((res) => {
  139. const data = stringToJson(res.bizContent);
  140. console.log(data);
  141. data.data = data.data.map(val => {
  142. val.checked = false
  143. val.fee = val.fee / 100
  144. val.totalFee = val.totalFee / 100
  145. val.serviceFee = val.serviceFee / 100
  146. return val
  147. })
  148. state.list = data.data
  149. console.log(state.list, "我是处理后得列表");
  150. });
  151. }
  152. const checkboxChangeAll = (e) => {
  153. console.log(e);
  154. allPrice.value = 0
  155. state.suppleNoList = []
  156. if (e.value) {
  157. state.list.map(val => {
  158. val.checked = true;
  159. if (val.suppleStatus == 'NOTPAY') {
  160. allPrice.value += val.totalFee
  161. state.suppleNoList.push(val.suppleNo)
  162. }
  163. })
  164. } else {
  165. state.list.map(val => {
  166. val.checked = false;
  167. })
  168. }
  169. console.log(state.suppleNoList, "支付集合");
  170. }
  171. const checkboxChange = (e) => {
  172. console.log(e);
  173. }
  174. const checkboxGroupChange = (e) => {
  175. console.log(e);
  176. state.suppleNoList = e
  177. let arr = []
  178. allPrice.value = 0
  179. state.suppleNoList.forEach((item, i) => {
  180. state.list.forEach((val, index) => {
  181. if (item == val.suppleNo) {
  182. arr.push(val.totalFee)
  183. }
  184. })
  185. })
  186. arr.forEach(item => {
  187. allPrice.value += item
  188. })
  189. console.log(state.suppleNoList, "支付集合");
  190. }
  191. //获取微信小程序openid
  192. const getOpenID = () => {
  193. uni.login({
  194. provider: "weixin",
  195. success: function (e) {
  196. getOpenid(e.code);
  197. // uni.request({
  198. // url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`,
  199. // success: (res: any) => {
  200. // state.openid = res.data.openid;
  201. // console.log(state.openid, "微信登录获得");
  202. // },
  203. // });
  204. },
  205. });
  206. };
  207. const getOpenid = (code) => {
  208. const options = {
  209. type: 2,
  210. data: {
  211. "jsCode": code
  212. },
  213. method: "POST",
  214. showLoading: true,
  215. };
  216. // #ifdef MP-WEIXIN
  217. request(getOpenidApi, options).then((res) => {
  218. const result = stringToJson(res.bizContent);
  219. console.log("获取微信小程序openid", result);
  220. const openidData = stringToJson(result.data);
  221. // setItem("QYorder", result.data);
  222. state.openid = openidData.openid
  223. });
  224. // #endif
  225. }
  226. //掉起微信支付
  227. const wxPayment = () => {
  228. if (state.suppleNoList.length > 0) {
  229. // #ifdef MP-WEIXIN
  230. const options = {
  231. type: 2,
  232. data: {
  233. openid: state.openid,
  234. suppleNoList: state.suppleNoList,
  235. totalFee: allPrice.value * 100,
  236. payConfigId: wechatPayConfigId,
  237. },
  238. method: "POST",
  239. showLoading: true,
  240. };
  241. request(CardBillPlaceOrder, options).then((res) => {
  242. const data = stringToJson(res.bizContent);
  243. state.orderId = data.orderId
  244. uni.requestPayment({
  245. provider: "wxpay",
  246. orderInfo: "",
  247. timeStamp: data.timestamp,
  248. nonceStr: data.noncestr,
  249. package: data.wxPackage ? data.wxPackage : "",
  250. signType: data.signType,
  251. paySign: data.sign,
  252. success: function (e) {
  253. console.log("支付成功", e);
  254. const dataaa = stringToJson(res.bizContent);
  255. checkOrder(dataaa.orderId);
  256. },
  257. fail: function (err) {
  258. confirm(err, () => { }, "支付失败", false);
  259. },
  260. });
  261. });
  262. // #endif
  263. // #ifdef MP-ALIPAY
  264. my.getAuthCode({
  265. scopes: 'auth_base',
  266. success: res => {
  267. const optionsUser = {
  268. type: 2,
  269. data: {
  270. payConfigId: aliPayConfigId,
  271. code: res.authCode
  272. },
  273. method: "POST",
  274. showLoading: true,
  275. };
  276. console.log('支付宝用户编号请求:', optionsUser)
  277. request(obtainUserId, optionsUser).then((res) => {
  278. console.log('支付宝用户编号返回:', res)
  279. const data = stringToJson(res.bizContent);
  280. const optionsali = {
  281. type: 2,
  282. data: {
  283. openid: data.openId,
  284. suppleNoList: state.suppleNoList,
  285. totalFee: allPrice.value * 100,
  286. payConfigId: "6a9a54123456578934edfre132b1234",
  287. },
  288. method: "POST",
  289. showLoading: true,
  290. };
  291. console.log('支付下单请求:', optionsali)
  292. request(CardBillPlaceOrder, optionsali).then((res) => {
  293. console.log('支付下单返回:', res)
  294. const data = stringToJson(res.bizContent);
  295. my.tradePay({
  296. // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no
  297. tradeNO: data.tranPackage,
  298. success: res => {
  299. console.log("支付成功", res);
  300. allPrice.value = 0
  301. const options = {
  302. type: 2,
  303. data: {
  304. opId: getItem('openId')
  305. },
  306. method: "POST",
  307. showLoading: true,
  308. };
  309. request(CardBillQuery, options).then((res) => {
  310. const data = stringToJson(res.bizContent);
  311. console.log(data);
  312. data.data = data.data.map(val => {
  313. val.checked = false
  314. val.fee = val.fee / 100
  315. val.totalFee = val.totalFee / 100
  316. val.serviceFee = val.serviceFee / 100
  317. return val
  318. })
  319. state.list = data.data
  320. console.log(state.list, "我是处理后得列表");
  321. })
  322. },
  323. fail: res => {
  324. console.log("支付失败", res);
  325. },
  326. });
  327. });
  328. });
  329. },
  330. fail: err => {
  331. console.log('my.getAuthCode 调用失败', err)
  332. }
  333. });
  334. // #endif
  335. } else {
  336. msg("未勾选补缴订单!")
  337. }
  338. };
  339. //支付成功改变订单状态
  340. const checkOrder = (orderId) => {
  341. const options = {
  342. type: 2,
  343. data: {
  344. orderId: orderId,
  345. },
  346. method: "POST",
  347. showLoading: true,
  348. };
  349. request(CardBillPayStatus, options).then((res) => {
  350. msg("支付成功!");
  351. getlist()
  352. });
  353. };
  354. onLoad(() => {
  355. getlist()
  356. getOpenID()
  357. console.log(state);
  358. })
  359. onPullDownRefresh(() => {
  360. getlist()
  361. })
  362. </script>
  363. <style lang="scss">
  364. page {
  365. background: #eef7f7;
  366. }
  367. .content-box {
  368. padding-bottom: 115rpx;
  369. .tips {
  370. font-size: 25rpx;
  371. color: #d2d2d2;
  372. text-align: center;
  373. }
  374. .footer {
  375. display: flex;
  376. align-items: center;
  377. padding: 0 30rpx;
  378. background: #fff;
  379. height: 100rpx;
  380. border-top: 1rpx solid #cdcdcd;
  381. position: fixed;
  382. bottom: 0;
  383. width: 100%;
  384. box-sizing: border-box;
  385. .footer-right {
  386. align-items: center;
  387. display: flex;
  388. justify-content: flex-end;
  389. flex: 1;
  390. .row1 {
  391. font-size: 29rpx;
  392. }
  393. .btn {
  394. text-align: center;
  395. width: 150rpx;
  396. height: 60rpx;
  397. background: #13E7C1;
  398. line-height: 60rpx;
  399. border-radius: 10rpx;
  400. font-size: 29rpx;
  401. color: #fff;
  402. margin-left: 30rpx;
  403. }
  404. }
  405. }
  406. }
  407. .search-btn {
  408. color: white;
  409. background-color: #00B38B;
  410. width: 140rpx;
  411. height: 75rpx;
  412. line-height: 75rpx;
  413. font-size: 32rpx;
  414. border-radius: 40rpx;
  415. text-align: center;
  416. margin-right: 30rpx;
  417. margin-top: 10rpx;
  418. }
  419. .search-box {
  420. margin: 30rpx 30rpx 20rpx 30rpx;
  421. height: 72rpx;
  422. height: 81rpx;
  423. background: #FFFFFF;
  424. border: 1px solid #DCDCDC;
  425. border-radius: 40rpx;
  426. display: flex;
  427. justify-content: center;
  428. align-items: center;
  429. box-sizing: border-box;
  430. flex: 1;
  431. }
  432. .search-box .icon {
  433. width: 48rpx;
  434. height: 48rpx;
  435. margin: 0 20rpx;
  436. }
  437. .search-box .search {
  438. flex: 1;
  439. margin-right: 20rpx;
  440. height: 100%;
  441. padding: 0 10rpx;
  442. font-size: 28rpx;
  443. color: #00b38b;
  444. }
  445. .scroll-view {
  446. white-space: nowrap;
  447. position: sticky;
  448. top: 0;
  449. background: #ffffff;
  450. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  451. }
  452. .top-menu {
  453. display: flex;
  454. }
  455. .top-menu .tab {
  456. font-size: 26rpx;
  457. padding: 38rpx 30rpx;
  458. color: #333;
  459. position: relative;
  460. }
  461. .top-menu .active .border {
  462. position: absolute;
  463. width: 70%;
  464. height: 16rpx;
  465. background: #00b38b;
  466. opacity: 0.3;
  467. bottom: 40rpx;
  468. z-index: -99;
  469. left: 15%;
  470. border-radius: 6rpx;
  471. }
  472. .top-menu .active {
  473. font-weight: bold;
  474. font-size: 28rpx;
  475. }
  476. .top-menu .active::before {
  477. width: 100%;
  478. height: 16rpx;
  479. background: #00b38b;
  480. opacity: 0.3;
  481. }
  482. .search-time {
  483. display: flex;
  484. margin: 20rpx 30rpx 48rpx 30rpx;
  485. justify-content: space-between;
  486. .time-btn {
  487. width: 130rpx;
  488. height: 80rpx;
  489. background: #00B38B;
  490. border-radius: 40rpx;
  491. color: #FFFFFF;
  492. font-size: 32rpx;
  493. line-height: 80rpx;
  494. text-align: center;
  495. }
  496. .show-info {
  497. width: 260rpx;
  498. height: 80rpx;
  499. padding: 0 31rpx;
  500. background: #FFFFFF;
  501. border: 1px solid #DCDCDC;
  502. border-radius: 40rpx;
  503. display: flex;
  504. justify-content: space-between;
  505. align-items: center;
  506. .show-text {
  507. display: flex;
  508. align-items: center;
  509. }
  510. .date-text {
  511. color: #999999;
  512. font-size: 28rpx;
  513. }
  514. .text-val {
  515. color: #333
  516. }
  517. .line {
  518. width: 25rpx;
  519. height: 1rpx;
  520. background: #999999;
  521. margin: 0 24rpx;
  522. }
  523. }
  524. .show-info2 {
  525. width: 541rpx;
  526. height: 80rpx;
  527. padding: 0 31rpx;
  528. background: #FFFFFF;
  529. border: 1px solid #DCDCDC;
  530. border-radius: 40rpx;
  531. display: flex;
  532. justify-content: space-between;
  533. align-items: center;
  534. .show-text {
  535. display: flex;
  536. align-items: center;
  537. flex: 1;
  538. justify-content: space-evenly;
  539. }
  540. .date-text {
  541. color: #999999;
  542. font-size: 28rpx;
  543. }
  544. .text-val {
  545. color: #333
  546. }
  547. .line {
  548. width: 25rpx;
  549. height: 1rpx;
  550. background: #999999;
  551. margin: 0 24rpx;
  552. }
  553. }
  554. }
  555. .count {
  556. margin: 0 30rpx 25rpx 30rpx;
  557. font-size: 28rpx;
  558. font-family: Noto Sans S Chinese;
  559. font-weight: 400;
  560. color: #999999;
  561. line-height: 36rpx;
  562. }
  563. .search-payment-box {
  564. width: 260rpx;
  565. height: 80rpx;
  566. padding: 0 31rpx;
  567. background: #FFFFFF;
  568. border: 1px solid #DCDCDC;
  569. border-radius: 40rpx;
  570. display: flex;
  571. justify-content: space-between;
  572. align-items: center;
  573. color: #999999;
  574. }
  575. .list {
  576. padding: 0 30rpx;
  577. display: flex;
  578. flex-direction: column;
  579. }
  580. .bg-white {
  581. background: #FFFFFF;
  582. border-radius: 30rpx 30rpx 0 0;
  583. }
  584. .bg-white .sub-tabs {
  585. display: flex;
  586. justify-content: space-evenly;
  587. align-items: center;
  588. }
  589. .bg-white .sub-item {
  590. padding: 10rpx 0;
  591. margin: 20rpx 0 30rpx;
  592. border-bottom: 6rpx solid #fff;
  593. font-size: 26rpx;
  594. }
  595. .bg-white .active {
  596. border-bottom: 6rpx solid #00B38B;
  597. color: #00B38B;
  598. font-size: 30rpx;
  599. font-weight: bold;
  600. }
  601. .bg-none {
  602. background: none;
  603. border-radius: 30rpx 30rpx 0 0;
  604. }
  605. .list .item {
  606. background: #ffffff;
  607. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  608. border-radius: 20rpx;
  609. box-sizing: border-box;
  610. display: flex;
  611. flex-direction: column;
  612. margin-bottom: 30rpx;
  613. }
  614. .list.bg-white .item {
  615. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  616. }
  617. .list .item .head {
  618. display: flex;
  619. justify-content: space-between;
  620. align-items: center;
  621. padding: 20rpx 28rpx;
  622. border-bottom: 1px solid #dcdcdc;
  623. }
  624. .list .item .head {
  625. .head-row {
  626. display: flex;
  627. width: 100%;
  628. justify-content: space-between;
  629. align-items: center;
  630. }
  631. .name {}
  632. .name>text {
  633. font-size: 25rpx;
  634. font-family: Noto Sans S Chinese;
  635. font-weight: 400;
  636. color: #999999;
  637. line-height: 36rpx;
  638. }
  639. }
  640. .list .item .head .icon {
  641. width: 48rpx;
  642. height: 48rpx;
  643. }
  644. .list .item .head .name {
  645. display: flex;
  646. align-items: center;
  647. }
  648. .list .text-green {
  649. font-size: 26rpx;
  650. color: #00b38b;
  651. }
  652. .list .text-orange {
  653. font-size: 26rpx;
  654. color: #ff8000;
  655. }
  656. .list .text-black {
  657. font-size: 28rpx;
  658. color: #333;
  659. font-weight: 500;
  660. }
  661. .list .title {
  662. font-size: 30rpx;
  663. color: #333;
  664. }
  665. .list .tag-green {
  666. font-size: 22rpx;
  667. height: 40rpx;
  668. line-height: 40rpx;
  669. padding: 0 12rpx;
  670. border-radius: 6rpx;
  671. background: #d9f4ee;
  672. color: #00b38b;
  673. }
  674. .list .tag-grey {
  675. font-size: 22rpx;
  676. height: 40rpx;
  677. line-height: 40rpx;
  678. padding: 0 12rpx;
  679. border-radius: 6rpx;
  680. background: #e8e8e8;
  681. color: #666;
  682. }
  683. .list .detail {
  684. display: flex;
  685. justify-content: space-between;
  686. align-items: center;
  687. padding: 30rpx 32rpx;
  688. }
  689. .list .detail1 {
  690. display: flex;
  691. justify-content: space-between;
  692. align-items: center;
  693. padding: 0rpx 32rpx 30rpx 32rpx;
  694. .order-text1 {
  695. display: flex;
  696. flex-direction: column;
  697. width: 50%;
  698. .type {
  699. font-size: 26rpx;
  700. color: #999;
  701. }
  702. .value {
  703. font-size: 26rpx;
  704. color: #333;
  705. }
  706. }
  707. }
  708. .list .detail .type {
  709. font-size: 26rpx;
  710. color: #999;
  711. }
  712. .list .detail .value {
  713. font-size: 26rpx;
  714. color: #333;
  715. }
  716. .list .finished .detail .value {
  717. color: #999;
  718. }
  719. .list .detail .odd {
  720. margin: 20rpx 0;
  721. }
  722. .list .cny {
  723. font-size: 26rpx;
  724. color: #333;
  725. }
  726. .list .finished .cny {
  727. color: #999;
  728. }
  729. .list .amount {
  730. font-size: 40rpx;
  731. font-weight: bold;
  732. }
  733. .list .bottom .amount {
  734. color: #ff8000;
  735. }
  736. .list .finished .amount {
  737. color: #999;
  738. }
  739. .list .btns {
  740. position: relative;
  741. display: flex;
  742. align-items: center;
  743. justify-content: flex-end;
  744. border-top: 1px solid #dcdcdc;
  745. margin: 0 30rpx;
  746. padding: 20rpx 0;
  747. }
  748. .list .bottom {
  749. display: flex;
  750. border-top: 1px solid #dcdcdc;
  751. margin: 0 30rpx;
  752. padding: 20rpx 0;
  753. flex-direction: column;
  754. align-items: flex-start;
  755. .tit {
  756. font-size: 30rpx;
  757. }
  758. .tit1 {
  759. font-size: 26rpx;
  760. color: #999;
  761. }
  762. .amount1 {
  763. font-size: 26rpx;
  764. color: #333;
  765. }
  766. }
  767. .list .btn {
  768. height: 60rpx;
  769. line-height: 58rpx;
  770. border-radius: 30rpx;
  771. padding: 0 24rpx;
  772. font-size: 26rpx;
  773. box-sizing: border-box;
  774. margin-right: 20rpx;
  775. }
  776. .list .btns .btn:last-child {
  777. margin: 0;
  778. }
  779. .list .btns .state {
  780. position: absolute;
  781. left: 0;
  782. font-size: 26rpx;
  783. font-family: Noto Sans S Chinese;
  784. font-weight: 400;
  785. color: #999999;
  786. line-height: 58rpx;
  787. text {
  788. font-size: 26rpx;
  789. font-family: Noto Sans S Chinese;
  790. font-weight: 400;
  791. color: #00B38B;
  792. line-height: 58rpx;
  793. }
  794. }
  795. .list .btn-primary {
  796. border: 1px solid #00b38b;
  797. color: #00b38b;
  798. }
  799. .list .btn-disable {
  800. border: 1px solid #999;
  801. color: #999;
  802. }
  803. .list .btn-normal {
  804. border: 1px solid #dcdcdc;
  805. color: #333;
  806. }
  807. .m-10 {
  808. margin: 0 10rpx;
  809. }
  810. //
  811. .detail2 {
  812. display: flex;
  813. justify-content: space-between;
  814. align-items: center;
  815. padding: 30rpx 32rpx;
  816. position: relative;
  817. view {
  818. text-align: center;
  819. text {
  820. display: block;
  821. margin: 20rpx 0;
  822. }
  823. view {
  824. font-size: 24rpx;
  825. font-family: Noto Sans S Chinese;
  826. font-weight: 400;
  827. color: #999999;
  828. line-height: 36rpx;
  829. text {
  830. margin: 0;
  831. }
  832. }
  833. }
  834. .indicator {
  835. position: absolute;
  836. left: 50%;
  837. top: 50%;
  838. transform: translate(-50%, -50%);
  839. display: flex;
  840. flex-direction: column;
  841. text {
  842. margin: 0;
  843. font-size: 26rpx;
  844. font-family: Noto Sans S Chinese;
  845. font-weight: 400;
  846. color: #666666;
  847. line-height: 36rpx;
  848. }
  849. image {
  850. width: 186rpx;
  851. height: 12rpx;
  852. }
  853. }
  854. .state {
  855. position: absolute;
  856. left: 0;
  857. font-size: 26rpx;
  858. font-family: Noto Sans S Chinese;
  859. font-weight: 400;
  860. color: #999999;
  861. line-height: 58rpx;
  862. }
  863. }
  864. .emptyView {
  865. margin-top: 120rpx;
  866. }
  867. </style>