detail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="container page-bg">
  3. <view class="back-container">
  4. <navigator url="/pages/index/index">
  5. <uni-icons type="back" size="40" color="#FFFFFF"></uni-icons>
  6. </navigator>
  7. </view>
  8. <view class="edit-container">
  9. <view class="input-item">
  10. <view class="input-title">任务名称</view>
  11. <input class="input-box" placeholder="请输入任务名称" />
  12. </view>
  13. <view class="input-item">
  14. <view class="input-title">奖励倍数</view>
  15. <input class="input-box" type="number" placeholder="请输入任务倍数" />
  16. </view>
  17. <view class="switch-item">
  18. <view class="input-title">周末双倍</view>
  19. <switch class="input-switch"/>
  20. </view>
  21. <view class="switch-item">
  22. <view class="input-title">全勤奖励</view>
  23. <switch class="input-switch"/>
  24. </view>
  25. <view class="btn-container">
  26. <view class="cancel-btn">取消</view>
  27. <view class="save-btn">保存</view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script setup>
  33. </script>
  34. <style lang="scss" scoped>
  35. .container {
  36. width: 100vw;
  37. height: 100vh;
  38. padding: 16rpx;
  39. .back-container {
  40. left: 16rpx;
  41. top: 39px;
  42. width: 90rpx;
  43. height: 90rpx;
  44. border-radius: 50%;
  45. background-color: rgba(0, 0, 0, 0.1);
  46. display: flex;
  47. justify-content: center;
  48. align-items: center;
  49. }
  50. .edit-container {
  51. margin-top: 32rpx;
  52. width: 100%;
  53. .input-item {
  54. margin-top: 30rpx;
  55. width: 100%;
  56. .input-title {
  57. font-size: 36rpx;
  58. font-weight: 400;
  59. letter-spacing: 0rpx;
  60. line-height: 52.13rpx;
  61. color: rgba(0, 0, 0, 1);
  62. }
  63. .input-box {
  64. box-sizing: border-box;
  65. margin-top: 10rpx;
  66. width: 100%;
  67. height: 65rpx;
  68. padding: 10rpx 10rpx;
  69. border-radius: 5rpx;
  70. background: #FFFFFF;
  71. }
  72. }
  73. .switch-item {
  74. margin-top: 30rpx;
  75. display: flex;
  76. align-items: center;
  77. .input-title {
  78. font-size: 36rpx;
  79. font-weight: 400;
  80. letter-spacing: 0rpx;
  81. line-height: 52.13rpx;
  82. color: rgba(0, 0, 0, 1);
  83. }
  84. .input-switch {
  85. position: absolute;
  86. right: 0rpx;
  87. }
  88. }
  89. }
  90. .btn-container {
  91. position: absolute;
  92. bottom: 44rpx;
  93. left: 0rpx;
  94. width: 100%;
  95. display: grid;
  96. grid-template-columns: 1fr 1fr;
  97. place-items: center;
  98. .cancel-btn {
  99. width: 298rpx;
  100. height: 67rpx;
  101. border-radius: 30rpx;
  102. background: #E5E5E5;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. font-size: 36rpx;
  107. font-weight: 400;
  108. letter-spacing: 0rpx;
  109. line-height: 52.13rpx;
  110. color: #FFFFFF;
  111. }
  112. .save-btn {
  113. width: 298rpx;
  114. height: 67rpx;
  115. border-radius: 30rpx;
  116. background: #2A82E4;
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. font-size: 36rpx;
  121. font-weight: 400;
  122. letter-spacing: 0rpx;
  123. line-height: 52.13rpx;
  124. color: #FFFFFF;
  125. }
  126. }
  127. }
  128. </style>