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.
yanzong_qianduan/pages/memberInfo/index.vue

302 lines
6.0 KiB

11 months ago
<template>
<view class="member">
<view>
9 months ago
<u-navbar title="会员中心" :border-bottom="false" title-color="#333" :background="background"></u-navbar>
11 months ago
</view>
<view class="tips">
<image src="/static/default-logo.png" mode="" class="headIcon"></image>
<view class="meInfo">
<view class="info">
<view class="name">
11 months ago
{{userInfo.nick_name}}
11 months ago
</view>
<view class="hy">
11 months ago
{{userInfo.user_type_text}}
11 months ago
</view>
</view>
<view class="time">
11 months ago
有效期至{{userInfo.effective_time}}
11 months ago
</view>
</view>
</view>
<view class="main">
<view class="mTitle">
9 months ago
会员卡订单记录
11 months ago
</view>
11 months ago
<view class="card" v-for="(item,index) in list" :key="index">
11 months ago
<view class="tp">
<view class="info">
11 months ago
<text v-if="item.is_valid">生效中</text>
9 months ago
<text v-if="!item.is_valid">已过期</text>
11 months ago
</view>
</view>
<view class="detail">
<view class="topLine">
<view class="send">
11 months ago
{{item.name}}
11 months ago
</view>
</view>
<view class="time">
11 months ago
{{item.start_time}}-{{item.end_time}}
11 months ago
</view>
</view>
</view>
9 months ago
<view class="cardTips" v-if="list.length > 0" >
已展示近12个月省钱会员卡订单
</view>
<u-empty text="您还没有会员卡订单记录哦" v-if="list.length == 0" mode="list" style="margin-top: 50rpx;"></u-empty>
11 months ago
</view>
9 months ago
11 months ago
</view>
</template>
<script>
10 months ago
// import img from "@/static/member/top.png";
11 months ago
import * as member from '@/api/member/index.js'
11 months ago
export default {
data() {
10 months ago
let img = 'https://www.royaum.com.cn/static/member/top.png'
11 months ago
return {
9 months ago
userInfo: {},
payTypeChose: true,
11 months ago
isChose: 0,
isVip: false,
background: {
background: 'url(' + img + ') center top no-repeat',
backgroundSize: '100% auto',
},
9 months ago
list: [],
11 months ago
}
11 months ago
},
9 months ago
onLoad(options) {
11 months ago
this.userInfo = JSON.parse(options.userInfo)
},
9 months ago
onShow() {
11 months ago
this.getListInfo()
},
9 months ago
methods: {
getListInfo() {
11 months ago
const that = this
11 months ago
that.list = []
9 months ago
if (that.userInfo.user_type == 30) {
11 months ago
member.dealerOpenCardLog()
.then(res => {
if (res.status == 200) {
that.list = res.data
}
})
.finally(() => that.isLoading = false)
9 months ago
} else if (that.userInfo.user_type == 20) {
11 months ago
member.userOpenCardLog()
.then(res => {
if (res.status == 200) {
that.list = res.data
}
})
.finally(() => that.isLoading = false)
}
9 months ago
11 months ago
},
},
11 months ago
}
</script>
<style lang="scss" scoped>
.member {
width: 100%;
10 months ago
background: url('https://www.royaum.com.cn/static/member/merBack.png') 100% no-repeat;
11 months ago
background-size: 100% 100%;
position: relative;
}
9 months ago
.cardTips {
color: rgb(192, 196, 204);
font-size: 14px;
margin: 15px 0px 0px;
text-align: center;
}
11 months ago
.tips {
width: 698rpx;
height: 234rpx;
margin: 46rpx 0 0 26rpx;
10 months ago
background-image: url('https://www.royaum.com.cn/static/member/bg.png');
11 months ago
background-repeat: no-repeat;
background-size: 100% 100%;
display: flex;
align-items: center;
padding: 0rpx 0 0 34rpx;
.headIcon {
width: 114rpx;
height: 114rpx;
margin-right: 30rpx;
margin-top: 12rpx;
11 months ago
border-radius: 50%;
11 months ago
}
.meInfo {
.info {
display: flex;
margin-bottom: 26rpx;
.name {
height: 50rpx;
font-size: 36rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #785B45;
line-height: 50rpx;
margin-right: 18rpx;
}
.hy {
width: 126rpx;
height: 42rpx;
background: rgba(255, 255, 255, 0.71);
border-radius: 62rpx 62rpx 62rpx 62rpx;
opacity: 1;
text-align: center;
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #785B45;
line-height: 42rpx;
}
}
.time {
height: 34rpx;
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #785B45;
line-height: 34rpx;
}
}
9 months ago
.buyInfo {
11 months ago
// width: 112rpx;
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #785B45;
line-height: 40rpx;
margin-left: 86rpx;
}
}
9 months ago
11 months ago
.main {
width: 750rpx;
height: 1296rpx;
background: #FFFFFF;
opacity: 1;
border-radius: 50rpx 50rpx 0 0;
position: relative;
top: -30rpx;
padding-top: 56rpx;
}
.mTitle {
9 months ago
// width: 192rpx;
11 months ago
height: 44rpx;
font-size: 32rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #8B4338;
line-height: 44rpx;
margin: 0rpx 0 0 38rpx;
}
.card {
width: 654rpx;
height: 192rpx;
background: #FFF4F4;
border-radius: 8rpx 8rpx 8rpx 8rpx;
opacity: 1;
11 months ago
margin: 26rpx 0 16rpx 38rpx;
11 months ago
display: flex;
.tp {
width: 84rpx;
height: 84rpx;
10 months ago
background-image: url('https://www.royaum.com.cn/static/member/tip.png');
11 months ago
background-size: 100% 100%;
.info {
width: 84rpx;
height: 40rpx;
line-height: 40rpx;
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #FFFFFF;
transform: rotate(-45deg);
}
}
.detail {
margin-top: 48rpx;
.topLine {
display: flex;
align-items: center;
.send {
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #785B45;
line-height: 40rpx;
}
.btn {
width: 106rpx;
height: 36rpx;
border-radius: 50rpx 50rpx 50rpx 50rpx;
opacity: 1;
border: 2rpx solid rgba(134, 102, 77, 0.45);
text-align: center;
line-height: 36rpx;
font-size: 20rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: rgba(120, 91, 69, 0.63);
line-height: 36rpx;
margin-left: 8rpx;
}
}
.time {
height: 34rpx;
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #785B45;
line-height: 34rpx;
margin-top: 28rpx;
}
}
}
.showInfo {
width: 100%;
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #785B45;
line-height: 40rpx;
text-align: center;
margin-top: 46rpx;
}
9 months ago
</style>