Commit ca09e25e by 前端

Merge branch 'yangm_dev_2.0.0' into 'v2.0.0'

fixed

See merge request !32
2 parents 9a2e0049 9391388d

351 Bytes | W: | H:

599 Bytes | W: | H:

src/assets/guestCustom/icon-video.png
src/assets/guestCustom/icon-video.png
src/assets/guestCustom/icon-video.png
src/assets/guestCustom/icon-video.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i> <i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i>
更新数据 更新数据
</span> </span>
<span class="info-time">更新于:{{basicInfo.updatedTime}}</span> <span class="info-time">更新于:{{this.updatedTime}}</span>
</div> </div>
<div class="statistics-info"> <div class="statistics-info">
<div class="statistics-ul"> <div class="statistics-ul">
...@@ -98,6 +98,7 @@ export default { ...@@ -98,6 +98,7 @@ export default {
}, },
data() { data() {
return { return {
updatedTime: '',
refreshStatus: false, refreshStatus: false,
STATUS_TYPE: STATUS, STATUS_TYPE: STATUS,
SEX_TYPE: SEX, SEX_TYPE: SEX,
...@@ -141,6 +142,7 @@ export default { ...@@ -141,6 +142,7 @@ export default {
getCustomerDetail() { getCustomerDetail() {
const id = this.$route.query.id const id = this.$route.query.id
this.$apis.friendGroup.momentDetail({ id }).then(res => { this.$apis.friendGroup.momentDetail({ id }).then(res => {
this.updatedTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
this.basicInfo = res this.basicInfo = res
// console.log(this.basicInfo, '123'); // console.log(this.basicInfo, '123');
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss') // this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div class="preview-operation">赞 | 评论</div> <div class="preview-operation">赞 | 评论</div>
</div> </div>
</div> </div>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose" class="video-dialog"> <el-dialog :visible.sync="videoShow" :before-close="handleClose" class="video-dialog">
<div slot="title" style="height: 18px"></div> <div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls :src="this.videoUrl"></video> <video v-if="videoShow" width="100%" height="100%" autoplay controls :src="this.videoUrl"></video>
</el-dialog> </el-dialog>
...@@ -112,10 +112,9 @@ export default { ...@@ -112,10 +112,9 @@ export default {
} }
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.img-list { .img-list {
margin-right: 3px; margin-right: 3px;
margin-bottom: -10px;
} }
.img-bg { .img-bg {
position: relative; position: relative;
...@@ -166,7 +165,7 @@ export default { ...@@ -166,7 +165,7 @@ export default {
color: #556993; color: #556993;
} }
.video-panel { .video-panel {
width: 136px; width: 100%;
height: 102px; height: 102px;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -183,20 +182,23 @@ export default { ...@@ -183,20 +182,23 @@ export default {
} }
} }
.preview-text { .preview-text {
font-size: 14px;
position: relative; position: relative;
color: #333; color: #333;
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
word-break: break-all; word-break: break-all;
display: flex; line-height: 20px;
img { /deep/ img {
width: 20px; width: 20px;
height: 20px; height: 20px;
vertical-align: middle;
} }
} }
.text { .text {
font-size: 12px; font-size: 12px;
padding: 8px 0px; padding: 0px;
margin-bottom: 6px;
} }
.preview-link { .preview-link {
padding: 6px 0px; padding: 6px 0px;
...@@ -270,6 +272,7 @@ export default { ...@@ -270,6 +272,7 @@ export default {
} }
} }
.video-dialog { .video-dialog {
/deep/ {
.el-dialog__header { .el-dialog__header {
border-bottom: 0px; border-bottom: 0px;
background-color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);
...@@ -277,5 +280,6 @@ export default { ...@@ -277,5 +280,6 @@ export default {
.el-dialog__body { .el-dialog__body {
padding: 0px; padding: 0px;
} }
}
} }
</style> </style>
...@@ -350,6 +350,7 @@ export default { ...@@ -350,6 +350,7 @@ export default {
-webkit-user-select: none; -webkit-user-select: none;
cursor: default; cursor: default;
pointer-events: none; pointer-events: none;
vertical-align: middle;
} }
.active { .active {
background: #dcdfe6; background: #dcdfe6;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="welcome-box"> <div class="welcome-box">
<!-- <div class="required">入群欢迎语</div> --> <!-- <div class="required">入群欢迎语</div> -->
<div class="content"> <div class="content">
<div class="content-bg"> <div class="content-bg" v-loading="loading">
<!-- <div id="nick" contenteditable="false" class="nickname"> <!-- <div id="nick" contenteditable="false" class="nickname">
@昵称 @昵称
<i class="el-icon-error"></i> <i class="el-icon-error"></i>
...@@ -196,7 +196,6 @@ export default { ...@@ -196,7 +196,6 @@ export default {
this.$message.error('上传图片大小不能超过' + limitSize + 'MB!') this.$message.error('上传图片大小不能超过' + limitSize + 'MB!')
return true return true
} }
this.loading = true
reader.readAsDataURL(file) reader.readAsDataURL(file)
reader.onload = e => { reader.onload = e => {
var image = new Image() var image = new Image()
...@@ -225,6 +224,7 @@ export default { ...@@ -225,6 +224,7 @@ export default {
console.log(imgIndex) console.log(imgIndex)
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.loading = true
this.$apis.common.pictureUpload({ file: base64 }).then(res => { this.$apis.common.pictureUpload({ file: base64 }).then(res => {
let len = this.previewList.length - 1 let len = this.previewList.length - 1
if (res) { if (res) {
...@@ -261,6 +261,7 @@ export default { ...@@ -261,6 +261,7 @@ export default {
return item.attType == ATT_TYPE.TEXT return item.attType == ATT_TYPE.TEXT
}) })
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
this.loading = true
this.$apis.common.pictureUpload({ file: base64 }).then(res => { this.$apis.common.pictureUpload({ file: base64 }).then(res => {
if (res) { if (res) {
this.previewList.push({ this.previewList.push({
...@@ -271,6 +272,7 @@ export default { ...@@ -271,6 +272,7 @@ export default {
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
}) })
} }
this.loading = false
}) })
document.querySelector('.upload-video').value = '' document.querySelector('.upload-video').value = ''
} }
......
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
</glsx-dialog> </glsx-dialog>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel">取消</el-button>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">通知成员发送</el-button> <el-button type="primary" v-loading="addLoading" @click="handleSubmit">通知成员发送</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</GLFooter> </GLFooter>
</div> </div>
</template> </template>
...@@ -149,12 +149,12 @@ export default { ...@@ -149,12 +149,12 @@ export default {
type: 'video', type: 'video',
funName: 'video' funName: 'video'
}, },
{ // {
id: 4, // id: 4,
name: '活动', // name: '活动',
type: 'acivity', // type: 'acivity',
funName: 'activity' // funName: 'activity'
} // }
], ],
basicForm: { basicForm: {
selectType: 1, selectType: 1,
......
...@@ -269,7 +269,7 @@ export default { ...@@ -269,7 +269,7 @@ export default {
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
.detail-info { .detail-info {
padding: 0 20px; padding: 0 20px 20px;
.detail-total { .detail-total {
padding: 20px 0 14px; padding: 20px 0 14px;
font-size: 14px; font-size: 14px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group p-t-20">
<div class="m-b-20 friend-title"> <div class="m-b-20 friend-title">
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button> --> <!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button> -->
<el-button :size="size" type="primary" fn="发布朋友圈" @click="handleEdit(1)">发布朋友圈</el-button> <GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton>
<span>管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span> <span>管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span>
</div> </div>
<div class="container"> <div class="container">
...@@ -28,23 +28,26 @@ ...@@ -28,23 +28,26 @@
<div class="image-num">{{ scope.scope.previewListImg.length }}</div> <div class="image-num">{{ scope.scope.previewListImg.length }}</div>
<div class="image-panel"><img src="@/assets/imgNum.png" /></div> <div class="image-panel"><img src="@/assets/imgNum.png" /></div>
</div> </div>
<div class="attachmentList-image attachmentList-video" v-if="index == 0 && item.attType == 3 && scope.scope.materialType == 3"><i class="el-icon-video-play"></i></div> <div class="attachmentList-image attachmentList-video" v-if="index == 0 && item.attType == 3 && scope.scope.materialType == 3"><img src="@/assets/guestCustom/video-list.png" /></div>
</div> </div>
<div v-for="item in scope.scope.previewListText" :key="item.id"> <div v-for="item in scope.scope.previewListText" :key="item.id">
<div class="attachmentList-text" v-if="item.attContent">{{ item.attContent[0] }}</div> <div class="attachmentList-text" v-if="item.attContent">{{ item.attContent[0] }}</div>
</div> </div>
</div> </div>
</div> </div>
<div slot="sendType" slot-scope="scope">
<span style="color: #eb4e4e" v-if="scope.scope.sendType == 1">定时发送</span>
<span v-if="scope.scope.sendType == 2">立即发送</span>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" disabled v-if="scope.scope.status == 2">创建中</el-button> <el-button type="text" disabled v-if="scope.scope.status == 2 || scope.scope.status == 1">创建中</el-button>
<el-button type="text" disabled v-if="scope.scope.status == 1">开始创建</el-button>
<el-button type="text" disabled v-if="scope.scope.status == -1">创建失败</el-button> <el-button type="text" disabled v-if="scope.scope.status == -1">创建失败</el-button>
<el-button type="text" disabled v-if="scope.scope.status == 4">取消发送</el-button> <el-button type="text" disabled v-if="scope.scope.status == 4">取消发送</el-button>
<el-button type="text" v-if="scope.scope.sendType == 2 && getTimeStatus(scope.scope.sendTime) && scope.scope.status != 4" @click="handleCancel(scope.scope)">取消发送</el-button>
<el-popover v-if="scope.scope.status == 0" placement="top" width="230" trigger="click" content="未到朋友圈发送时间,无法查看详情"> <el-popover v-if="scope.scope.status == 0" placement="top" width="230" trigger="click" content="未到朋友圈发送时间,无法查看详情">
<el-button slot="reference" type="text" style="color: #999999">详情</el-button> <el-button slot="reference" type="text" style="color: #999999">详情</el-button>
</el-popover> </el-popover>
<el-button type="text" v-if="scope.scope.sendType == 2 && getTimeStatus(scope.scope.sendTime) && scope.scope.status != 4" @click="handleCancel(scope.scope)">取消发送</el-button> <GLButton type="text" fn="详情" v-if="scope.scope.status == 3" @click="handleDetail(scope.scope)">详情</GLButton>
<el-button type="text" v-if="scope.scope.status == 3" @click="handleDetail(scope.scope)">详情</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -136,9 +139,7 @@ export default { ...@@ -136,9 +139,7 @@ export default {
{ {
label: '发布方式', label: '发布方式',
name: 'sendType', name: 'sendType',
formatter: cellValue => { addHtml: 'sendType',
return this.baseData.modeStatusList.find(item => item.confId == cellValue.sendType).confName
},
width: '120' width: '120'
}, },
{ {
...@@ -435,6 +436,7 @@ export default { ...@@ -435,6 +436,7 @@ export default {
.friend-title { .friend-title {
color: #666666; color: #666666;
span { span {
font-size: 14px;
margin-left: 10px; margin-left: 10px;
font-weight: 100; font-weight: 100;
} }
...@@ -477,12 +479,12 @@ export default { ...@@ -477,12 +479,12 @@ export default {
&.attachmentList-video { &.attachmentList-video {
background: rgba($color: #000000, $alpha: 0.7); background: rgba($color: #000000, $alpha: 0.7);
position: relative; position: relative;
i { img {
position: absolute; position: absolute;
font-size: 24px; top: 6px;
top: 5px; left: 6px;
left: 5px; width: 24px;
color: #fff; height: 24px;
} }
} }
> img { > img {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!