acptdetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template>
  2. <view class="content">
  3. <view class="acountbox">
  4. <view class="inacount">
  5. <text class="acoutitle">承兑人名称</text>
  6. <input type="text" v-model="form.name" class="checkword" placeholder="请输入承兑人名称"
  7. placeholder-style="font-size:30rpx;color:#68625B" />
  8. </view>
  9. <view class="inacount">
  10. <text class="acoutitle">账号</text>
  11. <input type="text" v-model="form.bankAccount" class="checkword" placeholder="请输入账号"
  12. placeholder-style="font-size:30rpx;color:#68625B" />
  13. </view>
  14. <view class="inacount">
  15. <text class="acoutitle">服务费率 </text>
  16. <input type="text" v-model="form.serviceRate" class="checkword" placeholder="请输入服务费率"
  17. placeholder-style="font-size:30rpx;color:#68625B" />
  18. </view>
  19. <view class="inacount">
  20. <text class="acoutitle">利率</text>
  21. <input type="text" v-model="form.interest" class="checkword" placeholder="请输入利率"
  22. placeholder-style="font-size:30rpx;color:#68625B" />
  23. </view>
  24. <view class="inacount">
  25. <text class="acoutitle">开户行名称</text>
  26. <input type="text" v-model="form.bankName" class="checkword" placeholder="请输入开户行名称"
  27. placeholder-style="font-size:30rpx;color:#68625B" />
  28. </view>
  29. </view>
  30. <view class="logininbtn" @click="MakeSure">
  31. <text>确认修改</text>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. let that
  37. export default {
  38. data() {
  39. return {
  40. id:'',
  41. form: {
  42. name: '',
  43. bankAccount:'',
  44. serviceRate:'',
  45. interest:'',
  46. bankName:''
  47. },
  48. }
  49. },
  50. onLoad(o) {
  51. that=this
  52. if(o.id){
  53. this.id=o.id
  54. }
  55. this.init()
  56. },
  57. methods: {
  58. init(){
  59. uni.showLoading()
  60. uni.$u.http.get(`/api/Acceptor/${this.id}`,{
  61. custom: {
  62. auth: true
  63. }
  64. }).then((res) => {
  65. uni.hideLoading()
  66. this.form=res
  67. }).catch((err) => {
  68. uni.hideLoading()
  69. console.log(err)
  70. })
  71. },
  72. MakeSure() {
  73. let form=this.form
  74. form.id=this.id
  75. if (form.name.length == 0) {
  76. that.$toast("请输入出票人的姓名")
  77. return
  78. }
  79. if (form.bankAccount.length == 0) {
  80. that.$toast("请输入出票人的账户")
  81. return
  82. }
  83. if (form.bankName.length == 0) {
  84. that.$toast("请输入开户行名称")
  85. return
  86. }
  87. uni.showModal({
  88. title: '提示',
  89. content: '是否确认修改?',
  90. success: function(res) {
  91. if (res.confirm) {
  92. uni.showLoading()
  93. uni.$u.http.post('/api/Acceptor/update', form, {
  94. custom: {
  95. auth: true
  96. }
  97. }).then((res) => {
  98. uni.hideLoading()
  99. that.$toast("修改成功")
  100. // that.form = res
  101. }).catch((err) => {
  102. uni.hideLoading()
  103. that.$toast(err.msg)
  104. })
  105. }
  106. }
  107. });
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. /* uni.scss */
  114. @import 'uview-ui/theme.scss';
  115. .content {
  116. display: flex;
  117. flex-direction: column;
  118. align-items: center;
  119. justify-content: center;
  120. }
  121. .loginbg {
  122. background-image: url("https://t39.9026.com/web/uploads/thumbs/mall10000/20220629/e01b927c95ee1f05364f5e456f281388.png");
  123. height: 559rpx;
  124. width: 750rpx;
  125. background-size: 100% 100%;
  126. // display: flex;
  127. // align-items: center;
  128. // justify-content: center;
  129. }
  130. .logo {
  131. margin: 0 auto;
  132. height: 200rpx;
  133. width: 200rpx;
  134. margin-left: auto;
  135. margin-right: auto;
  136. margin-bottom: 50rpx;
  137. }
  138. .text-area {
  139. display: flex;
  140. justify-content: center;
  141. }
  142. .title {
  143. font-size: 36rpx;
  144. color: #8f8f94;
  145. }
  146. .logobox {
  147. margin: 0 auto;
  148. margin-top: 212rpx;
  149. width: 269rpx;
  150. height: 191rpx;
  151. // background-color: #F1F1F1;
  152. image {
  153. width: 100%;
  154. height: 100%;
  155. }
  156. }
  157. .checkbox {}
  158. .business {
  159. width: 305rpx;
  160. height: 90rpx;
  161. display: flex;
  162. align-items: center;
  163. justify-content: center;
  164. text-align: center;
  165. // background-color: #D8AB5A;
  166. border-raotherdius: 20rpx;
  167. color: #FFFFFF;
  168. margin-top: 57rpx;
  169. }
  170. .bnesper {
  171. background-size: 100%;
  172. background-image: url("@/static/img/loginbtn4.png");
  173. padding-top: 10rpx;
  174. color: #FFF1D8;
  175. line-height: 90rpx;
  176. }
  177. .applyper {
  178. background-image: url("@/static/img/loginbt1.png");
  179. background-size: 100%;
  180. padding-top: 10rpx;
  181. color: #FFF1D8;
  182. }
  183. .actapp {
  184. background-image: url("@/static/img/loginbtn3.png");
  185. background-size: 100%;
  186. color: #D05C39;
  187. }
  188. .actbnes {
  189. background-image: url("@/static/img/loginbt2.png");
  190. background-size: 100%;
  191. color: #D05C39;
  192. }
  193. .acountbox {
  194. .inacount {
  195. display: flex;
  196. padding: 35rpx 20rpx;
  197. box-sizing: border-box;
  198. width: 690rpx;
  199. margin-top: 40rpx;
  200. background-color: #F6F6F6;
  201. border-radius: 20rpx;
  202. font-size: 30rpx;
  203. color: #1F242A;
  204. input {
  205. width: 360rpx;
  206. }
  207. }
  208. .acoutitle {
  209. font-weight: 600;
  210. }
  211. .checkword {
  212. padding-left: 20rpx;
  213. color: #1F242A;
  214. font-size: 30rpx;
  215. }
  216. }
  217. .otherbt {
  218. width: 606rpx;
  219. display: flex;
  220. justify-content: space-between;
  221. font-size: 24rpx;
  222. padding-top: 30rpx;
  223. }
  224. .regbt {
  225. color: $uni-all-theme;
  226. }
  227. .logininbtn {
  228. margin-top: 80rpx;
  229. width:690rpx;
  230. border-radius: 43rpx;
  231. background: linear-gradient(to right, #FFE1AD,#D8AB5A);
  232. height: 100rpx;
  233. text-align: center;
  234. color: #fff;
  235. line-height: 100rpx;
  236. }
  237. </style>