first commit
This commit is contained in:
109
pages/my/member.vue
Normal file
109
pages/my/member.vue
Normal file
@@ -0,0 +1,109 @@
|
||||
<template>
|
||||
<view class="uni-container" v-if="cardData">
|
||||
<u-navbar :autoBack="true" :placeholder="true" :bgColor="bgColor">
|
||||
<view slot='center' style="font-size: 36rpx; font-weight: bold;">
|
||||
会员信息
|
||||
</view>
|
||||
</u-navbar>
|
||||
<view class="form-box">
|
||||
<view class="form-item">
|
||||
<view class="label">持卡人姓名</view>
|
||||
<view class="line"></view>
|
||||
<view class="value">{{cardData.orderItemList[0].ticketOrderDetailList[0].userName}}</view>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<view class="label">持卡人手机号</view>
|
||||
<view class="line"></view>
|
||||
<view class="value">{{cardData.orderItemList[0].ticketOrderDetailList[0].mobilePhone}}</view>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<view class="label">持卡人身份证号</view>
|
||||
<view class="line"></view>
|
||||
<view class="value">{{cardData.orderItemList[0].ticketOrderDetailList[0].identityCard}}</view>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<view class="label">购卡时间</view>
|
||||
<view class="line"></view>
|
||||
<view class="value">{{cardData.orderItemList[0].ticketOrderDetailList[0].paymentTime.split(' ')[0]}}</view>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<view class="label">有效期</view>
|
||||
<view class="line"></view>
|
||||
<view class="value">
|
||||
{{cardData.orderItemList[0].ticketOrderDetailList[0].availableStartTime.split(' ')[0]}}
|
||||
至
|
||||
{{cardData.orderItemList[0].ticketOrderDetailList[0].availableEndTime.split(' ')[0]}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tips">以上信息暂不支持修改</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import _config from '../../common/http/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
bgColor: '#FFF',
|
||||
id: null,
|
||||
cardData: null
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.id = options.id;
|
||||
this.orderNkDetail()
|
||||
},
|
||||
methods: {
|
||||
async orderNkDetail() {
|
||||
let info = await this.$http.orderNkDetail(this.id)
|
||||
this.cardData = info.data;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.uni-container {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
background: #FBFBFB;
|
||||
.form-box {
|
||||
background: #FFFFFF;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 32rpx;
|
||||
margin: 32rpx 32rpx 0;
|
||||
.form-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
height: 109rpx;
|
||||
border-bottom: 1rpx solid #E8E8E8;
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
.label {
|
||||
width: 220rpx;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.line {
|
||||
width: 1rpx;
|
||||
height: 26rpx;
|
||||
background-color: #E8E8E8;
|
||||
margin-right: 21rpx;
|
||||
}
|
||||
.value {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tips {
|
||||
margin: 24rpx 32rpx 0;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user