activityPublish.wxml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!--为我的-信息发布页面-->
  2. <!-- 修改:信息发布页面移到首页-->
  3. <view class="title primary-text-color">信息发布</view>
  4. <view wx:if="{{currentTab == 0}}" class="con">
  5. <view class="title2">信息发布类型</view>
  6. <view class="buttons">
  7. <view>
  8. <myButton class="button" type="primary" bindtap="switch1">活动</myButton>
  9. </view>
  10. <view>
  11. <myButton class="button" type="primary" bindtap="switch2">纳新</myButton>
  12. </view>
  13. <view>
  14. <myButton class="button" type="primary" bindtap="switch3">通知</myButton>
  15. </view>
  16. </view>
  17. </view>
  18. <scroll-view wx:if="{{currentTab == 1}}" scroll-y style="height: {{winHeight - 60}}px;">
  19. <view class="sub-title">活动发布</view>
  20. <form bindsubmit="switch4">
  21. <view class="block">
  22. <view class="cate">活动名称<span style="color: #FF0000">*</span></view>
  23. <input class="input" placeholder="请填写" name="name" />
  24. </view>
  25. <view class="block">
  26. <view class="cate" style="align-self: flex-start;">活动类型<span style="color: #FF0000">*</span></view>
  27. <radio-group class="radio-group" name="type">
  28. <label wx:for="{{types1}}" wx:for-item="item" wx:key="*this">
  29. <radio class="radio" value="{{item}}" color="#469298">{{item}}</radio>
  30. </label>
  31. </radio-group>
  32. </view>
  33. <view class="block">
  34. <view class="cate" style="align-self: flex-start;">活动简介<span style="color: #FF0000">*</span></view>
  35. <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"></textarea>
  36. </view>
  37. <view class="block" style="margin-bottom: 20rpx;">
  38. <view class="cate" style="align-self: flex-start;">活动详情<span style="color: #FF0000">*</span></view>
  39. <textarea class="input" style="height: 200rpx;" placeholder="请填写" name="detail"></textarea>
  40. </view>
  41. <view class="block">
  42. <view class="cate" style="align-self: flex-start;">活动封图</view>
  43. <imagePicker name="poster" max="1" image-width="450" image-height="270" />
  44. </view>
  45. <view class="block" style="margin-bottom: 20rpx;">
  46. <view class="cate" style="align-self: flex-start;">活动图片</view>
  47. <imagePicker name="photo" max="9" image-width="145" image-height="145" />
  48. </view>
  49. <view class="block">
  50. <view class="cate" style="align-self: flex-start;">活动提供</view>
  51. <radio-group class="radio-group" name="type">
  52. <label wx:for="{{types2}}" wx:for-item="item" wx:key="*this">
  53. <radio class="radio" value="{{item}}" color="#469298">{{item}}</radio>
  54. </label>
  55. </radio-group>
  56. </view>
  57. <view class="block" style="margin-bottom: 20rpx;">
  58. <view class="cate">面向对象</view>
  59. <input class="input" placeholder="请填写" name="orient" />
  60. </view>
  61. <view class="block">
  62. <view class="cate">活动时间</view>
  63. <input class="input" placeholder="请填写" name="time" />
  64. </view>
  65. <view class="block">
  66. <view class="cate">活动地点</view>
  67. <input class="input" placeholder="请填写" name="place" />
  68. </view>
  69. <view class="block">
  70. <view class="cate">联系方式</view>
  71. <input class="input" placeholder="请填写" name="contact" />
  72. </view>
  73. <view class="block">
  74. <view class="cate">报名链接</view>
  75. <input class="input" placeholder="请填写" name="link" />
  76. </view>
  77. <myButton class="button" type="primary" bindtap="switch4">提交</myButton>
  78. </form>
  79. </scroll-view>
  80. <scroll-view wx:if="{{currentTab == 2}}" scroll-y style="height: {{winHeight - 60}}px;">
  81. <view class="sub-title">纳新发布</view>
  82. <form bindsubmit="switch4">
  83. <view class="block">
  84. <view class="cate">纳新标题<span style="color: #FF0000">*</span></view>
  85. <input class="input" placeholder="请填写" name="name" />
  86. </view>
  87. <view class="block">
  88. <view class="cate" style="align-self: flex-start;">纳新简介<span style="color: #FF0000">*</span></view>
  89. <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"></textarea>
  90. </view>
  91. <view class="block" style="margin-bottom: 20rpx;">
  92. <view class="cate" style="align-self: flex-start;">纳新详情<span style="color: #FF0000">*</span></view>
  93. <textarea class="input" style="height: 200rpx;" placeholder="请填写" name="detail"></textarea>
  94. </view>
  95. <view class="block">
  96. <view class="cate" style="align-self: flex-start;">纳新封图</view>
  97. <imagePicker name="poster" max="1" image-width="450" image-height="270" />
  98. </view>
  99. <view class="block" style="margin-bottom: 20rpx;">
  100. <view class="cate" style="align-self: flex-start;">纳新图片</view>
  101. <imagePicker name="photo" max="9" image-width="145" image-height="145" />
  102. </view>
  103. <view class="block">
  104. <view class="cate">面向对象</view>
  105. <input class="input" placeholder="请填写" name="orient" />
  106. </view>
  107. <view class="block">
  108. <view class="cate">纳新时间</view>
  109. <input class="input" placeholder="请填写" name="time" />
  110. </view>
  111. <view class="block">
  112. <view class="cate">现宣信息</view>
  113. <input class="input" placeholder="请填写" name="place" />
  114. </view>
  115. <view class="block">
  116. <view class="cate">联系方式</view>
  117. <input class="input" placeholder="请填写" name="contact" />
  118. </view>
  119. <view class="block">
  120. <view class="cate">报名链接</view>
  121. <input class="input" placeholder="请填写" name="link" />
  122. </view>
  123. <myButton class="button" type="primary" bindtap="switch4">提交</myButton>
  124. </form>
  125. </scroll-view>
  126. <scroll-view wx:if="{{currentTab == 3}}" scroll-y style="height: {{winHeight - 60}}px;">
  127. <view class="sub-title">通知发布</view>
  128. <form bindsubmit="switch4">
  129. <view class="block">
  130. <view class="cate">通知标题<span style="color: #FF0000">*</span></view>
  131. <input class="input" placeholder="请填写" name="name" />
  132. </view>
  133. <view class="block">
  134. <view class="cate" style="align-self: flex-start;">通知类型<span style="color: #FF0000">*</span></view>
  135. <radio-group class="radio-group" name="type">
  136. <label wx:for="{{types3}}" wx:for-item="item" wx:key="*this">
  137. <radio class="radio" value="{{item}}" color="#469298">{{item}}</radio>
  138. </label>
  139. </radio-group>
  140. </view>
  141. <view class="block">
  142. <view class="cate" style="align-self: flex-start;">通知简介<span style="color: #FF0000">*</span></view>
  143. <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"></textarea>
  144. </view>
  145. <view class="block" style="margin-bottom: 20rpx;">
  146. <view class="cate" style="align-self: flex-start;">通知详情<span style="color: #FF0000">*</span></view>
  147. <textarea class="input" style="height: 200rpx;" placeholder="请填写" name="detail"></textarea>
  148. </view>
  149. <view class="block">
  150. <view class="cate" style="align-self: flex-start;">通知封图</view>
  151. <imagePicker name="poster" max="1" image-width="450" image-height="270" />
  152. </view>
  153. <view class="block" style="margin-bottom: 20rpx;">
  154. <view class="cate" style="align-self: flex-start;">通知图片</view>
  155. <imagePicker name="photo" max="9" image-width="145" image-height="145" />
  156. </view>
  157. <view class="block">
  158. <view class="cate">通知链接</view>
  159. <input class="input" placeholder="请填写" name="link" />
  160. </view>
  161. <myButton class="button" type="primary" bindtap="switch4">提交</myButton>
  162. </form>
  163. </scroll-view>
  164. <view wx:if="{{currentTab == 4}}" class="con">
  165. <view class="con1 primary-text-color">发布成功!</view>
  166. <image class="success-icon" src="../../images/finish.png" mode="aspectFill" />
  167. <!-- <view class="con2"></view> -->
  168. <myButton class="button" type="primary" bindtap="returnToUser">返回</myButton>
  169. </view>