Commit 253bc869 by 宋冰琦

完成优惠卷部分页面开发

parent 5486fd1f
<template>
<view class="all">
<view class="partOne">
</view>
</view>
</template>
<script>
export default {
data(){
return {
}
}
}
</script>
<style lang="scss" scoped>
.all {
.partOne {
width: 100%;
height: 241rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(102,102,102,0.1000);
position: relative;
}
.partOne::after {
content:'';
display: inline-block;
position: absolute;
top: -25rpx;
left: 160rpx;
width: 50rpx;
height: 50rpx;
border-radius: 50%;
background: #F8F8F8;
}
.partOne::before {
content:'';
display: inline-block;
position: absolute;
bottom: -25rpx;
left: 160rpx;
width: 50rpx;
height: 50rpx;
border-radius: 50%;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(102,102,102,0.1000);
background: #F8F8F8;
}
}
</style>
\ No newline at end of file
<template> <template>
<view>我的页面优惠卷页面</view> <view class="bigBox">
<u-tabs
:list="list1"
:scrollable="false"
lineColor="#0050F6"
lineWidth="32"
lineHeight="2"
:activeStyle="{
fontSize: '24rpx',
fontFamily: 'PingFangSC-Medium, PingFang SC',
color: '#333333',
fontWeight: '500',
paddingBottom: '12rpx',
}"
:inactiveStyle="{
fontSize: '24rpx',
fontFamily: 'PingFangSC-Medium, PingFang SC',
color: '#666666',
fontWeight: '400',
paddingBottom: '12rpx',
}"
itemStyle="height: 64rpx"
@click="changeTab"
></u-tabs>
<view>
<swiper :current="current" class="swiper">
<swiper-item>
<view class="nouser">
<Ticket />
</view>
</swiper-item>
<swiper-item>2</swiper-item>
</swiper>
</view>
</view>
</template> </template>
<script> <script>
import Ticket from '@/components/Ticket/index.vue'
export default { export default {
components: {Ticket},
} data() {
return {
list1: [
{
name: "HOOLOO卷",
},
{
name: "已使用/已失效",
},
],
current: 0,
};
},
methods: {
changeTab(current) {
this.current = current.index;
},
},
};
</script> </script>
<style> <style lang="scss" scoped>
.bigBox {
</style> .swiper {
\ No newline at end of file background: #F8F8F8;
height: calc(100vh - 64rpx);
.nouser{
border: 1px solid red;
height: 100%;
padding: 32rpx;
overflow-y: scroll;
}
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment