运营活动
This commit is contained in:
@@ -39,72 +39,39 @@
|
||||
</div>
|
||||
|
||||
<div class="header-bottom">
|
||||
<!-- v-if="detail.status == 1 || detail.status == 2 || detail.status == 3" -->
|
||||
<div class="tab-title">
|
||||
<span :class="current == 0 ? 'active' : ''" @click="change(0)">活动详情</span>
|
||||
<span :class="current == 1 ? 'active' : ''" @click="change(1)">活动动态</span>
|
||||
<span>活动详情</span>
|
||||
</div>
|
||||
<!-- <div class="info-title" v-else>活动详情</div> -->
|
||||
<div class="content-details" v-if="current == 0">
|
||||
|
||||
<div class="content-details">
|
||||
<div v-html="detail.content"></div>
|
||||
</div>
|
||||
|
||||
<div class="content-trends" v-if="current == 1">
|
||||
<div class="details" v-if="activeList.length > 0">
|
||||
<div class="card" v-for="(item, index) in activeList" :key="index">
|
||||
<div class="card-nav">
|
||||
<div class="avatar">
|
||||
<img :src="item.avatar" alt="" style="width: 100%; height: 100%" v-if="item.avatar" />
|
||||
<span v-else>
|
||||
<span v-if="item.name">{{ item.name.substring(item.name.length, item.name.length - 2) }}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<span class="name">{{ item.name }}</span>
|
||||
<span class="time">{{ item.createTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-font">
|
||||
{{ item.content }}
|
||||
</div>
|
||||
|
||||
<div class="card-img">
|
||||
<img :src="e.url" v-for="(e, i) in imgList[index]" :key="i" alt="" @click.stop="previewImage(imgList[index], e.url)" />
|
||||
</div>
|
||||
|
||||
<!-- <div class="card-icon">
|
||||
<div>
|
||||
<i class="iconfont"></i>
|
||||
<span>{{ item.viewNum ? item.viewNum : 0 }}</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<i class="iconfont"></i>
|
||||
<span>{{ item.replyNum ? item.replyNum : 0 }}</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<i class="iconfont"></i>
|
||||
<span>{{ item.supportNum ? item.supportNum : 0 }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<!-- <div class="card-bottom"></div> -->
|
||||
</div>
|
||||
|
||||
<AiEmpty v-else />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fixedBtns" v-if="this.current == 0 && detail.status == 0 && this.createUserId == this.user.id" @click="toAdd">编辑活动</div>
|
||||
</div>
|
||||
|
||||
<AiFixedBtn v-if="detail.status != 0 && this.createUserId == this.user.id && this.timeNow * 1 - this.timeEnd * 1 < 24 * 60 * 60 * 1000">
|
||||
<div class="addBtn iconfont iconfont-iconfangda" @tap.stop="AddPosts()" />
|
||||
</AiFixedBtn>
|
||||
<!-- <div class="add-btn">
|
||||
<div>参与活动</div>
|
||||
</div> -->
|
||||
<div class="add-btn" @click="toCalendar">
|
||||
<div>活动日历</div>
|
||||
</div>
|
||||
|
||||
|
||||
<u-modal v-model="show" :show-cancel-button="true" @confirm="bindPhoneConfirm" @cancel="cancel">
|
||||
<div class="item">
|
||||
<span class="label"><span class="tips">*</span>手机号</span>
|
||||
<div class="value">
|
||||
<u-input type="tel" placeholder="请填写手机号" v-model="form.phone" input-align="right" placeholder-style="color:#999;font-size:15px;" height="42" :maxlength="11" :clearable="false" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="label"><span class="tips">*</span>验证码</span>
|
||||
<div class="value">
|
||||
<u-input type="tel" placeholder="请填写验证码" v-model="form.code" input-align="right" placeholder-style="color:#999;font-size:15px;" height="42" :maxlength="6" :clearable="false" />
|
||||
</div>
|
||||
</div>
|
||||
</u-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -135,6 +102,8 @@ export default {
|
||||
timeEndTime: '',
|
||||
timeEnd: '',
|
||||
timeNow: '',
|
||||
show: false,
|
||||
form: {phone: '', code: ''}
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -224,6 +193,17 @@ export default {
|
||||
current: img,
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
bindPhoneConfirm() {
|
||||
|
||||
},
|
||||
cancel() {
|
||||
|
||||
},
|
||||
toCalendar() {
|
||||
uni.navigateTo({url: './ActiveCalendar'})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@@ -467,22 +447,56 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.AiFixedBtn {
|
||||
.movableArea {
|
||||
.addBtn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
flex-shrink: 0;
|
||||
background: #fff;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
||||
font-size: 48px;
|
||||
color: #1365dd;
|
||||
border-radius: 50%;
|
||||
.add-btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
div {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
background: #3975C6;
|
||||
text-align: center;
|
||||
line-height: 100px;
|
||||
color: #fff;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 34px;
|
||||
}
|
||||
}
|
||||
|
||||
.item{
|
||||
width: calc(100% - 32px);
|
||||
padding: 20px 32px 32px 16px;
|
||||
background: #FFFFFF;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 30px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
line-height: 48px;
|
||||
box-sizing: border-box;
|
||||
margin: 0 0 0 16px;
|
||||
.color-999{
|
||||
color: #999;
|
||||
}
|
||||
.value{
|
||||
color: #333;
|
||||
.u-icon{
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
.tips{
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #FF4466;
|
||||
line-height: 44px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user