优化首页视频播放逻辑
我页面的一些子页面
This commit is contained in:
parent
39d74245a8
commit
0adffcc8a1
10
src/App.vue
10
src/App.vue
@ -14,6 +14,7 @@ export default {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -62,5 +63,14 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.fade-enter-active,
|
||||||
|
.fade-leave-active {
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-enter-from,
|
||||||
|
.fade-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -4,4 +4,5 @@ $second-btn-color: rgb(58, 58, 70);
|
|||||||
$line-color: rgb(37, 45, 66);
|
$line-color: rgb(37, 45, 66);
|
||||||
|
|
||||||
|
|
||||||
$primary-btn-color: rgb(252, 47, 86);
|
$primary-btn-color: rgb(252, 47, 86);
|
||||||
|
$disable-primary-btn-color: rgba(252, 47, 86, .5);
|
||||||
@ -1,67 +1,61 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id='BaseHeader'>
|
<div id='BaseHeader'>
|
||||||
<svg v-if="isShowLeftBtn" @click="back()" t="1564765917375" class="icon left" viewBox="0 0 1024 1024"
|
<svg @click="back()" t="1564765917375" class="icon left" viewBox="0 0 1024 1024"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
p-id="16292" width="32" height="32">
|
p-id="16292" width="32" height="32">
|
||||||
<path d="M363.840919 472.978737C336.938714 497.358861 337.301807 537.486138 364.730379 561.486138L673.951902 832.05497C682.818816 839.813519 696.296418 838.915012 704.05497 830.048098 711.813519 821.181184 710.915012 807.703582 702.048098 799.94503L392.826577 529.376198C384.59578 522.174253 384.502227 511.835287 392.492414 504.59418L702.325747 223.807723C711.056111 215.895829 711.719614 202.404616 703.807723 193.674252 695.895829 184.943889 682.404617 184.280386 673.674253 192.192278L363.840919 472.978737Z"
|
<path
|
||||||
p-id="16293" fill="#8a8a8a"></path>
|
d="M363.840919 472.978737C336.938714 497.358861 337.301807 537.486138 364.730379 561.486138L673.951902 832.05497C682.818816 839.813519 696.296418 838.915012 704.05497 830.048098 711.813519 821.181184 710.915012 807.703582 702.048098 799.94503L392.826577 529.376198C384.59578 522.174253 384.502227 511.835287 392.492414 504.59418L702.325747 223.807723C711.056111 215.895829 711.719614 202.404616 703.807723 193.674252 695.895829 184.943889 682.404617 184.280386 673.674253 192.192278L363.840919 472.978737Z"
|
||||||
</svg>
|
p-id="16293" fill="#8a8a8a"></path>
|
||||||
<span class="fb c-white f20">{{title}}</span>
|
</svg>
|
||||||
<slot><span></span></slot>
|
<slot name="center"><span></span></slot>
|
||||||
</div>
|
<slot name="right"><span></span></slot>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "BaseHeader",
|
name: "BaseHeader",
|
||||||
components: {},
|
components: {},
|
||||||
props: {
|
props: {},
|
||||||
title: {
|
data() {
|
||||||
type: String,
|
return {}
|
||||||
default: '我的名片'
|
},
|
||||||
},
|
created() {
|
||||||
isShowLeftBtn: {
|
},
|
||||||
type: Boolean,
|
computed: {},
|
||||||
default: true
|
methods: {
|
||||||
}
|
back() {
|
||||||
},
|
this.$store.commit('setPageAnim', 'back')
|
||||||
data() {
|
window.history.back()
|
||||||
return {}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
|
|
||||||
},
|
|
||||||
computed: {},
|
|
||||||
methods: {
|
|
||||||
back(){
|
|
||||||
this.$store.commit('setPageAnim','back')
|
|
||||||
window.history.back()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang='scss'>
|
<style scoped lang='scss'>
|
||||||
#BaseHeader {
|
#BaseHeader {
|
||||||
text-align: center;
|
width: 100%;
|
||||||
height: 60px;
|
display: flex;
|
||||||
border-bottom: 1px solid #cccccc11;
|
justify-content: center;
|
||||||
position: relative;
|
align-items: center;
|
||||||
|
height: 60px;
|
||||||
|
border-bottom: 1px solid #cccccc11;
|
||||||
|
position: relative;
|
||||||
|
color: white;
|
||||||
|
|
||||||
span {
|
.left {
|
||||||
line-height: 60px;
|
position: absolute;
|
||||||
}
|
left: 10px;
|
||||||
|
top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.left {
|
& > :nth-last-child(1) {
|
||||||
position: absolute;
|
height: 100%;
|
||||||
left: 10px;
|
position: absolute;
|
||||||
top: 15px;
|
right: 17px;
|
||||||
}
|
top: 0;
|
||||||
|
display: flex;
|
||||||
& > :nth-last-child(1) {
|
align-items: center;
|
||||||
position: absolute;
|
}
|
||||||
right: 17px;
|
}
|
||||||
top: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
214
src/pages/me/EditUserInfo.vue
Normal file
214
src/pages/me/EditUserInfo.vue
Normal file
@ -0,0 +1,214 @@
|
|||||||
|
<template>
|
||||||
|
<div class="edit">
|
||||||
|
<BaseHeader>
|
||||||
|
<template v-slot:center>
|
||||||
|
<div class="title">
|
||||||
|
<span class="f16">编辑资料</span>
|
||||||
|
<span class="sub f10">已完成85%</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</BaseHeader>
|
||||||
|
<div class="userinfo">
|
||||||
|
<div class="change-avatar">
|
||||||
|
<div class="avatar-ctn" @click="changeAvatarDialog = true">
|
||||||
|
<img class="avatar" src="../../assets/img/icon/head-image.jpeg" alt="">
|
||||||
|
<img class="change" src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
<span>点击更换头像</span>
|
||||||
|
</div>
|
||||||
|
<div class="row" @click="$nav('/editUserInfoItem',{type:1})">
|
||||||
|
<div class="left">名字</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" @click="$nav('/editUserInfoItem',{type:2})">
|
||||||
|
<div class="left">抖音号</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" @click="$nav('/editUserInfoItem',{type:3})">
|
||||||
|
<div class="left">简介</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" @click="changeSexDialog = true">
|
||||||
|
<div class="left">性别</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="left">生日</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="left">所在地</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="left">学校</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>B</span>
|
||||||
|
<img src="../../assets/img/icon/back.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<transition name="fade">
|
||||||
|
<div v-if="changeAvatarDialog" class="change-dialog" @click="changeAvatarDialog = false">
|
||||||
|
<div class="content">
|
||||||
|
<div class="item">拍一张</div>
|
||||||
|
<div class="item">从相册选择</div>
|
||||||
|
<div class="item">查看大图</div>
|
||||||
|
<div class="item">取消</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</transition>
|
||||||
|
<transition name="fade">
|
||||||
|
<div v-if="changeSexDialog" class="change-dialog" @click="changeSexDialog = false">
|
||||||
|
<div class="content">
|
||||||
|
<div class="item">男</div>
|
||||||
|
<div class="item">女</div>
|
||||||
|
<div class="item">不展示</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</transition>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "EditUserInfo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
changeAvatarDialog: false,
|
||||||
|
changeSexDialog: false,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "../../assets/scss/index";
|
||||||
|
|
||||||
|
.title {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.sub {
|
||||||
|
color: $second-text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.userinfo {
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
.change-avatar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
margin: 3rem 0;
|
||||||
|
$avatar-width: 7rem;
|
||||||
|
|
||||||
|
.avatar-ctn {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
width: $avatar-width;
|
||||||
|
height: $avatar-width;
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
opacity: .5;
|
||||||
|
position: absolute;
|
||||||
|
width: $avatar-width;
|
||||||
|
height: $avatar-width;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.change {
|
||||||
|
z-index: 9;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
height: 5rem;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
opacity: .5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: $second-text-color;
|
||||||
|
|
||||||
|
|
||||||
|
img {
|
||||||
|
margin-left: 1rem;
|
||||||
|
width: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mask {
|
||||||
|
}
|
||||||
|
|
||||||
|
.change-dialog {
|
||||||
|
z-index: 10;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background: #000000bb;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.content {
|
||||||
|
background: white;
|
||||||
|
width: 60%;
|
||||||
|
padding: .5rem 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.item {
|
||||||
|
padding: 1.5rem 2rem;
|
||||||
|
transition: all .2s;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: darkgray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
138
src/pages/me/EditUserInfoItem.vue
Normal file
138
src/pages/me/EditUserInfoItem.vue
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
<template>
|
||||||
|
<div class="edit-item">
|
||||||
|
<BaseHeader>
|
||||||
|
<template v-slot:center>
|
||||||
|
<span v-if="type === 1" class="f16">修改名字</span>
|
||||||
|
<span v-if="type === 2" class="f16">修改抖音号</span>
|
||||||
|
<span v-if="type === 3" class="f16">修改简介</span>
|
||||||
|
</template>
|
||||||
|
<template v-slot:right>
|
||||||
|
<div>
|
||||||
|
<span class="f16" :class="isChanged?'save-yes':'save-no'">保存</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</BaseHeader>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<div v-if="type === 1">
|
||||||
|
<div class="notice">我的名字</div>
|
||||||
|
<div class="input-ctn" style="margin-bottom: 1rem;">
|
||||||
|
<input type="text" v-model="name" placeholder="记得填写名字哦">
|
||||||
|
<img class="close" src="../../assets/img/icon/close.svg" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="num">{{ name.length }}/20</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" v-if="type === 2">
|
||||||
|
<div class="notice">我的抖音号</div>
|
||||||
|
<div class="input-ctn" style="margin-bottom: 1rem;">
|
||||||
|
<input type="text" v-model="name">
|
||||||
|
<img class="close" src="../../assets/img/icon/close.svg" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="num">最多16个字,只允许包含字母、数字、下划线和点,30天内仅能修改一次</div>
|
||||||
|
</div>
|
||||||
|
<div class="row" v-if="type === 3">
|
||||||
|
<div class="notice">个人简介</div>
|
||||||
|
<div class="textarea-ctn">
|
||||||
|
<textarea name="" id="" cols="30" rows="10"
|
||||||
|
placeholder="填写个人简介更容易获得别人关注哦"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
//TODO 1、数据变了后,保存按钮变亮;2、数据变了,点返回,弹窗是否确认
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "EditUserInfo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
type: 1,
|
||||||
|
name: 'B',
|
||||||
|
isChanged: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.type = Number(this.$route.query.type)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "../../assets/scss/index";
|
||||||
|
|
||||||
|
.edit-item {
|
||||||
|
|
||||||
|
.save-yes {
|
||||||
|
color: $primary-btn-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.save-no {
|
||||||
|
color: $disable-primary-btn-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding: 2rem;
|
||||||
|
|
||||||
|
.notice, .num {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
color: $second-text-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-ctn {
|
||||||
|
position: relative;
|
||||||
|
border-bottom: 1px solid $line-color;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
input {
|
||||||
|
margin: .5rem 0;
|
||||||
|
color: white;
|
||||||
|
height: 3rem;
|
||||||
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
|
&::placeholder {
|
||||||
|
color: $second-text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 1.5rem;
|
||||||
|
width: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.textarea-ctn {
|
||||||
|
width: 100%;
|
||||||
|
background: rgb(100, 114, 158);
|
||||||
|
padding: 1.5rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-top: 1rem;
|
||||||
|
border-radius: 2px;
|
||||||
|
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
font-family: "Microsoft YaHei UI";
|
||||||
|
outline: none;
|
||||||
|
width: 100%;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
&::placeholder {
|
||||||
|
color: $second-text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="my-buttons ">
|
<div class="my-buttons ">
|
||||||
<div class="collect">
|
<div class="collect" @click="$nav('/editUserInfo')">
|
||||||
<span class="mr5p">编辑资料</span>
|
<span class="mr5p">编辑资料</span>
|
||||||
<span class="f10p" style="color: darkgray">85%</span>
|
<span class="f10p" style="color: darkgray">85%</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,964 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="Me" >
|
|
||||||
<div class="wrapper">
|
|
||||||
<div class="left">
|
|
||||||
<header>
|
|
||||||
<img src="../../assets/img/icon/next.svg" alt="" @click="$emit('back')">
|
|
||||||
<img src="../../assets/img/icon/more.svg" alt="">
|
|
||||||
</header>
|
|
||||||
<div class="detail">
|
|
||||||
<div class="head">
|
|
||||||
<img src="../../assets/img/icon/head-image.jpeg" class="head-image">
|
|
||||||
<div class="other-buttons" v-if="false">
|
|
||||||
<div class="attention">
|
|
||||||
关注
|
|
||||||
</div>
|
|
||||||
<div class="more-attention">
|
|
||||||
-
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="my-buttons ">
|
|
||||||
<div class="collect">
|
|
||||||
<img src="../../assets/img/icon/collect-white.svg" alt="">
|
|
||||||
<span class="mr5p">收藏</span>
|
|
||||||
</div>
|
|
||||||
<div class="add-friend">
|
|
||||||
<img src="../../assets/img/icon/add-friend-white.svg" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="qr-code">
|
|
||||||
<img src="../../assets/img/icon/qr-code-white.svg" alt="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="description">
|
|
||||||
<p class="name f22 mt5p mb5p">ttentau</p>
|
|
||||||
<div class="number mb10p">
|
|
||||||
<span>抖音号:605128307</span>
|
|
||||||
<div class="jrtt">
|
|
||||||
<img src="../../assets/img/icon/sina.svg" alt="">
|
|
||||||
<span>头条主页</span>
|
|
||||||
<img src="../../assets/img/icon/next.svg" alt="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="signature f12 mb10p">
|
|
||||||
<span>填写个性签名更容易获得别人关注哦</span>
|
|
||||||
</div>
|
|
||||||
<div class="info f10 mb10p">
|
|
||||||
<div class="age">
|
|
||||||
<img src="../../assets/img/icon/person.svg" alt="">
|
|
||||||
<span>22岁</span>
|
|
||||||
</div>
|
|
||||||
<div class="location">
|
|
||||||
<span>上海</span>
|
|
||||||
</div>
|
|
||||||
<div class="school">
|
|
||||||
四川理工大学
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="heat">
|
|
||||||
<span>8获赞</span>
|
|
||||||
<span>38关注</span>
|
|
||||||
<span>42粉丝</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="indicator-ctn">
|
|
||||||
<div class="tabs-text-ctn">
|
|
||||||
<div class="tab-text active">作品1</div>
|
|
||||||
<div class="tab-text">作品1</div>
|
|
||||||
<div class="tab-text">作品1</div>
|
|
||||||
</div>
|
|
||||||
<div class="indicator"></div>
|
|
||||||
</div>
|
|
||||||
<div class="tabs-ctn">
|
|
||||||
<div class="tabs">
|
|
||||||
<div class="tab tab1">
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
</div>
|
|
||||||
<div class="tab tab2">
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
</div>
|
|
||||||
<div class="tab tab3">
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
<p>12</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<my-footer v-bind:init-tab="5"></my-footer>
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
<ul>
|
|
||||||
<li @click="nav('MyCard')">
|
|
||||||
<img src="../../assets/img/icon/card-gray.png" alt="">
|
|
||||||
<span>个人名片</span>
|
|
||||||
</li>
|
|
||||||
<li @click="nav('MyCollect')">
|
|
||||||
<img src="../../assets/img/icon/collect-gray.png" alt="">
|
|
||||||
<span>我的收藏</span>
|
|
||||||
</li>
|
|
||||||
<div class="line"></div>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/wallet-gray.png" alt="">
|
|
||||||
<span>钱包</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/order-gray.png" alt="">
|
|
||||||
<span>订单</span>
|
|
||||||
</li>
|
|
||||||
<li class="exception" @click="toggleService()">
|
|
||||||
<div class="d-flex align-items-center">
|
|
||||||
<img src="../../assets/img/icon/category-gray.png" alt="">
|
|
||||||
<span>服务</span>
|
|
||||||
</div>
|
|
||||||
<div class="triangle"></div>
|
|
||||||
</li>
|
|
||||||
<div class="service">
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/order-gray.png" alt="" class="op0">
|
|
||||||
<span>购物助手</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/order-gray.png" alt="" class="op0">
|
|
||||||
<span>生活服务订单</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/order-gray.png" alt="" class="op0">
|
|
||||||
<span>DOU+ 上热门</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/order-gray.png" alt="" class="op0">
|
|
||||||
<span>彩铃服务</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/order-gray.png" alt="" class="op0">
|
|
||||||
<span>免流量看抖音</span>
|
|
||||||
</li>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="line"></div>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/link-gray.png" alt="">
|
|
||||||
<span>小程序</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/juan-gray.png" alt="">
|
|
||||||
<span>卡卷</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<div class="line"></div>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/umbrella-gray.png" alt="">
|
|
||||||
<span>未成年保护工具</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<div class="line"></div>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<img src="../../assets/img/icon/setting-gray.png" alt="">
|
|
||||||
<span>设置</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import Footer from '../../components/Footer'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "Me",
|
|
||||||
components: { 'my-footer': Footer },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
serviceEl: {},
|
|
||||||
serviceHeight: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
!function () {
|
|
||||||
let wrapper = document.querySelector('.wrapper')
|
|
||||||
let leftEl = document.querySelector('.left')
|
|
||||||
let header = document.querySelector('header')
|
|
||||||
let headerHeight = getCss(header, 'height')
|
|
||||||
let indicatorCtn = document.querySelector('.indicator-ctn')
|
|
||||||
|
|
||||||
let indicatorCtnOffsetTop = indicatorCtn.offsetTop
|
|
||||||
let startLocationX = 0
|
|
||||||
let startLocationY = 0
|
|
||||||
|
|
||||||
let lastLocationX = 0
|
|
||||||
let lastLocationY = 0
|
|
||||||
|
|
||||||
let moveXDistance = 0
|
|
||||||
let moveYDistance = 0
|
|
||||||
|
|
||||||
let judgeValue = 20
|
|
||||||
|
|
||||||
let startTime
|
|
||||||
let currentSwiperItemIndex
|
|
||||||
let isDrawRight
|
|
||||||
|
|
||||||
let isCanRightWiping = false
|
|
||||||
let isCanDownWiping = false
|
|
||||||
let isNeedCheck = true
|
|
||||||
|
|
||||||
let width = document.body.clientWidth
|
|
||||||
let rightWidth = width * 0.7
|
|
||||||
|
|
||||||
wrapper.addEventListener('touchstart', function (e) {
|
|
||||||
wrapper.style.transition = 'none'
|
|
||||||
header.style.transition = 'none'
|
|
||||||
|
|
||||||
let left = getCss(wrapper, 'left')
|
|
||||||
|
|
||||||
if (left !== 0) {
|
|
||||||
currentSwiperItemIndex = 1
|
|
||||||
} else {
|
|
||||||
currentSwiperItemIndex = 0
|
|
||||||
}
|
|
||||||
startLocationX = e.touches[0].pageX
|
|
||||||
startLocationY = e.touches[0].pageY
|
|
||||||
|
|
||||||
startTime = Date.now()
|
|
||||||
})
|
|
||||||
wrapper.addEventListener('touchmove', function (e) {
|
|
||||||
lastLocationX = e.touches[0].pageX
|
|
||||||
lastLocationY = e.touches[0].pageY
|
|
||||||
moveXDistance = lastLocationX - startLocationX
|
|
||||||
moveYDistance = lastLocationY - startLocationY
|
|
||||||
checkDirection()
|
|
||||||
if (isCanRightWiping) {
|
|
||||||
if (currentSwiperItemIndex === 0) {
|
|
||||||
if (moveXDistance > 0) {
|
|
||||||
moveXDistance = 0
|
|
||||||
}
|
|
||||||
if (Math.abs(moveXDistance) > rightWidth) {
|
|
||||||
moveXDistance = -rightWidth
|
|
||||||
}
|
|
||||||
isDrawRight = moveXDistance < 0
|
|
||||||
if (isDrawRight) {
|
|
||||||
wrapper.style.left = -(currentSwiperItemIndex + 0) * width + moveXDistance + judgeValue + 'px'
|
|
||||||
} else {
|
|
||||||
wrapper.style.left = -(currentSwiperItemIndex + 0) * width + moveXDistance + 'px'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (currentSwiperItemIndex === 1) {
|
|
||||||
if (moveXDistance < 0) {
|
|
||||||
moveXDistance = 0
|
|
||||||
}
|
|
||||||
isDrawRight = moveXDistance < 0
|
|
||||||
if (isDrawRight) {
|
|
||||||
wrapper.style.left = -(currentSwiperItemIndex + 0) * rightWidth + moveXDistance - judgeValue + 'px'
|
|
||||||
} else {
|
|
||||||
wrapper.style.left = -(currentSwiperItemIndex + 0) * rightWidth + moveXDistance + 'px'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (moveYDistance > 0) {
|
|
||||||
console.log('往下划')
|
|
||||||
header.style.height = headerHeight + moveYDistance / 5 + 'px'
|
|
||||||
} else {
|
|
||||||
console.log('往上划')
|
|
||||||
}
|
|
||||||
// console.log('y', moveYDistance)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
wrapper.addEventListener('touchend', function (e) {
|
|
||||||
//点击的是左边,并且是菜单展开状态,并且移动距离等于 0,那么就收起来
|
|
||||||
let left = getCss(wrapper, 'left')
|
|
||||||
if (e.path.includes(leftEl) && left !== 0 && moveXDistance === 0) {
|
|
||||||
wrapper.style.transition = 'all .2s'
|
|
||||||
wrapper.style.left = 0
|
|
||||||
leftEl.style.opacity = 1
|
|
||||||
resetConfig()
|
|
||||||
e.stopImmediatePropagation()
|
|
||||||
e.stopPropagation()
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if (isCanRightWiping) {
|
|
||||||
if (!moveXDistance) return
|
|
||||||
wrapper.style.transition = 'all .2s'
|
|
||||||
let endTime = Date.now()
|
|
||||||
let gapTime = endTime - startTime
|
|
||||||
|
|
||||||
// 如果
|
|
||||||
if (Math.abs(moveXDistance) < 20) {
|
|
||||||
gapTime = 1000
|
|
||||||
}
|
|
||||||
if (Math.abs(moveXDistance) > (width / 3)) {
|
|
||||||
gapTime = 100
|
|
||||||
}
|
|
||||||
// console.log('是否向左划',isDrawRight)
|
|
||||||
if (gapTime < 150) {
|
|
||||||
// console.log('小于500', currentIndex)
|
|
||||||
if (isDrawRight) {
|
|
||||||
// console.log('往左划');
|
|
||||||
wrapper.style.left = -rightWidth + 'px'
|
|
||||||
leftEl.style.opacity = 0.5
|
|
||||||
} else {
|
|
||||||
wrapper.style.left = 0
|
|
||||||
leftEl.style.opacity = 1
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (currentSwiperItemIndex === 1) {
|
|
||||||
wrapper.style.left = -rightWidth + 'px'
|
|
||||||
} else {
|
|
||||||
wrapper.style.left = 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
resetConfig()
|
|
||||||
isNeedCheck = true
|
|
||||||
return
|
|
||||||
} else {
|
|
||||||
header.style.transition = 'all .3s'
|
|
||||||
header.style.height = headerHeight + 'px'
|
|
||||||
resetConfig()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
leftEl.addEventListener('scroll', function () {
|
|
||||||
if (leftEl.scrollTop > indicatorCtnOffsetTop) {
|
|
||||||
indicatorCtn.classList.add('fixed')
|
|
||||||
} else {
|
|
||||||
indicatorCtn.classList.remove('fixed')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
function resetConfig() {
|
|
||||||
isCanDownWiping = false
|
|
||||||
isCanRightWiping = false
|
|
||||||
isNeedCheck = true
|
|
||||||
moveXDistance = 0
|
|
||||||
moveYDistance = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkDirection() {
|
|
||||||
if (!isNeedCheck) {
|
|
||||||
// console.log('不需要检测了')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Math.abs(moveXDistance) > judgeValue || Math.abs(moveYDistance) > judgeValue) {
|
|
||||||
//X 除以 Y
|
|
||||||
let angle = (Math.abs(moveXDistance) * 10) / (Math.abs(moveYDistance) * 10)
|
|
||||||
if (angle > 0.7 && angle < 1.3) {
|
|
||||||
isNeedCheck = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// console.log('x------------', moveXDistance)
|
|
||||||
// console.log('y------------', moveYDistance)
|
|
||||||
// console.log('角度------------', angle)
|
|
||||||
|
|
||||||
if (angle < 0.6) {
|
|
||||||
//上下划
|
|
||||||
isCanRightWiping = false
|
|
||||||
isNeedCheck = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (angle > 5) {
|
|
||||||
//左右划
|
|
||||||
isCanRightWiping = true
|
|
||||||
isNeedCheck = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
!function () {
|
|
||||||
let tabsCtn = document.querySelector('.tabs-ctn')
|
|
||||||
let tabs = document.querySelector('.tabs')
|
|
||||||
let indicator = document.querySelector('.indicator')
|
|
||||||
let tabsTextCtn = document.querySelector('.tabs-text-ctn')
|
|
||||||
tabsCtn.style.height = getCss(tabs.children[0], 'height') + 'px'
|
|
||||||
|
|
||||||
let startLocationX = 0
|
|
||||||
let startLocationY = 0
|
|
||||||
|
|
||||||
let lastLocationX = 0
|
|
||||||
let lastLocationY = 0
|
|
||||||
|
|
||||||
let moveXDistance = 0
|
|
||||||
let moveYDistance = 0
|
|
||||||
|
|
||||||
let judgeValue = 20
|
|
||||||
|
|
||||||
let startTime
|
|
||||||
let currentSwiperItemIndex
|
|
||||||
let isDrawRight
|
|
||||||
|
|
||||||
let isCanRightWiping = false
|
|
||||||
let isCanDownWiping = false
|
|
||||||
let isNeedCheck = true
|
|
||||||
|
|
||||||
let width = document.body.clientWidth
|
|
||||||
|
|
||||||
tabs.addEventListener('touchstart', function (e) {
|
|
||||||
tabs.style.transition = 'none'
|
|
||||||
indicator.style.transition = 'none'
|
|
||||||
|
|
||||||
let left = getCss(tabs, 'left')
|
|
||||||
if (Math.abs(left) === 0) {
|
|
||||||
currentSwiperItemIndex = 0
|
|
||||||
} else if (Math.abs(left) === width) {
|
|
||||||
currentSwiperItemIndex = 1
|
|
||||||
} else {
|
|
||||||
currentSwiperItemIndex = 2
|
|
||||||
}
|
|
||||||
startLocationX = e.touches[0].pageX
|
|
||||||
startLocationY = e.touches[0].pageY
|
|
||||||
startTime = Date.now()
|
|
||||||
})
|
|
||||||
tabs.addEventListener('touchmove', function (e) {
|
|
||||||
lastLocationX = e.touches[0].pageX
|
|
||||||
lastLocationY = e.touches[0].pageY
|
|
||||||
moveXDistance = lastLocationX - startLocationX
|
|
||||||
moveYDistance = lastLocationY - startLocationY
|
|
||||||
|
|
||||||
isDrawRight = moveXDistance < 0
|
|
||||||
|
|
||||||
checkDirection()
|
|
||||||
if (isCanRightWiping) {
|
|
||||||
if (currentSwiperItemIndex === tabs.children.length - 1 && isDrawRight) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
e.stopImmediatePropagation()
|
|
||||||
e.stopPropagation()
|
|
||||||
if (isDrawRight) {
|
|
||||||
indicator.style.marginLeft = (1.5 + (currentSwiperItemIndex + 0) * 33 + Math.abs(moveXDistance) / width / 3 * 100) + '%'
|
|
||||||
tabs.style.left = -(currentSwiperItemIndex + 0) * width + moveXDistance + judgeValue + 'px'
|
|
||||||
} else {
|
|
||||||
if (currentSwiperItemIndex === 0) {
|
|
||||||
return tabs.style.left = 0
|
|
||||||
}
|
|
||||||
let marginLeft = (1.5 + (currentSwiperItemIndex + 0) * 33 - Math.abs(moveXDistance) / width / 3 * 100)
|
|
||||||
if (marginLeft > 1.5) {
|
|
||||||
indicator.style.marginLeft = marginLeft + '%'
|
|
||||||
} else {
|
|
||||||
indicator.style.marginLeft = '1.5%'
|
|
||||||
}
|
|
||||||
tabs.style.left = -(currentSwiperItemIndex + 0) * width + moveXDistance - judgeValue + 'px'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
tabs.addEventListener('touchend', function (e) {
|
|
||||||
if (isCanRightWiping) {
|
|
||||||
if (currentSwiperItemIndex === tabs.children.length - 1 && isDrawRight) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
e.stopImmediatePropagation()
|
|
||||||
e.stopPropagation()
|
|
||||||
if (!moveXDistance) return
|
|
||||||
tabs.style.transition = 'all .3s'
|
|
||||||
indicator.style.transition = 'all .3s'
|
|
||||||
|
|
||||||
let endTime = Date.now()
|
|
||||||
let gapTime = endTime - startTime
|
|
||||||
|
|
||||||
// 如果
|
|
||||||
if (Math.abs(moveXDistance) < 20) {
|
|
||||||
gapTime = 1000
|
|
||||||
}
|
|
||||||
if (Math.abs(moveXDistance) > (width / 3)) {
|
|
||||||
gapTime = 100
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gapTime < 150) {
|
|
||||||
// console.log('小于500', currentIndex)
|
|
||||||
if (isDrawRight) {
|
|
||||||
indicator.style.marginLeft = 1.5 + (currentSwiperItemIndex + 1) * 33 + '%'
|
|
||||||
console.log('往左划')
|
|
||||||
if (currentSwiperItemIndex === tabs.children.length - 1) {
|
|
||||||
tabs.style.left = -(tabs.children.length - 1) * width + 'px'
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for (let item of tabsTextCtn.children) {
|
|
||||||
item.classList.remove('active')
|
|
||||||
}
|
|
||||||
tabsTextCtn.children[currentSwiperItemIndex + 1].classList.add('active')
|
|
||||||
tabs.style.left = -(currentSwiperItemIndex + 1) * width + 'px'
|
|
||||||
tabsCtn.style.height = getCss(tabs.children[currentSwiperItemIndex + 1], 'height') + 'px'
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
let marginLeft = 1.5 + (currentSwiperItemIndex - 1) * 33
|
|
||||||
if (marginLeft > 1.5) {
|
|
||||||
indicator.style.marginLeft = marginLeft + '%'
|
|
||||||
} else {
|
|
||||||
indicator.style.marginLeft = '1.5%'
|
|
||||||
}
|
|
||||||
console.log('往右划')
|
|
||||||
if (currentSwiperItemIndex === 0) {
|
|
||||||
return tabs.style.left = 0
|
|
||||||
}
|
|
||||||
for (let item of tabsTextCtn.children) {
|
|
||||||
item.classList.remove('active')
|
|
||||||
}
|
|
||||||
tabsTextCtn.children[currentSwiperItemIndex - 1].classList.add('active')
|
|
||||||
tabs.style.left = -(currentSwiperItemIndex - 1) * width + 'px'
|
|
||||||
tabsCtn.style.height = getCss(tabs.children[currentSwiperItemIndex - 1], 'height') + 'px'
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
tabs.style.left = -(currentSwiperItemIndex) * width + 'px'
|
|
||||||
indicator.style.marginLeft = 1.5 + currentSwiperItemIndex * 33 + '%'
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
isNeedCheck = true
|
|
||||||
}
|
|
||||||
resetConfig()
|
|
||||||
})
|
|
||||||
|
|
||||||
for (let i = 0; i < tabsTextCtn.children.length; i++) {
|
|
||||||
let textEl = tabsTextCtn.children[i]
|
|
||||||
textEl.addEventListener('click', function () {
|
|
||||||
indicator.style.marginLeft = 1.5 + i * 33 + '%'
|
|
||||||
tabs.style.transition = 'all .3s'
|
|
||||||
tabs.style.left = -i * width + 'px'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function resetConfig() {
|
|
||||||
isCanDownWiping = false
|
|
||||||
isCanRightWiping = false
|
|
||||||
isNeedCheck = true
|
|
||||||
moveXDistance = 0
|
|
||||||
moveYDistance = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkDirection() {
|
|
||||||
if (!isNeedCheck) {
|
|
||||||
// console.log('不需要检测了')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Math.abs(moveXDistance) > judgeValue || Math.abs(moveYDistance) > judgeValue) {
|
|
||||||
//X 除以 Y
|
|
||||||
let angle = (Math.abs(moveXDistance) * 10) / (Math.abs(moveYDistance) * 10)
|
|
||||||
// console.log(angle);
|
|
||||||
if (angle > 0.7 && angle < 1.3) {
|
|
||||||
isNeedCheck = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// console.log('x------------', moveXDistance)
|
|
||||||
// console.log('y------------', moveYDistance)
|
|
||||||
// console.log('角度------------', angle)
|
|
||||||
|
|
||||||
if (angle < 0.6) {
|
|
||||||
//上下划
|
|
||||||
isCanDownWiping = true
|
|
||||||
isCanRightWiping = false
|
|
||||||
isNeedCheck = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (angle > 5) {
|
|
||||||
//左右划
|
|
||||||
isCanDownWiping = false
|
|
||||||
isCanRightWiping = true
|
|
||||||
isNeedCheck = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
function getCss(curEle, attr) {
|
|
||||||
var val = null, reg = null
|
|
||||||
if ("getComputedStyle" in window) {
|
|
||||||
val = window.getComputedStyle(curEle, null)[attr]
|
|
||||||
} else { //ie6~8不支持上面属性
|
|
||||||
//不兼容
|
|
||||||
if (attr === "opacity") {
|
|
||||||
val = curEle.currentStyle["filter"] //'alpha(opacity=12,345)'
|
|
||||||
reg = /^alphaopacity=(\d+(?:\.\d+)?)opacity=(\d+(?:\.\d+)?)$/i
|
|
||||||
val = reg.test(val) ? reg.exec(val)[1] / 100 : 1
|
|
||||||
} else {
|
|
||||||
val = curEle.currentStyle[attr]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
reg = /^(-?\d+(\.\d)?)(px|pt|em|rem)?$/i
|
|
||||||
return reg.test(val) ? parseFloat(val) : val
|
|
||||||
}
|
|
||||||
|
|
||||||
this.serviceEl = document.querySelector('.service')
|
|
||||||
this.serviceHeight = this.getCss(this.serviceEl, 'height')
|
|
||||||
this.serviceEl.style.height = this.serviceHeight + 'px'
|
|
||||||
},
|
|
||||||
computed: {},
|
|
||||||
methods: {
|
|
||||||
toggleService() {
|
|
||||||
console.log(this.serviceEl.style.height)
|
|
||||||
if (this.serviceEl.style.height === this.serviceHeight + 'px') {
|
|
||||||
this.serviceEl.style.height = 0
|
|
||||||
}else {
|
|
||||||
this.serviceEl.style.height = this.serviceHeight + 'px'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang='scss'>
|
|
||||||
$left-bg-color: #333;
|
|
||||||
$right-bg-color: #2e3244;
|
|
||||||
.Me {
|
|
||||||
position: fixed;
|
|
||||||
font-size: 1.6rem;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
.left {
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
position: absolute;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
background: $left-bg-color;
|
|
||||||
overflow-y: scroll;
|
|
||||||
|
|
||||||
header {
|
|
||||||
height: 150px;
|
|
||||||
/* background-image: url('./imgs/header2.jpg'); */
|
|
||||||
background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEBAQEBAPEBAPEBAPDw8QDw8NEA8OFRIWFhURFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGBAQGC0dHR0tLS0rKy0tLS0tLS0tKy0tKy0tLSstLS0tLS0tLSstLSstLS0tKy0tLS0tLS0tLisrN//AABEIAKgBLAMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAAAAwECBAUGB//EAD8QAAIBAgMFAwgIBQQDAAAAAAABAgMRBBIhBSIxQXFRYbEGEyMyUnKBkRWCkqGissHRFEJic/AkNIPhBzNT/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECAwT/xAAeEQEBAQEAAwEBAQE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AAAAACYAAAoAAAAAAAAAJgAACgAAAAAAAAAAAAJgAABj/2Q==');
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
/*background: url("../../assets/img/icon/top-bg.jpg");*/
|
|
||||||
padding: 20px;
|
|
||||||
|
|
||||||
img {
|
|
||||||
border-radius: 50%;
|
|
||||||
padding: 5px;
|
|
||||||
background: #524a4a;
|
|
||||||
height: 20px;
|
|
||||||
width: 20px;
|
|
||||||
|
|
||||||
&:nth-child(1) {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.detail {
|
|
||||||
background: $left-bg-color;
|
|
||||||
padding: 0 20px;
|
|
||||||
|
|
||||||
.head {
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
transform: translateY(-20px);
|
|
||||||
|
|
||||||
.head-image {
|
|
||||||
background: black;
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 50%;
|
|
||||||
width: 80px;
|
|
||||||
height: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.my-buttons {
|
|
||||||
div {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
float: left;
|
|
||||||
border-radius: 2px;
|
|
||||||
background: #676767;
|
|
||||||
margin-right: 5px;
|
|
||||||
|
|
||||||
img {
|
|
||||||
padding: 6px;
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
color: #cdcdcd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
|
||||||
color: white;
|
|
||||||
transform: translateY(-20px);
|
|
||||||
|
|
||||||
.number {
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-bottom: 1px solid gray;
|
|
||||||
|
|
||||||
.jrtt {
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 10px;
|
|
||||||
width: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
margin: 0 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.info {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
div {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
float: left;
|
|
||||||
border-radius: 2px;
|
|
||||||
background: #676767;
|
|
||||||
margin-right: 5px;
|
|
||||||
padding: 2px 4px;
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 10px;
|
|
||||||
margin-right: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
color: #cdcdcd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.heat {
|
|
||||||
span {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabs-ctn {
|
|
||||||
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabs {
|
|
||||||
left: 0;
|
|
||||||
transition: all 0.3s ease 0s;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab {
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
background: red;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab:nth-child(2) {
|
|
||||||
left: 100%;
|
|
||||||
background: gold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab:nth-child(3) {
|
|
||||||
left: 200%;
|
|
||||||
background: blue;
|
|
||||||
}
|
|
||||||
|
|
||||||
.indicator-ctn {
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 999;
|
|
||||||
background: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.indicator-ctn.fixed {
|
|
||||||
position: fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.indicator {
|
|
||||||
height: 2px;
|
|
||||||
background: gold;
|
|
||||||
width: 30%;
|
|
||||||
margin-left: 1.5%;
|
|
||||||
transition: all .3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabs-text-ctn {
|
|
||||||
height: 40px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
align-items: center;
|
|
||||||
color: gray;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-text.active {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.right {
|
|
||||||
top: 0;
|
|
||||||
left: 100%;
|
|
||||||
position: absolute;
|
|
||||||
height: 100%;
|
|
||||||
width: 70%;
|
|
||||||
color: white;
|
|
||||||
background: $right-bg-color;
|
|
||||||
|
|
||||||
ul {
|
|
||||||
height: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
.line {
|
|
||||||
height: 1px;
|
|
||||||
background: #cccccc;
|
|
||||||
opacity: .1;
|
|
||||||
margin: 5px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.service {
|
|
||||||
transition: all .3s;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
|
||||||
background: $right-bg-color;
|
|
||||||
padding: 20px;
|
|
||||||
list-style: none;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
&:active {
|
|
||||||
background: #454b65;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 30px;
|
|
||||||
width: 30px;
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.exception {
|
|
||||||
justify-content: space-between;
|
|
||||||
|
|
||||||
.triangle {
|
|
||||||
transform: translateY(3px);
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
border-top: 7px solid #cccccc;
|
|
||||||
border-right: 7px solid transparent;
|
|
||||||
border-bottom: 7px solid transparent;
|
|
||||||
border-left: 7px solid transparent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -8,13 +8,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<SlideList key1="子" direction="column" v-model:active-index="videoActiveIndex">
|
<SlideList key1="子" direction="column" v-model:active-index="videoActiveIndex">
|
||||||
<SlideItem :style="itemTop" v-for="(item,index) of videos">
|
<SlideItem :style="itemTop" v-for="(item,index) of videos">
|
||||||
<Video
|
<Video1
|
||||||
:disabled="videoActiveIndex !== addCount + index"
|
:disabled="videoActiveIndex !== addCount + index"
|
||||||
v-model:video="videos[index]"
|
v-model:video="videos[index]"
|
||||||
@showComments="isCommenting = !isCommenting"
|
@showComments="isCommenting = !isCommenting"
|
||||||
@showShare="isSharing = !isSharing"
|
@showShare="isSharing = !isSharing"
|
||||||
@goUserInfo="baseActiveIndex = 1"
|
@goUserInfo="baseActiveIndex = 1"
|
||||||
></Video>
|
></Video1>
|
||||||
</SlideItem>
|
</SlideItem>
|
||||||
</SlideList>
|
</SlideList>
|
||||||
<div class="share-to-friend" v-if="!isMy">
|
<div class="share-to-friend" v-if="!isMy">
|
||||||
|
|||||||
@ -4,13 +4,14 @@ import Index from "../pages/home/Index";
|
|||||||
import Attention from "../pages/home/Attention";
|
import Attention from "../pages/home/Attention";
|
||||||
import Message from "../pages/home/Message";
|
import Message from "../pages/home/Message";
|
||||||
import Me from "../pages/me/Me";
|
import Me from "../pages/me/Me";
|
||||||
import Me2 from "../pages/me/Me2";
|
|
||||||
import Music from "../components/common/Music";
|
import Music from "../components/common/Music";
|
||||||
import countryChoose from "../pages/login/countryChoose";
|
import countryChoose from "../pages/login/countryChoose";
|
||||||
import MyCard from "../pages/me/MyCard";
|
import MyCard from "../pages/me/MyCard";
|
||||||
import MyCollect from "../pages/me/MyCollect";
|
import MyCollect from "../pages/me/MyCollect";
|
||||||
import VideoDetail from "../pages/me/VideoDetail";
|
import VideoDetail from "../pages/me/VideoDetail";
|
||||||
import Index2 from "../pages/home/Index2";
|
import Index2 from "../pages/home/Index2";
|
||||||
|
import EditUserInfo from "../pages/me/EditUserInfo";
|
||||||
|
import EditUserInfoItem from "../pages/me/EditUserInfoItem";
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
// {path: '', component: Music},
|
// {path: '', component: Music},
|
||||||
@ -20,7 +21,8 @@ const routes = [
|
|||||||
{path: '/attention', component: Attention},
|
{path: '/attention', component: Attention},
|
||||||
{path: '/message', component: Message},
|
{path: '/message', component: Message},
|
||||||
{path: '/me', component: Me},
|
{path: '/me', component: Me},
|
||||||
{path: '/me2', component: Me2},
|
{path: '/editUserInfo', component: EditUserInfo},
|
||||||
|
{path: '/editUserInfoItem', component: EditUserInfoItem},
|
||||||
{path: '/music', component: Music},
|
{path: '/music', component: Music},
|
||||||
{path: '/countryChoose', component: countryChoose},
|
{path: '/countryChoose', component: countryChoose},
|
||||||
{path: '/MyCard', component: MyCard},
|
{path: '/MyCard', component: MyCard},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user