You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
243 lines
4.4 KiB
243 lines
4.4 KiB
<template>
|
|
<view>
|
|
<image src="@/static/bg.png" mode="" style="width: 100%;height: 928rpx;"></image>
|
|
<view class="top">
|
|
<view class="xuzou">
|
|
<!-- <uni-icons type="left" size="18"></uni-icons> -->
|
|
<text class="title">我的</text>
|
|
</view>
|
|
</view>
|
|
<view class="mendian">
|
|
<image class="img" :src="userxixin.avatar?userxixin.avatar:avatar" mode="" @click="gengx"></image>
|
|
<view class="xinxi">
|
|
<view class="">{{userxixin.nickname?userxixin.nickname:'微信用户'}}</view>
|
|
<view class="">{{userxixin.mobile?userxixin.mobile:'暂无手机号'}}</view>
|
|
</view>
|
|
<view class="renlbtn" @click="face(userxixin.face_id)">{{userxixin.face_id!=0?'已认证':'人脸录入'}}</view>
|
|
</view>
|
|
<view class="huiy">
|
|
<view class="" v-for="(item,index) in viplist" :key="index" style="height: 223rpx;">
|
|
<image class="huiyimg" src="@/static/hbg.png" mode=""></image>
|
|
<view class="huiybox">
|
|
<image class="huiyboximg" src="@/static/huangguan.png" mode=""></image>
|
|
<view class="huiywz">会员套餐</view>
|
|
</view>
|
|
<view class="huiyxx">
|
|
<view class="">{{item.card_name}}
|
|
<text v-if="item.card_type!==2">{{item.validity_day}}天</text>
|
|
<text v-if='item.validity_date'>
|
|
到期时间:{{item.validity_date}}
|
|
</text>
|
|
</view>
|
|
<view class="" v-if="item.card_type==2">{{item.validity_num}}次</view>
|
|
<view class="" v-else>
|
|
<text v-if='item.validity_date'>
|
|
到期时间:{{item.validity_date}}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<!-- <button open-type="chooseAvatar" @chooseavatar='chooseAvatar'>获取头像</button> -->
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
userxixin: {},
|
|
avatar: require("@/static/huangguan.png"),
|
|
viplist: []
|
|
}
|
|
},
|
|
onShow() {
|
|
this.memberInfo()
|
|
this.memberCardList()
|
|
},
|
|
methods: {
|
|
chooseAvatar(e) {
|
|
console.log(123, e);
|
|
},
|
|
|
|
gengx() {
|
|
uni.navigateTo({
|
|
url: "/pages/user/portrait/portrait"
|
|
})
|
|
},
|
|
memberInfo() {
|
|
this.$api.memberInfo().then(res => {
|
|
this.userxixin = res.data
|
|
})
|
|
},
|
|
memberCardList(page) {
|
|
this.$api.memberCardList(page).then(res => {
|
|
this.viplist = res.data.list
|
|
})
|
|
},
|
|
previous() {
|
|
uni.navigateBack()
|
|
},
|
|
face(face_id) {
|
|
if (face_id != 0) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: '人脸已认证',
|
|
duration: 3000
|
|
});
|
|
} else {
|
|
uni.navigateTo({
|
|
url: "/pages/face/face"
|
|
})
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.huiybox {
|
|
display: flex;
|
|
margin-left: 50rpx;
|
|
position: relative;
|
|
top: -200rpx;
|
|
font-family: PingFang SC;
|
|
font-weight: bold;
|
|
font-size: 34rpx;
|
|
color: #E7CAAD;
|
|
}
|
|
|
|
.huiywz {
|
|
margin-left: 22rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.huiyxx {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-left: 50rpx;
|
|
margin-right: 50rpx;
|
|
margin-top: 41rpx;
|
|
position: relative;
|
|
top: -200rpx;
|
|
font-family: PingFang SC;
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #E7CAAD;
|
|
|
|
}
|
|
|
|
.huiyboximg {
|
|
width: 70rpx;
|
|
height: 55rpx;
|
|
}
|
|
|
|
.huiy {
|
|
margin: 0 auto;
|
|
width: 722rpx;
|
|
height: 230rpx;
|
|
position: absolute;
|
|
top: 344rpx;
|
|
left: 24rpx;
|
|
}
|
|
|
|
.huiyimg {
|
|
width: 722rpx;
|
|
height: 230rpx;
|
|
|
|
}
|
|
|
|
.img {
|
|
width: 110rpx;
|
|
height: 110rpx;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.xinxi {
|
|
margin-left: 26rpx;
|
|
width: 365rpx;
|
|
}
|
|
|
|
.renlbtn {
|
|
width: 200rpx;
|
|
height: 80rpx;
|
|
background: #F8A617;
|
|
box-shadow: 0rpx 4rpx 13rpx 0rpx rgba(19, 14, 4, 0.14);
|
|
border-radius: 40rpx;
|
|
text-align: center;
|
|
line-height: 80rpx;
|
|
font-family: PingFang SC;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.top {
|
|
display: flex;
|
|
position: absolute;
|
|
top: 96rpx;
|
|
left: 20rpx;
|
|
}
|
|
|
|
.title {
|
|
padding-left: 14rpx;
|
|
}
|
|
|
|
.mddz1img2 {
|
|
width: 44rpx;
|
|
height: 44rpx;
|
|
float: right;
|
|
}
|
|
|
|
.mddz2 {
|
|
margin-top: 32rpx;
|
|
}
|
|
|
|
.dz {
|
|
margin-left: 17rpx;
|
|
}
|
|
|
|
.mddz1img1 {
|
|
width: 22rpx;
|
|
height: 27rpx;
|
|
}
|
|
|
|
.mddz1 {
|
|
display: flex;
|
|
}
|
|
|
|
.mddz1img {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
}
|
|
|
|
.mddz1wz {
|
|
font-family: PingFang SC;
|
|
font-weight: bold;
|
|
font-size: 30rpx;
|
|
color: #222222;
|
|
margin-left: 21rpx;
|
|
margin-top: 12rpx;
|
|
}
|
|
|
|
.mddz {
|
|
width: 680rpx;
|
|
height: 152rpx;
|
|
background: #FFFFFF;
|
|
box-shadow: 0rpx 3rpx 9rpx 0rpx rgba(19, 14, 4, 0.08);
|
|
border-radius: 20rpx;
|
|
margin-top: 24rpx;
|
|
padding: 20rpx 17rpx;
|
|
}
|
|
|
|
.mendian {
|
|
position: absolute;
|
|
top: 206rpx;
|
|
left: 24rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
</style> |