You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

refund-information-list.vue 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="content">
  3. <view class="list-item" v-for="(item,index) in form.data" @click="choice(item)">
  4. <view><text>姓名:</text><text>{{item.cusName}}</text></view>
  5. <view><text>开户行:</text><text>{{form.array[item.bankType+1]}}</text></view>
  6. <view><text>开户行支行:</text><text>{{item.branchName}}</text></view>
  7. <view><text>银行卡号:</text><text>{{item.bankCardId}}</text></view>
  8. </view>
  9. <view class="add" @click="add">添加退费信息</view>
  10. </view>
  11. </template>
  12. <script lang="ts" setup>
  13. import {
  14. reactive
  15. } from "vue";
  16. import {
  17. onLoad, onShow
  18. } from "@dcloudio/uni-app";
  19. import {
  20. navTo,
  21. } from "@/utils/utils";
  22. import { cancelList } from "@/utils/network/api.js";
  23. import { stringToJson } from "@/utils/network/encryption";
  24. import { request } from "@/utils/network/request.js";
  25. // 表单数据
  26. const form = reactive({
  27. userType: "",
  28. customerIdnum: "",
  29. mobile: "",
  30. data: [],
  31. array: ['贵阳银行股份有限公司', '中国工商银行股份有限公司', '中国建设银行股份有限公司', '中国银行股份有限公司', '中国农业银行股份有限公司', '中国交通银行股份有限公司',
  32. '兴业银行股份有限公司', '平安银行股份有限公司', '中国邮政储蓄银行股份有限公司', '中国光大银行股份有限公司', '贵州银行股份有限公司', '中国民生银行股份有限公司',
  33. '招商银行股份有限公司', '.农村信用社联合社', '农村商业银行'],
  34. });
  35. onLoad((option) => {
  36. form.mobile = option.mobile
  37. form.customerIdnum = option.customerIdnum
  38. form.userType = option.userType
  39. })
  40. onShow(() => {
  41. queryList()
  42. })
  43. const add = () => {
  44. navTo(`/subpackage/after-sale/ETC-log-off/refund-information-add?mobile=${form.mobile}&&customerIdnum=${form.customerIdnum}&&userType=${form.userType}`);
  45. }
  46. const queryList = () => {
  47. var data = {
  48. customerIdNum: form.customerIdnum, //身份证号
  49. // customerIdNum: "522121199906217049", //身份证号
  50. };
  51. const options = {
  52. type: 2,
  53. data: data,
  54. method: "POST",
  55. showLoading: true,
  56. };
  57. console.log("options", options)
  58. request(cancelList, options).then((res) => {
  59. const data = stringToJson(res.bizContent);
  60. form.data = data.data
  61. console.log("data", data)
  62. });
  63. }
  64. const choice = (item) => {
  65. uni.$emit('list', {
  66. item: item
  67. })
  68. uni.navigateBack({
  69. delta: 1
  70. })
  71. // uni.redirectTo({
  72. // url: `/subpackage/after-sale/ETC-log-off/upload-card?item=${item}`
  73. // })
  74. }
  75. </script>
  76. <style scoped>
  77. .content {
  78. background-color: #EEF7F7;
  79. width: 100%;
  80. min-height: 100vh;
  81. padding: 20rpx 0;
  82. }
  83. .add {
  84. width: 100%;
  85. height: 80rpx;
  86. background-color: white;
  87. text-align: center;
  88. line-height: 80rpx;
  89. position: fixed;
  90. bottom: 0;
  91. left: 0;
  92. font-size: 32rpx;
  93. }
  94. .list-item {
  95. width: 95%;
  96. border-radius: 10rpx;
  97. margin: 0 auto;
  98. font-size: 28rpx;
  99. border: 1rpx solid #ccc;
  100. padding: 12rpx;
  101. box-sizing: border-box;
  102. background-color: white;
  103. margin-bottom: 28rpx;
  104. }
  105. </style>