cyywl_server/yudao-ui-app/pages/member_equity/index.vue

193 lines
4.6 KiB
Vue
Raw Normal View History

2023-05-16 18:22:32 +08:00
<template>
<view class="box">
<view class="box-member">
<view class="member-left">
2023-05-17 15:25:16 +08:00
<text class="left-title">创盈普通会员</text>
<view class="left-info">
2023-05-16 18:22:32 +08:00
<text>152****0693</text>
2023-05-17 15:25:16 +08:00
<text>会员积分240/640</text>
2023-05-16 18:22:32 +08:00
</view>
<text>再升1级即可获得XX等6项权益</text>
</view>
<view class="member-right">
<image src='../../static/images/f.png'></image>
<text >
立即续费
</text>
</view>
</view>
<view class="box-equity">
<view class="equity-text">
2023-05-17 15:25:16 +08:00
<view class="equity-title">
<text>我的会员权益</text>
</view>
2023-05-16 18:22:32 +08:00
<text class="equity-look">查看权益></text>
</view>
2023-05-17 15:25:16 +08:00
<!-- <view class="equity-item" v-for="(item,index) in 2" :key="index">
2023-05-16 18:22:32 +08:00
<view class="equity-grade">
<text>办理档次640</text>
<text>办理日期2021.12.30</text>
</view>
<view class="equity-money">
<view class="money-text">
<text>已返回金额</text>
<view>
<text>80</text>
<text class="money-detailed">查看明细></text>
</view>
</view>
<view class="money-text">
<text>已返回金额</text>
<text>80</text>
</view>
<view class="money-text">
<text>已返回金额</text>
<text>80</text>
</view>
<view class="money-text">
<text>已返回金额</text>
<text>80</text>
</view>
</view>
2023-05-17 15:25:16 +08:00
</view> -->
2023-05-16 18:22:32 +08:00
</view>
</view>
</template>
<script>
export default {
name: "member_application",
data() {
return {
form: {
phone:''
},
rules: {
phone: [
2023-05-17 15:25:16 +08:00
{
pattern: /^[0-9a-zA-Z]*$/g,
// 正则检验前先将值转为字符串
transform(value) {
return String(value);
},
message: '只能包含字母或数字'
},
2023-05-16 18:22:32 +08:00
{
2023-05-17 15:25:16 +08:00
message: '手机号不能为空',
2023-05-16 18:22:32 +08:00
// 触发器可以同时用blur和change
trigger: ['change', 'blur']
}
]
}
};
},
mounted() {
},
onLoad() {
},
methods: {
submit() {
this.$refs.uForm.validate().then(res => {
uni.$u.toast('校验通过')
}).catch(errors => {
uni.$u.toast('校验失败')
})
}
}
};
</script>
<style lang="scss" scoped>
.box {
padding: 10rpx 24rpx;
.box-member {
border-radius: 20rpx;
width: 100%;
padding: 20rpx 20rpx 30rpx 20rpx;
background: rgb(255, 210, 91);
display: flex;
justify-content: space-between;
.member-left{
display: flex;
flex-direction: column;
justify-content: space-between;
2023-05-17 15:25:16 +08:00
flex: .7;
.left-info{
display: flex;
justify-content: space-between;
}
2023-05-16 18:22:32 +08:00
}
.member-right{
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
flex: .2;
image {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
margin-bottom: 10rpx;
}
}
}
.box-equity {
border-radius: 20rpx;
width: 100%;
margin-top: 10%;
padding: 40rpx 10rpx 40rpx 10rpx;
2023-05-17 15:25:16 +08:00
// background: #fff;
2023-05-16 18:22:32 +08:00
display: flex;
flex-direction: column;
.equity-text{
display: flex;
2023-05-17 15:25:16 +08:00
align-items: center;
2023-05-16 18:22:32 +08:00
.equity-title{
2023-05-17 15:25:16 +08:00
display: flex;
justify-content: center;
align-items: center;
width: 240rpx;
height: 140rpx;
// background: #fff;
// border-radius: 8px;/* 设置圆角 */
}
.equity-look{
z-index: 99;
2023-05-16 18:22:32 +08:00
}
}
.equity-item {
background: #eee;
display: flex;
flex-direction: column;
justify-content: space-between;
border-radius: 20rpx;
margin: 10rpx;
.equity-grade{
background: greenyellow;
border-radius: 10rpx 10rpx;
padding: 20rpx;
display: flex;
justify-content: space-between;
}
.equity-money {
// background: #fff;
// line-height: 36rpx;
// text-align: center;
// font-size: 24rpx;
.equity-money{
background: #fff;
}
}
}
}
}
</style>