publish.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <template>
  2. <view class="publish">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="" style="background-color: #ffffff;">
  5. <view class="pubTitle">
  6. <input class="title" style="" placeholder="活动标题" />
  7. </view>
  8. <view class="pubMid">
  9. <view class="mid">
  10. <view class="txt">
  11. <textarea class="txtClass" value="" placeholder="请输入内容" />
  12. </view>
  13. <view class="pic">
  14. <view class="picCont">
  15. <image src="../../static/publish/photo.png" mode="aspectFill"></image>
  16. <view style="font-size: 24rpx;line-height: 40rpx;font-weight: 400;color: rgba(0, 0, 0, 0.6);">
  17. 添加图片
  18. </view>
  19. <view style="font-size: 20rpx;line-height: 36rpx;font-weight: 400;color: rgba(0, 0, 0, 0.4);">
  20. (0/9)
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="userOptionsBox">
  27. <view class="optionsItemBox">
  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>
  39. </view>
  40. <view class="userOptionsBox">
  41. <view class="optionsItemBox">
  42. <view class="optionItem">
  43. <view class="option_left">
  44. <text class="option_text">
  45. 活动形式
  46. </text>
  47. </view>
  48. <view class="option_right">
  49. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="userOptionsBox">
  55. <view class="optionsItemBox">
  56. <view class="optionItem">
  57. <view class="option_left">
  58. <text class="option_text">
  59. 活动地址
  60. </text>
  61. </view>
  62. <view class="option_right">
  63. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="userOptionsBox">
  69. <view class="optionsItemBox">
  70. <view class="optionItem">
  71. <view class="option_left">
  72. <text class="option_text">
  73. 活动时间
  74. </text>
  75. </view>
  76. <view class="option_right">
  77. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="userOptionsBox">
  83. <view class="optionsItemBox">
  84. <view class="optionItem">
  85. <view class="option_left">
  86. <text class="option_text">
  87. 活动费用
  88. </text>
  89. </view>
  90. <view class="option_right">
  91. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="userOptionsBox">
  97. <view class="optionsItemBox">
  98. <view class="optionItem">
  99. <view class="option_left">
  100. <text class="option_text">
  101. 报名截止
  102. </text>
  103. </view>
  104. <view class="option_right">
  105. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="publish_now">
  112. <button class="btn">立即发布</button>
  113. </view>
  114. <view class="liu">
  115. </view>
  116. </view>
  117. </template>
  118. <script>
  119. export default {
  120. data() {
  121. return {
  122. navBarData:{
  123. title:'发布', //导航栏标题
  124. btn:1 //是否显示返回按钮 0不显示 1 显示
  125. },
  126. };
  127. }
  128. }
  129. </script>
  130. <style lang="scss" scoped>
  131. .publish{
  132. .liu{
  133. //留白
  134. width: 750rpx;
  135. height: 68rpx;
  136. position: absolute;
  137. bottom: 0;
  138. background-color: #ffffff;
  139. }
  140. .pubTitle{
  141. width: 750rpx;
  142. height: 96rpx;
  143. padding: 24rpx 30rpx 0 30rpx;
  144. .title{
  145. font-size: 32rpx;
  146. line-height: 48rpx;
  147. font-weight: 500;
  148. }
  149. }
  150. .pubMid{
  151. width: 750rpx;
  152. // height: 504rpx;
  153. padding: 24rpx 30rpx 0 30rpx;
  154. // background-color: #8BBEFF;
  155. .mid{
  156. width: 690rpx;
  157. height: 440rpx;
  158. // background-color: #f2f2f2;
  159. .txt{
  160. width: 690rpx;
  161. height: 192rpx;
  162. .txtClass{
  163. width: 100%;
  164. height: 100%;
  165. font-size: 28rpx;
  166. font-weight: 400;
  167. line-height: 48rpx;
  168. }
  169. }
  170. .pic{
  171. width: 224rpx;
  172. height: 224rpx;
  173. background-color: rgba(242, 242, 242, 1);
  174. display: flex;
  175. justify-content: center;
  176. align-items: center;
  177. .picCont{
  178. display: flex;
  179. flex-direction: column;
  180. justify-content: center;
  181. align-items: center;
  182. image{
  183. width: 56rpx;
  184. height: 66rpx;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. // background-color: #fff;
  191. height: 100vh;
  192. .textCont{
  193. padding: 16px;
  194. }
  195. .addPhoto{
  196. background-color: #f2f2f2;
  197. width: 224rpx;
  198. height: 224rpx;
  199. display: flex;
  200. color: #616161;
  201. flex-direction: column;
  202. align-items: center;
  203. justify-content: center;
  204. margin-left: 30rpx;
  205. image{
  206. width: 50px;
  207. height: 50px;
  208. // margin-left: 48px;
  209. }
  210. .photo{
  211. color: #000000A3;
  212. // padding-left: 44px;
  213. // font-size: 14px;
  214. }
  215. .num{
  216. color: #919191;
  217. // padding-left: 56px;
  218. // font-size: 14px;
  219. }
  220. }
  221. .userOptionsBox {
  222. width: 750rpx;
  223. height: 96rpx;
  224. display: flex;
  225. justify-content: center;
  226. align-items: center;
  227. .optionsItemBox {
  228. width: 690rpx;
  229. .optionItem {
  230. display: flex;
  231. justify-content: space-between;
  232. align-items: center;
  233. .option_left {
  234. display: flex;
  235. align-items: center;
  236. font-size: 28rpx;
  237. line-height: 48rpx;
  238. font-weight: 400;
  239. }
  240. .option_right {
  241. height: 40rpx;
  242. image {
  243. height: 32rpx;
  244. width: 32rpx;
  245. }
  246. }
  247. }
  248. }
  249. }
  250. .publish_now{
  251. position: absolute;
  252. bottom: 100rpx;
  253. display: flex;
  254. width: 750rpx;
  255. justify-content: center;
  256. .btn{
  257. width: 432rpx;
  258. height: 88rpx;
  259. background-color: #8BBEFF;
  260. color: #fff;
  261. margin-top: 20px;
  262. }
  263. }
  264. }
  265. </style>