修复
This commit is contained in:
parent
da8e780b11
commit
7296d226f4
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<!-- <articles></articles> -->
|
<!-- <articles></articles> -->
|
||||||
|
|
||||||
<p class="title" @click="show = true">热门推荐</p>
|
<p class="title">热门推荐</p>
|
||||||
<!-- <privatets></privatets> -->
|
<!-- <privatets></privatets> -->
|
||||||
<privates
|
<privates
|
||||||
v-for="(item,index) in list.correlation"
|
v-for="(item,index) in list.correlation"
|
||||||
|
@ -189,7 +189,7 @@ export default {
|
|||||||
shar() {
|
shar() {
|
||||||
const input = document.createElement("input");
|
const input = document.createElement("input");
|
||||||
document.body.appendChild(input);
|
document.body.appendChild(input);
|
||||||
var url = this.type==1?`http://www.lawpro.cn/m/#/articledetail?id=${this.id}` : `http://www.lawpro.cn/m/#/IndexArticleDetaill?id=${this.id}`
|
var url = this.type==1?`http://www.lawpro.cn/phone/#/articledetail?id=${this.id}` : `http://www.lawpro.cn/phone/#/IndexArticleDetaill?id=${this.id}`
|
||||||
input.setAttribute("value", url);
|
input.setAttribute("value", url);
|
||||||
input.select();
|
input.select();
|
||||||
if (document.execCommand("copy")) {
|
if (document.execCommand("copy")) {
|
||||||
|
@ -164,7 +164,7 @@ export default {
|
|||||||
shar() {
|
shar() {
|
||||||
const input = document.createElement("input");
|
const input = document.createElement("input");
|
||||||
document.body.appendChild(input);
|
document.body.appendChild(input);
|
||||||
var url = `http://www.lawpro.cn/m//#/IndexArticleDetaill?id=${this.$route.query.id}`
|
var url = `http://www.lawpro.cn/phone//#/IndexArticleDetaill?id=${this.$route.query.id}`
|
||||||
input.setAttribute("value", url);
|
input.setAttribute("value", url);
|
||||||
input.select();
|
input.select();
|
||||||
if (document.execCommand("copy")) {
|
if (document.execCommand("copy")) {
|
||||||
|
@ -225,7 +225,7 @@ export default {
|
|||||||
shar() {
|
shar() {
|
||||||
const input = document.createElement("input");
|
const input = document.createElement("input");
|
||||||
document.body.appendChild(input);
|
document.body.appendChild(input);
|
||||||
var url = `http://www.lawpro.cn/m/#/articledetail?id=${this.$route.query.id}`
|
var url = `http://www.lawpro.cn/phone/#/articledetail?id=${this.$route.query.id}`
|
||||||
input.setAttribute("value", url);
|
input.setAttribute("value", url);
|
||||||
input.select();
|
input.select();
|
||||||
if (document.execCommand("copy")) {
|
if (document.execCommand("copy")) {
|
||||||
|
@ -4,18 +4,21 @@
|
|||||||
<div style="height:0.88rem"></div>
|
<div style="height:0.88rem"></div>
|
||||||
<div class="mnuelist">
|
<div class="mnuelist">
|
||||||
<div @click="tab(0)">
|
<div @click="tab(0)">
|
||||||
<img src="../assets/index.png" alt="" class="icon">
|
<img src="../assets/index.png" alt class="icon" />
|
||||||
首页</div>
|
首页
|
||||||
|
</div>
|
||||||
<div @click="tab(1)">
|
<div @click="tab(1)">
|
||||||
<img src="../assets/mine.png" alt="" class="icon">
|
<img src="../assets/mine.png" alt class="icon" />
|
||||||
我的主页</div>
|
我的主页
|
||||||
|
</div>
|
||||||
<div @click="tab(2)">
|
<div @click="tab(2)">
|
||||||
<img src="../assets/logout.png" alt="" class="icon">
|
<img src="../assets/logout.png" alt class="icon" />
|
||||||
{{token==''?'登录':'退出登录'}}</div>
|
{{token=='' || token == null?'登录':'退出登录'}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<img class="logo" src="../assets/logo1.png" alt srcset />
|
<img class="logo" src="../assets/logo1.png" alt srcset />
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<img src="../assets/zoom.png" alt />
|
<img src="../assets/zoom.png" alt />
|
||||||
@ -39,7 +42,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
.icon{
|
.icon {
|
||||||
width: 26px;
|
width: 26px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
@ -108,17 +111,17 @@ export default {
|
|||||||
return {
|
return {
|
||||||
show: false,
|
show: false,
|
||||||
serch: "",
|
serch: "",
|
||||||
token:""
|
token: ""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted() {
|
||||||
window.console.log(localStorage.getItem("token")=='',465)
|
window.console.log(localStorage.getItem("token") == "", 465);
|
||||||
this.token=localStorage.getItem("token")
|
this.token = localStorage.getItem("token");
|
||||||
// if (localStorage.getItem("token") == ""){
|
// if (localStorage.getItem("token") == ""){
|
||||||
// this.menu3="登录"
|
// this.menu3="登录"
|
||||||
// }else{
|
// }else{
|
||||||
// this.menu3="退出登录"
|
// this.menu3="退出登录"
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isshow() {
|
isshow() {
|
||||||
@ -134,18 +137,25 @@ export default {
|
|||||||
switch (e) {
|
switch (e) {
|
||||||
case 0:
|
case 0:
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/'
|
path: "/"
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
this.$router.push({
|
if (this.token == "" || this.token == null) {
|
||||||
path: '/PersonalHomepage'
|
this.$router.push({
|
||||||
});
|
path: "/login"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/PersonalHomepage"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
localStorage.setItem('toekn',"")
|
localStorage.setItem("toekn", "");
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/login'
|
path: "/login"
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user