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 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <view class="contentAll">
  3. <view class="card" v-for="(item,index) in form.data">
  4. <view>
  5. <view class="icon-active" v-if="i==value" @click="choice(item)">
  6. <u-icon name="checkbox-mark" color="#fff" size="28"></u-icon>
  7. </view>
  8. <view class="icon-no-active" v-else @click="choice(item)">
  9. </view>
  10. </view>
  11. <view class="content">
  12. <view class="title">姓名:{{item.cusName}}</view>
  13. <view class="title">开户行:{{bankData[item.bankType+1]}}</view>
  14. <view class="title">开户行支行:{{item.branchName}}</view>
  15. <view class="title">银行卡号:{{item.bankCardId}}</view>
  16. </view>
  17. <view class="edit" @click="toEdit(item)">
  18. <image :src="`${$imgUrl}applyCard/edit.png`" mode=""></image>
  19. <view>
  20. 编辑
  21. </view>
  22. </view>
  23. </view>
  24. <view class="add" @click="add">添加退费信息</view>
  25. </view>
  26. </template>
  27. <script lang="ts" setup>
  28. import {
  29. reactive, ref
  30. } from "vue";
  31. import {
  32. onLoad, onShow
  33. } from "@dcloudio/uni-app";
  34. import {
  35. navTo,
  36. } from "@/utils/utils";
  37. import { cancelList } from "@/utils/network/api.js";
  38. import { stringToJson } from "@/utils/network/encryption";
  39. import { request } from "@/utils/network/request.js";
  40. import { bankData } from "@/datas/bank.js";
  41. // 表单数据
  42. const form = reactive({
  43. userType: "",
  44. customerIdnum: "",
  45. mobile: "",
  46. data: [],
  47. });
  48. onLoad((option) => {
  49. form.mobile = option.mobile
  50. form.customerIdnum = option.customerIdnum
  51. form.userType = option.userType
  52. })
  53. const value = ref('-1')
  54. onShow(() => {
  55. queryList()
  56. })
  57. const toEdit = (item) => {
  58. const params = encodeURIComponent(JSON.stringify(item))
  59. navTo(`/subpackage/after-sale/ETC-log-off/refund-information-edit?mobile=${form.mobile}&&customerIdnum=${form.customerIdnum}&&userType=${form.userType}&&params=${params}`);
  60. }
  61. const add = () => {
  62. navTo(`/subpackage/after-sale/ETC-log-off/refund-information-add?mobile=${form.mobile}&&customerIdnum=${form.customerIdnum}&&userType=${form.userType}`);
  63. }
  64. const queryList = () => {
  65. var data = {
  66. customerIdNum: form.customerIdnum, //身份证号
  67. // customerIdNum: "522121199906217049", //身份证号
  68. };
  69. const options = {
  70. type: 2,
  71. data: data,
  72. method: "POST",
  73. showLoading: true,
  74. };
  75. console.log("options", options)
  76. request(cancelList, options).then((res) => {
  77. const data = stringToJson(res.bizContent);
  78. form.data = data.data
  79. console.log("data", data)
  80. });
  81. }
  82. const choice = (item) => {
  83. console.log("item", item)
  84. uni.$emit('list', {
  85. item: item
  86. })
  87. uni.navigateBack({
  88. delta: 1
  89. })
  90. }
  91. </script>
  92. <style scoped lang="scss">
  93. .contentAll {
  94. background-color: #EEF7F7;
  95. width: 100%;
  96. min-height: 100vh;
  97. padding: 20rpx 20rpx;
  98. box-sizing: border-box;
  99. }
  100. .add {
  101. width: 100%;
  102. height: 80rpx;
  103. background-color: white;
  104. text-align: center;
  105. line-height: 80rpx;
  106. position: fixed;
  107. bottom: 0;
  108. left: 0;
  109. font-size: 32rpx;
  110. }
  111. .list-item {
  112. width: 95%;
  113. border-radius: 10rpx;
  114. margin: 0 auto;
  115. font-size: 28rpx;
  116. border: 1rpx solid #ccc;
  117. padding: 12rpx;
  118. box-sizing: border-box;
  119. background-color: white;
  120. margin-bottom: 28rpx;
  121. }
  122. .card {
  123. background: #FFFFFF;
  124. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  125. border-radius: 20rpx;
  126. display: flex;
  127. align-items: center;
  128. justify-content: space-between;
  129. padding: 30rpx;
  130. margin-bottom: 30rpx;
  131. .content {
  132. width: 70%;
  133. .title {
  134. font-size: 30rpx;
  135. font-family: Noto Sans S Chinese;
  136. font-weight: 400;
  137. color: #333333;
  138. margin-bottom: 15rpx;
  139. }
  140. text {
  141. font-size: 26rpx;
  142. font-family: Noto Sans S Chinese;
  143. font-weight: 400;
  144. color: #666666;
  145. }
  146. }
  147. .icon-active {
  148. width: 43rpx;
  149. height: 43rpx;
  150. background: #00B38B;
  151. border-radius: 50%;
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. }
  156. .icon-no-active {
  157. width: 44rpx;
  158. height: 44rpx;
  159. background: #FFFFFF;
  160. border: 1px solid #00B38B;
  161. border-radius: 50%;
  162. }
  163. .edit {
  164. display: flex;
  165. justify-content: center;
  166. align-items: center;
  167. flex-direction: column;
  168. image {
  169. width: 40rpx;
  170. height: 40rpx;
  171. }
  172. view {
  173. font-size: 26rpx;
  174. font-family: Noto Sans S Chinese;
  175. font-weight: 400;
  176. color: #999999;
  177. }
  178. }
  179. }
  180. </style>