transfers.vue 1.9 KB

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