helloWorld.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view>
  3. <scroll-view :scroll-y="modalName==null" class="page" :class="modalName!=null?'show':''">
  4. <cu-custom bgColor="bg-gradual-pink" :isBack="true">
  5. <block slot="content">helloWorld</block>
  6. </cu-custom>
  7. <view class="padding flex flex-direction">
  8. <app-select label=" 类 型:" v-model="type" placeholder="请选择类型" :dict="plan_type" space ></app-select>
  9. </view>
  10. <view class="padding flex flex-direction">
  11. <my-date label="开始时间:" v-model="beginTime" placeholder="请选择开始时间" required fields="minute"></my-date>
  12. </view>
  13. <view class="padding flex flex-direction">
  14. <uni-calendar :showMonth="true" :selected="selected" />
  15. </view>
  16. <view class="padding flex flex-direction">
  17. <my-image-upload />
  18. </view>
  19. </scroll-view>
  20. </view>
  21. </template>
  22. <script>
  23. const plan_type = [{text:'日常记录',value:'1'},{text:'本周工作',value:'2'},{text:'下周计划',value:'3'}];
  24. import appSelect from '@/components/my-componets/appSelect.vue'
  25. import myImageUpload from '@/components/my-componets/my-image-upload.vue'
  26. import myDate from '@/components/my-componets/my-date.vue'
  27. export default {
  28. components:{
  29. appSelect,myImageUpload,myDate
  30. },
  31. data() {
  32. return {
  33. modalName: null,
  34. item:{msg:'退出成功'},
  35. plan_type,
  36. type:"1",
  37. selected:[],
  38. beginTime:''
  39. }
  40. },
  41. onLoad: function (option) {
  42. console.log("this.$Route.query",this.$Route.query);
  43. console.log(this.$store)
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style>
  50. </style>