优化
This commit is contained in:
parent
ec18f5b540
commit
7fc3b9d244
@ -10,11 +10,9 @@
|
||||
</div>
|
||||
<div class="l-button" @click="tab(3)">
|
||||
<div class="add-ctn">
|
||||
<div class="add-one">
|
||||
<img src="../assets/img/icon/add-light.png" alt="" class="add">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="l-button" @click="tab(4)">
|
||||
<span :class="{active:currentTab===4}">消息</span>
|
||||
<div class="badge2 ">2</div>
|
||||
@ -125,24 +123,17 @@ export default {
|
||||
|
||||
.add-ctn {
|
||||
@height: 27rem;
|
||||
@width: 40rem;
|
||||
@width: 36rem;
|
||||
height: @height;
|
||||
width: @width;
|
||||
background: linear-gradient(to right, #59dcdf, #ff5f75);
|
||||
border-radius: 5rem;
|
||||
border-radius: 6rem;
|
||||
box-sizing: border-box;
|
||||
padding: 0 2rem;
|
||||
|
||||
.add-one {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
border-radius: 5rem;
|
||||
border: 2px solid white;
|
||||
border: 3rem solid white;
|
||||
background: black;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 20rem;
|
||||
|
||||
@ -340,10 +340,10 @@ export default {
|
||||
margin-bottom: @space-width;
|
||||
|
||||
img {
|
||||
width: @icon-width - 2.6;
|
||||
height: @icon-width - 2.6;
|
||||
width: 20rem;
|
||||
padding: 13rem;
|
||||
border-radius: 50%;
|
||||
margin-bottom: 3rem;
|
||||
background: @second-btn-color-tran;
|
||||
//background: rgb(56, 58, 57);
|
||||
}
|
||||
|
||||
@ -324,7 +324,7 @@ function progressBarTouchMEnd(e) {
|
||||
}
|
||||
|
||||
function touchStart(e) {
|
||||
console.log('start', e.touches.length)
|
||||
// console.log('start', e.touches.length)
|
||||
if (e.touches.length === 1) {
|
||||
slideTouchStart(e, wrapperEl.value, state)
|
||||
} else {
|
||||
@ -338,10 +338,10 @@ function touchStart(e) {
|
||||
}
|
||||
|
||||
function touchMove(e) {
|
||||
console.log('move', e.touches.length,)
|
||||
// console.log('move', e.touches.length,)
|
||||
let current1 = {x: e.touches[0].pageX, y: e.touches[0].pageY}
|
||||
if (isZooming.value && e.touches.length === 1) {
|
||||
console.log('m1')
|
||||
// console.log('m1')
|
||||
state.status = 'pause'
|
||||
Utils.$stopPropagation(e)
|
||||
|
||||
@ -355,7 +355,7 @@ function touchMove(e) {
|
||||
state.last.point1 = current1
|
||||
} else {
|
||||
if (e.touches.length === 1) {
|
||||
console.log('m2')
|
||||
// console.log('m2')
|
||||
slideTouchMove(e, wrapperEl.value, state, judgeValue, canNext,
|
||||
() => {
|
||||
state.status = 'pause'
|
||||
@ -366,7 +366,7 @@ function touchMove(e) {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('m3')
|
||||
// console.log('m3')
|
||||
state.operationStatus = SlideAlbumOperationStatus.Zooming
|
||||
Utils.$stopPropagation(e)
|
||||
state.status = 'pause'
|
||||
|
||||
@ -246,6 +246,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@p: 15rem;
|
||||
#SlideUser {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -255,9 +256,11 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
padding: 0 @p;
|
||||
box-sizing: border-box;
|
||||
|
||||
.content {
|
||||
width: 85%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to bottom, rgb(71, 90, 110), rgb(97, 84, 75));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -362,11 +365,11 @@ export default {
|
||||
bottom: 20rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
left: 15rem;
|
||||
right: 15rem;
|
||||
left: @p;
|
||||
right: @p;
|
||||
|
||||
.button {
|
||||
width: 49%;
|
||||
width: 48%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="indicator-home" :class="isLight">
|
||||
<div class="indicator-home" :class="{isLight}">
|
||||
<transition name="fade">
|
||||
<div class="mask" v-if="open" @click="open = false"></div>
|
||||
</transition>
|
||||
@ -205,7 +205,11 @@ export default {
|
||||
font-weight: bold;
|
||||
|
||||
&.isLight {
|
||||
color: black;
|
||||
.tab{
|
||||
&.active {
|
||||
color: black!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.notice {
|
||||
|
||||
@ -226,7 +226,7 @@ const bodyWidth = computed(() => store.state.bodyWidth)
|
||||
const subTypeRef = ref(null)
|
||||
const state = reactive({
|
||||
baseIndex: 0,
|
||||
navIndex: 0,
|
||||
navIndex: 4,
|
||||
itemIndex: 0,
|
||||
test: '',
|
||||
recommendVideos: [
|
||||
@ -234,14 +234,14 @@ const state = reactive({
|
||||
// type: 'img',
|
||||
// src: `http://douyin.ttentau.top/0.mp4?vframe/jpg/offset/0/w/${document.body.clientWidth}`
|
||||
// },
|
||||
{
|
||||
type: 'imgs',
|
||||
src: `http://douyin.ttentau.top/0.mp4?vframe/jpg/offset/0/w/${document.body.clientWidth}`
|
||||
},
|
||||
{
|
||||
type: 'user',
|
||||
src: `http://douyin.ttentau.top/0.mp4?vframe/jpg/offset/0/w/${document.body.clientWidth}`
|
||||
},
|
||||
// {
|
||||
// type: 'imgs',
|
||||
// src: `http://douyin.ttentau.top/0.mp4?vframe/jpg/offset/0/w/${document.body.clientWidth}`
|
||||
// },
|
||||
// {
|
||||
// type: 'user',
|
||||
// src: `http://douyin.ttentau.top/0.mp4?vframe/jpg/offset/0/w/${document.body.clientWidth}`
|
||||
// },
|
||||
],
|
||||
|
||||
isSharing: false,
|
||||
@ -404,7 +404,6 @@ function render(item, itemIndex, play, position) {
|
||||
<style scoped lang="less">
|
||||
@import "@/assets/less/index";
|
||||
|
||||
|
||||
.test-slide-wrapper {
|
||||
font-size: 14rem;
|
||||
width: 100%;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user