acptdetail.vue 5.5 KB

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