|
|
@ -279,6 +279,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import College from "@/api/college"; |
|
|
import College from "@/api/college"; |
|
|
import ContactUs from "@/api/contactUs"; |
|
|
import ContactUs from "@/api/contactUs"; |
|
|
|
|
|
import Member from "@/api/member"; |
|
|
import { mapState } from "vuex"; |
|
|
import { mapState } from "vuex"; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -434,12 +435,20 @@ export default { |
|
|
scbox(e){ |
|
|
scbox(e){ |
|
|
// under login |
|
|
// under login |
|
|
if (this.isLogin) { |
|
|
if (this.isLogin) { |
|
|
// get user infomation |
|
|
// get user infomation |
|
|
let user_str = localStorage.getItem("auth"); |
|
|
let user_str = localStorage.getItem("auth"); |
|
|
let user = JSON.parse(user_str); |
|
|
if(user_str!=""){ |
|
|
this.ifurl ="https://sc.moabcoin.com/chat/?toid="+user.referrer+"&room_id="+user.account; |
|
|
let user = JSON.parse(user_str); |
|
|
// show popup |
|
|
// 查询对应的推荐人帐号 |
|
|
this.ispopup = ! this.ispopup |
|
|
Member.getUnameByUid({user_id:user.referrer}).then(rfres=>{ |
|
|
|
|
|
// query referr uname |
|
|
|
|
|
this.ifurl ="https://sc.moabcoin.com/chat/?toid="+rfres.username+"&room_id="+user.account+"&usid="+user.user_id; |
|
|
|
|
|
// show popup |
|
|
|
|
|
this.ispopup = ! this.ispopup |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
// |
|
|
// |
|
|
console.log("login fisrt!!") |
|
|
console.log("login fisrt!!") |
|
|
@ -709,4 +718,4 @@ export default { |
|
|
display: none; |
|
|
display: none; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|