金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
2.3 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="输入金额" :showIcon="true" bgColor="#fff"></lf-nav>
  4. <view class="centent">
  5. <view class="card">
  6. <view class="lf-font-28 lf-color-222">输入金额</view>
  7. <view class="list money-list">
  8. <view class="lf-flex">
  9. <view class="symbol"></view>
  10. <input class="input" type="number" v-model="money" />
  11. </view>
  12. <view class="clear" v-if="money.length" @click="money = ''">
  13. <text class="lf-iconfont icon-cuo1"></text>
  14. </view>
  15. </view>
  16. </view>
  17. <button class="confirm" hover-class="lf-opacity" @click="confirm">确认</button>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data(){
  24. return {
  25. money: ''
  26. }
  27. },
  28. onLoad(){
  29. },
  30. methods: {
  31. confirm(){
  32. this.$url('/pages/business/payment/wait', {type: 'redirect'})
  33. }
  34. }
  35. }
  36. </script>
  37. <style>
  38. page{
  39. background-color: #F8F8F8;
  40. }
  41. </style>
  42. <style lang="scss" scoped="scoped">
  43. .centent{
  44. padding: 30rpx 32rpx;
  45. .card{
  46. padding: 30rpx;
  47. box-sizing: border-box;
  48. width: 686rpx;
  49. height: max-content;
  50. background: #FFFFFF;
  51. border-radius: 20rpx;
  52. .list{
  53. height: 90rpx;
  54. width: 100%;
  55. border-bottom: 1rpx solid #e5e5e5;
  56. display: flex;
  57. justify-content: space-between;
  58. align-items: center;
  59. margin-top: 10rpx;
  60. .input{
  61. width: 540rpx;
  62. height: 80rpx;
  63. font-size: 28rpx;
  64. }
  65. .input-code{
  66. width: 430rpx;
  67. }
  68. .clear{
  69. padding: 20rpx;
  70. }
  71. .code{
  72. min-width: 180rpx;
  73. max-width: 220rpx;
  74. height: 64rpx;
  75. padding: 0 4rpx;
  76. font-size: 24rpx;
  77. color: #15716E;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. border-radius: 32rpx;
  82. border: 2rpx solid #15716E;
  83. }
  84. .active-bg{
  85. background: #efefef;
  86. }
  87. .symbol{
  88. width: 30rpx;
  89. height: 90rpx;
  90. font-size: 36rpx;
  91. color: #222222;
  92. display: flex;
  93. align-items: flex-end;
  94. }
  95. }
  96. .money-list{
  97. height: 140rpx;
  98. .input{
  99. width: 500rpx;
  100. height: 130rpx;
  101. font-size: 72rpx;
  102. font-weight: bold;
  103. margin-left: 20rpx;
  104. }
  105. }
  106. }
  107. .confirm{
  108. width: 550rpx;
  109. height: 100rpx;
  110. background: #0D2E9A;
  111. border-radius: 50rpx;
  112. color: #FFFFFF;
  113. line-height: 100rpx;
  114. margin-top: 60rpx;
  115. font-size: 32rpx;
  116. }
  117. }
  118. </style>