完善
This commit is contained in:
parent
861e48a6d0
commit
36ed688d95
@ -11,12 +11,13 @@
|
|||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
"babel-plugin-import": "^1.12.2",
|
"babel-plugin-import": "^1.12.2",
|
||||||
"core-js": "^3.3.2",
|
"core-js": "^3.3.2",
|
||||||
"node-sass": "^4.13.0",
|
"node-sass": "^4.13.1",
|
||||||
"postcss-pxtorem": "^4.0.1",
|
"postcss-pxtorem": "^4.0.1",
|
||||||
"sass-loader": "^8.0.0",
|
"sass-loader": "^8.0.0",
|
||||||
"vant": "^2.2.14",
|
"vant": "^2.2.14",
|
||||||
"vue": "^2.6.10",
|
"vue": "^2.6.10",
|
||||||
"vue-router": "^3.1.3"
|
"vue-router": "^3.1.3",
|
||||||
|
"weixin-js-sdk": "^1.4.0-test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "^4.0.0",
|
"@vue/cli-plugin-babel": "^4.0.0",
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
@pinglu="pinglu"
|
@pinglu="pinglu"
|
||||||
:sid="item.id"
|
:sid="item.id"
|
||||||
:indexs="index"
|
:indexs="index"
|
||||||
:userimg="'http://lawpro.earnest.pro' + item.avatar"
|
:userimg="'https://admin.lawpro.cn' + item.avatar"
|
||||||
:nickname="item.nickname"
|
:nickname="item.nickname"
|
||||||
:text="item.articlecontent"
|
:text="item.articlecontent"
|
||||||
:comment="item.comment"
|
:comment="item.comment"
|
||||||
@ -29,7 +29,7 @@
|
|||||||
v-for="(item,index) in list.correlation"
|
v-for="(item,index) in list.correlation"
|
||||||
:key="index"
|
:key="index"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
:img="'http://lawpro.earnest.pro' +item.img"
|
:img="'https://admin.lawpro.cn' +item.img"
|
||||||
:sid="item.id"
|
:sid="item.id"
|
||||||
:type="item.type"
|
:type="item.type"
|
||||||
></articles>
|
></articles>
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<comment
|
<comment
|
||||||
v-for="(item,index) in plist"
|
v-for="(item,index) in plist"
|
||||||
:key="index"
|
:key="index"
|
||||||
:img="'http://lawpro.earnest.pro/' + item.avatar"
|
:img="'https://admin.lawpro.cn/' + item.avatar"
|
||||||
:name="item.nickname"
|
:name="item.nickname"
|
||||||
:text="item.text"
|
:text="item.text"
|
||||||
></comment>
|
></comment>
|
||||||
@ -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("https://lawpro.earnest.pro/api/login_main/appendComment", {
|
.post("https://admin.lawpro.cn/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("https://lawpro.earnest.pro/api/login_main/CommentList", {
|
.post("https://admin.lawpro.cn/api/login_main/CommentList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: 3,
|
type: 3,
|
||||||
type_id: id,
|
type_id: id,
|
||||||
@ -188,8 +188,21 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let sid = this.$route.query.sid ==undefined ? false : this.$route.query.sid
|
||||||
|
if(sid){
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/mainDetails", {
|
.post("https://admin.lawpro.cn/api/main/plusTransmit ", {
|
||||||
|
transmitstatus: sid,
|
||||||
|
id: this.$route.query.id,
|
||||||
|
type: 2
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
window.console.log(res);
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.axios
|
||||||
|
.post("https://admin.lawpro.cn/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 +214,7 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
|
|
||||||
});
|
});
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/answerList", {
|
.post("https://admin.lawpro.cn/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
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
:title="i.title"
|
:title="i.title"
|
||||||
:num="i.comment"
|
:num="i.comment"
|
||||||
:content="i.text"
|
:content="i.text"
|
||||||
:right="'http://lawpro.earnest.pro/'+i.avatar"
|
:right="'https://admin.lawpro.cn/'+i.avatar"
|
||||||
:islike="i.isClick"
|
:islike="i.isClick"
|
||||||
:iscllect="i.isCollect"
|
:iscllect="i.isCollect"
|
||||||
:like="i.islike"
|
:like="i.islike"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
:article="i.article"
|
:article="i.article"
|
||||||
:attention="i.attention"
|
:attention="i.attention"
|
||||||
:username="i.topic_name"
|
:username="i.topic_name"
|
||||||
:pic="'http://lawpro.earnest.pro/'+i.img"
|
:pic="'https://admin.lawpro.cn/'+i.img"
|
||||||
></indedfinduser>
|
></indedfinduser>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -61,10 +61,10 @@
|
|||||||
<div class="user" v-if="no==5">
|
<div class="user" v-if="no==5">
|
||||||
<div class="user1" v-for="(i,j) in list" :key="j">
|
<div class="user1" v-for="(i,j) in list" :key="j">
|
||||||
<!-- klmklvnklnkvl -->
|
<!-- klmklvnklnkvl -->
|
||||||
<!-- <indedfinduser :username="i.topic_name" :pic="'http://lawpro.earnest.pro/'+i.img" :desc="i.text" :ifnum="false" v-if="i.img"></indedfinduser> -->
|
<!-- <indedfinduser :username="i.topic_name" :pic="'https://admin.lawpro.cn/'+i.img" :desc="i.text" :ifnum="false" v-if="i.img"></indedfinduser> -->
|
||||||
<indedfinduser
|
<indedfinduser
|
||||||
:username="i.nickname"
|
:username="i.nickname"
|
||||||
:pic="'http://lawpro.earnest.pro/'+i.avatar"
|
:pic="'https://admin.lawpro.cn/'+i.avatar"
|
||||||
:desc="i.text"
|
:desc="i.text"
|
||||||
:ifnum="false"
|
:ifnum="false"
|
||||||
></indedfinduser>
|
></indedfinduser>
|
||||||
@ -129,7 +129,7 @@ export default {
|
|||||||
let t = this;
|
let t = this;
|
||||||
t.list = [];
|
t.list = [];
|
||||||
t.axios
|
t.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {
|
.post("https://admin.lawpro.cn/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")
|
||||||
@ -171,7 +171,7 @@ export default {
|
|||||||
var t = this;
|
var t = this;
|
||||||
t.page += 1;
|
t.page += 1;
|
||||||
t.axios
|
t.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {
|
.post("https://admin.lawpro.cn/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
|
||||||
@ -232,11 +232,11 @@ export default {
|
|||||||
});
|
});
|
||||||
// let t=this;
|
// let t=this;
|
||||||
// window.console.log(e)
|
// window.console.log(e)
|
||||||
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:this.no}).then((res)=>{
|
// t.axios.post("https://admin.lawpro.cn/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)
|
||||||
// // res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar
|
// // res.data.data[i].avatar= "https://admin.lawpro.cn/"+res.data.data[i].avatar
|
||||||
// // }
|
// // }
|
||||||
// // t.list=res.data.data
|
// // t.list=res.data.data
|
||||||
// if (res.data.code == 200) {
|
// if (res.data.code == 200) {
|
||||||
@ -257,28 +257,28 @@ export default {
|
|||||||
// t.text = "暂无数据";
|
// t.text = "暂无数据";
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:0}).then((res)=>{
|
// t.axios.post("https://admin.lawpro.cn/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)
|
||||||
// res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar
|
// res.data.data[i].avatar= "https://admin.lawpro.cn/"+res.data.data[i].avatar
|
||||||
// }
|
// }
|
||||||
// t.list=res.data.data
|
// t.list=res.data.data
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:2}).then((res)=>{
|
// t.axios.post("https://admin.lawpro.cn/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)
|
||||||
// res.data.data[i].img= "http://lawpro.earnest.pro/"+res.data.data[i].img
|
// res.data.data[i].img= "https://admin.lawpro.cn/"+res.data.data[i].img
|
||||||
// }
|
// }
|
||||||
// t.list3=res.data.data
|
// t.list3=res.data.data
|
||||||
// })
|
// })
|
||||||
// t.axios.post("https://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:5}).then((res)=>{
|
// t.axios.post("https://admin.lawpro.cn/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)
|
||||||
// res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar
|
// res.data.data[i].avatar= "https://admin.lawpro.cn/"+res.data.data[i].avatar
|
||||||
// }
|
// }
|
||||||
// t.list2=res.data.data
|
// t.list2=res.data.data
|
||||||
// })
|
// })
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<!-- <img :src="'https://api.luyuan.tk/getdata?data=' + imgurl" alt=""> -->
|
<!-- <img :src="'https://api.luyuan.tk/getdata?data=' + imgurl" alt=""> -->
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<img class="portrait" :src="'http://lawpro.earnest.pro' + userimg" alt />
|
<img class="portrait" :src="'https://admin.lawpro.cn' + userimg" alt />
|
||||||
<div class="introduce">
|
<div class="introduce">
|
||||||
<p class="name">
|
<p class="name">
|
||||||
<span>{{username}}</span>
|
<span>{{username}}</span>
|
||||||
@ -41,9 +41,9 @@
|
|||||||
:day="item.time + '前'"
|
:day="item.time + '前'"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
:nickname="item.nickname"
|
:nickname="item.nickname"
|
||||||
:userimg="'http://lawpro.earnest.pro' + item.avatar"
|
:userimg="'https://admin.lawpro.cn' + item.avatar"
|
||||||
:num="item.islike"
|
:num="item.islike"
|
||||||
:img="'http://lawpro.earnest.pro' + item.img"
|
:img="'https://admin.lawpro.cn' + item.img"
|
||||||
:text="item.text"
|
:text="item.text"
|
||||||
:comment="item.comment"
|
:comment="item.comment"
|
||||||
:sid="item.id"
|
:sid="item.id"
|
||||||
@ -65,9 +65,9 @@
|
|||||||
:day="item.time"
|
:day="item.time"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
:nickname="item.nickname"
|
:nickname="item.nickname"
|
||||||
:userimg="'http://lawpro.earnest.pro' + userimg"
|
:userimg="'https://admin.lawpro.cn' + userimg"
|
||||||
:num="item.islike"
|
:num="item.islike"
|
||||||
:img="'http://lawpro.earnest.pro' + item.avatar"
|
:img="'https://admin.lawpro.cn' + item.avatar"
|
||||||
:text="item.text"
|
:text="item.text"
|
||||||
:comment="item.comment"
|
:comment="item.comment"
|
||||||
:sid="item.id"
|
:sid="item.id"
|
||||||
@ -97,9 +97,9 @@
|
|||||||
:day="item.time"
|
:day="item.time"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
:nickname="item.nickname"
|
:nickname="item.nickname"
|
||||||
:userimg="'http://lawpro.earnest.pro' + userimg"
|
:userimg="'https://admin.lawpro.cn' + userimg"
|
||||||
:num="item.islike"
|
:num="item.islike"
|
||||||
:img="'http://lawpro.earnest.pro' + item.avatar"
|
:img="'https://admin.lawpro.cn' + item.avatar"
|
||||||
:text="item.text"
|
:text="item.text"
|
||||||
:comment="item.comment"
|
:comment="item.comment"
|
||||||
:sid="item.id"
|
:sid="item.id"
|
||||||
@ -253,7 +253,7 @@ export default {
|
|||||||
this.lock = true;
|
this.lock = true;
|
||||||
this.page += 1;
|
this.page += 1;
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
.post("https://admin.lawpro.cn/api/login_main/getUserListDetails", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
type: this.types,
|
type: this.types,
|
||||||
page: this.page
|
page: this.page
|
||||||
@ -298,7 +298,7 @@ export default {
|
|||||||
this.lock = true;
|
this.lock = true;
|
||||||
this.page += 1;
|
this.page += 1;
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/getCollectList", {
|
.post("https://admin.lawpro.cn/api/login_main/getCollectList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
page: this.page
|
page: this.page
|
||||||
})
|
})
|
||||||
@ -343,7 +343,7 @@ export default {
|
|||||||
this.$router.push({ path: "/login" });
|
this.$router.push({ path: "/login" });
|
||||||
}
|
}
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/login_main/getUserDetails", {
|
.post("https://admin.lawpro.cn/api/login_main/getUserDetails", {
|
||||||
token: localStorage.getItem("token")
|
token: localStorage.getItem("token")
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
@ -357,7 +357,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// this.axios
|
// this.axios
|
||||||
// .post("https://lawpro.earnest.pro/api/login_main/getUserListDetails", {
|
// .post("https://admin.lawpro.cn/api/login_main/getUserListDetails", {
|
||||||
// token: localStorage.getItem("token"),
|
// token: localStorage.getItem("token"),
|
||||||
// type: 4,
|
// type: 4,
|
||||||
// page: 1
|
// page: 1
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
<div style="padding-top:0.88rem">
|
<div style="padding-top:0.88rem">
|
||||||
<heads></heads>
|
<heads></heads>
|
||||||
<div class="picbox">
|
<div class="picbox">
|
||||||
<img :src=" 'http://lawpro.earnest.pro' +list.data.img" alt class="toppic" v-if="list.data.img" />
|
<img :src=" 'https://admin.lawpro.cn' +list.data.img" alt class="toppic" v-if="list.data.img" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<follow
|
<follow
|
||||||
class="follow"
|
class="follow"
|
||||||
:img="'http://lawpro.earnest.pro' + list.user.avatar"
|
:img="'https://admin.lawpro.cn' + list.user.avatar"
|
||||||
:nickname="list.user.nickname"
|
:nickname="list.user.nickname"
|
||||||
:sole="list.user.industry_name"
|
:sole="list.user.industry_name"
|
||||||
:text="list.data.articlecontent"
|
:text="list.data.articlecontent"
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<comment
|
<comment
|
||||||
v-for="(item,index) in plist"
|
v-for="(item,index) in plist"
|
||||||
:key="index"
|
:key="index"
|
||||||
:img="'http://lawpro.earnest.pro/' + item.avatar"
|
:img="'https://admin.lawpro.cn/' + item.avatar"
|
||||||
:name="item.nickname"
|
:name="item.nickname"
|
||||||
:text="item.text"
|
:text="item.text"
|
||||||
|
|
||||||
@ -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("https://lawpro.earnest.pro/api/login_main/plusAttention", {
|
.post("https://admin.lawpro.cn/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("https://lawpro.earnest.pro/api/login_main/appendComment", {
|
.post("https://admin.lawpro.cn/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("https://lawpro.earnest.pro/api/login_main/CommentList", {
|
.post("https://admin.lawpro.cn/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,
|
||||||
@ -197,11 +197,23 @@ window.$(window).scrollTop(window.$(window).scrollTop)
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
window.console.log(window.document.body.scrollTop,123)
|
window.console.log(window.document.body.scrollTop,123)
|
||||||
|
let sid = this.$route.query.sid ==undefined ? false : this.$route.query.sid
|
||||||
|
if(sid){
|
||||||
|
this.axios
|
||||||
|
.post("https://admin.lawpro.cn/api/main/plusTransmit ", {
|
||||||
|
transmitstatus: sid,
|
||||||
|
id: this.$route.query.id,
|
||||||
|
type: 1
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
window.console.log(res);
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
// 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("https://lawpro.earnest.pro/api/login_main/mainDetails", {
|
.post("https://admin.lawpro.cn/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
|
||||||
|
1
src/assets/jweixin-1.6.0.js
Normal file
1
src/assets/jweixin-1.6.0.js
Normal file
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
|||||||
<img
|
<img
|
||||||
v-if="img == ''?false : true "
|
v-if="img == ''?false : true "
|
||||||
class="img"
|
class="img"
|
||||||
:src="'http://lawpro.earnest.pro' + img"
|
:src="'https://admin.lawpro.cn' + img"
|
||||||
alt
|
alt
|
||||||
srcset
|
srcset
|
||||||
/>
|
/>
|
||||||
@ -231,7 +231,7 @@ export default {
|
|||||||
document.body.removeChild(input);
|
document.body.removeChild(input);
|
||||||
},
|
},
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://admin.lawpro.cn/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,
|
||||||
@ -252,7 +252,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://admin.lawpro.cn/api/login_main/plusCollect",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:this.type,
|
type:this.type,
|
||||||
id:this.id
|
id:this.id
|
||||||
|
@ -199,7 +199,7 @@ export default {
|
|||||||
document.body.removeChild(input);
|
document.body.removeChild(input);
|
||||||
},
|
},
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://admin.lawpro.cn/api/login_main/clickLike",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:3,
|
type:3,
|
||||||
click_id:this.sid,
|
click_id:this.sid,
|
||||||
@ -220,7 +220,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://admin.lawpro.cn/api/login_main/plusCollect",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:3,
|
type:3,
|
||||||
id:this.sid
|
id:this.sid
|
||||||
|
@ -257,7 +257,7 @@ export default {
|
|||||||
document.body.removeChild(input);
|
document.body.removeChild(input);
|
||||||
},
|
},
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://admin.lawpro.cn/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,
|
||||||
@ -278,7 +278,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://admin.lawpro.cn/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
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<!-- <p class="articlecontent">在信息唾手可得的时代,拉开人与人差距的,不是知识含</p> -->
|
<!-- <p class="articlecontent">在信息唾手可得的时代,拉开人与人差距的,不是知识含</p> -->
|
||||||
<div class="author"></div>
|
<div class="author"></div>
|
||||||
</div>
|
</div>
|
||||||
<img :src="img" v-if="img != 'http://lawpro.earnest.pro' " alt class="pic" />
|
<img :src="img" v-if="img != 'https://admin.lawpro.cn' " alt class="pic" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -66,7 +66,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
clike(){
|
clike(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/clickLike",{
|
this.axios.post("https://admin.lawpro.cn/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,
|
||||||
@ -87,7 +87,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
ccollect(){
|
ccollect(){
|
||||||
this.axios.post("https://lawpro.earnest.pro/api/login_main/plusCollect",{
|
this.axios.post("https://admin.lawpro.cn/api/login_main/plusCollect",{
|
||||||
token:localStorage.getItem("token"),
|
token:localStorage.getItem("token"),
|
||||||
type:this.type,
|
type:this.type,
|
||||||
id:this.id
|
id:this.id
|
||||||
|
@ -68,7 +68,7 @@ export default {
|
|||||||
var t = this;
|
var t = this;
|
||||||
this.page += 1;
|
this.page += 1;
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/Login_main/articleList", {
|
.post("https://admin.lawpro.cn/api/Login_main/articleList", {
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
page: t.page
|
page: t.page
|
||||||
})
|
})
|
||||||
@ -102,7 +102,7 @@ export default {
|
|||||||
document.title="Lawpro社区"
|
document.title="Lawpro社区"
|
||||||
var t = this;
|
var t = this;
|
||||||
this.axios
|
this.axios
|
||||||
.post("https://lawpro.earnest.pro/api/Login_main/articleList", {
|
.post("https://admin.lawpro.cn/api/Login_main/articleList", {
|
||||||
page: t.page,
|
page: t.page,
|
||||||
token: localStorage.getItem("token")
|
token: localStorage.getItem("token")
|
||||||
})
|
})
|
||||||
@ -126,6 +126,7 @@ export default {
|
|||||||
t.text = "暂无数据";
|
t.text = "暂无数据";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
window.console.log(this.wxcfg)
|
||||||
},
|
},
|
||||||
beforeRouteLeave(a, b, c) {
|
beforeRouteLeave(a, b, c) {
|
||||||
window.$(window).scroll(() => {});
|
window.$(window).scroll(() => {});
|
||||||
|
@ -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("https://lawpro.earnest.pro/api/Main/Verification", {
|
.post("https://admin.lawpro.cn/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("https://lawpro.earnest.pro/api/Main/isVerification", {
|
.post("https://admin.lawpro.cn/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("https://lawpro.earnest.pro/api/Main/sign", {
|
.post("https://admin.lawpro.cn/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("https://lawpro.earnest.pro/api/Main/login",{uname:t.username,password:t.pwd}).then((res)=>{
|
this.axios.post("https://admin.lawpro.cn/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)
|
||||||
|
80
src/main.js
80
src/main.js
@ -1,6 +1,9 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from "./router"
|
import router from "./router"
|
||||||
|
// import wx from "./assets/jweixin-1.6.0"
|
||||||
|
import wx from 'weixin-js-sdk'
|
||||||
|
// let wx = require("./assets/jweixin-1.6.0")
|
||||||
import { Popup } from 'vant';
|
import { Popup } from 'vant';
|
||||||
Vue.use(Popup);
|
Vue.use(Popup);
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
@ -8,7 +11,82 @@ 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({
|
let el = new Vue({
|
||||||
render: h => h(App),
|
render: h => h(App),
|
||||||
router
|
router
|
||||||
}).$mount('#app')
|
}).$mount('#app')
|
||||||
|
let gettitle = () => {
|
||||||
|
return new Promise((res) => {
|
||||||
|
setInterval(() => {
|
||||||
|
if (document.title != 'Lawpro社区' || GetUrlRelativePath() == "/") {
|
||||||
|
res(document.title)
|
||||||
|
}
|
||||||
|
}, 200)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function GetUrlRelativePath() {
|
||||||
|
var url = document.location.toString();
|
||||||
|
var arrUrl = url.split("//");
|
||||||
|
|
||||||
|
var start = arrUrl[1].indexOf("/");
|
||||||
|
var relUrl = arrUrl[1].substring(start);//stop省略,截取从start开始到结尾的所有字符
|
||||||
|
|
||||||
|
if (relUrl.indexOf("?") != -1) {
|
||||||
|
relUrl = relUrl.split("?")[0];
|
||||||
|
}
|
||||||
|
return relUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
el.axios({url:"https://admin.lawpro.cn/api/main/wxfx",method:'POST',data:"url="+window.location.href.replace(/&/g, '#')}).then((res) => {
|
||||||
|
// window.console.log(res)
|
||||||
|
// alert(JSON.stringify(res.data.data))
|
||||||
|
if (res.data.code == 200) {
|
||||||
|
let data = res.data.data
|
||||||
|
let wxcfg = {
|
||||||
|
debug: false,
|
||||||
|
appId: data.appId,
|
||||||
|
timestamp: data.timestamp,
|
||||||
|
nonceStr: data.nonceStr,
|
||||||
|
signature: data.signature,
|
||||||
|
jsApiList: [
|
||||||
|
// 所有要调用的 API 都要加到这个列表中
|
||||||
|
'checkJsApi',
|
||||||
|
'onMenuShareTimeline',
|
||||||
|
'onMenuShareAppMessage',
|
||||||
|
'onMenuShareQQ',
|
||||||
|
'onMenuShareWeibo',
|
||||||
|
'onMenuShareQZone'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
gettitle().then((res) => {
|
||||||
|
// window.console.log(res)
|
||||||
|
// el.wxcfg.
|
||||||
|
wx.config({
|
||||||
|
...wxcfg
|
||||||
|
});
|
||||||
|
let href = window.location.href
|
||||||
|
wx.ready(function () {
|
||||||
|
//分享到朋友圈
|
||||||
|
wx.onMenuShareTimeline({
|
||||||
|
title: res + " -Lawpro.cn", // 分享标题
|
||||||
|
link: href,
|
||||||
|
imgUrl: 'https://admin.lawpro.cn/uploads/image/logo.jpg'
|
||||||
|
});
|
||||||
|
|
||||||
|
//分享给朋友
|
||||||
|
wx.onMenuShareAppMessage({
|
||||||
|
title: res,
|
||||||
|
desc: '',
|
||||||
|
link: href,
|
||||||
|
imgUrl: 'https://admin.lawpro.cn/uploads/image/logo.jpg', // 分享图标
|
||||||
|
trigger: function () {
|
||||||
|
// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
|
||||||
|
},
|
||||||
|
fail: function (res) {
|
||||||
|
alert(JSON.stringify(res));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
@ -83,13 +83,12 @@ const router=new Router({
|
|||||||
});
|
});
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
window.console.log(to,from);
|
// window.console.log(to,from);
|
||||||
// location.href = "loaclhost:8080" + to.fullPath
|
// location.href = "loaclhost:8080" + to.fullPath
|
||||||
|
window.console.log(to,from,88)
|
||||||
next()
|
next()
|
||||||
if(from.name !== null){
|
if(from.name !== null){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
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("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)=>{
|
this.axios.post("https://admin.lawpro.cn/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){
|
||||||
|
13
yarn.lock
13
yarn.lock
@ -5561,10 +5561,10 @@ node-releases@^1.1.40:
|
|||||||
dependencies:
|
dependencies:
|
||||||
semver "^6.3.0"
|
semver "^6.3.0"
|
||||||
|
|
||||||
node-sass@^4.13.0:
|
node-sass@^4.13.1:
|
||||||
version "4.13.0"
|
version "4.13.1"
|
||||||
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.13.0.tgz#b647288babdd6a1cb726de4545516b31f90da066"
|
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.13.1.tgz#9db5689696bb2eec2c32b98bfea4c7a2e992d0a3"
|
||||||
integrity sha512-W1XBrvoJ1dy7VsvTAS5q1V45lREbTlZQqFbiHb3R3OTTCma0XBtuG6xZ6Z4506nR4lmHPTqVRwxT6KgtWC97CA==
|
integrity sha512-TTWFx+ZhyDx1Biiez2nB0L3YrCZ/8oHagaDalbuBSlqXgUPsdkUSzJsVxeDO9LtPB49+Fh3WQl3slABo6AotNw==
|
||||||
dependencies:
|
dependencies:
|
||||||
async-foreach "^0.1.3"
|
async-foreach "^0.1.3"
|
||||||
chalk "^1.1.1"
|
chalk "^1.1.1"
|
||||||
@ -8598,6 +8598,11 @@ websocket-extensions@>=0.1.1:
|
|||||||
resolved "https://registry.npm.taobao.org/websocket-extensions/download/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29"
|
resolved "https://registry.npm.taobao.org/websocket-extensions/download/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29"
|
||||||
integrity sha1-XS/yKXcAPsaHpLhwc9+7rBRszyk=
|
integrity sha1-XS/yKXcAPsaHpLhwc9+7rBRszyk=
|
||||||
|
|
||||||
|
weixin-js-sdk@^1.4.0-test:
|
||||||
|
version "1.4.0-test"
|
||||||
|
resolved "https://registry.npm.taobao.org/weixin-js-sdk/download/weixin-js-sdk-1.4.0-test.tgz#612bbafcc97ad84f5afe6dc84701534cc59fc3ca"
|
||||||
|
integrity sha1-YSu6/Ml62E9a/m3IRwFTTMWfw8o=
|
||||||
|
|
||||||
which-module@^1.0.0:
|
which-module@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
|
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
|
||||||
|
Loading…
Reference in New Issue
Block a user