消息通知
This commit is contained in:
@@ -0,0 +1,305 @@
|
||||
<template>
|
||||
<section class="AppMessageNotification">
|
||||
<div class="header">
|
||||
<p class="fw500">注意</p>
|
||||
<p>每个用户每天可以接受10条群发消息,不限企业发布的群发还是个人发布的群发。</p>
|
||||
<p>个人群发每天可以给用户发送10条群发消息。</p>
|
||||
</div>
|
||||
<div class="select-user">
|
||||
<div class="label color-666">用户选择</div>
|
||||
<div class="right">
|
||||
<!-- <span class="color-999">请选择</span> -->
|
||||
<span @click="toSelect">
|
||||
已选择<span class="color-1365DD">10</span>人
|
||||
</span>
|
||||
<img src="./components/img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p class="title fw500">群发消息设置</p>
|
||||
<div class="mini-title color-666">文本内容</div>
|
||||
<div class="textarea">
|
||||
<u-input v-model="value" type="textarea" :height="400" auto-height maxlength="600" placeholder="请输入文本内容" />
|
||||
<div class="hint">{{ value.length }}/500</div>
|
||||
</div>
|
||||
<div class="type">
|
||||
<p class="color-666">其它类型</p>
|
||||
<u-radio-group v-model="type">
|
||||
<u-radio @change="radioChange" v-for="(item, index) in typeList" :key="index" :name="item"> {{item}}</u-radio>
|
||||
</u-radio-group>
|
||||
</div>
|
||||
<div class="type-content">
|
||||
<div class="flex" v-if="type == '图片'">
|
||||
<p class="label" style="width:40px;">图片</p>
|
||||
<ai-uploader multiple @data="imgList" :limit="1" action="/admin/file/add2"></ai-uploader>
|
||||
</div>
|
||||
<div v-if="type == '链接'">
|
||||
<div class="flex border-b">
|
||||
<p class="label">链接地址</p>
|
||||
<div class="value">
|
||||
<u-input v-model="value" type="text" input-align="right" placeholder="请输入链接地址" height="44" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex border-b">
|
||||
<p class="label">链接图片</p>
|
||||
<ai-uploader multiple @data="imgList" :limit="1" action="/admin/file/add2"></ai-uploader>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="label">链接标题</p>
|
||||
<div class="value">
|
||||
<u-input v-model="value" type="text" input-align="right" placeholder="请输入链接标题" height="44" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex" v-if="type == '视频'">
|
||||
<p class="label" style="width:40px;">视频</p>
|
||||
<AiUploader :multiple="true" type="file" :limit="1" placeholder="上传附件" @list="imgList" action="/admin/file/add2"></AiUploader>
|
||||
</div>
|
||||
<div v-if="type == '小程序'" class="flex-label">
|
||||
<div class="flex border-b">
|
||||
<p class="label">小程序标题</p>
|
||||
<div class="value">
|
||||
<u-input v-model="value" type="text" input-align="right" placeholder="请输入小程序标题" height="44" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex border-b">
|
||||
<p class="label">小程序APPID</p>
|
||||
<div class="value">
|
||||
<u-input v-model="value" type="text" input-align="right" placeholder="请输入小程序APPID" height="44" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex border-b">
|
||||
<p class="label">小程序跳转页面</p>
|
||||
<div class="value">
|
||||
<u-input v-model="value" type="text" input-align="right" placeholder="如pages/home/home" height="44" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="label" style="width:80px;">小程序图片</p>
|
||||
<ai-uploader multiple @data="imgList" :limit="1" action="/admin/file/add2"></ai-uploader>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="upload"><u-icon name="plus-circle-fill" color="#1365DD" size="32"></u-icon>添加附件</div> -->
|
||||
</div>
|
||||
<div class="bg-144"></div>
|
||||
<div class="footer">
|
||||
<div>取消</div>
|
||||
<div class="confirm">确认发送</div>
|
||||
</div>
|
||||
<!-- <u-popup v-model="show" mode="bottom">
|
||||
<div class="popup">
|
||||
<div class="item" v-for="(item, index) in popupList" :key="index">
|
||||
<div class="icon-bg">
|
||||
<u-icon :name="item.icon" size="56" color="#333"></u-icon>
|
||||
</div>
|
||||
<p>{{item.text}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</u-popup> -->
|
||||
</section>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "AppMessageNotification",
|
||||
appName: "消息通知",
|
||||
data() {
|
||||
return {
|
||||
value: '',
|
||||
show: true,
|
||||
type: '',
|
||||
typeList: ['图片', '链接', '视频', '小程序'],
|
||||
imgList: []
|
||||
}
|
||||
},
|
||||
computed: {...mapState(['user'])},
|
||||
methods: {
|
||||
radioChange(e) {
|
||||
console.log(e);
|
||||
},
|
||||
toSelect() {
|
||||
uni.navigateTo({url: './SelectUser'})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.AppMessageNotification {
|
||||
height: 100%;
|
||||
background-color: #f3f6f9;
|
||||
.fw500{
|
||||
font-weight: 500;
|
||||
font-size: 32px!important;
|
||||
}
|
||||
.color-666{
|
||||
color: #666;
|
||||
font-size: 30px;
|
||||
}
|
||||
.header{
|
||||
background-color: #fff;
|
||||
padding: 32px;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 16px;
|
||||
p{
|
||||
line-height: 44px;
|
||||
margin-bottom: 8px;
|
||||
word-break: break-all;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
.select-user{
|
||||
background-color: #fff;
|
||||
padding: 34px 32px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
font-size: 30px;
|
||||
img{
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.color-999{
|
||||
color: #999;
|
||||
}
|
||||
.color-1365DD{
|
||||
color: #1365DD;
|
||||
}
|
||||
|
||||
}
|
||||
.content{
|
||||
padding: 32px;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
.title{
|
||||
line-height: 44px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.mini-title{
|
||||
line-height: 44px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.textarea{
|
||||
padding: 16px 32px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #ddd;
|
||||
.hint {
|
||||
padding: 4px 0 8px 0;
|
||||
text-align: right;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
// .upload{
|
||||
// padding: 16px 32px;
|
||||
// line-height: 44px;
|
||||
// border: 1px solid #ddd;
|
||||
// border-top: 0;
|
||||
// .u-icon{
|
||||
// margin-right: 8px;
|
||||
// }
|
||||
// }
|
||||
.type{
|
||||
margin-top: 32px;
|
||||
p{
|
||||
display: inline-block;
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
||||
.type-content{
|
||||
margin-top: 32px;
|
||||
.label{
|
||||
display: inline-block;
|
||||
margin-right: 16px;
|
||||
vertical-align: top;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
width: 130px;
|
||||
}
|
||||
.value{
|
||||
width: calc(100% - 130px);
|
||||
}
|
||||
.ai-uploader{
|
||||
display: inline-block;
|
||||
width: calc(100% - 130px);
|
||||
}
|
||||
.flex{
|
||||
padding: 34px 0;
|
||||
line-height: 44px;
|
||||
display: flex;
|
||||
}
|
||||
.border-b{
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.flex-label{
|
||||
.label{
|
||||
width: 260px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.bg-144{
|
||||
height: 144px;
|
||||
}
|
||||
.footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
font-size: 36px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
.confirm {
|
||||
color: #fff;
|
||||
background: #1365dd;
|
||||
}
|
||||
div {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
.popup{
|
||||
padding-top: 32px;
|
||||
background-color: #f3f6f9;
|
||||
.item{
|
||||
display: inline-block;
|
||||
width: 25%;
|
||||
text-align: center;
|
||||
padding: 32px 0;
|
||||
.icon-bg{
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
margin: 0 auto;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
.u-icon{
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
p{
|
||||
line-height: 44px;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user