addnewdrawer.vue 4.4 KB

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