代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<title>抖音去水印</title>
<meta name="referrer" content="never">
<meta charset="UTF-8">
<meta content='抖音,短视频,去水印,删水印,原始视频,去LOGO,删LOGO,原视频' name='Keywords'>
<meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
<meta content='抖音一键去水印,粘贴抖音分享链接,一键获取原始视频下载地址!' itemprop='description' name='Description'>
<link rel="stylesheet" href="./static/css/element.css">
<style>
body,
html {
padding: 0;
margin: 0;
background-color: #f5f5f5;
overflow: hidden;
}
* {
font-family: consolas, PingFang SC, Microsoft YaHei;
}
[v-cloak] {
visibility: hidden !important;
}
.search {
text-align: center;
padding-top: 120px;
z-index: 99;
}
.search .form {
width: 80%;
max-width: 500px;
margin-top: 30px;
}
.search .logo {
text-align: center;
display: block;
font-size: 44px;
color: #999;
font-weight: bold;
}
.search .logo img {
width: 400px;
}
.search .link {
margin-top: 20px;
}
.success {
text-align: center;
padding-top: 20px;
z-index: 99;
}
.about {
position: fixed;
right: 20px;
left: 20px;
bottom: 30px;
text-align: center;
}
</style>
</head>
<body>
<div id="app" v-cloak v-loading.fullscreen.lock="fullscreenLoading">
<div class="search">
<div class="logo">
<font color=orangered>抖</font>音<font color=orangered>去</font>水印
</div>
<el-input autoFocus="true" id="keyword" ref="keyword" v-model="keyword" placeholder="请粘贴抖音复制的链接..."
class="form" size="large">
<el-button slot="append" icon="el-icon-search" @click="doPost">去水印</el-button>
</el-input>
</div>
<div class="success" v-show="successShow">
<div style="color: rgb(49, 112, 143);padding: 15px">
{{successMessage}}
</div>
<el-button v-if="!needRefresh" type="success"><a :href="videoUrl"
style="text-decoration:none;color: #ffffff" target="_blank">查看视频</a>
</el-button>
<el-button v-if="needRefresh" class="copy" type="primary" v-clipboard:copy="videoUrl"
v-clipboard:success="onCopySuccess" v-clipboard:error="onCopyError">复制链接
</el-button>
<el-button type="danger" @click="clear">清空</el-button>
</div>
<div style="text-align: center;">
<a href="help.html" style="text-decoration:none;color: #8c939d">不会操作?点这里</a>
</div>
</div>
</body>
<script src="./static/js/vue-2.6.10.min.js"></script>
<script src="./static/js/axios.min.js"></script>
<script src="./static/js/element.js"></script>
<script src="./static/js/vue-clipboard.min.js"></script>
<script>
new Vue({
el: '#app',
data() {
return {
keyword: '',
fullscreenLoading: false,
videoUrl: '',
successShow: false,
successMessage: '',
needRefresh: false,
}
},
created() {
},
updated() {
},
methods: {
doPost() {
var that = this;
that.fullscreenLoading = true;
axios.post('api.php', that.keyword)
.then(function (response) {
that.fullscreenLoading = false;
if (response.data.code == 200) {
that.successShow = true;
that.videoUrl = response.data.data;
that.successMessage = response.data.msg;
that.needRefresh = false;
} else if (response.data.code == 301) {
that.successShow = true;
that.videoUrl = response.data.data;
that.successMessage = response.data.msg;
that.needRefresh = true;
} else {
that.$message.error(response.data.msg);
}
})
.catch(function (error) {
console.log(error)
that.$message.error('出现异常,你可以控制台查看错误');
});
},
clear() {
this.keyword = '';
this.successShow = false
},
onCopySuccess(e) {
this.$message({message: '复制成功!', type: 'success'});
},
onCopyError(e) {
this.$message.error('复制失败!');
}
}
});
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。