joinpayMchCheck.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view class="content">
  3. <view class="body user-insert">账号:{{joinpayMchCheck.userName}}</view>
  4. <form >
  5. <view class="body user-insert-line">旧银行卡号:{{oldJoinpayMchCheck.bankAccountNo}}</view>
  6. <view class="body user-insert-line">旧银行账户名:{{oldJoinpayMchCheck.bankAccountName}}</view>
  7. <view class="body user-insert-line">旧法人姓名:{{oldJoinpayMchCheck.legalPerson}}</view>
  8. <view class="body user-insert-line">旧身份证:{{oldJoinpayMchCheck.idCardNo}}</view>
  9. <view class="body user-insert-line">旧银联号:{{oldJoinpayMchCheck.bankChannelNo}}</view></br>
  10. <!-- <view class="body user-insert-line">旧提交时间:{{oldJoinpayMchCheck.createDate}}</view> -->
  11. </form>
  12. <view class="body user-insert">-------------------------------</view>
  13. <form >
  14. <view class="body user-insert-line">新银行卡号:{{joinpayMchCheck.bankAccountNo}}</view>
  15. <view class="body user-insert-line">新银行账户名:{{joinpayMchCheck.bankAccountName}}</view>
  16. <view class="body user-insert-line">新法人姓名:{{joinpayMchCheck.legalPerson}}</view>
  17. <view class="body user-insert-line">新身份证:{{joinpayMchCheck.idCardNo}}</view>
  18. <view class="body user-insert-line">新银联号:{{joinpayMchCheck.bankChannelNo}}</view>
  19. <view class="body user-insert-line">提交时间:{{joinpayMchCheck.createDate}}</view>
  20. <view class="btn-area">
  21. <button type="primary" @click="agree(joinpayMchCheck.id)" style="margin-right: 20px;" >通过</button>
  22. <button type="primary" @click="unagree(joinpayMchCheck.id)" >撤销</button>
  23. </view>
  24. </form>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data(){
  30. return{
  31. oldJoinpayMchCheck:{},
  32. joinpayMchCheck:{}
  33. }
  34. },
  35. onLoad: function(option) {
  36. const joinpayMchCheck = JSON.parse(decodeURIComponent(option.joinpayMchCheck));
  37. this.joinpayMchCheck = joinpayMchCheck;
  38. this.getOldJoinpayMch(joinpayMchCheck.adminId);
  39. },
  40. onShow() {
  41. },
  42. methods: {
  43. getOldJoinpayMch(adminId){
  44. var token = uni.getStorageSync("token");
  45. // var globalUser = uni.getStorageSync("globalUser");
  46. uni.request({
  47. url: this.serverurl + '/TJoinpayMch/getMch',
  48. data: {
  49. "adminId": adminId,
  50. },
  51. header: {
  52. 'token': token
  53. },
  54. method: "POST",
  55. success: (res) => {
  56. var date = res.data.data;
  57. this.oldJoinpayMchCheck = date;
  58. },
  59. });
  60. },
  61. agree(id){
  62. var that = this;
  63. uni.showModal({
  64. title: '提示',
  65. content: '是否通过?',
  66. success: function(res) {
  67. if (res.confirm) {
  68. var token = uni.getStorageSync("token");
  69. uni.request({
  70. url: that.serverurl + '/TJoinpayMchCheck/agree?id=' + id,
  71. header: {
  72. 'token': token
  73. },
  74. method: "GET",
  75. success: (res) => {
  76. uni.showToast({
  77. title: res.data.message,
  78. duration: 2000
  79. });
  80. },
  81. });
  82. } else if (res.cancel) {}
  83. }
  84. });
  85. },
  86. unagree(id){
  87. var that = this;
  88. uni.showModal({
  89. title: '提示',
  90. content: '是否不通过?',
  91. success: function(res) {
  92. if (res.confirm) {
  93. var token = uni.getStorageSync("token");
  94. uni.request({
  95. url: that.serverurl + '/TJoinpayMchCheck/unagree?id=' + id,
  96. header: {
  97. 'token': token
  98. },
  99. method: "GET",
  100. success: (res) => {
  101. uni.showToast({
  102. title: res.data.message,
  103. duration: 2000
  104. });
  105. },
  106. });
  107. } else if (res.cancel) {}
  108. }
  109. });
  110. }
  111. }
  112. }
  113. </script>
  114. <style>
  115. .content{
  116. padding-top:20upx;
  117. margin-left:20upx;
  118. }
  119. .body {
  120. background-color: #FFFFFF;
  121. padding: 10upx 20upx 10upx 20upx;
  122. display: flex;
  123. flex-direction: row;
  124. justify-content: flex-start;
  125. }
  126. .input {
  127. /* padding: 10upx 20upx 10upx 0upx; */
  128. padding-left: 20upx;
  129. padding-top: 10upx;
  130. background-color: #FFFFFF;
  131. width: 500upx;
  132. height: 50upx;
  133. box-shadow: 0upx 0upx 20upx #D3D3D3;
  134. border-radius: 5upx;
  135. }
  136. .button {
  137. margin: 0 auto;
  138. display: inline-block;
  139. }
  140. button[type=primary] {
  141. background-color: #007aff;
  142. color: #fff;
  143. display: inline-block;
  144. }
  145. .btn-area{
  146. padding-top:60upx;
  147. margin: 0 auto;
  148. width: 50%;
  149. }
  150. .user-insert-line {
  151. width: 500upx;
  152. height: 23px;
  153. border-bottom:solid black 1px;
  154. margin: 0 auto;
  155. }
  156. .user-insert{
  157. width: 400upx;
  158. margin: 0 auto;
  159. }
  160. view{
  161. font-size: 30rpx;
  162. }
  163. </style>