transfers.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <view class="top-num">{{ jf }}</view>
  5. <view class="top-font">可转账购物积分</view>
  6. </view>
  7. <view class="main">
  8. <view class="main-font">收款人账户</view>
  9. <input class="main-input" type="text" v-model="uid" placeholder="请输入收款人账户" placeholder-class="main-input" />
  10. </view>
  11. <view class="main">
  12. <view class="main-font">转账数量</view>
  13. <input class="main-input" type="number" v-model="num > jf ? jf : num" placeholder="请输入转账数量" placeholder-class="main-input" />
  14. </view>
  15. <view class="btn" @click="submit">
  16. 提交申请
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. uid: '', //收款人账户
  25. num: '' //转账数量
  26. };
  27. },
  28. computed: {
  29. //可转账购物积分
  30. jf() {
  31. return this.$store.state.user.userInfo.integral
  32. }
  33. },
  34. methods: {
  35. //提交申请
  36. submit() {
  37. }
  38. }
  39. };
  40. </script>
  41. <style lang="scss">
  42. page,
  43. .center {
  44. background: #f2f3f5;
  45. height: 100%;
  46. }
  47. .top {
  48. margin-top: 20rpx;
  49. background: #ffffff;
  50. padding: 30rpx 0;
  51. text-align: center;
  52. .top-num {
  53. font-size: 42rpx;
  54. font-family: PingFang SC;
  55. font-weight: bold;
  56. color: #333333;
  57. }
  58. .top-font {
  59. font-size: 28rpx;
  60. font-family: PingFang SC;
  61. font-weight: 500;
  62. color: #666666;
  63. }
  64. }
  65. .main {
  66. padding: 36rpx 24rpx;
  67. background-color: #ffffff;
  68. margin-top: 20rpx;
  69. .main-font {
  70. font-size: 30rpx;
  71. font-family: PingFang SC;
  72. font-weight: 400;
  73. color: #333333;
  74. }
  75. .main-input {
  76. margin-top: 10rpx;
  77. font-size: 28rpx;
  78. font-family: PingFang SC;
  79. font-weight: 400;
  80. color: #999999;
  81. line-height: 110px;
  82. }
  83. }
  84. .btn {
  85. text-align: center;
  86. margin: 120rpx auto;
  87. width: 670rpx;
  88. height: 88rpx;
  89. background: linear-gradient(0deg, #2E58FF, #32C6FF);
  90. border-radius: 10px;
  91. text-align: center;
  92. line-height: 88rpx;
  93. font-size: 32rpx;
  94. font-family: SourceHanSansCN;
  95. font-weight: 500;
  96. color: #FEFEFE;
  97. }
  98. </style>