| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <!--为我的-信息发布页面-->
- <!-- 修改:信息发布页面移到首页-->
- <view class="title primary-text-color">信息{{messageId ? '修改' : '发布'}}</view>
- <view wx:if="{{currentTab === 0}}" class="con">
- <view class="title2">信息发布类型</view>
- <view class="buttons">
- <myButton class="button" type="primary" bindtap="switch1">活动</myButton>
- <myButton class="button" type="primary" bindtap="switch2">纳新</myButton>
- <myButton class="button" type="primary" bindtap="switch3">通知</myButton>
- </view>
- </view>
- <scroll-view wx:if="{{currentTab === 1}}" style="height: {{winHeight - 60}}px;" scroll-y>
- <view class="sub-title">活动{{messageId ? '修改' : '发布'}}</view>
- <form bindsubmit="switch4">
- <view class="block">
- <view class="cate">活动名称<span style="color: #FF0000">*</span></view>
- <input class="input" placeholder="请填写" name="name" value="{{activityInfo.name}}" />
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">活动类型<span style="color: #FF0000">*</span></view>
- <checkbox-group class="checkbox-group" name="type">
- <label wx:for="{{types1}}" wx:for-item="item" wx:key="item.value">
- <checkbox class="checkbox" value="{{item.value}}" checked="{{item.checked}}" color="#469298">{{item.value}}
- </checkbox>
- </label>
- </checkbox-group>
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">活动简介</view>
- <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"
- value="{{activityInfo.brief}}"></textarea>
- </view>
- <view class="block" style="margin-bottom: 20rpx;">
- <view class="cate" style="align-self: flex-start;">活动详情<span style="color: #FF0000">*</span></view>
- <textarea class="input" style="height: 200rpx;" placeholder="请填写" name="detail"
- value="{{activityInfo.detail}}"></textarea>
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">活动封图</view>
- <imagePicker name="poster" max="1" image-width="450" image-height="215" value="{{activityInfo.poster}}" />
- </view>
- <view class="block" style="margin-bottom: 20rpx;">
- <view class="cate" style="align-self: flex-start;">活动图片</view>
- <imagePicker name="photo" max="9" image-width="145" image-height="145" value="{{activityInfo.photo}}" />
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">活动提供</view>
- <checkbox-group class="checkbox-group" name="tag">
- <label wx:for="{{types2}}" wx:for-item="item" wx:key="item.value">
- <checkbox class="checkbox" value="{{item.value}}" checked="{{item.checked}}" color="#469298">
- {{item.value}}</checkbox>
- </label>
- </checkbox-group>
- </view>
- <view class="block">
- <view class="cate">面向对象</view>
- <input class="input" placeholder="请填写" name="orient" value="{{activityInfo.orient}}" />
- </view>
- <view class="block">
- <view class="cate">活动时间</view>
- <input class="input" placeholder="请填写" name="time" value="{{activityInfo.time}}" />
- </view>
- <view class="block">
- <view class="cate">活动地点</view>
- <input class="input" placeholder="请填写" name="place" value="{{activityInfo.place}}" />
- </view>
- <view class="block">
- <view class="cate">联系方式</view>
- <input class="input" placeholder="请填写" name="contact" value="{{activityInfo.contact}}" />
- </view>
- <view class="block">
- <view class="cate">链接</view>
- <input class="input" placeholder="请填写" name="link" value="{{activityInfo.link}}" />
- </view>
- <view wx:if="{{messageId}}" class="block" style="margin-top: 20rpx;">
- <view class="cate primary-text-color" style="align-self: flex-start;">消息通知</view>
- <textarea class="input" style="height: 200rpx;" placeholder="提交后会以消息的形式通知关注者" name="notify"></textarea>
- </view>
- <myButton class="button" type="primary">提交</myButton>
- </form>
- </scroll-view>
- <scroll-view wx:if="{{currentTab === 2}}" style="height: {{winHeight - 60}}px;" scroll-y>
- <view class="sub-title">纳新{{messageId ? '修改' : '发布'}}</view>
- <form bindsubmit="switch4">
- <view class="block">
- <view class="cate">纳新标题<span style="color: #FF0000">*</span></view>
- <input class="input" placeholder="请填写" name="name" value="{{activityInfo.name}}" />
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">纳新简介</view>
- <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"
- value="{{activityInfo.brief}}"></textarea>
- </view>
- <view class="block" style="margin-bottom: 20rpx;">
- <view class="cate" style="align-self: flex-start;">纳新详情<span style="color: #FF0000">*</span></view>
- <textarea class="input" style="height: 200rpx;" placeholder="请填写" name="detail"
- value="{{activityInfo.detail}}"></textarea>
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">纳新封图</view>
- <imagePicker name="poster" max="1" image-width="450" image-height="215" value="{{activityInfo.poster}}" />
- </view>
- <view class="block" style="margin-bottom: 20rpx;">
- <view class="cate" style="align-self: flex-start;">纳新图片</view>
- <imagePicker name="photo" max="9" image-width="145" image-height="145" value="{{activityInfo.photo}}" />
- </view>
- <view class="block">
- <view class="cate">面向对象</view>
- <input class="input" placeholder="请填写" name="orient" value="{{activityInfo.orient}}" />
- </view>
- <view class="block">
- <view class="cate">纳新时间</view>
- <input class="input" placeholder="请填写" name="time" value="{{activityInfo.time}}" />
- </view>
- <view class="block">
- <view class="cate">现宣信息</view>
- <input class="input" placeholder="请填写" name="place" value="{{activityInfo.place}}" />
- </view>
- <view class="block">
- <view class="cate">联系方式</view>
- <input class="input" placeholder="请填写" name="contact" value="{{activityInfo.contact}}" />
- </view>
- <view class="block">
- <view class="cate">链接</view>
- <input class="input" placeholder="请填写" name="link" value="{{activityInfo.link}}" />
- </view>
- <view wx:if="{{messageId}}" class="block" style="margin-top: 20rpx;">
- <view class="cate primary-text-color" style="align-self: flex-start;">消息通知</view>
- <textarea class="input" style="height: 200rpx;" placeholder="提交后会以消息的形式通知关注者" name="notify"></textarea>
- </view>
- <myButton class="button" type="primary">提交</myButton>
- </form>
- </scroll-view>
- <scroll-view wx:if="{{currentTab === 3}}" style="height: {{winHeight - 60}}px;" scroll-y>
- <view class="sub-title">通知{{messageId ? '修改' : '发布'}}</view>
- <form bindsubmit="switch4">
- <view class="block">
- <view class="cate">通知标题<span style="color: #FF0000">*</span></view>
- <input class="input" placeholder="请填写" name="name" value="{{activityInfo.name}}" />
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">通知类型<span style="color: #FF0000">*</span></view>
- <checkbox-group class="checkbox-group" name="type">
- <label wx:for="{{types3}}" wx:for-item="item" wx:key="item.value">
- <checkbox class="checkbox" value="{{item.value}}" checked="{{item.checked}}" color="#469298">{{item.value}}
- </checkbox>
- </label>
- </checkbox-group>
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">通知简介</view>
- <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"
- value="{{activityInfo.brief}}"></textarea>
- </view>
- <view class="block" style="margin-bottom: 20rpx;">
- <view class="cate" style="align-self: flex-start;">通知详情<span style="color: #FF0000">*</span></view>
- <textarea class="input" style="height: 200rpx;" placeholder="请填写" name="detail"
- value="{{activityInfo.detail}}"></textarea>
- </view>
- <view class="block">
- <view class="cate" style="align-self: flex-start;">通知封图</view>
- <imagePicker name="poster" max="1" image-width="450" image-height="215" value="{{activityInfo.poster}}" />
- </view>
- <view class="block" style="margin-bottom: 20rpx;">
- <view class="cate" style="align-self: flex-start;">通知图片</view>
- <imagePicker name="photo" max="9" image-width="145" image-height="145" value="{{activityInfo.photo}}" />
- </view>
- <view class="block">
- <view class="cate">链接</view>
- <input class="input" placeholder="请填写" name="link" value="{{activityInfo.link}}" />
- </view>
- <view wx:if="{{messageId}}" class="block" style="margin-top: 20rpx;">
- <view class="cate primary-text-color" style="align-self: flex-start;">消息通知</view>
- <textarea class="input" style="height: 200rpx;" placeholder="提交后会以消息的形式通知关注者" name="notify"></textarea>
- </view>
- <myButton class="button" type="primary">提交</myButton>
- </form>
- </scroll-view>
- <view wx:if="{{currentTab === 4}}" class="con">
- <view class="con1 primary-text-color">发布成功!</view>
- <image class="success-icon" src="../../images/finish.png" mode="aspectFill" />
- <!-- <view class="con2"></view> -->
- <myButton class="button" type="primary" bindtap="returnToPublisher">返回</myButton>
- </view>
|