activityEdit.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <view>
  3. <view v-if="stepOne">
  4. <view class="form">
  5. <view class="form-title">基本信息</view>
  6. <view class="form-item-title">封面图</view>
  7. <view class="upload-pic ddflex" v-if="true">
  8. <image src="../static/images/pic.png"></image>
  9. <view style="margin-top: 30rpx;">上传封面图</view>
  10. </view>
  11. <image v-else class="upload-image" src="../../static/images/lj_img.png"></image>
  12. <view class="form-limit">* 图片尺寸限制:680*350</view>
  13. <view class="form-item-title">活动详情轮播图</view>
  14. <view class="ddflex" style="margin-top: 30rpx;">
  15. <view class="upload-photo-image" v-for="item in 3">
  16. <image src="/static/images/lj_img.png"></image>
  17. <image class="upload-photo-close" src="/static/pages/images/close3.png"></image>
  18. </view>
  19. <view class="upload-photo ddflex">
  20. <image src="../static/images/photo.png"></image>
  21. </view>
  22. </view>
  23. <view class="form-limit">* 图片尺寸限制:670*350</view>
  24. </view>
  25. <view class="form-border"></view>
  26. <view class="form">
  27. <view class="form-item-title">活动标题</view>
  28. <view class="form-input-box">
  29. <input placeholder-class="form-input-placeholder" placeholder="请输入活动标题"/>
  30. </view>
  31. <view class="form-item-title">活动说明</view>
  32. <view class="form-input-box">
  33. <input placeholder-class="form-input-placeholder" placeholder="请填写活动简介说明"/>
  34. </view>
  35. <view class="form-item-title">
  36. 活动详情
  37. <view class="more ddflex">
  38. 编辑
  39. <image src="../../static/pages/images/more.png"></image>
  40. </view>
  41. </view>
  42. <view class="next-btn">下一步</view>
  43. </view>
  44. </view>
  45. <!-- 第二步 -->
  46. <view v-if="stepTwo">
  47. <view class="form">
  48. <view class="form-title">报名设置</view>
  49. <view class="form-item-title">最大报名人数</view>
  50. <view class="form-number-select ddflex">
  51. <view>-</view>
  52. <input type="number" placeholder="最大报名人数" placeholder-class="form-input-placeholder"/>
  53. <view>+</view>
  54. </view>
  55. <view class="form-item-title">报名时间</view>
  56. <view class="ddflex" style="margin-top: 20rpx;">
  57. <picker mode="date" class="flex">
  58. <view class="form-date-select">
  59. 开始日期
  60. </view>
  61. </picker>
  62. <text style="margin: 0 20rpx;">至</text>
  63. <picker mode="date" class="flex">
  64. <view class="form-date-select">
  65. 结束日期
  66. </view>
  67. </picker>
  68. </view>
  69. <view class="form-item-title">活动时间</view>
  70. <view class="ddflex" style="margin-top: 20rpx;">
  71. <picker mode="date" class="flex">
  72. <view class="form-date-select">
  73. 开始日期
  74. </view>
  75. </picker>
  76. <text style="margin: 0 20rpx;">至</text>
  77. <picker mode="date" class="flex">
  78. <view class="form-date-select">
  79. 结束日期
  80. </view>
  81. </picker>
  82. </view>
  83. </view>
  84. <view class="form-border"></view>
  85. <view class="form">
  86. <view class="form-title">活动地址</view>
  87. <view class="form-item-title">地址名称</view>
  88. <view class="form-input-box">
  89. <input placeholder-class="form-input-placeholder" placeholder="请输入活动地址简称"/>
  90. </view>
  91. <view class="form-item-title">选择城市</view>
  92. <view class="form-input-box">
  93. <input placeholder-class="form-input-placeholder" placeholder="请选择活动所在城市"/>
  94. </view>
  95. <view class="form-item-title">
  96. 详细地址
  97. </view>
  98. <view class="form-input-box">
  99. <input placeholder-class="form-input-placeholder" placeholder="请输入详细地址"/>
  100. </view>
  101. <view class="next-btn">提交</view>
  102. </view>
  103. </view>
  104. </view>
  105. </template>
  106. <script>
  107. const app = getApp();
  108. const req = require("../../utils/request.js");
  109. export default {
  110. components: {},
  111. props: {},
  112. data() {
  113. return {
  114. stepOne:false,
  115. stepTwo:true
  116. }
  117. },
  118. onLoad(options) {
  119. },
  120. onShow() {
  121. },
  122. methods: {
  123. },
  124. mounted() {
  125. }
  126. }
  127. </script>
  128. <style>
  129. @import "./activityEdit.css";
  130. </style>