shop-applet/pages/index/subnvue/concat.nvue

243 lines
4.3 KiB
Plaintext
Raw Normal View History

2024-04-27 18:16:11 +08:00
<template>
2024-04-28 08:48:30 +08:00
<view class="" style="width: 750rpx;height: 100%;">
2024-04-28 18:08:14 +08:00
<view class="jump" @click="jump">
<text class="font">跳过</text>
</view>
2024-04-28 08:48:30 +08:00
<view class="target" :style="{left:(left-9)+'px',top:(top-9)+'px'}">
<image src="/static/images/index7.png" class="imgs"></image>
</view>
2024-04-28 18:08:14 +08:00
<view class="" class="pointe" :style="{ left:(left-10)+'px',top:(top)+'px'}">
<image src="/static/images/pointer.png" style="width: 254rpx;height: 254rpx;" mode=""></image>
</view>
<view class="tips" :style="{ left:left+'px',top:(top-200)+'px'}">
<view class="tras" :class="{act:isActive}">
<text class="font" style="line-height: 106rpx;">点击商品管理,发布商品</text>
2024-04-28 08:48:30 +08:00
</view>
</view>
2024-04-28 18:08:14 +08:00
<view class="center" :style="{left:(left+35)+'px', top:(top-60)+'px'}">
<image src="/static/images/greenLine.png" style="width:35px;height: 60px;" mode=""></image>
</view>
2024-04-28 08:48:30 +08:00
<view class="next-btn">
2024-04-28 18:08:14 +08:00
<text class="next-btn-text font" @click="next">下一步(3/4){{isActive}} </text>
2024-04-27 18:16:11 +08:00
</view>
</view>
</template>
<script>
export default {
2024-04-28 08:48:30 +08:00
data() {
return {
isActive: false,
left: 33,
2024-04-28 18:08:14 +08:00
top: 0,
2024-04-28 08:48:30 +08:00
subNVue: null,
offsetX: 0,
offsetY: 0,
}
},
methods: {
2024-04-28 18:08:14 +08:00
jump() {
this.subNVue.hide('zoom-in', 300, )
},
2024-04-28 08:48:30 +08:00
next() {
2024-04-28 18:08:14 +08:00
this.subNVue = uni.getSubNVueById('concat')
2024-04-28 08:48:30 +08:00
this.subNVue.hide('zoom-in', 300, )
setTimeout(() => {
uni.$emit('diverIndexSubEmit');
}, 300)
2024-04-27 18:16:11 +08:00
2024-04-28 08:48:30 +08:00
}
},
onLoad() {
this.subNVue = uni.getSubNVueById('concat')
let that = this
2024-04-28 18:08:14 +08:00
uni.$on('diverIndexEmit', (data) => {
2024-04-28 08:48:30 +08:00
console.log('data', data)
2024-04-28 18:08:14 +08:00
that.left = data.left
that.top = data.top
2024-04-28 08:48:30 +08:00
})
setTimeout(() => {
that.isActive = true
2024-04-28 18:08:14 +08:00
}, 1000)
2024-04-28 08:48:30 +08:00
}
2024-04-27 18:16:11 +08:00
}
</script>
<style>
2024-04-28 08:48:30 +08:00
.target {
position: relative;
width: 160rpx;
height: 160rpx;
border-radius: 160rpx;
background-color: white;
}
.greenLine {
width: 10rpx;
height: 100rpx;
background-color: green;
position: absolute;
left: 40px;
transform: translate(-50%, 0);
z-index: 999;
top: -40px;
}
.imgs {
width: 62px;
height: 62px;
position: absolute;
left: 40px;
top: 40px;
transform: translate(-50%, -50%);
}
.tras {
position: absolute;
z-index: 999 !important;
width: 0;
transition-property: width;
transition-duration: 3s;
transition-delay: 0.1s;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
.act {
width: 462rpx;
}
.font {
font-size: 28rpx;
color: white;
lines: 1;
}
.bgimg {
width: 200rpx;
position: absolute;
z-index: 1;
}
2024-04-27 18:16:11 +08:00
2024-04-28 08:48:30 +08:00
.img {
opacity: 0;
width: 50rpx;
height: 50rpx;
transition-property: opacity;
transition-duration: 1s;
transition-delay: 0.1s;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
2024-04-28 18:08:14 +08:00
.next-btn {
position: absolute;
bottom: 100rpx;
left: 375rpx;
transform: translateX(-50%);
width: 240rpx;
height: 76rpx;
border: 1px solid white;
border-radius: 38rpx;
}
.next-btn-text {
line-height: 76rpx;
text-align: center;
}
.jump {
position: absolute;
right: 30rpx;
top: 80rpx;
border: 1px solid white;
padding: 20rpx;
border-radius: 30rpx;
}
.tips {
width: 462rpx;
height: 106rpx;
background-color: #5BE157;
border-radius: 20rpx;
}
.center {
position: absolute;
left: 375rpx;
transform: translateX(-50%);
}
.tabbar {
width: 136rpx;
height: 136rpx;
background-color: white;
border-radius: 136rpx;
position: absolute;
}
.tab-icon {
width: 50rpx;
height: 50rpx;
position: absolute;
left: 68rpx;
transform: translate(-50%, -50%);
top: 68rpx;
}
.te {
font-size: 20rpx;
position: absolute;
left: 68rpx;
transform: translate(-50%, 0);
top: 100rpx;
}
.pointe {
position: absolute;
}
.tras {
padding-left: 20rpx;
position: absolute;
z-index: 999 !important;
width: 20px;
transition-property: width;
transition-duration: 3s;
transition-delay: 0.1s;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
.act {
width: 462rpx;
}
.font {
font-size: 28rpx;
color: white;
lines: 1;
}
2024-04-28 08:48:30 +08:00
.next-btn {
position: absolute;
bottom: 100rpx;
left: 375rpx;
transform: translateX(-50%);
width: 240rpx;
height: 76rpx;
border: 1px solid white;
border-radius: 38rpx;
}
.next-btn-text {
line-height: 76rpx;
text-align: center;
}
2024-04-27 18:16:11 +08:00
</style>