
@@ -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"),
diff --git a/src/components/IndexList.vue b/src/components/IndexList.vue
index 6252c5b..7f7cce1 100644
--- a/src/components/IndexList.vue
+++ b/src/components/IndexList.vue
@@ -3,11 +3,17 @@
{{title}}
-
![]()
+
{{text}}
-
+

分享
@@ -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);
+ }
+ }
};
\ No newline at end of file
diff --git a/src/components/indexFollow.vue b/src/components/indexFollow.vue
index a0e6a1f..d2c43e1 100644
--- a/src/components/indexFollow.vue
+++ b/src/components/indexFollow.vue
@@ -15,7 +15,7 @@
展开阅读全文
-
+

分享
@@ -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() {
diff --git a/src/components/indexFollow1.vue b/src/components/indexFollow1.vue
index 65bbf67..0e5476f 100644
--- a/src/components/indexFollow1.vue
+++ b/src/components/indexFollow1.vue
@@ -33,7 +33,7 @@
-
+

分享
@@ -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() {
diff --git a/src/components/indexarticle.vue b/src/components/indexarticle.vue
index 14dae1c..9871bbe 100644
--- a/src/components/indexarticle.vue
+++ b/src/components/indexarticle.vue
@@ -1,5 +1,5 @@
-
+
{{title}}
@@ -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
+ })
+ }
+
+ }
+ }
};
\ No newline at end of file
diff --git a/src/components/indexfindall.vue b/src/components/indexfindall.vue
index 8b0cfe9..435939f 100644
--- a/src/components/indexfindall.vue
+++ b/src/components/indexfindall.vue
@@ -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;
}
diff --git a/src/components/indexprivate.vue b/src/components/indexprivate.vue
index 359d50e..7a0a570 100644
--- a/src/components/indexprivate.vue
+++ b/src/components/indexprivate.vue
@@ -1,5 +1,5 @@
-
+
{{title}}
@@ -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
+ })
+ }
+
+ }
+ }
};
\ No newline at end of file
diff --git a/src/index.vue b/src/index.vue
index 3bae648..1d1b4f0 100644
--- a/src/index.vue
+++ b/src/index.vue
@@ -9,6 +9,7 @@
:num="item.comment"
:img="item.img"
:text="item.text"
+ :type="item.type"
>
diff --git a/src/login.vue b/src/login.vue
index 660be35..38cdebc 100644
--- a/src/login.vue
+++ b/src/login.vue
@@ -7,7 +7,7 @@
+86
-
+
@@ -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() {
diff --git a/src/sign.vue b/src/sign.vue
index 96cafc1..8e607b5 100644
--- a/src/sign.vue
+++ b/src/sign.vue
@@ -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)
+ }
})
}
}