更改首页

This commit is contained in:
952108534@qq.com 2022-01-13 17:10:36 +08:00
parent a2ad500537
commit edee7534bc
14 changed files with 68 additions and 14 deletions

View File

@ -4,6 +4,19 @@ body{
line-height: 1.5;
color: #666;
}
//用户光点
.rc-screen-reader{
width: 0.81rem;
height: 0.81rem;
border-radius: 50%;
position: absolute;
background-color: red;
top: 16%;
left: 66%;
display: block;
width: 0.37rem;
height: 0.37rem;
}
img, picture {
display: block;
max-width: 100%;

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -41,10 +41,14 @@
</div>
</a>
<a href="userlogin/login" class="rc-md-up rc-btn rc-btn--icon rc-icon ts-login--xs rc-iconography rc-interactive" aria-label="login">
<a class="rc-md-up rc-btn rc-btn--icon rc-icon ts-login--xs rc-iconography rc-interactive" aria-label="login" @click="turnlogin">
<span class="rc-screen-reader-text">
登录
</span>
<em class="rc-screen-reader" v-show="loginornot">
</em>
</a>
<!--
@ -59,7 +63,7 @@
translations.feature.headerbar.pin
</span>
</a>
<button data-js-trigger="search-bar" onclick='bindTracking(this)' evt-name='页内弹窗' evt-cat='headerBtnClick' evt-val='全文搜索' class="rc-btn rc-btn--icon rc-icon rc-search--xs rc-iconography rc-interactive" aria-label="Search" role="menuitem" data-click-modifier=".rc-hidden">
<button data-js-trigger="search-bar" @click='searchturn' evt-name='页内弹窗' evt-cat='headerBtnClick' evt-val='全文搜索' class="rc-btn rc-btn--icon rc-icon rc-search--xs rc-iconography rc-interactive" aria-label="Search" role="menuitem" data-click-modifier=".rc-hidden">
<span class="rc-screen-reader-text">translations.feature.headerbar.search</span>
</button>
</li>
@ -375,22 +379,62 @@
</template>
<script>
export default {
data() {
return {
headerScroll:false
headerScroll:false,
loginornot:true,//
usermessage:null,//
};
},
mounted() {
//
let usernot=JSON.parse(localStorage.getItem("userInfo"));
console.log(usernot);
if(usernot==null ||usernot==undefined){
console.log(usernot);
this.loginornot=true
}else{
this.loginornot=false
this.usermessage=usernot;
}
console.log(this.loginornot);
},
methods: {
bindTracking: function(){
console.log('bindTracking');
},
//
//
searchturn(){
this.$router.push({ name: "usersearch-search",
})
},
//
turnlogin(){
if(this.usermessage==null||this.usermessage==undefined){
this.$router.push({ name: "userlogin-login",
params:{id:12,key:'222'}
})
}else{
this.$router.push({ name: "personal-mypersonal",
})
}
}
},
};
</script>
<style lang="less" scoped>
@import url("../assets/css/global.less");
</style>

View File

@ -1105,9 +1105,6 @@ vm=this;
// }, 500);
// }
this.usermessage= JSON.parse(localStorage.getItem("userInfo"));
if(this.usermessage==null ||this.usermessage==undefined){

View File

@ -1,11 +1,9 @@
<template>
<div>
<Myheader></Myheader>
<div class="online" style="height:3px;width:93%;background:#DDDDDD;margin:0 auto"></div>
<div class="rc-header">
<div class="online"></div>
<div class="rc-main" v-for="(item,index) in goldmedal" :key="index" >
<div class="rc-border"></div>
<div
class="mypersonal"
v-for="(dataaddress, index) in useraddress"
@ -91,7 +89,7 @@
</div>
</div>
</div>
<div class="rc-button">
<div class="rc-left">
<span>总计</span>
@ -164,7 +162,7 @@ export default {
},
methods: {
jiesuan(){
let userdata=this.$route.query.wxdata
// let userdata=this.$route.query.wxdata
this.$router.push({
path: "/personal/userpay",
query: {

View File

@ -183,7 +183,9 @@ export default {
},
components: {},
mounted() {},
mounted() {
console.log(this.$route.params);
},
// watch: function () {
// console.log(this.inRank);
// },