143 lines
2.8 KiB
Vue
143 lines
2.8 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="onecontentone">
|
|
我的会员卡(3)
|
|
</view>
|
|
<view class="flex-colum">
|
|
<view class="towcontentitem" v-if="list.length>0" v-for="(item,index) in list" :key="index"
|
|
@click="eeInfo(item)">
|
|
<image class="towcontentitemimage" src="@/static/1.png" mode="aspectFill"></image>
|
|
<view class="towcontentitemone flex-start">
|
|
<image class="towcontentitemoneimage" src="@/static/logo.png" mode="aspectFill"></image>
|
|
<text class="towcontentitemonetext" style="color: #fff;">剪发卡</text>
|
|
</view>
|
|
<view class="towcontentitemtow flex-start">
|
|
<text class="towcontentitemtowetext" style="color: #fff;">剪发卡</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="list.length==0 && is_end == true" class="flex-colum">
|
|
<image :src="bgnothave" mode="widthFix">
|
|
</image>
|
|
</view>
|
|
<u-loadmore :status="form.status" />>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
bgnothave:uni.getStorageSync('bgnothave'),
|
|
is_end: false,
|
|
list: [{
|
|
id: 1
|
|
}, {
|
|
id: 2
|
|
}],
|
|
form: {
|
|
page: 1,
|
|
status: 'loadmore',
|
|
},
|
|
}
|
|
},
|
|
methods: {
|
|
eeInfo(e) {
|
|
console.log(e.type)
|
|
if (e.type == 'balance') {
|
|
uni.pro.navigateTo('my/member/memberinfo', {
|
|
id: e,
|
|
})
|
|
} else {
|
|
uni.pro.navigateTo('my/member/memberone', {
|
|
id: e,
|
|
})
|
|
}
|
|
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
.content {
|
|
border-top: 16rpx solid #f7f7f7;
|
|
padding: 0 28rpx;
|
|
|
|
.flex-colum_image {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
|
|
text {
|
|
margin-top: 30rpx;
|
|
font-size: 32rpx;
|
|
font-family: PingFang SC-Bold, PingFang SC;
|
|
font-weight: bold;
|
|
color: #666666;
|
|
}
|
|
}
|
|
|
|
.onecontentone {
|
|
padding-top: 32rpx;
|
|
font-size: 32rpx;
|
|
font-family: PingFang SC-Bold, PingFang SC;
|
|
font-weight: bold;
|
|
color: #333333;
|
|
}
|
|
|
|
.flex-colum {
|
|
.towcontentitem {
|
|
margin-top: 22rpx;
|
|
width: 96%;
|
|
position: relative;
|
|
padding: 32rpx;
|
|
border-radius: 12rpx;
|
|
|
|
.towcontentitemimage {
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 12rpx;
|
|
z-index: 9;
|
|
}
|
|
|
|
.towcontentitemone {
|
|
position: relative;
|
|
z-index: 10;
|
|
|
|
.towcontentitemoneimage {
|
|
width: 76rpx;
|
|
height: 76rpx;
|
|
}
|
|
|
|
.towcontentitemonetext {
|
|
margin-left: 16rpx;
|
|
font-size: 32rpx;
|
|
font-family: Source Han Sans CN-Medium, Source Han Sans CN;
|
|
font-weight: 500;
|
|
color: #422A07;
|
|
}
|
|
}
|
|
|
|
.towcontentitemtow {
|
|
z-index: 10;
|
|
position: relative;
|
|
margin-top: 52rpx;
|
|
font-size: 24rpx;
|
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
font-weight: 400;
|
|
color: #422A07;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
</style> |