candy.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="center">
  3. <view class="content-money">
  4. <view class="buttom">
  5. <text class="text">可兑换积分</text>
  6. <view class="icon"><text>¥</text>{{ money }}</view>
  7. </view>
  8. <view class="interval"></view>
  9. <view class="buttom">
  10. <text class="text">申请兑换糖果</text>
  11. <view class=" icon"><input class="input" type="number" v-model="withdrawal" placeholder="申请兑换糖果数量" placeholder-class="placeholder" /></view>
  12. </view>
  13. <view class="interval"></view>
  14. <view class="tip">
  15. <view class=" tip-icon" @click="all()">全部转换</view>
  16. </view>
  17. </view>
  18. <view class="code">
  19. </view>
  20. <view class="btn">
  21. 提交申请
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data(){
  28. return{
  29. money: 1000,
  30. withdrawal:'',
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. page,.center {
  37. height: 100%;
  38. background: #FFFFFF;
  39. }
  40. .content-money {
  41. padding: 0 20rpx;
  42. background-color: #ffffff;
  43. .buttom {
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. height: 110rpx;
  48. }
  49. .interval {
  50. width: 100%;
  51. height: 1px;
  52. background: #E6E6E6;
  53. }
  54. .icon {
  55. font-size: 48rpx;
  56. font-family: SourceHanSansCN;
  57. font-weight: 500;
  58. color: #333333;
  59. text{
  60. font-size: 32rpx;
  61. }
  62. .input {
  63. text-align: right;
  64. flex: 1;
  65. font-size: 30rpx;
  66. color: $font-color-dark;
  67. }
  68. .iconlocation {
  69. text-align: right;
  70. font-size: 36rpx;
  71. color: $font-color-light;
  72. }
  73. }
  74. .text {
  75. font-size: 32rpx;
  76. font-family: PingFang SC;
  77. font-weight: 500;
  78. color: #333333;
  79. }
  80. .tip {
  81. height: 74rpx;
  82. display: flex;
  83. justify-content: flex-end;
  84. align-items: center;
  85. .tip-text {
  86. font-size: 24rpx;
  87. font-family: PingFang SC;
  88. font-weight: 500;
  89. color: #999999;
  90. }
  91. .tip-icon {
  92. font-size: 26rpx;
  93. font-family: SourceHanSansCN;
  94. font-weight: 400;
  95. color: #EF041F;
  96. }
  97. }
  98. }
  99. .btn {
  100. text-align: center;
  101. margin: 134rpx auto;
  102. width: 670rpx;
  103. height: 88rpx;
  104. background: linear-gradient(0deg, #2E58FF, #32C6FF);
  105. border-radius: 10px;
  106. text-align: center;
  107. line-height: 88rpx;
  108. font-size: 32rpx;
  109. font-family: SourceHanSansCN;
  110. font-weight: 500;
  111. color: #FEFEFE;
  112. }
  113. .code {
  114. width: 750rpx;
  115. height: 20rpx;
  116. background: #F7F7F7;
  117. }
  118. </style>