This commit is contained in:
2020-07-03 09:08:53 +08:00
parent dc72f79ee8
commit 8e7da400ac
9 changed files with 111 additions and 48 deletions

View File

@@ -13,7 +13,7 @@
</view>
<view class="info-item">
<view class="title">生日</view>
<view class="value">{{ userInfo.member_birthday }}</view>
<view class="value">{{ userInfo.member_birthday | dateFormat }}</view>
</view>
<view class="info-item">
<view class="title">手机号</view>
@@ -21,7 +21,7 @@
</view>
<view class="info-item">
<view class="title">等级</view>
<view class="value">{{ userInfo.member_exppoints }}</view>
<view class="value">{{ userInfo.level }}</view>
</view>
<view class="info-item">
<view class="title">积分数</view>
@@ -34,6 +34,7 @@
</view>
</template>
<script>
import common from '@/static/js/common.js'
export default {
data() {
return {
@@ -46,6 +47,11 @@ export default {
onNavigationBarButtonTap() {
this.toEditPage();
},
filters: {
dateFormat(value) {
return common.timestampToDate({ timestamp: value });
}
},
methods: {
getUserInfo() {
this.$u.api.getMemberInfo().then(res => {