回复
This commit is contained in:
parent
07f79a8140
commit
f7a457dfec
@ -28,6 +28,7 @@
|
||||
:title="item.title"
|
||||
:img="'http://lawpro.earnest.pro' +item.img"
|
||||
:sid="item.id"
|
||||
:type="item.type"
|
||||
></articles>
|
||||
|
||||
<!-- <articles></articles> -->
|
||||
@ -39,6 +40,7 @@
|
||||
:key="index"
|
||||
:title="item.title"
|
||||
:sid="item.id"
|
||||
:type="item.type"
|
||||
></privates>
|
||||
|
||||
<!-- <articles></articles> -->
|
||||
@ -47,7 +49,8 @@
|
||||
<div class="top">
|
||||
<p class="tiao">{{plist.length}}条评论</p>
|
||||
<p class="qie" @click="shot = shot == 0 ? 1 : 0">
|
||||
<img class="qiehuan" src="./assets/qiehuan.png" alt srcset /> 切换为{{shot == 0 ? '时间' : "默认"}}排序
|
||||
<img class="qiehuan" src="./assets/qiehuan.png" alt srcset />
|
||||
切换为{{shot == 0 ? '时间' : "默认"}}排序
|
||||
</p>
|
||||
<img class="quit" src="./assets/quit.png" alt @click="show = !show" />
|
||||
</div>
|
||||
@ -94,7 +97,7 @@ export default {
|
||||
pid: 0,
|
||||
msg: "发布成功",
|
||||
msgs: false,
|
||||
shot:0
|
||||
shot: 0
|
||||
};
|
||||
},
|
||||
components: {
|
||||
@ -124,12 +127,12 @@ export default {
|
||||
if (res.data.code == 200) {
|
||||
this.pinglu(this.pid);
|
||||
this.content = "";
|
||||
this.msgs = true
|
||||
setTimeout(()=>{
|
||||
this.msgs = false
|
||||
},2000)
|
||||
}else{
|
||||
this.$router.push({path:"/login"})
|
||||
this.msgs = true;
|
||||
setTimeout(() => {
|
||||
this.msgs = false;
|
||||
}, 2000);
|
||||
} else {
|
||||
this.$router.push({ path: "/login" });
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -140,14 +143,14 @@ export default {
|
||||
},
|
||||
pinglu(id) {
|
||||
this.pid = id;
|
||||
this.show = true;
|
||||
this.show = true;
|
||||
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: 3,
|
||||
type_id: id,
|
||||
order:this.shot
|
||||
order: this.shot
|
||||
})
|
||||
.then(res => {
|
||||
window.console.log(res);
|
||||
@ -156,9 +159,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
shot(){
|
||||
this.pinglu(this.pid)
|
||||
watch: {
|
||||
shot() {
|
||||
this.pinglu(this.pid);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -198,12 +201,11 @@ export default {
|
||||
max-height: 70px;
|
||||
border-radius: 5px;
|
||||
background: #666;
|
||||
box-sizing: border-box;
|
||||
top:50%;
|
||||
box-sizing: border-box;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
color: #fff;
|
||||
|
||||
}
|
||||
.top {
|
||||
background-color: #fff;
|
||||
|
@ -177,7 +177,7 @@ export default {
|
||||
}
|
||||
this.lock = true
|
||||
this.page += 1
|
||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/getUserListDetails",{
|
||||
this.axios.post("http://lawpro.earnest.pro/api/login_main/getCollectList",{
|
||||
token:localStorage.getItem("token"),
|
||||
page:this.page
|
||||
}).then((res)=>{
|
||||
@ -197,7 +197,7 @@ export default {
|
||||
},
|
||||
mounted(){
|
||||
if(localStorage.getItem('token') == ""){
|
||||
this.$router.push("/login")
|
||||
this.$router.push({path:"/login"})
|
||||
}
|
||||
this.axios.post('http://lawpro.earnest.pro/api/login_main/getUserDetails',{
|
||||
token:localStorage.getItem("token")
|
||||
@ -245,7 +245,12 @@ export default {
|
||||
this.page = 0
|
||||
this.dynamiclist = []
|
||||
this.lock = false;
|
||||
if(this.types == 5){
|
||||
this.getlists(0)
|
||||
}else{
|
||||
this.getlist()
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(a,b,c){
|
||||
|
@ -32,13 +32,20 @@
|
||||
<van-popup v-model="show" position="bottom" :style="{ height: '100%' }" class="linshi">
|
||||
<div class="top">
|
||||
<p class="tiao">{{plist.length}}条评论</p>
|
||||
<p class="qie">
|
||||
<img class="qiehuan" src="./assets/qiehuan.png" alt srcset /> 切换为时间排序
|
||||
<p class="qie" @click="shot = shot == 0 ? 1 : 0">
|
||||
<img class="qiehuan" src="./assets/qiehuan.png" alt srcset />
|
||||
切换为{{shot == 0 ? '时间' : "默认"}}排序
|
||||
</p>
|
||||
<img class="quit" src="./assets/quit.png" alt @click="show = !show" />
|
||||
</div>
|
||||
<div class="bodys">
|
||||
<comment v-for="(item,index) in plist" :key="index"></comment>
|
||||
<comment
|
||||
v-for="(item,index) in plist"
|
||||
:key="index"
|
||||
:img="'http://lawpro.earnest.pro/' + item.avatar"
|
||||
:name="item.nickname"
|
||||
:text="item.text"
|
||||
></comment>
|
||||
</div>
|
||||
<div class="reply">
|
||||
<img @click="biaoqing = !biaoqing" src="./assets/baoqing.png" alt srcset />
|
||||
@ -69,8 +76,9 @@ export default {
|
||||
biaoqing: false,
|
||||
list: [],
|
||||
plist: [],
|
||||
userid:0,
|
||||
ifgz:false
|
||||
userid: 0,
|
||||
ifgz: false,
|
||||
shot: 0
|
||||
};
|
||||
},
|
||||
components: {
|
||||
@ -83,22 +91,22 @@ export default {
|
||||
Emotion
|
||||
},
|
||||
methods: {
|
||||
gz(e){
|
||||
if(e==1){
|
||||
let t=this;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/plusAttention", {
|
||||
token:localStorage.getItem("token"),
|
||||
passivity_id:t.userid,
|
||||
type:2
|
||||
}).then((res)=>{
|
||||
window.console.log(res)
|
||||
if(res.data.code==200){
|
||||
this.ifgz=true
|
||||
}
|
||||
})
|
||||
gz(e) {
|
||||
if (e == 1) {
|
||||
let t = this;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/plusAttention", {
|
||||
token: localStorage.getItem("token"),
|
||||
passivity_id: t.userid,
|
||||
type: 2
|
||||
})
|
||||
.then(res => {
|
||||
window.console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
this.ifgz = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
handleEmotion(i) {
|
||||
this.content += i;
|
||||
@ -114,13 +122,17 @@ export default {
|
||||
text: this.content,
|
||||
token: localStorage.getItem("token"),
|
||||
type_id: this.$route.query.id,
|
||||
type: 3
|
||||
type: 1
|
||||
})
|
||||
.then(res => {
|
||||
if (res.data.code == 200) {
|
||||
this.pinglu(this.$route.query.id);
|
||||
|
||||
this.content = "";
|
||||
} else {
|
||||
this.$router.push({
|
||||
path: "/login"
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -131,8 +143,9 @@ export default {
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/CommentList", {
|
||||
token: localStorage.getItem("token"),
|
||||
type: 2,
|
||||
type_id: this.$route.query.id
|
||||
type: 1,
|
||||
type_id: this.$route.query.id,
|
||||
order: this.shot
|
||||
})
|
||||
.then(res => {
|
||||
window.console.log(res);
|
||||
@ -142,9 +155,14 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
shot() {
|
||||
this.pinglu();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// window.console.log(this.$route.query.userid,7946 )
|
||||
this.userid=this.$route.query.userid
|
||||
this.userid = this.$route.query.userid;
|
||||
this.axios
|
||||
.post("http://lawpro.earnest.pro/api/login_main/mainDetails", {
|
||||
token: localStorage.getItem("token"),
|
||||
|
@ -3,11 +3,17 @@
|
||||
<div class="center">{{title}}</div>
|
||||
<div class="answer">
|
||||
<div class="content">
|
||||
<img v-if="img == ''?false : true " class="img" :src="'http://lawpro.earnest.pro' + img" alt srcset />
|
||||
<img
|
||||
v-if="img == ''?false : true "
|
||||
class="img"
|
||||
:src="'http://lawpro.earnest.pro' + img"
|
||||
alt
|
||||
srcset
|
||||
/>
|
||||
<p>{{text}}</p>
|
||||
</div>
|
||||
<div class="operation">
|
||||
<div>
|
||||
<div @click.stop="shar">
|
||||
<img src="../assets/share.png" alt srcset />
|
||||
分享
|
||||
</div>
|
||||
@ -130,18 +136,17 @@
|
||||
height: 101px;
|
||||
position: absolute;
|
||||
top: 55px;
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
left: -50px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
padding-left: 20px;
|
||||
|
||||
box-sizing: border-box;
|
||||
>p{
|
||||
font-size: 22px;
|
||||
color: #95998F;
|
||||
|
||||
box-sizing: border-box;
|
||||
> p {
|
||||
font-size: 22px;
|
||||
color: #95998f;
|
||||
}
|
||||
&::after {
|
||||
position: absolute;
|
||||
@ -151,7 +156,7 @@
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 10px solid #FFFFFF;
|
||||
border-bottom: 10px solid #ffffff;
|
||||
border-left: 7px solid transparent;
|
||||
}
|
||||
&::before {
|
||||
@ -176,9 +181,25 @@ export default {
|
||||
name: "PersonafFollow",
|
||||
data() {
|
||||
return {
|
||||
show:false
|
||||
show: false
|
||||
};
|
||||
},
|
||||
props:["title",'id','img','text','num']
|
||||
props: ["title", "id", "img", "text", "num",'type'],
|
||||
methods: {
|
||||
shar() {
|
||||
const input = document.createElement("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}`
|
||||
input.setAttribute("value", url);
|
||||
input.select();
|
||||
if (document.execCommand("copy")) {
|
||||
document.execCommand("copy");
|
||||
// window.console.log("复制成功");
|
||||
alert("已复制链接,请到对应平台粘贴发布")
|
||||
|
||||
}
|
||||
document.body.removeChild(input);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -15,7 +15,7 @@
|
||||
<div class="gengduo" v-show="show" @click="shows">展开阅读全文</div>
|
||||
</div>
|
||||
<div class="operation">
|
||||
<div>
|
||||
<div @click="shar">
|
||||
<img src="../assets/share.png" alt srcset />
|
||||
分享
|
||||
</div>
|
||||
@ -160,6 +160,20 @@ export default {
|
||||
},
|
||||
pinglun(){
|
||||
this.$emit("pinglu",this.sid)
|
||||
},
|
||||
shar() {
|
||||
const input = document.createElement("input");
|
||||
document.body.appendChild(input);
|
||||
var url = `http://www.lawpro.cn/m//#/IndexArticleDetaill?id=${this.$route.query.id}`
|
||||
input.setAttribute("value", url);
|
||||
input.select();
|
||||
if (document.execCommand("copy")) {
|
||||
document.execCommand("copy");
|
||||
// window.console.log("复制成功");
|
||||
alert("已复制链接,请到对应平台粘贴发布")
|
||||
|
||||
}
|
||||
document.body.removeChild(input);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -33,7 +33,7 @@
|
||||
<!-- <div v-show="show" @click="shows">展开阅读全文</div> -->
|
||||
</div>
|
||||
<div class="operation">
|
||||
<div>
|
||||
<div @click="shar">
|
||||
<img src="../assets/share.png" alt srcset />
|
||||
分享
|
||||
</div>
|
||||
@ -221,6 +221,20 @@ export default {
|
||||
var a = window.document.getElementsByClassName("content")[this.indexs];
|
||||
a.style.setProperty("max-height", "6.1rem", "important");
|
||||
this.show = true;
|
||||
},
|
||||
shar() {
|
||||
const input = document.createElement("input");
|
||||
document.body.appendChild(input);
|
||||
var url = `http://www.lawpro.cn/m/#/articledetail?id=${this.$route.query.id}`
|
||||
input.setAttribute("value", url);
|
||||
input.select();
|
||||
if (document.execCommand("copy")) {
|
||||
document.execCommand("copy");
|
||||
// window.console.log("复制成功");
|
||||
alert("已复制链接,请到对应平台粘贴发布")
|
||||
|
||||
}
|
||||
document.body.removeChild(input);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="recommend">
|
||||
<div class="recommend" @click="link">
|
||||
<div>
|
||||
<p class="articlename">{{title}}</p>
|
||||
<!-- <p class="articlecontent">在信息唾手可得的时代,拉开人与人差距的,不是知识含</p> -->
|
||||
@ -61,6 +61,20 @@ export default {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
props:['title','img']
|
||||
props:['title','img','sid','type'],
|
||||
methods:{
|
||||
link(){
|
||||
if(this.type == 1){
|
||||
this.$router.push({
|
||||
path:"articledetail?id=" + this.sid
|
||||
})
|
||||
}else{
|
||||
this.$router.push({
|
||||
path:"IndexArticleDetaill?id=" + this.sid
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -53,6 +53,8 @@ export default {
|
||||
color: #333333;
|
||||
font-size: 34px;
|
||||
font-weight: 500;
|
||||
padding: 0 41px;
|
||||
text-indent:0;
|
||||
padding-top: 34px;
|
||||
padding-bottom: 23px;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="recommend">
|
||||
<div class="recommend" @click="link">
|
||||
<div>
|
||||
<p class="articlename" style="width:100%">{{title}}</p>
|
||||
<!-- <p class="articlecontent">在信息唾手可得的时代,拉开人与人差距的,不是知识含</p> -->
|
||||
@ -62,6 +62,20 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
props:['title']
|
||||
props:['title','sid','type'],
|
||||
methods:{
|
||||
link(){
|
||||
if(this.type == 1){
|
||||
this.$router.push({
|
||||
path:"articledetail?id=" + this.sid
|
||||
})
|
||||
}else{
|
||||
this.$router.push({
|
||||
path:"IndexArticleDetaill?id=" + this.sid
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -9,6 +9,7 @@
|
||||
:num="item.comment"
|
||||
:img="item.img"
|
||||
:text="item.text"
|
||||
:type="item.type"
|
||||
></list>
|
||||
</div>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<p>+86</p>
|
||||
<img src="./assets/order.png" alt class="order" />
|
||||
<div class="line"></div>
|
||||
<input type="text" class="shuru" placeholder="输入手机号" v-model="tel" />
|
||||
<input type="number" class="shuru" placeholder="输入手机号" v-model="tel" />
|
||||
</div>
|
||||
|
||||
<div class="tel yzm">
|
||||
@ -92,11 +92,13 @@ export default {
|
||||
yz() {
|
||||
let yz = "";
|
||||
|
||||
if (this.tel != "") {
|
||||
if (this.tel != "" && (/^1[3456789]\d{9}$/.test(this.tel))) {
|
||||
if (this.yzs != "获取验证码") {
|
||||
return;
|
||||
} else {
|
||||
let t = this;
|
||||
t.yzs = t.miao + "秒";
|
||||
t.miao = t.miao - 1;
|
||||
let a = setInterval(() => {
|
||||
t.yzs = t.miao + "秒";
|
||||
t.miao = t.miao - 1;
|
||||
@ -115,6 +117,7 @@ export default {
|
||||
})
|
||||
.then(function(res) {
|
||||
window.console.log(res.data.data);
|
||||
|
||||
yz = res.data.data.yz;
|
||||
t.yztoken = yz;
|
||||
t.ifsign = res.data.data.register;
|
||||
@ -123,7 +126,7 @@ export default {
|
||||
window.console.log(error);
|
||||
});
|
||||
} else {
|
||||
window.console.log("请输入正确的手机号");
|
||||
alert("请输入正确的手机号");
|
||||
}
|
||||
},
|
||||
sub() {
|
||||
|
@ -46,6 +46,14 @@ export default {
|
||||
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)=>{
|
||||
localStorage.setItem('token', res.data.data)
|
||||
}).then((res)=>{
|
||||
if(res.data.code == 200){
|
||||
this.$router({
|
||||
path:"/"
|
||||
})
|
||||
}else{
|
||||
alert(this.data.msg)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user