url
This commit is contained in:
parent
c8b19546b7
commit
c901454332
@ -140,7 +140,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
window.console.log(this.content);
|
window.console.log(this.content);
|
||||||
if (this.content != "") {
|
if (this.content != "") {
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/appendComment", {
|
.post("https://lawpro.earnest.pro/api/login_main/appendComment", {
|
||||||
text: this.content,
|
text: this.content,
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type_id: this.pid,
|
type_id: this.pid,
|
||||||
@ -169,7 +169,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
this.show = true;
|
this.show = true;
|
||||||
|
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/CommentList", {
|
.post("https://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: 3,
|
type: 3,
|
||||||
type_id: id,
|
type_id: id,
|
||||||
@ -189,7 +189,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/mainDetails", {
|
.post("https://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: 2,
|
type: 2,
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
@ -201,7 +201,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
|
|
||||||
});
|
});
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/answerList", {
|
.post("https://lawpro.earnest.pro/api/login_main/answerList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
page: 1,
|
page: 1,
|
||||||
article_id: this.$route.query.id
|
article_id: this.$route.query.id
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
:collect="i.collect"
|
:collect="i.collect"
|
||||||
:id="i.id"
|
:id="i.id"
|
||||||
:type="i.type"
|
:type="i.type"
|
||||||
|
:keys="keys"
|
||||||
></indexfindall>
|
></indexfindall>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -59,7 +60,7 @@
|
|||||||
></indedfinduser>
|
></indedfinduser>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="width:100%;height:0.5rem;text-align:center;line-height:0.3rem">{{text}}</div>
|
<div style="width:100%;height:0.5rem;text-align:center;line-height:0.3rem">{{tekeyxt}}</div>
|
||||||
<!-- <div class="user1">
|
<!-- <div class="user1">
|
||||||
<indedfinduser></indedfinduser>
|
<indedfinduser></indedfinduser>
|
||||||
</div>-->
|
</div>-->
|
||||||
@ -102,12 +103,17 @@ export default {
|
|||||||
window.$(window).scroll(() => {});
|
window.$(window).scroll(() => {});
|
||||||
c();
|
c();
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
keys(){
|
||||||
|
return this.$route.query.word
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getlist1() {
|
getlist1() {
|
||||||
let t = this;
|
let t = this;
|
||||||
t.list = [];
|
t.list = [];
|
||||||
t.axios
|
t.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {
|
.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {
|
||||||
where: t.$route.query.word,
|
where: t.$route.query.word,
|
||||||
type: t.no,
|
type: t.no,
|
||||||
token: localStorage.getItem("token")
|
token: localStorage.getItem("token")
|
||||||
@ -145,7 +151,7 @@ export default {
|
|||||||
var t = this;
|
var t = this;
|
||||||
t.page += 1;
|
t.page += 1;
|
||||||
t.axios
|
t.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {
|
.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {
|
||||||
where: t.$route.query.word,
|
where: t.$route.query.word,
|
||||||
type: t.no,
|
type: t.no,
|
||||||
page: t.page
|
page: t.page
|
||||||
@ -200,7 +206,7 @@ export default {
|
|||||||
});
|
});
|
||||||
// let t=this;
|
// let t=this;
|
||||||
// window.console.log(e)
|
// window.console.log(e)
|
||||||
// t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:this.no}).then((res)=>{
|
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:this.no}).then((res)=>{
|
||||||
// // window.console.log(res)
|
// // window.console.log(res)
|
||||||
// // for(let i in res.data.data){
|
// // for(let i in res.data.data){
|
||||||
// // res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
// // res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
||||||
@ -225,7 +231,7 @@ export default {
|
|||||||
// t.text = "暂无数据";
|
// t.text = "暂无数据";
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:0}).then((res)=>{
|
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:0}).then((res)=>{
|
||||||
// window.console.log(res)
|
// window.console.log(res)
|
||||||
// for(let i in res.data.data){
|
// for(let i in res.data.data){
|
||||||
// res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
// res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
||||||
@ -234,7 +240,7 @@ export default {
|
|||||||
// t.list=res.data.data
|
// t.list=res.data.data
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:2}).then((res)=>{
|
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:2}).then((res)=>{
|
||||||
// window.console.log(res)
|
// window.console.log(res)
|
||||||
// for(let i in res.data.data){
|
// for(let i in res.data.data){
|
||||||
// res.data.data[i].img= res.data.data[i].img.substr(1)
|
// res.data.data[i].img= res.data.data[i].img.substr(1)
|
||||||
@ -242,7 +248,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// t.list3=res.data.data
|
// t.list3=res.data.data
|
||||||
// })
|
// })
|
||||||
// t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:5}).then((res)=>{
|
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:5}).then((res)=>{
|
||||||
// window.console.log(res)
|
// window.console.log(res)
|
||||||
// for(let i in res.data.data){
|
// for(let i in res.data.data){
|
||||||
// res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
// res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
||||||
@ -262,7 +268,7 @@ export default {
|
|||||||
list3: [],
|
list3: [],
|
||||||
page: 0,
|
page: 0,
|
||||||
lock: false,
|
lock: false,
|
||||||
text: "加载中"
|
text: "加载中",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -227,7 +227,7 @@ export default {
|
|||||||
this.lock = true;
|
this.lock = true;
|
||||||
this.page += 1;
|
this.page += 1;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
.post("https://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: this.types,
|
type: this.types,
|
||||||
page: this.page
|
page: this.page
|
||||||
@ -252,7 +252,7 @@ export default {
|
|||||||
this.lock = true;
|
this.lock = true;
|
||||||
this.page += 1;
|
this.page += 1;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/getCollectList", {
|
.post("https://lawpro.earnest.pro/api/login_main/getCollectList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
page: this.page
|
page: this.page
|
||||||
})
|
})
|
||||||
@ -278,7 +278,7 @@ export default {
|
|||||||
this.$router.push({ path: "/login" });
|
this.$router.push({ path: "/login" });
|
||||||
}
|
}
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/getUserDetails", {
|
.post("https://lawpro.earnest.pro/api/login_main/getUserDetails", {
|
||||||
token: localStorage.getItem("token")
|
token: localStorage.getItem("token")
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
@ -291,7 +291,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
.post("https://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: 4,
|
type: 4,
|
||||||
page: 1
|
page: 1
|
||||||
|
@ -119,7 +119,7 @@ this.shot = this.shot == 0 ? 1 : 0
|
|||||||
if (e == 1) {
|
if (e == 1) {
|
||||||
let t = this;
|
let t = this;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/plusAttention", {
|
.post("https://lawpro.earnest.pro/api/login_main/plusAttention", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
passivity_id: t.userid,
|
passivity_id: t.userid,
|
||||||
type: 2
|
type: 2
|
||||||
@ -146,7 +146,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
window.console.log(this.content);
|
window.console.log(this.content);
|
||||||
if (this.content != "") {
|
if (this.content != "") {
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/appendComment", {
|
.post("https://lawpro.earnest.pro/api/login_main/appendComment", {
|
||||||
text: this.content,
|
text: this.content,
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type_id: this.$route.query.id,
|
type_id: this.$route.query.id,
|
||||||
@ -174,7 +174,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
// this.pid = id;
|
// this.pid = id;
|
||||||
|
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/CommentList", {
|
.post("https://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: 1,
|
type: 1,
|
||||||
type_id: this.$route.query.id,
|
type_id: this.$route.query.id,
|
||||||
@ -201,7 +201,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
// window.console.log(this.$route.query.userid,7946 )
|
// window.console.log(this.$route.query.userid,7946 )
|
||||||
this.userid = this.$route.query.userid;
|
this.userid = this.$route.query.userid;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/login_main/mainDetails", {
|
.post("https://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
type: 1
|
type: 1
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
alt
|
alt
|
||||||
srcset
|
srcset
|
||||||
/>
|
/>
|
||||||
<p>{{text}}</p>
|
<p v-html="text" style="white-space: pre-wrap;" ></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="operation">
|
<div class="operation">
|
||||||
<!-- <div @click.stop="shar">
|
<!-- <div @click.stop="shar">
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="agree">{{num}}人赞同了该回答</div>
|
<div class="agree">{{num}}人赞同了该回答</div>
|
||||||
|
|
||||||
<div class="content" style="max-height: 6.1rem;">
|
<div class="content" style="max-height: 6.1rem;">
|
||||||
<div v-html="text"></div>
|
<div v-html="text" style="white-space: pre-wrap;"></div>
|
||||||
<div class="gengduo" v-show="show" @click="shows">展开阅读全文</div>
|
<div class="gengduo" v-show="show" @click="shows">展开阅读全文</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="operation">
|
<div class="operation">
|
||||||
@ -199,7 +199,7 @@ export default {
|
|||||||
document.body.removeChild(input);
|
document.body.removeChild(input);
|
||||||
},
|
},
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:3,
|
type:3,
|
||||||
click_id:this.sid,
|
click_id:this.sid,
|
||||||
@ -215,7 +215,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:3,
|
type:3,
|
||||||
id:this.sid
|
id:this.sid
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<!-- <div class="line"></div> -->
|
<!-- <div class="line"></div> -->
|
||||||
<!-- <div class="agree">1345人赞同了该回答</div> -->
|
<!-- <div class="agree">1345人赞同了该回答</div> -->
|
||||||
<div class="agree">{{date}}</div>
|
<div class="agree">{{date}}</div>
|
||||||
<div class="content" v-html="text">
|
<div class="content" v-html="text" style="white-space: pre-wrap;">
|
||||||
<!-- <div v-ho></div> -->
|
<!-- <div v-ho></div> -->
|
||||||
<!-- <div v-show="show" @click="shows">展开阅读全文</div> -->
|
<!-- <div v-show="show" @click="shows">展开阅读全文</div> -->
|
||||||
</div>
|
</div>
|
||||||
@ -257,7 +257,7 @@ export default {
|
|||||||
document.body.removeChild(input);
|
document.body.removeChild(input);
|
||||||
},
|
},
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:1,
|
type:1,
|
||||||
click_id:this.$route.query.id,
|
click_id:this.$route.query.id,
|
||||||
@ -273,7 +273,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:1,
|
type:1,
|
||||||
id:this.$route.query.id
|
id:this.$route.query.id
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="indexfindall">
|
<div class="indexfindall">
|
||||||
<p class="title">{{title}}</p>
|
<p class="title" v-html="titles" ></p>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<!-- <p class="text"> <b>职问:</b>因为学习工作而在不同程度上变得“麻木”。实际上,长期从事法律</p> -->
|
<!-- <p class="text"> <b>职问:</b>因为学习工作而在不同程度上变得“麻木”。实际上,长期从事法律</p> -->
|
||||||
<p class="text">{{content}}</p>
|
<p class="text" v-html="content" style="white-space: pre-wrap;"></p>
|
||||||
<div class="operation">
|
<div class="operation">
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<img src="../assets/share.png" alt class="icon" />
|
<img src="../assets/share.png" alt class="icon" />
|
||||||
@ -61,11 +61,12 @@ export default {
|
|||||||
islike:{},
|
islike:{},
|
||||||
iscllect:{},
|
iscllect:{},
|
||||||
id:{},
|
id:{},
|
||||||
type:{}
|
type:{},
|
||||||
|
keys:{}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:this.type,
|
type:this.type,
|
||||||
click_id:this.id,
|
click_id:this.id,
|
||||||
@ -81,7 +82,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:this.type,
|
type:this.type,
|
||||||
id:this.id
|
id:this.id
|
||||||
@ -95,6 +96,12 @@ export default {
|
|||||||
this.iscllect = !this.iscllect
|
this.iscllect = !this.iscllect
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
computed:{
|
||||||
|
titles(){
|
||||||
|
|
||||||
|
return this.title.replace(new RegExp(this.keys,'gm'),"<span>"+this.keys+"</span>")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -112,6 +119,9 @@ export default {
|
|||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
padding-top: 34px;
|
padding-top: 34px;
|
||||||
padding-bottom: 23px;
|
padding-bottom: 23px;
|
||||||
|
>span{
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
width: 689px;
|
width: 689px;
|
||||||
|
@ -61,7 +61,7 @@ export default {
|
|||||||
var t = this;
|
var t = this;
|
||||||
this.page += 1;
|
this.page += 1;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/Login_main/articleList", {
|
.post("https://lawpro.earnest.pro/api/Login_main/articleList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
page: t.page
|
page: t.page
|
||||||
})
|
})
|
||||||
@ -95,7 +95,7 @@ export default {
|
|||||||
document.title="Lawpro社区"
|
document.title="Lawpro社区"
|
||||||
var t = this;
|
var t = this;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/Login_main/articleList", {
|
.post("https://lawpro.earnest.pro/api/Login_main/articleList", {
|
||||||
page: t.page,
|
page: t.page,
|
||||||
token: localStorage.getItem("token")
|
token: localStorage.getItem("token")
|
||||||
})
|
})
|
||||||
|
@ -113,7 +113,7 @@ export default {
|
|||||||
window.console.log("aaaa");
|
window.console.log("aaaa");
|
||||||
var t = this;
|
var t = this;
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/Main/Verification", {
|
.post("https://lawpro.earnest.pro/api/Main/Verification", {
|
||||||
mobile: this.tel
|
mobile: this.tel
|
||||||
})
|
})
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
@ -137,7 +137,7 @@ export default {
|
|||||||
if (t.ifsign) {
|
if (t.ifsign) {
|
||||||
if (t.tel && t.yzm) {
|
if (t.tel && t.yzm) {
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/Main/isVerification", {
|
.post("https://lawpro.earnest.pro/api/Main/isVerification", {
|
||||||
Verification: t.yzm,
|
Verification: t.yzm,
|
||||||
yz: this.yztoken,
|
yz: this.yztoken,
|
||||||
mobile: this.tel
|
mobile: this.tel
|
||||||
@ -145,7 +145,7 @@ export default {
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
this.axios
|
this.axios
|
||||||
.post("http://lawpro.earnest.pro/api/Main/sign", {
|
.post("https://lawpro.earnest.pro/api/Main/sign", {
|
||||||
yz: t.yztoken,
|
yz: t.yztoken,
|
||||||
Verification: t.yzm,
|
Verification: t.yzm,
|
||||||
mobile: this.tel
|
mobile: this.tel
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
|||||||
|
|
||||||
sub(){
|
sub(){
|
||||||
let t=this;
|
let t=this;
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/Main/login",{uname:t.username,password:t.pwd}).then((res)=>{
|
this.axios.post("https://lawpro.earnest.pro/api/Main/login",{uname:t.username,password:t.pwd}).then((res)=>{
|
||||||
if(res.data.code == 200){
|
if(res.data.code == 200){
|
||||||
|
|
||||||
localStorage.setItem('token', res.data.data)
|
localStorage.setItem('token', res.data.data)
|
||||||
|
@ -5,6 +5,7 @@ import { Popup } from 'vant';
|
|||||||
Vue.use(Popup);
|
Vue.use(Popup);
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
import axios from "axios"
|
import axios from "axios"
|
||||||
|
|
||||||
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||||
Vue.prototype.axios = axios
|
Vue.prototype.axios = axios
|
||||||
new Vue({
|
new Vue({
|
||||||
|
@ -19,6 +19,7 @@ import ArticleDetail from "./articledetail.vue"
|
|||||||
import detaillurl from "./detaillurl"
|
import detaillurl from "./detaillurl"
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
const router=new Router({
|
const router=new Router({
|
||||||
|
mode:"history",
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/articledetail',
|
path: '/articledetail',
|
||||||
@ -80,4 +81,12 @@ const router=new Router({
|
|||||||
|
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.beforeEach((to, from, next) => {
|
||||||
|
window.console.log(to,from);
|
||||||
|
// location.href = "loaclhost:8080" + to.fullPath
|
||||||
|
|
||||||
|
next()
|
||||||
|
window.history.pushState({},0, "loaclhost:8080" + to.fullPath);
|
||||||
|
})
|
||||||
export default router;
|
export default router;
|
||||||
|
@ -44,7 +44,7 @@ export default {
|
|||||||
sign(){
|
sign(){
|
||||||
let t=this;
|
let t=this;
|
||||||
window.console.log(t. $route.query.yztoken,t.$route.query.yzm)
|
window.console.log(t. $route.query.yztoken,t.$route.query.yzm)
|
||||||
this.axios.post("http://lawpro.earnest.pro/api/Main/sign",{yz:t. $route.query.yztoken,Verification:t.$route.query.yzm,mobile:t.$route.query.tel,username:t.username,password:t.pwd}).then((res)=>{
|
this.axios.post("https://lawpro.earnest.pro/api/Main/sign",{yz:t. $route.query.yztoken,Verification:t.$route.query.yzm,mobile:t.$route.query.tel,username:t.username,password:t.pwd}).then((res)=>{
|
||||||
localStorage.setItem('token', res.data.data)
|
localStorage.setItem('token', res.data.data)
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
if(res.data.code == 200){
|
if(res.data.code == 200){
|
||||||
|
Loading…
Reference in New Issue
Block a user