Commit 28be22b8 authored by Mac's avatar Mac

修改一些

parent cbfc4e67
......@@ -17,7 +17,7 @@
}
.postPublishing .pubox{
width: 100%;
height:calc(100vh * 0.8) ;
padding:0 15px;
}
.postPublishing .pubox-top{
......@@ -35,12 +35,14 @@
}
.postPublishing .foritem{
width: 100%;
height: 45px;
height: 30px;
font-size: 12px;
padding: 0 12px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-radius: 15px;
margin-right: 25px;
margin-bottom: 15px;
}
.postPublishing .flex-row{
display: flex;align-items: center;
......@@ -73,14 +75,49 @@
color: #FFFFFF;
margin: 30px 0;
}
.ht-box{
padding:0 15px;
display: flex;
flex-wrap: wrap;
margin-top: 10px;
}
.continue{
width: 100%;height: 35px;display: flex;align-items: center;justify-content: center;font-size: 12px;
}
.box-top{
width: 100%;
height: 180px;
border-radius: 15px;
overflow: hidden;
position: relative;
background: #F5F5F5;
margin-top: 15px;
display: flex;
align-items: center;
justify-content: center;
}
.box-top-z{
width: 100%;
height: 100%;
border-radius: 15px;
position: absolute;
left: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<template>
<view class="postPublishing" :style="{ height: contentHeight }">
<view class="box">
<view class="box-top" @click="scimg()">
<view class="box-top-z" :style="{background:addMsg.ImageList.length>0?'rgba(17, 17, 17, 0.2)':'transparent'}">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/blind_xj.png" style="width: 40px;height: auto;" mode="widthFix"></image>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" @click="show=true">
<text style="font-size:12px;color: #666666;">选择分类</text>
<view class="flex-row" >
......@@ -88,7 +125,6 @@
<text style="margin-right: 5px;font-size:12px;color: #111111" v-if="addMsg.ForumId>0">{{ForumName}}</text>
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">是否开启报名</text>
......@@ -116,6 +152,44 @@
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" v-if="addMsg.IsOpenEnroll==1" @click="showtime = true">
<text style="font-size:12px;color: #666666;">活动时间</text>
<view class="flex-row">
<text style="margin-right: 5px;font-size:12px;color: #999999" v-if="addMsg.Deadline==''">请选择活动</text>
<text style="margin-right: 5px;font-size:12px;color: #111111" v-else>{{addMsg.StartTime}}-{{addMsg.EndTime}}</text>
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" v-if="addMsg.IsOpenEnroll==1" >
<text style="font-size:12px;color: #666666;">男数量</text>
<view class="flex-row">
<input type="number" v-model="addMsg.ManNum" :min='0' placeholder="男性数量" style="font-size: 12px;text-align: right;margin-right: 5px;">
</view>
</view>
<view class="box-item" style="justify-content: space-between;" v-if="addMsg.IsOpenEnroll==1" >
<text style="font-size:12px;color: #666666;">女数量</text>
<view class="flex-row">
<input type="number" v-model="addMsg.WoManNum" :min='0' placeholder="女性数量" style="font-size: 12px;text-align: right;margin-right: 5px;">
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">主题</text>
<view class="flex-row">
<input type="text" v-model="addMsg.ActivityTitle" :min='0' placeholder="活动标题" style="font-size: 12px;text-align: right;">
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">标签</text>
<view class="flex-row">
<input type="text" v-model="addMsg.Label" :min='0' :maxlength="6" placeholder="活动标签" style="font-size: 12px;text-align: right;margin-right: 5px;">
<text style="color: #999999;">
{{addMsg.Label.length}}/6
</text>
</view>
</view>
<view class="box-item">
<input type="text" v-model="addMsg.ActivityTitle" placeholder="请将标题写在这里~" style="width: 100%;">
</view>
......@@ -125,14 +199,8 @@
<view v-if="addMsg.Content.length>0" class="continue" :style="{color:mainColor}">
继续编辑
</view>
<!-- <textarea
style="height: 100px;width: 100%;padding: 15px 0;"
placeholder="来吧,尽情发挥吧..."
v-model="addMsg.Content"
maxlength='2000'
/> -->
</view>
<view style="width: 100%;margin-top: 15px;">
<!-- <view style="width: 100%;margin-top: 15px;">
<u-upload :action="action" :file-list="fileList" @on-remove="onRemove1" :custom-btn="true"
@on-success="uploadSuccessHandler">
<view slot="addBtn" class="slot-btn">
......@@ -140,7 +208,7 @@
<view class="mian-title">上传图片</view>
</view>
</u-upload>
</view>
</view> -->
<view class="release" :ripple="true" @click="disbth==false?releasebtn():''" :style="{background:mainColor}">
发布
</view>
......@@ -153,16 +221,15 @@
<text >选择吧</text>
<u-icon name="cross" color="#555" size="40" @click='show=false'></u-icon>
</view>
<scroll-view scroll-y="true" style="height: calc(100vh * 0.8 - 65px);padding-bottom: 20px;">
<view>
<view v-for="(x,y) in forumList" :key="y" class="foritem" @click="select(x)">
<div style='display: flex;align-items: center;'>
<image :src="x.Icon" style="width: 30px;height: 30px;border-radius: 5px;"></image>
<text style="font-size: 14px;color: #111;margin-left: 10px;">{{x.Name}}</text>
</div>
<view >
<u-icon name="success" :color="mainColor" size="40" @click='show=false' v-if='addMsg.ForumId == x.Id'></u-icon>
</view>
<view style="display: flex;flex-direction: column;align-items: center;margin-top: 10px;">
<view style="font-size: 20px;color: #111111;font-weight: 400; ">选择你感兴趣的话题</view>
<view style="font-size: 13px;color: #999999;margin: 10px 0;">贴吧只能选择一个,发布前可更改</view>
</view>
<scroll-view scroll-y="true" style="max-height: calc(100vh * 0.7 - 65px);padding-bottom: 20px;">
<view class="ht-box">
<view v-for="(x,y) in forumList" :key="y" class="foritem" @click="select(x)" :style="{color:x.Id == addMsg.ForumId?'#FFF':'#666666',background:x.Id == addMsg.ForumId?mainColor:'#F9F9F9'}">
{{x.Name}}
</view>
</view>
</scroll-view>
......@@ -199,7 +266,14 @@ export default {
Content:'',
ImageList:[],
Deadline:'',
Label:'',
IsOpenEnroll:1,//1 是开启 2 是不开启
StartTime:'',
EndTime:'',
ManNum:0,
WoManNum:0,
LonLat:'',
LocationName:'',
},
params: {
year: true,
......@@ -259,6 +333,8 @@ export default {
res => {
if(res.resultCode==1){
this.forumList = res.data
this.addMsg.ForumId = this.forumList[0].Id
this.ForumName =this.forumList[0].Name;
}
}
);
......@@ -376,6 +452,9 @@ export default {
},
Children(e){
this.addMsg.Content = e
},
scimg(){
}
......
......@@ -351,9 +351,14 @@
<view class="pubox" >
<view class="pubox-top">
<view></view>
<text >选择话题</text>
<text >话题</text>
<u-icon name="cross" color="#555" size="40" @click='show=false'></u-icon>
</view>
<view style="display: flex;flex-direction: column;align-items: center;margin-top: 10px;">
<view style="font-size: 20px;color: #111111;font-weight: 400; ">选择你感兴趣的话题</view>
<view style="font-size: 13px;color: #999999;margin: 10px 0;">话题只能选择一个,发布前可更改</view>
</view>
<scroll-view scroll-y="true" style="max-height: calc(100vh * 0.7 - 65px);padding-bottom: 20px;">
<view class="ht-box">
<view v-for="(x,y) in TalkList" :key="y" class="foritem" @click="select(x)" :style="{color:x.Id == addMsg.TalkId?'#FFF':'#666666',background:x.Id == addMsg.TalkId?mainColor:'#F9F9F9'}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment