对接首页消息通知、巡检点 切换小区获取最新数据
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<scroll-view class="page" scroll-y>
|
||||
<view class="topBox">
|
||||
<view class="name">
|
||||
<image src="http://47.104.199.163:9090/images/imgs/touxiang.png" class="img" />
|
||||
<image :src="avatar" class="img" />
|
||||
<span
|
||||
style="padding: 5rpx 5rpx; display: flex; flex-direction: column; line-height: 60rpx"
|
||||
>
|
||||
@@ -37,7 +37,7 @@
|
||||
>
|
||||
</view>
|
||||
<view class="item-arrow"></view>
|
||||
<!-- <image src="http://47.104.199.163:9090/images/propertyImgs/arrow-right.png" class="arrow-icon" /> -->
|
||||
<!-- <image src="https://wuyeadmin.bugtc.com/images/propertyImgs/arrow-right.png" class="arrow-icon" /> -->
|
||||
</view>
|
||||
</view>
|
||||
</div>
|
||||
@@ -47,29 +47,52 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { getSettingInfo } from '../../api/api.js'
|
||||
|
||||
const list = ref([
|
||||
{
|
||||
icon: 'http://47.104.199.163:9090/images/imgs/shangbao.png',
|
||||
icon: 'https://wuyeadmin.bugtc.com/images/imgs/shangbao.png',
|
||||
title: '上报记录'
|
||||
},
|
||||
{
|
||||
icon: 'http://47.104.199.163:9090/images/imgs/xunjian.png',
|
||||
icon: 'https://wuyeadmin.bugtc.com/images/imgs/xunjian.png',
|
||||
title: '巡检记录'
|
||||
// desc: "您可以在这里添加家人、朋友、租客~"
|
||||
},
|
||||
{
|
||||
icon: 'http://47.104.199.163:9090/images/imgs/xunjian.png',
|
||||
icon: 'https://wuyeadmin.bugtc.com/images/imgs/xunjian.png',
|
||||
title: '仪表换新'
|
||||
// desc: "您可以在这里添加家人、朋友、租客~"
|
||||
},
|
||||
{
|
||||
icon: 'http://47.104.199.163:9090/images/propertyImgs/setting.png',
|
||||
icon: 'https://wuyeadmin.bugtc.com/images/propertyImgs/setting.png',
|
||||
title: '设置'
|
||||
}
|
||||
])
|
||||
const loginName = ref('wangh')
|
||||
const phoneNum = ref('156*****1212')
|
||||
const loginName = ref('')
|
||||
const phoneNum = ref('')
|
||||
const avatar = ref('')
|
||||
|
||||
// 获取管家信息
|
||||
const fetchUserInfo = () => {
|
||||
getSettingInfo().then(res => {
|
||||
if (res.code === 200 && res.data) {
|
||||
loginName.value = res.data.nickName || ''
|
||||
phoneNum.value = res.data.phonenumber || ''
|
||||
avatar.value = res.data.avatar
|
||||
}
|
||||
}).catch(err =>{
|
||||
uni.showToast({
|
||||
title:err.msg || '获取失败',
|
||||
icon: 'error'
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
onShow(() => {
|
||||
fetchUserInfo()
|
||||
})
|
||||
|
||||
// --方法----
|
||||
const goToDetail = () => {
|
||||
|
||||
Reference in New Issue
Block a user