|
|
@@ -21,7 +21,7 @@
|
|
|
'background-image': `url(${user.avatar})`,
|
|
|
}"
|
|
|
></view>
|
|
|
- <view class="phone fs-40 fw-500">{{ user.mobilePhone }}</view>
|
|
|
+ <view class="phone fs-40 fw-500">{{ user.mobilePhoneFormat }}</view>
|
|
|
<view class="money flex-align-center" @click="toPage(-1)">
|
|
|
<uni-icons
|
|
|
type="wallet-filled"
|
|
|
@@ -40,22 +40,25 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="body">
|
|
|
- <view
|
|
|
- class="menu flex-align-center"
|
|
|
- v-for="(item, index) in menu"
|
|
|
- :key="index"
|
|
|
- @click="toPage(index)"
|
|
|
- >
|
|
|
- <image src="/static/images/user/{{index + 1}}.png"></image>
|
|
|
- <view>{{ item.title }}</view>
|
|
|
- <view class="ml-auto">
|
|
|
- <uni-icons
|
|
|
- type="right"
|
|
|
- size="12"
|
|
|
- color="rgba(0,0,0,0.4)"
|
|
|
- ></uni-icons>
|
|
|
+ <block v-for="(item, index) in menu" :key="index">
|
|
|
+ <view
|
|
|
+ class="menu flex-align-center"
|
|
|
+ v-if="
|
|
|
+ index !== menu.length - 1 || user.mobilePhone === '15986907592'
|
|
|
+ "
|
|
|
+ @click="toPage(index)"
|
|
|
+ >
|
|
|
+ <image src="/static/images/user/{{index + 1}}.png"></image>
|
|
|
+ <view>{{ item.title }}</view>
|
|
|
+ <view class="ml-auto">
|
|
|
+ <uni-icons
|
|
|
+ type="right"
|
|
|
+ size="12"
|
|
|
+ color="rgba(0,0,0,0.4)"
|
|
|
+ ></uni-icons>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
@@ -92,13 +95,17 @@ const menu = ref([
|
|
|
title: "常见问题",
|
|
|
path: "/pages-common/contact/contact",
|
|
|
},
|
|
|
+ {
|
|
|
+ title: "电站列表",
|
|
|
+ path: "/pages/list/list",
|
|
|
+ },
|
|
|
]);
|
|
|
const toPage = (index: number) => {
|
|
|
if (index < 0) {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages-user/wallet/wallet",
|
|
|
});
|
|
|
- return
|
|
|
+ return;
|
|
|
}
|
|
|
if (index === 3) {
|
|
|
uni.makePhoneCall({
|
|
|
@@ -125,7 +132,7 @@ onLoad(() => {
|
|
|
});
|
|
|
onShow(() => {
|
|
|
fetchProfile().then((res) => {
|
|
|
- res.mobilePhone =
|
|
|
+ res.mobilePhoneFormat =
|
|
|
res.mobilePhone.slice(0, 3) + "****" + res.mobilePhone.slice(7);
|
|
|
res.avatar = res.avatar
|
|
|
? res.avatar
|