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