timeSlotTiming.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <template>
  2. <view>
  3. <u-navbar title="时间段定时" title-color="#101010">
  4. <view slot="right" @click="deleteShow=true">
  5. <img src="@/assets/img/riLine-check-line 1.svg" alt="" />
  6. </view>
  7. </u-navbar>
  8. <view class="time-group">
  9. <view class="time-item" @click="typeShow=true" >
  10. <view class="time">
  11. <view class="time-slot">
  12. 重复
  13. </view>
  14. <view class="type">
  15. 执行一次
  16. </view>
  17. </view>
  18. <view class="more">
  19. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  20. </view>
  21. </view>
  22. <view class="time-item" @click="pickerShow=true">
  23. <view class="time">
  24. <view class="time-slot">
  25. 定时开启
  26. </view>
  27. <view class="type">
  28. 未设置
  29. </view>
  30. </view>
  31. <view class="more">
  32. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  33. </view>
  34. </view>
  35. <view class="time-item" @click="pickerShow=true">
  36. <view class="time">
  37. <view class="time-slot">
  38. 定时关闭
  39. </view>
  40. <view class="type">
  41. 未设置
  42. </view>
  43. </view>
  44. <view class="more">
  45. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 重复类型 -->
  50. <view class="repeatType" v-if="typeShow" >
  51. <u-popup v-model="typeShow" mode="bottom" >
  52. <view>
  53. <view class="headline">
  54. 重复类型
  55. </view>
  56. <view class="type-group">
  57. <view class="item">
  58. <view class="item-title item-title-checked">
  59. 执行一次
  60. </view>
  61. <view class="item-icon">
  62. <img src="@/assets/img/riLine-check-line.svg" alt="" />
  63. </view>
  64. </view>
  65. <view class="item">
  66. <view class="item-title">
  67. 每天
  68. </view>
  69. <view class="item-icon">
  70. <img src="" alt="" />
  71. </view>
  72. </view>
  73. <view class="item" @click="customPopup=true" >
  74. <view class="item-title">
  75. 自定义
  76. </view>
  77. <view class="item-icon">
  78. <img src="" alt="" />
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </u-popup>
  84. </view>
  85. <!-- 关闭时间 -->
  86. <ujpPicker mode="time" v-model="pickerShow" :params="params"></ujpPicker>
  87. <!-- 自定义重复 -->
  88. <u-popup v-model="customPopup" mode="bottom" >
  89. <view class="custom">
  90. <view class="headline">
  91. 自定义重复
  92. </view>
  93. <view class="radio-group">
  94. <view class="radio-item">
  95. <view class="item-title">
  96. 周一
  97. </view>
  98. <view class="item-value">
  99. <label class="radio">
  100. <radio value="" /><text></text>
  101. </label>
  102. </view>
  103. </view>
  104. <view class="radio-item">
  105. <view class="item-title">
  106. 周二
  107. </view>
  108. <view class="item-value">
  109. <label class="radio">
  110. <radio value="" /><text></text>
  111. </label>
  112. </view>
  113. </view>
  114. <view class="radio-item">
  115. <view class="item-title">
  116. 周三
  117. </view>
  118. <view class="item-value">
  119. <label class="radio">
  120. <radio value="" /><text></text>
  121. </label>
  122. </view>
  123. </view>
  124. <view class="radio-item">
  125. <view class="item-title">
  126. 周四
  127. </view>
  128. <view class="item-value">
  129. <label class="radio">
  130. <radio value="" /><text></text>
  131. </label>
  132. </view>
  133. </view>
  134. <view class="radio-item">
  135. <view class="item-title">
  136. 周五
  137. </view>
  138. <view class="item-value">
  139. <label class="radio">
  140. <radio value="" /><text></text>
  141. </label>
  142. </view>
  143. </view>
  144. <view class="radio-item">
  145. <view class="item-title">
  146. 周六
  147. </view>
  148. <view class="item-value">
  149. <label class="radio">
  150. <radio value="" /><text></text>
  151. </label>
  152. </view>
  153. </view>
  154. <view class="radio-item">
  155. <view class="item-title">
  156. 周日
  157. </view>
  158. <view class="item-value">
  159. <label class="radio">
  160. <radio value="" /><text></text>
  161. </label>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="btn-group">
  166. <view class="btn cancel">
  167. 取消
  168. </view>
  169. <view class="btn confirm">
  170. 确认
  171. </view>
  172. </view>
  173. </view>
  174. </u-popup>
  175. </view>
  176. </template>
  177. <script>
  178. import ujpPicker from '@/components/u-picker.vue'
  179. export default {
  180. components: {
  181. ujpPicker
  182. },
  183. data() {
  184. return {
  185. typeShow:true,
  186. pickerShow :false,
  187. typeShow:false,
  188. customPopup:false,
  189. params: {
  190. year: false,
  191. month: false,
  192. day: false,
  193. hour: true,
  194. minute: true,
  195. second: false,
  196. },
  197. }
  198. },
  199. methods: {
  200. }
  201. }
  202. </script>
  203. <style lang="scss" scoped>
  204. /deep/.u-slot-right {
  205. margin-right: 32rpx;
  206. img {
  207. width: 48rpx;
  208. height: 48rpx;
  209. }
  210. }
  211. .time-group {
  212. background-color: #fff;
  213. .time-item {
  214. padding: 24rpx 0;
  215. margin: 0 32rpx;
  216. display: flex;
  217. justify-content: space-between;
  218. align-items: center;
  219. border-bottom: 1px solid rgba(221, 221, 221, 1);
  220. .time {
  221. .time-slot {
  222. color: rgba(16, 16, 16, 1);
  223. font-size: 32rpx;
  224. }
  225. .type {
  226. color: rgba(119, 119, 119, 1);
  227. }
  228. }
  229. }
  230. .time-item:last-of-type {
  231. border: none;
  232. }
  233. }
  234. // 重复类型
  235. .repeatType{
  236. .headline{
  237. color: rgba(16,16,16,1);
  238. font-size: 36rpx;
  239. margin-top: 32rpx;
  240. font-weight: bold;
  241. text-align: center;
  242. }
  243. .type-group{
  244. padding: 32rpx;
  245. .item{
  246. display: flex;
  247. align-items: center;
  248. justify-content: space-between;
  249. height: 96rpx;
  250. line-height: 96rpx;
  251. }
  252. .item-title{
  253. color: rgb(16,16,16);
  254. font-size: 32rpx;
  255. }
  256. .item-title-checked{
  257. color: rgba(22,119,255,1);
  258. }
  259. }
  260. }
  261. // 自定义重复
  262. .custom{
  263. padding: 32rpx;
  264. .headline{
  265. color: rgba(16,16,16,1);
  266. font-size: 36rpx;
  267. margin-bottom: 32rpx;
  268. font-weight: bold;
  269. text-align: center;
  270. }
  271. .radio-group{
  272. .radio-item{
  273. display: flex;
  274. align-items: center;
  275. justify-content: space-between;
  276. height: 96rpx;
  277. line-height: 96rpx;
  278. .item-title{
  279. color: rgba(16,16,16,1);
  280. font-size: 32rpx;
  281. }
  282. }
  283. }
  284. .btn-group{
  285. display: flex;
  286. align-items: center;
  287. justify-content: space-between;
  288. .btn{
  289. width: 328rpx;
  290. height: 80rpx;
  291. line-height: 80rpx;
  292. font-size: 32rpx;
  293. border-radius: 4px;
  294. text-align: center;
  295. margin-top: 24rpx;
  296. }
  297. .cancel{
  298. background-color: rgba(222,225,228,1);
  299. color: rgba(51,51,51,1);
  300. }
  301. .confirm{
  302. background-color: rgba(22,119,255,1);
  303. color: rgba(255,255,255,1);
  304. }
  305. }
  306. }
  307. /deep/.u-drawer-content-visible{
  308. border-radius: 12px 12px 0 0 ;
  309. }
  310. </style>