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);
|
||||
if (this.content != "") {
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/appendComment", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/appendComment", {
|
||||
text: this.content,
|
||||
token: localStorage.getItem("token"),
|
||||
type_id: this.pid,
|
||||
@ -169,7 +169,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
||||
this.show = true;
|
||||
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: 3,
|
||||
type_id: id,
|
||||
@ -189,7 +189,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
||||
},
|
||||
mounted() {
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: 2,
|
||||
id: this.$route.query.id
|
||||
@ -201,7 +201,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
||||
|
||||
});
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/answerList", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/answerList", {
|
||||
token: localStorage.getItem("token"),
|
||||
page: 1,
|
||||
article_id: this.$route.query.id
|
||||
|
@ -17,6 +17,7 @@
|
||||
:collect="i.collect"
|
||||
:id="i.id"
|
||||
:type="i.type"
|
||||
:keys="keys"
|
||||
></indexfindall>
|
||||
</div>
|
||||
|
||||
@ -59,7 +60,7 @@
|
||||
></indedfinduser>
|
||||
</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">
|
||||
<indedfinduser></indedfinduser>
|
||||
</div>-->
|
||||
@ -102,12 +103,17 @@ export default {
|
||||
window.$(window).scroll(() => {});
|
||||
c();
|
||||
},
|
||||
computed:{
|
||||
keys(){
|
||||
return this.$route.query.word
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getlist1() {
|
||||
let t = this;
|
||||
t.list = [];
|
||||
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,
|
||||
type: t.no,
|
||||
token: localStorage.getItem("token")
|
||||
@ -145,7 +151,7 @@ export default {
|
||||
var t = this;
|
||||
t.page += 1;
|
||||
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,
|
||||
type: t.no,
|
||||
page: t.page
|
||||
@ -200,7 +206,7 @@ export default {
|
||||
});
|
||||
// let t=this;
|
||||
// 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)
|
||||
// // for(let i in res.data.data){
|
||||
// // res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
||||
@ -225,7 +231,7 @@ export default {
|
||||
// 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)
|
||||
// for(let i in res.data.data){
|
||||
// res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
||||
@ -234,7 +240,7 @@ export default {
|
||||
// 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)
|
||||
// for(let i in res.data.data){
|
||||
// res.data.data[i].img= res.data.data[i].img.substr(1)
|
||||
@ -242,7 +248,7 @@ export default {
|
||||
// }
|
||||
// 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)
|
||||
// for(let i in res.data.data){
|
||||
// res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
||||
@ -262,7 +268,7 @@ export default {
|
||||
list3: [],
|
||||
page: 0,
|
||||
lock: false,
|
||||
text: "加载中"
|
||||
text: "加载中",
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@ -227,7 +227,7 @@ export default {
|
||||
this.lock = true;
|
||||
this.page += 1;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: this.types,
|
||||
page: this.page
|
||||
@ -252,7 +252,7 @@ export default {
|
||||
this.lock = true;
|
||||
this.page += 1;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/getCollectList", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/getCollectList", {
|
||||
token: localStorage.getItem("token"),
|
||||
page: this.page
|
||||
})
|
||||
@ -278,7 +278,7 @@ export default {
|
||||
this.$router.push({ path: "/login" });
|
||||
}
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/getUserDetails", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/getUserDetails", {
|
||||
token: localStorage.getItem("token")
|
||||
})
|
||||
.then(res => {
|
||||
@ -291,7 +291,7 @@ export default {
|
||||
}
|
||||
});
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: 4,
|
||||
page: 1
|
||||
|
@ -119,7 +119,7 @@ this.shot = this.shot == 0 ? 1 : 0
|
||||
if (e == 1) {
|
||||
let t = this;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/plusAttention", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/plusAttention", {
|
||||
token: localStorage.getItem("token"),
|
||||
passivity_id: t.userid,
|
||||
type: 2
|
||||
@ -146,7 +146,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
||||
window.console.log(this.content);
|
||||
if (this.content != "") {
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/appendComment", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/appendComment", {
|
||||
text: this.content,
|
||||
token: localStorage.getItem("token"),
|
||||
type_id: this.$route.query.id,
|
||||
@ -174,7 +174,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
||||
// this.pid = id;
|
||||
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: 1,
|
||||
type_id: this.$route.query.id,
|
||||
@ -201,7 +201,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
||||
// window.console.log(this.$route.query.userid,7946 )
|
||||
this.userid = this.$route.query.userid;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||
.post("https://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||
token: localStorage.getItem("token"),
|
||||
id: this.$route.query.id,
|
||||
type: 1
|
||||
|
@ -10,7 +10,7 @@
|
||||
alt
|
||||
srcset
|
||||
/>
|
||||
<p>{{text}}</p>
|
||||
<p v-html="text" style="white-space: pre-wrap;" ></p>
|
||||
</div>
|
||||
<div class="operation">
|
||||
<!-- <div @click.stop="shar">
|
||||
|
@ -11,7 +11,7 @@
|
||||
<div class="agree">{{num}}人赞同了该回答</div>
|
||||
|
||||
<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>
|
||||
<div class="operation">
|
||||
@ -199,7 +199,7 @@ export default {
|
||||
document.body.removeChild(input);
|
||||
},
|
||||
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"),
|
||||
type:3,
|
||||
click_id:this.sid,
|
||||
@ -215,7 +215,7 @@ export default {
|
||||
})
|
||||
},
|
||||
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"),
|
||||
type:3,
|
||||
id:this.sid
|
||||
|
@ -28,7 +28,7 @@
|
||||
<!-- <div class="line"></div> -->
|
||||
<!-- <div class="agree">1345人赞同了该回答</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-show="show" @click="shows">展开阅读全文</div> -->
|
||||
</div>
|
||||
@ -257,7 +257,7 @@ export default {
|
||||
document.body.removeChild(input);
|
||||
},
|
||||
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"),
|
||||
type:1,
|
||||
click_id:this.$route.query.id,
|
||||
@ -273,7 +273,7 @@ export default {
|
||||
})
|
||||
},
|
||||
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"),
|
||||
type:1,
|
||||
id:this.$route.query.id
|
||||
|
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="indexfindall">
|
||||
<p class="title">{{title}}</p>
|
||||
<p class="title" v-html="titles" ></p>
|
||||
<div class="content">
|
||||
<div class="left">
|
||||
<!-- <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>
|
||||
<img src="../assets/share.png" alt class="icon" />
|
||||
@ -61,11 +61,12 @@ export default {
|
||||
islike:{},
|
||||
iscllect:{},
|
||||
id:{},
|
||||
type:{}
|
||||
type:{},
|
||||
keys:{}
|
||||
},
|
||||
methods:{
|
||||
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"),
|
||||
type:this.type,
|
||||
click_id:this.id,
|
||||
@ -81,7 +82,7 @@ export default {
|
||||
})
|
||||
},
|
||||
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"),
|
||||
type:this.type,
|
||||
id:this.id
|
||||
@ -95,6 +96,12 @@ export default {
|
||||
this.iscllect = !this.iscllect
|
||||
})
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
titles(){
|
||||
|
||||
return this.title.replace(new RegExp(this.keys,'gm'),"<span>"+this.keys+"</span>")
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@ -112,6 +119,9 @@ export default {
|
||||
text-indent: 0;
|
||||
padding-top: 34px;
|
||||
padding-bottom: 23px;
|
||||
>span{
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
width: 689px;
|
||||
|
@ -61,7 +61,7 @@ export default {
|
||||
var t = this;
|
||||
this.page += 1;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/Login_main/articleList", {
|
||||
.post("https://lawpro.earnest.pro/api/Login_main/articleList", {
|
||||
token: localStorage.getItem("token"),
|
||||
page: t.page
|
||||
})
|
||||
@ -95,7 +95,7 @@ export default {
|
||||
document.title="Lawpro社区"
|
||||
var t = this;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/Login_main/articleList", {
|
||||
.post("https://lawpro.earnest.pro/api/Login_main/articleList", {
|
||||
page: t.page,
|
||||
token: localStorage.getItem("token")
|
||||
})
|
||||
|
@ -113,7 +113,7 @@ export default {
|
||||
window.console.log("aaaa");
|
||||
var t = this;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/Main/Verification", {
|
||||
.post("https://lawpro.earnest.pro/api/Main/Verification", {
|
||||
mobile: this.tel
|
||||
})
|
||||
.then(function(res) {
|
||||
@ -137,7 +137,7 @@ export default {
|
||||
if (t.ifsign) {
|
||||
if (t.tel && t.yzm) {
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/Main/isVerification", {
|
||||
.post("https://lawpro.earnest.pro/api/Main/isVerification", {
|
||||
Verification: t.yzm,
|
||||
yz: this.yztoken,
|
||||
mobile: this.tel
|
||||
@ -145,7 +145,7 @@ export default {
|
||||
.then(res => {
|
||||
if (res.data.code == 200) {
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/Main/sign", {
|
||||
.post("https://lawpro.earnest.pro/api/Main/sign", {
|
||||
yz: t.yztoken,
|
||||
Verification: t.yzm,
|
||||
mobile: this.tel
|
||||
|
@ -70,7 +70,7 @@ export default {
|
||||
|
||||
sub(){
|
||||
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){
|
||||
|
||||
localStorage.setItem('token', res.data.data)
|
||||
|
@ -5,6 +5,7 @@ import { Popup } from 'vant';
|
||||
Vue.use(Popup);
|
||||
Vue.config.productionTip = false
|
||||
import axios from "axios"
|
||||
|
||||
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||
Vue.prototype.axios = axios
|
||||
new Vue({
|
||||
|
@ -19,6 +19,7 @@ import ArticleDetail from "./articledetail.vue"
|
||||
import detaillurl from "./detaillurl"
|
||||
Vue.use(Router)
|
||||
const router=new Router({
|
||||
mode:"history",
|
||||
routes: [
|
||||
{
|
||||
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;
|
||||
|
@ -44,7 +44,7 @@ export default {
|
||||
sign(){
|
||||
let t=this;
|
||||
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)
|
||||
}).then((res)=>{
|
||||
if(res.data.code == 200){
|
||||
|
Loading…
Reference in New Issue
Block a user