addnewacpt.vue 4.8 KB

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