appointment.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="appointment">
  3. <view class="appointment-top">
  4. <view class="button">
  5. 自动预约
  6. <u-switch v-model="checked" active-color="#44969D" inactive-color="#eee"></u-switch>
  7. </view>
  8. <view class="setting">
  9. 每轮抢购设置
  10. <view class="select">
  11. 每期最大预约份数
  12. <view class="select-img">
  13. <image src="../../static/img/appointment1.png" mode=""></image>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="appointment-between">
  19. 开启后讲自动预约,默认最大份额预约。可设置自定义预约份额。
  20. 可开启自动预约
  21. </view>
  22. <view class="commit">
  23. 提交修改
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. // import uSwitch from
  29. export default {
  30. data() {
  31. return {
  32. checked: false
  33. };
  34. },
  35. methods: {
  36. //switch打开或者关闭时触发,值为true或者false
  37. //即使不监听此事件,this.checked此时也会相应的变成true或者false
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. .appointment {
  43. width: 100%;
  44. height: 100%;
  45. margin: 0;
  46. padding: 0;
  47. padding: 0 30rpx;
  48. .appointment-top {
  49. width: 690rpx;
  50. height: 200rpx;
  51. padding: 0 30rpx;
  52. background: #FFFFFF;
  53. border-radius: 20rpx;
  54. margin: 25rpx auto;
  55. .button {
  56. border-bottom:2rpx solid #ECECEC;
  57. padding: 20rpx 0;
  58. display: flex;
  59. justify-content: space-between;
  60. align-items: center;
  61. font-size: 28rpx;
  62. font-family: PingFang SC;
  63. font-weight: 500;
  64. color: #0F253A;
  65. line-height: 42rpx;
  66. }
  67. .setting {
  68. padding: 30rpx 0;
  69. display: flex;
  70. justify-content: space-between;
  71. align-items: center;
  72. font-size: 28rpx;
  73. font-family: PingFang SC;
  74. font-weight: 500;
  75. color: #0F253A;
  76. line-height: 42rpx;
  77. .select {
  78. display: flex;
  79. font-size: 18rpx;
  80. font-family: PingFang SC;
  81. font-weight: 500;
  82. color: #44969D;
  83. line-height: 42rpx;
  84. border: 1px solid #44969D;
  85. border-radius: 1rpx;
  86. .select-img {
  87. width: 40rpx;
  88. height: 48rpx;
  89. background: #44969D;
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. image {
  94. width: 22rpx;
  95. height: 11rpx;
  96. }
  97. }
  98. }
  99. }
  100. }
  101. .appointment-between {
  102. margin: 50rpx 25rpx 0 25rpx;
  103. font-size: 24rpx;
  104. font-family: PingFang SC;
  105. font-weight: 500;
  106. color: #6D7C88;
  107. line-height: 30rpx;
  108. }
  109. .commit {
  110. margin-top: 200rpx;
  111. width: 688rpx;
  112. height: 88rpx;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. height: 88rpx;
  117. background: linear-gradient(90deg, #60BAB0, #45969B);
  118. border-radius: 10rpx;
  119. font-size: 36rpx;
  120. font-family: PingFang SC;
  121. font-weight: 500;
  122. color: #FFFFFF;
  123. line-height: 30rpx;
  124. }
  125. }
  126. </style>