addnewacpt.vue 5.0 KB

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