publish.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="publish">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="" style="background-color: #ffffff;">
  5. <input class="title" placeholder="活动标题" />
  6. <textarea class="text" placeholder="请输入内容"></textarea>
  7. <template>
  8. <u-upload>
  9. <view class="addPhoto">
  10. <image src="../../static/publish/photo.png" mode="aspectFill"></image>
  11. <view class="photo">添加图片</view>
  12. <view class="num">(0/9)</view>
  13. </view>
  14. </u-upload>
  15. </template>
  16. <view class="userOptionsBox">
  17. <view class="optionsItemBox">
  18. <view class="optionItem">
  19. <view class="option_left">
  20. <text class="option_text">
  21. 招募人数
  22. </text>
  23. </view>
  24. <view class="option_right">
  25. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  26. </view>
  27. </view>
  28. <view class="optionItem">
  29. <view class="option_left">
  30. <text class="option_text">
  31. 活动形式
  32. </text>
  33. </view>
  34. <view class="option_right">
  35. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  36. </view>
  37. </view>
  38. <view class="optionItem">
  39. <view class="option_left">
  40. <text class="option_text">
  41. 活动地址
  42. </text>
  43. </view>
  44. <view class="option_right">
  45. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  46. </view>
  47. </view>
  48. <view class="optionItem">
  49. <view class="option_left">
  50. <text class="option_text">
  51. 活动时间
  52. </text>
  53. </view>
  54. <view class="option_right">
  55. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  56. </view>
  57. </view>
  58. <view class="optionItem">
  59. <view class="option_left">
  60. <text class="option_text">
  61. 活动费用
  62. </text>
  63. </view>
  64. <view class="option_right">
  65. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  66. </view>
  67. </view>
  68. <view class="optionItem">
  69. <view class="option_left">
  70. <text class="option_text">
  71. 报名截止
  72. </text>
  73. </view>
  74. <view class="option_right">
  75. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="publish_now">
  82. <button class="btn">立即发布</button>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. data() {
  89. return {
  90. navBarData:{
  91. title:'发布', //导航栏标题
  92. btn:1 //是否显示返回按钮 0不显示 1 显示
  93. },
  94. };
  95. }
  96. }
  97. </script>
  98. <style lang="scss" scoped>
  99. .publish{
  100. // background-color: #fff;
  101. height: 100vh;
  102. .title{
  103. font-size: 18px;
  104. padding: 16px;
  105. color: #d9d9d933
  106. }
  107. .text{
  108. font-size: 14px;
  109. padding: 16px;
  110. }
  111. .addPhoto{
  112. image{
  113. width: 50px;
  114. height: 50px;
  115. margin-left: 48px;
  116. }
  117. .photo{
  118. color: #000000A3;
  119. padding-left: 44px;
  120. font-size: 14px;
  121. }
  122. .num{
  123. color: #000000A3;
  124. padding-left: 56px;
  125. font-size: 14px;
  126. }
  127. }
  128. .userOptionsBox {
  129. width: 100%;
  130. margin-top: 10px;
  131. .optionsItemBox {
  132. width: 100%;
  133. margin-bottom: 10px;
  134. padding: 5px 23px;
  135. .optionItem {
  136. display: flex;
  137. justify-content: space-between;
  138. align-items: center;
  139. height: 81rpx;
  140. // font-size: 24rpx;
  141. .option_left {
  142. display: flex;
  143. align-items: center;
  144. height: 40rpx;
  145. }
  146. .option_right {
  147. height: 40rpx;
  148. image {
  149. height: 32rpx;
  150. width: 32rpx;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. .publish_now{
  157. display: flex;
  158. // background-color: #d9d9d933;
  159. .btn{
  160. width: 420rpx;
  161. height: 70rpx;
  162. background-color: #8BBEFF;
  163. color: #fff;
  164. margin-top: 20px;
  165. margin-bottom: 100rpx;
  166. line-height: 70rpx;
  167. }
  168. }
  169. }
  170. </style>