conversion.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class='conversion'>
  3. <view class="list flex_r flex_ac flex_jb mar_t16">
  4. <view class="list_name">需要转化的金额:</view>
  5. <view class="list_text">
  6. <input type="text" v-model="give_num" placeholder="请输入需要转化的金额" placeholder-style="color:#ddd;" />
  7. </view>
  8. </view>
  9. <view class="list flex_r flex_ac flex_jb mar_t16">
  10. <view class="list_name">你将得到的茶宝:</view>
  11. <view class="list_text ">200</view>
  12. </view>
  13. <view class="btn flex_r flex_ac flex_jc" @tap="giveIntegral">立即转化</view>
  14. </div>
  15. </template>
  16. <script>
  17. import { get, post } from '@/request/api.js';
  18. export default {
  19. name: 'conversion',
  20. data () {
  21. return {}
  22. },
  23. onLoad (option) {},
  24. onLaunch () {},
  25. onShow () {},
  26. onHide () {},
  27. methods: {},
  28. computed: {},
  29. watch: {}
  30. }
  31. </script>
  32. <style scoped lang='scss'>
  33. .conversion{
  34. }
  35. // 页面配置
  36. page {
  37. background: #f4f4f4;
  38. }
  39. // 页面配置-end
  40. .list {
  41. width: 100%;
  42. height: 86rpx;
  43. padding: 0 30rpx;
  44. box-sizing: border-box;
  45. background: #fff;
  46. }
  47. .list_text {
  48. flex: 1;
  49. font-family: "SourceHanSansCN-Bold";
  50. text-align: right;
  51. }
  52. .list_name {
  53. flex: 1;
  54. color: #333333;
  55. font-size: 28rpx;
  56. font-family: "SourceHanSansCN-Medium";
  57. font-weight: 500;
  58. }
  59. .list_text input {
  60. font-size: 30rpx;
  61. color: #333;
  62. text-align: right;
  63. font-weight: bold;
  64. // margin-left: 20rpx;
  65. }
  66. .list_text text {
  67. font-family: "SourceHanSansCN-Medium";
  68. font-size: 36rpx;
  69. font-weight: bold;
  70. color: #17bb87;
  71. }
  72. .btn {
  73. width: 689rpx;
  74. height: 92rpx;
  75. background: #17bb87;
  76. color: #fff;
  77. font-size: 42rpx;
  78. font-family: "SourceHanSansCN-Medium";
  79. font-weight: 500;
  80. margin: 132rpx auto 0;
  81. border-radius: 10rpx;
  82. }
  83. </style>