addnewacpt.vue 5.3 KB

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