|
@@ -12,6 +12,7 @@
|
|
|
href="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1758012584633/vant.css" />
|
|
href="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1758012584633/vant.css" />
|
|
|
<!-- 必须先引入vue, 后使用vant-ui -->
|
|
<!-- 必须先引入vue, 后使用vant-ui -->
|
|
|
<link rel="stylesheet" href="../css/select-tag.css">
|
|
<link rel="stylesheet" href="../css/select-tag.css">
|
|
|
|
|
+ <link rel="stylesheet" href="../css/page-return.css">
|
|
|
<script
|
|
<script
|
|
|
src="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1742017957144/vue.js"></script>
|
|
src="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1742017957144/vue.js"></script>
|
|
|
<!-- 引入vant的组件库-->
|
|
<!-- 引入vant的组件库-->
|
|
@@ -21,6 +22,7 @@
|
|
|
|
|
|
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
|
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
|
|
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
|
|
|
|
|
+ <script src="../js/page-return.js"></script>
|
|
|
<!-- <script src="js/vconsole.min.js"></script>
|
|
<!-- <script src="js/vconsole.min.js"></script>
|
|
|
<script>
|
|
<script>
|
|
|
var vConsole = new window.VConsole();
|
|
var vConsole = new window.VConsole();
|
|
@@ -34,7 +36,7 @@
|
|
|
|
|
|
|
|
.box {
|
|
.box {
|
|
|
width: 100vw;
|
|
width: 100vw;
|
|
|
- min-height: 100vh;
|
|
|
|
|
|
|
+ height: 100vh;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
background: #F7F9FC;
|
|
background: #F7F9FC;
|
|
|
}
|
|
}
|
|
@@ -42,7 +44,6 @@
|
|
|
.page5 {
|
|
.page5 {
|
|
|
width: 100vw;
|
|
width: 100vw;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- padding: 15px;
|
|
|
|
|
}
|
|
}
|
|
|
.page_top {
|
|
.page_top {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -145,7 +146,7 @@
|
|
|
}
|
|
}
|
|
|
.page_foot {
|
|
.page_foot {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- bottom: 0;
|
|
|
|
|
|
|
+ bottom: 39px;
|
|
|
left: 0;
|
|
left: 0;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
@@ -327,6 +328,29 @@
|
|
|
<body>
|
|
<body>
|
|
|
<div id="box" class="box">
|
|
<div id="box" class="box">
|
|
|
<div class="page5">
|
|
<div class="page5">
|
|
|
|
|
+ <!-- 选择视频格式 -->
|
|
|
|
|
+ <van-popup v-model="showVideoType" duration="0.2" round position="bottom" :close-on-click-overlay="false"
|
|
|
|
|
+ :style="{ width: '100%', height: '266px' }">
|
|
|
|
|
+ <div class="clientTag_title">
|
|
|
|
|
+ <div class="close_icon"></div>
|
|
|
|
|
+ <div>选择视频格式</div>
|
|
|
|
|
+ <img class="close_icon" src="../img/qw/close_icon.png" alt="" @click="showVideoType = false">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="filter_list1">
|
|
|
|
|
+ <div :class="filterIndex ? 'filter_img' : 'filter_exc'" @click="filterIndex = 1">
|
|
|
|
|
+ <img :src="filterIndex ? '../img/qw/video_type.png' : '../img/qw/video_type1.png'" alt="">
|
|
|
|
|
+ <div>视频</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div :class="filterIndex ? 'filter_exc' : 'filter_img'" @click="filterIndex = 0">
|
|
|
|
|
+ <img :src="filterIndex ? '../img/qw/videoLink_type1.png' : '../img/qw/videoLink_type.png'" alt="">
|
|
|
|
|
+ <div>视频链接</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="tag_footers">
|
|
|
|
|
+ <div class="tag_re_btn" @click="showVideoType = false">取消</div>
|
|
|
|
|
+ <div class="tag_ok_btn" @click="handleVideoType">确定</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </van-popup>
|
|
|
<!-- 选择图集格式 -->
|
|
<!-- 选择图集格式 -->
|
|
|
<van-popup v-model="showImgType" duration="0.2" round position="bottom" :close-on-click-overlay="false"
|
|
<van-popup v-model="showImgType" duration="0.2" round position="bottom" :close-on-click-overlay="false"
|
|
|
:style="{ width: '100%', height: '266px' }">
|
|
:style="{ width: '100%', height: '266px' }">
|
|
@@ -395,7 +419,7 @@
|
|
|
<span class="path_line">/</span>{{item.text}}</span>
|
|
<span class="path_line">/</span>{{item.text}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="data_list" :style="{height: selectedMaters.length > 0 ? 'calc(100vh - 320px)' : 'calc(100vh - 213px)'}">
|
|
|
|
|
|
|
+ <div class="data_list" :style="{height: selectedMaters.length > 0 ? 'calc(100vh - 356px)' : 'calc(100vh - 213px)'}">
|
|
|
<div class="data_item" v-for="item in treeData" :key="item.id" @click="handleFolderClick(item)">
|
|
<div class="data_item" v-for="item in treeData" :key="item.id" @click="handleFolderClick(item)">
|
|
|
<img src="../img/qw/folder.png" alt="" />
|
|
<img src="../img/qw/folder.png" alt="" />
|
|
|
<div class="data_title">{{item.text}}</div>
|
|
<div class="data_title">{{item.text}}</div>
|
|
@@ -405,7 +429,7 @@
|
|
|
<img v-if="contentType === 0" src="../img/qw/article.png" alt="" />
|
|
<img v-if="contentType === 0" src="../img/qw/article.png" alt="" />
|
|
|
<img v-else-if="contentType === 2" src="../img/qw/form.png" alt="" />
|
|
<img v-else-if="contentType === 2" src="../img/qw/form.png" alt="" />
|
|
|
<img v-else-if="contentType === 3" src="../img/qw/file.png" alt="" />
|
|
<img v-else-if="contentType === 3" src="../img/qw/file.png" alt="" />
|
|
|
- <img v-else-if="contentType === 16" src="../img/qw/video.png" alt="" />
|
|
|
|
|
|
|
+ <img v-else-if="contentType === 15" src="../img/qw/video.png" alt="" />
|
|
|
<img v-else-if="contentType === 17" src="../img/qw/imgList.png" alt="" />
|
|
<img v-else-if="contentType === 17" src="../img/qw/imgList.png" alt="" />
|
|
|
<img v-else-if="contentType === 4" src="../img/qw/link.png" alt="" />
|
|
<img v-else-if="contentType === 4" src="../img/qw/link.png" alt="" />
|
|
|
<div class="data_title">{{item.title || item.name}}</div>
|
|
<div class="data_title">{{item.title || item.name}}</div>
|
|
@@ -429,6 +453,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- 底部返回栏 -->
|
|
|
|
|
+ <page-return></page-return>
|
|
|
</div>
|
|
</div>
|
|
|
</body>
|
|
</body>
|
|
|
<script>
|
|
<script>
|
|
@@ -463,7 +489,7 @@
|
|
|
title: '文件'
|
|
title: '文件'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- contentType: 16,
|
|
|
|
|
|
|
+ contentType: 15,
|
|
|
icon: '../img/qw/video.png',
|
|
icon: '../img/qw/video.png',
|
|
|
icon1: '../img/qw/video1.png',
|
|
icon1: '../img/qw/video1.png',
|
|
|
title: '视频'
|
|
title: '视频'
|
|
@@ -495,7 +521,7 @@
|
|
|
title: '文件'
|
|
title: '文件'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- contentType: 16,
|
|
|
|
|
|
|
+ contentType: 15,
|
|
|
title: '视频'
|
|
title: '视频'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -519,10 +545,11 @@
|
|
|
selectedMaters: [], // 当前选中的所有素材数据
|
|
selectedMaters: [], // 当前选中的所有素材数据
|
|
|
pathList: [], // 当前路径
|
|
pathList: [], // 当前路径
|
|
|
contentTypeCount: {}, // 当前选中的类型数量
|
|
contentTypeCount: {}, // 当前选中的类型数量
|
|
|
- filterIndex: 0,
|
|
|
|
|
|
|
+ filterIndex: 1,
|
|
|
showImgType: false,
|
|
showImgType: false,
|
|
|
showImgList: false,
|
|
showImgList: false,
|
|
|
imgList: [], // 图集图片列表
|
|
imgList: [], // 图集图片列表
|
|
|
|
|
+ showVideoType: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -578,7 +605,7 @@
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctFormGroupTree'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctFormGroupTree'
|
|
|
} else if (this.contentType === 3) {
|
|
} else if (this.contentType === 3) {
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctFileGroupTree'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctFileGroupTree'
|
|
|
- } else if (this.contentType === 16) {
|
|
|
|
|
|
|
+ } else if (this.contentType === 15) {
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctVideoGroupTree'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctVideoGroupTree'
|
|
|
} else if (this.contentType === 17) {
|
|
} else if (this.contentType === 17) {
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctImgGroupTree'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/ctImgGroupTree'
|
|
@@ -631,7 +658,7 @@
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageForm'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageForm'
|
|
|
} else if (this.contentType === 3) {
|
|
} else if (this.contentType === 3) {
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageFile'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageFile'
|
|
|
- } else if (this.contentType === 16) {
|
|
|
|
|
|
|
+ } else if (this.contentType === 15) {
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageVideo'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageVideo'
|
|
|
} else if (this.contentType === 17) {
|
|
} else if (this.contentType === 17) {
|
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageImg'
|
|
url = '/scrm/v1/wxcp-chat-tool/p/pageImg'
|
|
@@ -707,7 +734,7 @@
|
|
|
this.selectedMaters.forEach(item => {
|
|
this.selectedMaters.forEach(item => {
|
|
|
existingIdsMap.set(item.id, item)
|
|
existingIdsMap.set(item.id, item)
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 更新或添加当前选中的数据(优先使用当前页面的数据和类型)
|
|
// 更新或添加当前选中的数据(优先使用当前页面的数据和类型)
|
|
|
currentSelected.forEach(item => {
|
|
currentSelected.forEach(item => {
|
|
|
existingIdsMap.set(item.id, item)
|
|
existingIdsMap.set(item.id, item)
|
|
@@ -768,16 +795,33 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
localStorage.setItem('selectedMaters', JSON.stringify(this.selectedMaters))
|
|
localStorage.setItem('selectedMaters', JSON.stringify(this.selectedMaters))
|
|
|
|
|
+ if (this.selectedMaters.length > 9) {
|
|
|
|
|
+ vant.Toast.fail('最多选择9个素材')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
window.history.back()
|
|
window.history.back()
|
|
|
},
|
|
},
|
|
|
handleCheckboxClick (item) {
|
|
handleCheckboxClick (item) {
|
|
|
- console.log(item)
|
|
|
|
|
|
|
+ // if (this.contentType === 16) {
|
|
|
|
|
+ // if (this.selectedMaters.some(s => s.id === item.id)) {
|
|
|
|
|
+ // this.showVideoType = true
|
|
|
|
|
+ // }
|
|
|
|
|
+ // } else
|
|
|
if (this.contentType === 17) {
|
|
if (this.contentType === 17) {
|
|
|
if (this.selectedMaters.some(s => s.id === item.id)) {
|
|
if (this.selectedMaters.some(s => s.id === item.id)) {
|
|
|
this.showImgType = true
|
|
this.showImgType = true
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ handleVideoType () {
|
|
|
|
|
+ // this.showVideoType = false
|
|
|
|
|
+ // let obj = this.selectedMaters[this.selectedMaters.length - 1]
|
|
|
|
|
+ // this.selectedMaters.push({
|
|
|
|
|
+ // contentType: this.filterIndex === 1 ? 15 : 16,
|
|
|
|
|
+ // ...obj,
|
|
|
|
|
+ // })
|
|
|
|
|
+ // this.contentTypeCount = this.countByType(this.selectedMaters)
|
|
|
|
|
+ },
|
|
|
handleImgType () {
|
|
handleImgType () {
|
|
|
if (this.filterIndex === 0) {
|
|
if (this.filterIndex === 0) {
|
|
|
this.showImgType = false
|
|
this.showImgType = false
|
|
@@ -785,6 +829,7 @@
|
|
|
this.showImgType = false
|
|
this.showImgType = false
|
|
|
this.imgList = this.selectedMaters[this.selectedMaters.length-1].imgList
|
|
this.imgList = this.selectedMaters[this.selectedMaters.length-1].imgList
|
|
|
this.selectedMaters.pop() // 删除最后一条数据(点击自动添加进去的图集项链接)
|
|
this.selectedMaters.pop() // 删除最后一条数据(点击自动添加进去的图集项链接)
|
|
|
|
|
+ this.checkedMaterIds.pop()
|
|
|
this.selectedMaters.forEach(s => {
|
|
this.selectedMaters.forEach(s => {
|
|
|
this.imgList.forEach(item => {
|
|
this.imgList.forEach(item => {
|
|
|
if (s.id === item.id) {
|
|
if (s.id === item.id) {
|