publish.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="publish">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="" style="background-color: #ffffff;">
  5. <input class="title" style="font-size: 40rpx;" placeholder="活动标题" />
  6. <textarea class="textCont" 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: 32rpx;
  104. padding: 16px;
  105. line-height: 48rpx;
  106. font-weight: 500;
  107. // color: #d9d9d933
  108. }
  109. .textCont{
  110. padding: 16px;
  111. }
  112. .addPhoto{
  113. background-color: #f2f2f2;
  114. width: 224rpx;
  115. height: 224rpx;
  116. display: flex;
  117. color: #616161;
  118. flex-direction: column;
  119. align-items: center;
  120. justify-content: center;
  121. margin-left: 30rpx;
  122. image{
  123. width: 50px;
  124. height: 50px;
  125. // margin-left: 48px;
  126. }
  127. .photo{
  128. color: #000000A3;
  129. // padding-left: 44px;
  130. // font-size: 14px;
  131. }
  132. .num{
  133. color: #919191;
  134. // padding-left: 56px;
  135. // font-size: 14px;
  136. }
  137. }
  138. .userOptionsBox {
  139. width: 100%;
  140. margin-top: 10px;
  141. .optionsItemBox {
  142. width: 100%;
  143. margin-bottom: 10px;
  144. padding: 5px 23px;
  145. .optionItem {
  146. display: flex;
  147. justify-content: space-between;
  148. align-items: center;
  149. height: 81rpx;
  150. // font-size: 24rpx;
  151. .option_left {
  152. display: flex;
  153. align-items: center;
  154. height: 40rpx;
  155. }
  156. .option_right {
  157. height: 40rpx;
  158. image {
  159. height: 32rpx;
  160. width: 32rpx;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. .publish_now{
  167. display: flex;
  168. // background-color: #d9d9d933;
  169. .btn{
  170. width: 420rpx;
  171. height: 70rpx;
  172. background-color: #8BBEFF;
  173. color: #fff;
  174. margin-top: 20px;
  175. margin-bottom: 100rpx;
  176. line-height: 70rpx;
  177. }
  178. }
  179. }
  180. </style>