|
@@ -16,7 +16,7 @@
|
|
|
<span class="detail">{{ item.snippet.description }}</span>
|
|
|
<div class="btn">
|
|
|
<span @click="openUrl(item.id.videoId)">查看</span>
|
|
|
- <span @click="checkUrl(item.snippet.title,item.id.videoId)">选择</span>
|
|
|
+ <span @click="checkUrl(item.snippet.title,item.id.videoId)">加入</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -102,6 +102,7 @@ export default {
|
|
|
type: 8,
|
|
|
}
|
|
|
this.$emit('createAiVideo', json)
|
|
|
+ this.$message.success('加入成功')
|
|
|
},
|
|
|
changeRadio() {
|
|
|
if (this.radio == 0) {
|
|
@@ -118,7 +119,7 @@ export default {
|
|
|
let _this = this
|
|
|
_this.loading = true
|
|
|
this.ajax
|
|
|
- .get(`https://www.googleapis.com/youtube/v3/search?key=AIzaSyBUvNQ5Wyua4PbStE2vp3t7MIY4htry-4M&part=snippet&q=${this.detail}&maxResults=10`)
|
|
|
+ .get(`https://www.googleapis.com/youtube/v3/search?key=AIzaSyBUvNQ5Wyua4PbStE2vp3t7MIY4htry-4M&part=snippet&q=${this.detail}&maxResults=10&type=video&order=relevance®ionCode=HK`)
|
|
|
.then((response) => {
|
|
|
console.log(response);
|
|
|
_this.data = response.data.items
|