1 Star 0 Fork 0

魏先生new/movieweb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
comment.html 6.41 KB
一键复制 编辑 原始数据 按行查看 历史
weiliming125 提交于 2021-10-14 19:41 . 点播系统前端
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
<script src="static/js/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<meta charset="utf-8">
<title></title>
<style>
.u1{
text-align: center;
background-color: #000000;
}
.d1{
background-color: #000000;
border: none;
}
.i1{
border:none;
background-color: #696969;
}
p{
font-size: 20px;
}
a{
cursor: pointer;
text-decoration: none;
}
a:hover{
text-decoration: none;
}
</style>
</head>
<body>
<div id="tempalte">
<div style="width: 100%;height: 1000px;background-color: #151515;">
<div class="d1">
<nav class="navbar navbar-default d1">
<div class="container-fluid d1">
<div class="navbar-header d1">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="static/img/logo.png" style="height: 50px;margin: 0;padding: 0;">
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="main.html">首页</a></li>
<li><a href="#">最新剧集</a></li>
<li><a href="#">留言求篇</a></li>
<li><a href="gengxin(1).html">最近更新</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">电影分类 <span class="caret"></span></a>
<ul class="dropdown-menu u1">
<li><a href="domestic.html"><p class="p1">国产电影</p></a></li>
<li><a href="#"><p class="p1">港台电影</p></a></li>
<li><a href="#"><p class="p1">欧美电影</p></a></li>
<li><a href="#"><p class="p1">日韩电影</p></a></li>
<li><a href="#"><p class="p1">亚太电影</p></a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left">
<div class="form-group">
<input type="text" class="form-control i1" placeholder="输入电影名搜索">
</div>
<button type="submit" class="btn btn-default">搜索</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li @click="forword()"><a href="#"><img style="width: 26px;height: 26px;border-radius: 13px;" :src="userimage" ><span>&nbsp;{{username}}</span></a></li>
<li><a href="1.html">登录</a></li>
<li><a href="2.html">注册</a></li>
<li @click="extit()"><a href="#">注销</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div style="width: 70%;margin: 0 auto;background-color: #000000;">
<div style="width: 98%;margin: 0 auto;">
<span>发布时间:</span><span>2021年9月29号<span>
<div style="width: 100%;text-align: center;margin-top: 30px;">
<p>注意,要发布评论必须先<a href="1.html">登录</a></p>
<p>如果没有账号请先<a href="2.html">注册</a></p>
<p>本平台没有广告</p>
<p>评论时请理性评论,不要用过激词汇、侮辱他人等不当言论</p>
<p>评论不要出现违背党和国家的词汇,爱国爱党</p>
<p>谢谢来到***</p>
<div>
<div style="width: 98%;margin: 0 auto;">
<div style="width: 100%;margin-top: 30px;border-top: 1px solid #6a6a6a;height: 80px;line-height: 80px;">
<div style="width: 60px;height: 60px;float: left;">
<img src="static/img/add-circle.png">
</div>
<div style="height: 60px;float: left;width: 400px;margin-top: 10px;text-align: left;margin-left: 20px;">
<div style="height: 30px;line-height: 30px;width: 500px;">名字、时间</div>
<div style="height: 30px;line-height: 30px;width: 500px;">内容</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="static/js/vue.js"></script>
<script type="text/javascript" src="static/js/axios.min.js"></script>
<script type="text/javascript" src="static/js/base.js"></script>
<script type="text/javascript" src="static/js/cookie_utils.js"></script>
<script>
var burl=Baseurl+"/user/extit";
var hurl=Baseurl+"/person/yan";
var vm=new Vue({
el:"#tempalte",
data:{
username:"",
userimage:"static/img/头像.png"
},
created() {
if(getCookieValue("username")==null || getCookieValue("username")=="null"){
this.username="";
this.userimage="static/img/头像.png";
}else{
this.username=getCookieValue("username");
this.userimage=getCookieValue("userimage");
}
},
methods:{
extit:function(){
var token=getCookieValue("token");
var username=getCookieValue("username");
axios({
method:"get",
url:burl,
headers:{
//设置请求头
token:token
}
}).then((res)=>{
var data=res.data;
if(data.code==10001){
// delCookie(token);
// delCookie(username);
clearAllCookie();
alert(data.msg);
vm.userimage="static/img/头像.png";
vm.username="";
}else{
alert(data.msg);
}
});
},
forword:function(){
var token=getCookieValue("token");
axios({
method:"get",
url:hurl,
headers:{
//设置请求头
token:token
}
}).then((res)=>{
var vo=res.data;
if(vo.code==10001){
setTimeout(function(){
window.location.href="personpage.html";
},10)
}else{
alert(vo.msg);
setTimeout(function(){
window.location.href="1.html";
},100)
}
});
}
}
});
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mr-wei-new/movieweb.git
git@gitee.com:mr-wei-new/movieweb.git
mr-wei-new
movieweb
movieweb
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385