publish.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="publish">
  3. <statusBar :item="navBarData"></statusBar>
  4. <input class="title" placeholder="活动标题" />
  5. <textarea class="text" placeholder="请输入内容"></textarea>
  6. <template>
  7. <u-upload>
  8. <view class="addPhoto">
  9. <image src="../../static/publish/photo.png" mode="aspectFill"></image>
  10. <view class="photo">添加图片</view>
  11. <view class="num">(0/9)</view>
  12. </view>
  13. </u-upload>
  14. </template>
  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. </template>
  81. <template>
  82. <view class="publish_now">
  83. <button class="<strong>btn</strong>">立即发布</button>
  84. </view>
  85. </template>
  86. </view>
  87. </template>
  88. <script>
  89. export default {
  90. data() {
  91. return {
  92. navBarData:{
  93. title:'发布', //导航栏标题
  94. btn:1 //是否显示返回按钮 0不显示 1 显示
  95. },
  96. };
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. .publish{
  102. background-color: #fff;
  103. .title{
  104. font-size: 14px;
  105. padding: 16px;
  106. color: #d9d9d933
  107. }
  108. .text{
  109. font-size: 12px;
  110. padding: 16px;
  111. }
  112. .addPhoto{
  113. image{
  114. width: 50px;
  115. height: 50px;
  116. margin-left: 48px;
  117. }
  118. .photo{
  119. color: #000000A3;
  120. padding-left: 44px;
  121. font-size: 14px;
  122. }
  123. .num{
  124. color: #000000A3;
  125. padding-left: 56px;
  126. font-size: 14px;
  127. }
  128. }
  129. .userOptionsBox {
  130. width: 100%;
  131. margin-top: 10px;
  132. .optionsItemBox {
  133. width: 100%;
  134. margin-bottom: 10px;
  135. padding: 5px 23px;
  136. .optionItem {
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. height: 81rpx;
  141. font-size: 24rpx;
  142. .option_left {
  143. display: flex;
  144. align-items: center;
  145. height: 40rpx;
  146. }
  147. .option_right {
  148. height: 40rpx;
  149. image {
  150. height: 32rpx;
  151. width: 32rpx;
  152. }
  153. }
  154. }
  155. }
  156. }
  157. .publish_now{
  158. display: flex;
  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>