coupon.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="app-content">
  3. <div class="module-com flex-center-between switch-blo">
  4. <div class="app-size-32">开启自动涨价</div>
  5. <div>
  6. <switch checked @change="switchChangeFn" />
  7. </div>
  8. </div>
  9. <div class="module-com new_wrap">
  10. <div class="module-det">
  11. <div>
  12. <span>新人注册会员赠送</span>
  13. <input type="text" class="setting-inp" />
  14. <span>元优惠券,满</span>
  15. <input type="text" class="setting-inp" />
  16. </div>
  17. <div>
  18. <span>元可以使用,</span>
  19. <input type="text" class="setting-inp" />
  20. <span>天内有效。</span>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="prompt-text">提示:在节日的前一天和当天, 商城设置自动涨价的商品将会全部 统一涨价。过后自动恢复原价。</div>
  25. <div class="admin-button-com blue big">确定</div>
  26. </div>
  27. </template>
  28. <script>
  29. export default {
  30. name: 'setting-coupon',
  31. data() {
  32. return {}
  33. },
  34. methods: {
  35. switchChangeFn(e) {
  36. console.log('switch1 发生 change 事件,携带值为', e.target.value)
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .prompt-text {
  43. color: $fontColor3;
  44. padding-bottom: 20px;
  45. padding-left: 30px;
  46. }
  47. .module-com {
  48. margin-bottom: 20px;
  49. padding: 30px;
  50. background-color: #fff;
  51. color: $fontColor2;
  52. .module-tit {
  53. font-size: 28px;
  54. }
  55. }
  56. .admin-button-com {
  57. width: calc(100% - 100px);
  58. margin: 60px 30px 0;
  59. }
  60. .switch-blo {
  61. padding: 15px 30px;
  62. }
  63. .new_wrap {
  64. .module-det {
  65. color: $fontColor2;
  66. font-size: 28px;
  67. & > div {
  68. @include disFlex(center, flex-start);
  69. flex-wrap: wrap;
  70. margin-bottom: 20px;
  71. &:last-child {
  72. margin-bottom: 0;
  73. }
  74. }
  75. .setting-inp {
  76. width: 120px;
  77. height: 70px;
  78. border: 2px solid $borderColor;
  79. border-radius: 10px;
  80. margin: 0 16px;
  81. text-align: center;
  82. &:first-child {
  83. margin-left: 0;
  84. }
  85. &:last-child {
  86. margin-right: 0;
  87. }
  88. }
  89. }
  90. }
  91. </style>