Browse Source

save

pull/40/head
zyronon 1 year ago
parent
commit
7c62777323
  1. 4
      index.html
  2. 2
      src/assets/less/variables.less
  3. 3
      src/components/slide/Indicator.vue
  4. 20
      src/pages/home/index.vue
  5. 202
      src/pages/me/Me.less
  6. 131
      src/pages/me/Me.vue

4
index.html

@ -42,8 +42,8 @@ @@ -42,8 +42,8 @@
<script crossorigin="anonymous"
integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ=="
src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
<!-- <script src="//cdn.jsdelivr.net/npm/eruda"></script>-->
<!-- <script>eruda.init();</script>-->
</head>
<body>
<div id="app"></div>

2
src/assets/less/variables.less

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
@footer-height: 56rem;
@header-height: 50rem;
@indicator-height: 50rem;
@indicator-height: 43rem;
@padding-page: 15rem;

3
src/components/slide/Indicator.vue

@ -132,13 +132,14 @@ export default { @@ -132,13 +132,14 @@ export default {
font-weight: bold;
.tab {
height: 45rem;
height: 40rem;
width: 45%;
display: flex;
justify-content: center;
align-items: center;
color: gray;
transition: color .3s;
font-size: 16rem;
&.active {
color: white;

20
src/pages/home/index.vue

@ -337,11 +337,12 @@ function dislike() { @@ -337,11 +337,12 @@ function dislike() {
overflow: hidden;
.sidebar {
width: 75vw;
width: 80vw;
height: 100vh;
overflow: auto;
background: rgb(22, 22, 22);
padding: 10rem;
padding-bottom: 20rem;
box-sizing: border-box;
& > .header {
@ -367,13 +368,13 @@ function dislike() { @@ -367,13 +368,13 @@ function dislike() {
}
.card {
margin-top: 20rem;
margin-top: 10rem;
border-radius: 12rem;
padding: 15rem;
background: rgb(29, 29, 29);
.header {
margin-bottom: 16rem;
margin-bottom: 8rem;
font-size: 14rem;
display: flex;
color: white;
@ -383,12 +384,12 @@ function dislike() { @@ -383,12 +384,12 @@ function dislike() {
.right {
display: flex;
align-items: center;
font-size: 14rem;
font-size: 12rem;
gap: 4rem;
color: gray;
svg {
font-size: 18rem;
font-size: 16rem;
}
}
}
@ -404,16 +405,17 @@ function dislike() { @@ -404,16 +405,17 @@ function dislike() {
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 16rem;
font-size: 14rem;
gap: 8rem;
svg {
font-size: 30rem;
font-size: 28rem;
}
.xcx {
border-radius: 12rem;
width: 55rem;
width: 50rem;
height: 50rem;
}
}
@ -422,7 +424,7 @@ function dislike() { @@ -422,7 +424,7 @@ function dislike() {
img {
border-radius: 50%;
width: 55rem;
width: 50rem;
}
}
}

202
src/pages/me/Me.less

@ -54,7 +54,6 @@ @@ -54,7 +54,6 @@
}
.scroll {
.notice {
font-size: 12rem;
height: 40rem;
@ -203,7 +202,6 @@ @@ -203,7 +202,6 @@
}
}
}
}
.float {
@ -218,100 +216,144 @@ @@ -218,100 +216,144 @@
padding: 0 15rem;
background: transparent;
transition: all .2s;
text-align: center;
.center {
position: absolute;
left: 50%;
transform: translateX(-50%);
color: white;
}
&.fixed {
background: @main-bg;
img {
.item {
background: @main-bg !important;
}
}
@h: 30rem;
.left {
font-size: 12rem;
height: 26rem;
font-size: 14rem;
height: @h;
display: flex;
padding-right: 13rem;
padding-left: 5rem;
gap: 6rem;
padding: 0 10rem;
align-items: center;
border-radius: 20rem;
background: rgba(82, 80, 80, 0.5);
color: white;
img {
padding: 6rem;
width: 18rem;
svg {
font-size: 16rem;
}
}
.right {
img {
margin-left: 20rem;
border-radius: 50%;
display: flex;
.item {
height: @h;
width: @h;
display: flex;
justify-content: center;
align-items: center;
background: rgba(82, 80, 80, 0.5);
padding: 6rem;
width: 18rem;
border-radius: 50%;
margin-left: 10rem;
svg {
color: white;
font-size: 22rem;
}
.finger {
transform: rotate(90deg);
}
}
}
}
.desc {
header {
position: relative;
color: white;
height: 120rem;
height: 190rem;
background-image: url('../../assets/img/header-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SKqRn86DqsaY1Z+o1SXFX63MCqsmNZr9gY35m3w7npxXO4z6PXGLv1VjFHEvklfqdLBYxNapJrs1uY79e46flJuVzpQ31f2l4nUq1471mmy1TEwSu1f4I51bFO+7ouzLFGebb/F/Tmc/KvGo9bmGvLeYxzd+JmqPVnSuMjr4V7kehzKvrPqx+HqLKrmao9X1F+JzPbZhpbnxZMpGalLd+JLNSs2ezJMo2LZFxqzle4XF3Ai+JQBYmxzdUATYiwAAWCwAAWCwAAWAugAAIoAAA00MZJaPVD8RWzJW4czn2G0arXQG1E0VTGOzFyNM4GQAWGqAABosmFypITF6cuI+lO1zOmTGYXGmVUTJlc5VzBV7ipE5irCYZFi5PUkgEi8XoWzC0wuXU8V2yLlAGr4r3C5QBpgAAMNgAAAAAAAAAAAAAAAAAAAAAAAAACYAAAoAAAAAAAAAJgAACgAAAAAAAAAAAAJgAABj/2Q==');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
box-sizing: border-box;
.info {
position: absolute;
bottom: 10rem;
padding: 20rem;
display: flex;
align-items: center;
gap: 15rem;
.avatar {
background: black;
padding: 2px;
border-radius: 50%;
width: 100rem;
height: 100rem;
}
.name {
font-size: 18rem;
margin-bottom: 5rem;
}
.number {
font-size: 12rem;
color: @second-text-color;
display: flex;
align-items: center;
img {
width: 12rem;
margin-left: 5rem;
}
}
}
}
@p: 15rem;
.detail {
transform: translateY(-10rem);
background: @main-bg;
padding: 0 20rem 0 20rem;
border-radius: 10rem 10rem 0 0;
padding: @p @p 0 @p;
border-radius: 14rem 14rem 0 0;
.head {
width: 100%;
display: flex;
margin-bottom: 20rem;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
transform: translateY(-20rem);
.head-image {
background: black;
padding: 2px;
border-radius: 50%;
width: 80rem;
height: 80rem;
}
.heat {
margin-top: 10rem;
width: calc(100% - 120rem);
color: @second-text-color;
display: flex;
gap: 30rem;
align-items: center;
justify-content: space-between;
.num {
margin-top: 5rem;
color: white;
font-size: 16rem;
font-size: 15rem;
font-weight: bold;
margin-right: 3px;
}
.text {
font-size: 12rem;
margin-right: 10px;
font-size: 13rem;
display: flex;
align-items: center;
flex-direction: column;
@ -319,33 +361,25 @@ @@ -319,33 +361,25 @@
}
}
}
.description {
font-size: 12rem;
color: white;
transform: translateY(-20rem);
.number {
color: @second-text-color;
padding-bottom: 10rem;
border-bottom: 1px solid @line-color;
.button {
position: relative;
padding: 8rem 20rem;
font-size: 15rem;
display: flex;
align-items: center;
img {
width: 14rem;
margin-left: 5rem;
}
justify-content: center;
border-radius: 4rem;
background: @second-btn-color;
color: white;
}
}
.signature {
font-size: 13rem;
color: @second-text-color;
display: flex;
align-items: center;
margin-bottom: 5rem;
margin-bottom: 8rem;
img {
height: 12rem;
@ -358,17 +392,18 @@ @@ -358,17 +392,18 @@
}
.more {
margin-bottom: 10rem;
color: @second-text-color;
display: flex;
gap: 8rem;
.item {
padding: 2rem 5rem;
border-radius: 2rem;
background: @second-btn-color-tran;
font-size: 10rem;
font-size: 12rem;
display: flex;
align-items: center;
margin-right: 5rem;
img {
height: 10rem;
@ -377,67 +412,28 @@ @@ -377,67 +412,28 @@
}
}
.my-buttons {
display: flex;
justify-content: space-between;
.button {
position: relative;
width: 49%;
font-size: 12rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 2rem;
background: @second-btn-color;
height: 30rem;
color: white;
.not-read {
right: 45rem;
position: absolute;
}
}
}
.other {
display: flex;
margin-bottom: 20rem;
.item {
width: 20vw;
margin-right: 25rem;
display: flex;
flex-direction: column;
align-items: center;
color: gray;
gap: 6rem;
font-size: 12rem;
img {
margin-right: 8rem;
border-radius: 4rem;
background: @second-btn-color-tran;
padding: 8rem;
height: 22rem;
}
.right {
display: flex;
justify-content: space-between;
flex-direction: column;
.top {
color: white;
font-size: 14rem;
}
.bottom {
color: @second-text-color;
font-size: 12rem;
}
svg {
color: white;
font-size: 24rem;
}
}
}
}
}
.ul {
font-size: 14rem;
width: 100%;

131
src/pages/me/Me.vue

@ -5,9 +5,12 @@ @@ -5,9 +5,12 @@
style="width: 100vw;" v-model:active-index="baseActiveIndex">
<SlideItem>
<div ref="float" class="float" :class="floatFixed?'fixed':''">
<div class="left" style="opacity: 0;">
<img src="../../assets/img/icon/next.svg" alt="">
<span>切换账号</span>
<div
:style="floatFixed?'opacity: 0;':''"
class="left"
@click="$nav('/me/edit-userinfo')">
<Icon icon="ri:edit-fill"/>
<span>编辑资料</span>
</div>
<transition name="fade">
<div class="center" v-if="floatShowName">
@ -15,10 +18,22 @@ @@ -15,10 +18,22 @@
</div>
</transition>
<div class="right">
<img @click="$nav('/me/request-update')"
<div class="item"
:style="floatFixed?'opacity: 0;':''"
src="../../assets/img/icon/me/finger-right.png" alt="">
<img src="../../assets/img/icon/me/menu.png" alt="" @click.stop="baseActiveIndex = 1">
@click="$nav('/me/request-update')">
<Icon class="finger" icon="fluent-emoji-high-contrast:middle-finger"/>
</div>
<div class="item"
:style="floatFixed?'opacity: 0;':''"
@click="$no">
<Icon icon="eva:people-outline"/>
</div>
<div class="item" @click="$no">
<Icon icon="ic:round-search"/>
</div>
<div class="item" @click.stop="baseActiveIndex = 1">
<Icon icon="ic:round-menu"/>
</div>
</div>
</div>
<div class="scroll"
@ -27,82 +42,82 @@ @@ -27,82 +42,82 @@
@touchmove="touchMove($event)"
@touchend="touchEnd($event)">
<div ref="desc" class="desc">
<header ref="header" @click="previewImg = new URL('../../assets/img/header-bg.png')"></header>
<header ref="header" @click="previewImg = new URL('../../assets/img/header-bg.png')">
<div class="info">
<img :src="$imgPreview(userinfo.avatar)" class="avatar"
@click="previewImg = userinfo.avatar">
<div class="right">
<p class="name">{{ userinfo.nickname }}</p>
<div class="number mb1r">
<span class="mr1r" v-if="userinfo.is_private">私密账号</span>
<span>抖音号{{ userinfo.unique_id }}</span>
<img src="../../assets/img/icon/me/qrcode-gray.png" alt="" @click.stop="$nav('/me/my-card')">
</div>
</div>
</div>
</header>
<div class="detail">
<div class="head">
<img :src="$imgPreview(userinfo.avatar)" class="head-image"
@click="previewImg = userinfo.avatar">
<div class="heat">
<div class="text" @click="isShowStarCount = true">
<span>获赞</span>
<span class="num">{{ formatNumber(userinfo.aweme_count) }}</span>
<span>获赞</span>
</div>
<div class="text" @click="$nav('/people/follow-and-fans',{type:0})">
<span>关注</span>
<span class="num">{{ formatNumber(userinfo.following_count) }}</span>
<span>朋友</span>
</div>
<div class="text" @click="$nav('/people/follow-and-fans',{type:0})">
<span class="num">{{ formatNumber(userinfo.following_count) }}</span>
<span>关注</span>
</div>
<div class="text" @click="$nav('/people/follow-and-fans',{type:1})">
<span>粉丝</span>
<span class="num">{{ formatNumber(userinfo.follower_count) }}</span>
<span>粉丝</span>
</div>
</div>
<div class="button" @click="$nav('/people/find-acquaintance')">添加朋友</div>
</div>
<div class="description">
<p class="name f22 mt1r mb1r">{{ userinfo.nickname }}</p>
<div class="number mb1r">
<span class="mr1r" v-if="userinfo.is_private">私密账号</span>
<span>抖音号{{ userinfo.unique_id }}</span>
<img src="../../assets/img/icon/me/qrcode-gray.png" alt="" @click.stop="$nav('/me/my-card')">
<div class="signature" @click="$nav('/me/edit-userinfo-item',{type:3})">
<template v-if="!userinfo.desc">
<span>点击添加介绍让大家认识你...</span>
<img src="../../assets/img/icon/me/write-gray.png" alt="">
</template>
<div v-else class="text" v-html="userinfo.desc"></div>
</div>
<div class="more" @click="$nav('/me/edit-userinfo')">
<div class="age item" v-if="userinfo.birthday">
<img v-if="userinfo.sex == 0" src="../../assets/img/icon/me/woman.png" alt="">
<img v-if="userinfo.sex == 1" src="../../assets/img/icon/me/man.png" alt="">
<span>{{ filterAge(userinfo.birthday) }}</span>
</div>
<div class="signature f12" @click="$nav('/me/edit-userinfo-item',{type:3})">
<template v-if="!userinfo.desc">
<span>点击添加介绍让大家认识你...</span>
<img src="../../assets/img/icon/me/write-gray.png" alt="">
<div class="item" v-if="userinfo.province || userinfo.city">
{{ userinfo.province }}
<template v-if="userinfo.province && userinfo.city">
-
</template>
<div v-else class="text" v-html="userinfo.desc"></div>
{{ userinfo.city }}
</div>
<div class="more" @click="$nav('/me/edit-userinfo')">
<div class="age item" v-if="userinfo.birthday">
<img v-if="userinfo.sex == 0" src="../../assets/img/icon/me/woman.png" alt="">
<img v-if="userinfo.sex == 1" src="../../assets/img/icon/me/man.png" alt="">
<span>{{ filterAge(userinfo.birthday) }}</span>
</div>
<div class="item" v-if="userinfo.province || userinfo.city">
{{ userinfo.province }}
<template v-if="userinfo.province && userinfo.city">
-
</template>
{{ userinfo.city }}
</div>
<div class="item" v-if="userinfo.school.name">
{{ userinfo.school.name }}
</div>
<div class="item" v-if="userinfo.school.name">
{{ userinfo.school.name }}
</div>
</div>
<div class="other">
<div class="item" @click="$no">
<img src="../../assets/img/icon/me/shopping-cart-white.png" alt="">
<div class="right">
<div class="top">抖音商城</div>
<div class="bottom">发现超值好物</div>
</div>
<Icon icon="iconamoon:shopping-card-light"/>
<span>抖音商城</span>
</div>
<div class="item" @click="$nav('/me/my-music')">
<img src="../../assets/img/icon/me/music-white.png" alt="">
<div class="right">
<div class="top">我的音乐</div>
<div class="bottom">已收藏20首</div>
</div>
<Icon icon="iconamoon:music-2-light"/>
<span>我的音乐</span>
</div>
</div>
<div class="my-buttons">
<div class="button" @click="$nav('/me/edit-userinfo')">
<span>编辑资料</span>
<div class="item" @click="$no">
<Icon icon="streamline:chat-two-bubbles-oval"/>
<span>我的群聊</span>
</div>
<div class="button" @click="$nav('/people/find-acquaintance')">
<span>添加朋友</span>
<div class="not-read"></div>
<div class="item" @click="$no">
<Icon icon="iconamoon:shopping-card-light"/>
<span>查看更多</span>
</div>
</div>
</div>
@ -343,6 +358,7 @@ import {nextTick} from 'vue' @@ -343,6 +358,7 @@ import {nextTick} from 'vue'
import {mapState} from "vuex";
import bus from "../../utils/bus";
import ConfirmDialog from "../../components/dialog/ConfirmDialog";
import {$no} from "@/utils";
export default {
name: "Me",
@ -450,6 +466,7 @@ export default { @@ -450,6 +466,7 @@ export default {
bus.on('baseSlide-end', () => this.canScroll = true)
},
methods: {
$no,
setLoadingFalse() {
this.loadings.loading0 = false
this.loadings.loading1 = false

Loading…
Cancel
Save