梁航:更新页面请求和样式

This commit is contained in:
hot777zz
2023-11-15 16:19:22 +08:00
parent 63d39a021e
commit b0a49dc67d
4 changed files with 128 additions and 106 deletions

View File

@@ -5,7 +5,7 @@
<view class="profile">
<image src="../../static/img/wo_bj_ll@2x.png" mode="aspectFit" class="profile-bgi"></image>
<view class="avator">
<u-avatar :src="src"></u-avatar>
<u-avatar :src="src"> </u-avatar>
</view>
<view class="username">{{username}}</view>
<view class="account">账号:{{account}}</view>
@@ -30,12 +30,14 @@
data() {
return {
src: 'https://cdn.uviewui.com/uview/album/2.jpg',
account:'123456',
username:'用户名',
account:'',
username:'未登录',
code:''
}
},
onLoad() {
// this.getInfo()
},
methods: {
topublished(title){
@@ -52,13 +54,8 @@
uni.navigateTo({
url:'/pages/Partnerships/Partnerships'
})
}
//---------页面调用接口示例------------
// getInfo() {
// this.$api.getUserInfo().then(res => {
// console.log('userInfo', res);
// })
// }
},
}
}
</script>