|
|
@@ -1,7 +1,7 @@
|
|
|
<!--为我的-信息发布页面-->
|
|
|
<!-- 修改:信息发布页面移到首页-->
|
|
|
|
|
|
-<view class="title primary-text-color">信息发布</view>
|
|
|
+<view class="title primary-text-color">信息{{messageId ? '修改' : '发布'}}</view>
|
|
|
|
|
|
<view wx:if="{{currentTab === 0}}" class="con">
|
|
|
<view class="title2">信息发布类型</view>
|
|
|
@@ -13,161 +13,170 @@
|
|
|
</view>
|
|
|
|
|
|
<scroll-view wx:if="{{currentTab === 1}}" scroll-y style="height: {{winHeight - 60}}px;">
|
|
|
- <view class="sub-title">活动发布</view>
|
|
|
+ <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" />
|
|
|
+ <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>
|
|
|
- <radio-group class="radio-group" name="type">
|
|
|
- <label wx:for="{{types1}}" wx:for-item="item" wx:key="*this">
|
|
|
- <radio class="radio" value="{{item}}" color="#469298">{{item}}</radio>
|
|
|
+ <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>
|
|
|
- </radio-group>
|
|
|
+ </checkbox-group>
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate" style="align-self: flex-start;">活动简介</view>
|
|
|
- <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"></textarea>
|
|
|
+ <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"></textarea>
|
|
|
+ <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" />
|
|
|
+ <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" />
|
|
|
+ <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="radio-group" name="tag">
|
|
|
- <label wx:for="{{types2}}" wx:for-item="item" wx:key="*this">
|
|
|
- <checkbox class="radio" value="{{item}}" color="#469298">{{item}}</checkbox>
|
|
|
+ <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" />
|
|
|
+ <input class="input" placeholder="请填写" name="orient" value="{{activityInfo.orient}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">活动时间</view>
|
|
|
- <input class="input" placeholder="请填写" name="time" />
|
|
|
+ <input class="input" placeholder="请填写" name="time" value="{{activityInfo.time}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">活动地点</view>
|
|
|
- <input class="input" placeholder="请填写" name="place" />
|
|
|
+ <input class="input" placeholder="请填写" name="place" value="{{activityInfo.place}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">联系方式</view>
|
|
|
- <input class="input" placeholder="请填写" name="contact" />
|
|
|
+ <input class="input" placeholder="请填写" name="contact" value="{{activityInfo.contact}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">链接</view>
|
|
|
- <input class="input" placeholder="请填写" name="link" />
|
|
|
+ <input class="input" placeholder="请填写" name="link" value="{{activityInfo.link}}" />
|
|
|
</view>
|
|
|
- <view class="block" style="margin-top: 20rpx;">
|
|
|
+ <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="noti"></textarea>
|
|
|
+ <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}}" scroll-y style="height: {{winHeight - 60}}px;">
|
|
|
- <view class="sub-title">纳新发布</view>
|
|
|
+ <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" />
|
|
|
+ <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"></textarea>
|
|
|
+ <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"></textarea>
|
|
|
+ <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" />
|
|
|
+ <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" />
|
|
|
+ <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" />
|
|
|
+ <input class="input" placeholder="请填写" name="orient" value="{{activityInfo.orient}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">纳新时间</view>
|
|
|
- <input class="input" placeholder="请填写" name="time" />
|
|
|
+ <input class="input" placeholder="请填写" name="time" value="{{activityInfo.time}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">现宣信息</view>
|
|
|
- <input class="input" placeholder="请填写" name="place" />
|
|
|
+ <input class="input" placeholder="请填写" name="place" value="{{activityInfo.place}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">联系方式</view>
|
|
|
- <input class="input" placeholder="请填写" name="contact" />
|
|
|
+ <input class="input" placeholder="请填写" name="contact" value="{{activityInfo.contact}}" />
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate">链接</view>
|
|
|
- <input class="input" placeholder="请填写" name="link" />
|
|
|
+ <input class="input" placeholder="请填写" name="link" value="{{activityInfo.link}}" />
|
|
|
</view>
|
|
|
- <view class="block" style="margin-top: 20rpx;">
|
|
|
+ <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="noti"></textarea>
|
|
|
+ <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}}" scroll-y style="height: {{winHeight - 60}}px;">
|
|
|
- <view class="sub-title">通知发布</view>
|
|
|
+ <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" />
|
|
|
+ <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>
|
|
|
- <radio-group class="radio-group" name="type">
|
|
|
- <label wx:for="{{types3}}" wx:for-item="item" wx:key="*this">
|
|
|
- <radio class="radio" value="{{item}}" color="#469298">{{item}}</radio>
|
|
|
+ <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>
|
|
|
- </radio-group>
|
|
|
+ </checkbox-group>
|
|
|
</view>
|
|
|
<view class="block">
|
|
|
<view class="cate" style="align-self: flex-start;">通知简介</view>
|
|
|
- <textarea class="input" style="height: 100rpx;" placeholder="请填写" name="brief"></textarea>
|
|
|
+ <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"></textarea>
|
|
|
+ <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" />
|
|
|
+ <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" />
|
|
|
+ <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" />
|
|
|
+ <input class="input" placeholder="请填写" name="link" value="{{activityInfo.link}}" />
|
|
|
</view>
|
|
|
- <view class="block" style="margin-top: 20rpx;">
|
|
|
+ <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="noti"></textarea>
|
|
|
+ <textarea class="input" style="height: 200rpx;" placeholder="提交后会以消息的形式通知关注者" name="notify"></textarea>
|
|
|
</view>
|
|
|
<myButton class="button" type="primary">提交</myButton>
|
|
|
</form>
|