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

refund-information-list.vue 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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 "@/subpackage/after-sale/js/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. };
  68. const options = {
  69. type: 2,
  70. data: data,
  71. method: "POST",
  72. showLoading: true,
  73. };
  74. console.log("options", options)
  75. request(cancelList, options).then((res) => {
  76. const data = stringToJson(res.bizContent);
  77. form.data = data.data
  78. console.log("data", data)
  79. });
  80. }
  81. const choice = (item) => {
  82. console.log("item", item)
  83. uni.$emit('list', {
  84. item: item
  85. })
  86. uni.navigateBack({
  87. delta: 1
  88. })
  89. }
  90. </script>
  91. <style scoped lang="scss">
  92. .contentAll {
  93. background-color: #EEF7F7;
  94. width: 100%;
  95. min-height: 100vh;
  96. padding: 20rpx 20rpx;
  97. box-sizing: border-box;
  98. }
  99. .add {
  100. width: 100%;
  101. height: 80rpx;
  102. background-color: white;
  103. text-align: center;
  104. line-height: 80rpx;
  105. position: fixed;
  106. bottom: 0;
  107. left: 0;
  108. font-size: 32rpx;
  109. }
  110. .list-item {
  111. width: 95%;
  112. border-radius: 10rpx;
  113. margin: 0 auto;
  114. font-size: 28rpx;
  115. border: 1rpx solid #ccc;
  116. padding: 12rpx;
  117. box-sizing: border-box;
  118. background-color: white;
  119. margin-bottom: 28rpx;
  120. }
  121. .card {
  122. background: #FFFFFF;
  123. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  124. border-radius: 20rpx;
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. padding: 30rpx;
  129. margin-bottom: 30rpx;
  130. .content {
  131. width: 70%;
  132. .title {
  133. font-size: 30rpx;
  134. font-family: Noto Sans S Chinese;
  135. font-weight: 400;
  136. color: #333333;
  137. margin-bottom: 15rpx;
  138. }
  139. text {
  140. font-size: 26rpx;
  141. font-family: Noto Sans S Chinese;
  142. font-weight: 400;
  143. color: #666666;
  144. }
  145. }
  146. .icon-active {
  147. width: 43rpx;
  148. height: 43rpx;
  149. background: #00B38B;
  150. border-radius: 50%;
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. }
  155. .icon-no-active {
  156. width: 44rpx;
  157. height: 44rpx;
  158. background: #FFFFFF;
  159. border: 1px solid #00B38B;
  160. border-radius: 50%;
  161. }
  162. .edit {
  163. display: flex;
  164. justify-content: center;
  165. align-items: center;
  166. flex-direction: column;
  167. image {
  168. width: 40rpx;
  169. height: 40rpx;
  170. }
  171. view {
  172. font-size: 26rpx;
  173. font-family: Noto Sans S Chinese;
  174. font-weight: 400;
  175. color: #999999;
  176. }
  177. }
  178. }
  179. </style>