update api
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
<view class="user">
|
||||
<view class="head" @click="toOthersPage('info')">
|
||||
<view class="info">
|
||||
<image></image>
|
||||
<image :src="info.member_avatar"></image>
|
||||
<view class="name">
|
||||
<text>萨大赛</text>
|
||||
<text>账号:123456789</text>
|
||||
<text>个性签名:为梦努力</text>
|
||||
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
||||
<text>账号:{{info.member_name}}</text>
|
||||
<text>个性签名:{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
@@ -28,7 +28,31 @@
|
||||
<script>
|
||||
export default {
|
||||
name:"user",
|
||||
data() {
|
||||
return {
|
||||
info:{}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getmyinfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取个人信息
|
||||
getmyinfo(){
|
||||
let that = this;
|
||||
this.$u.api.getshopinfo({
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
this.info = res.data.memberInfo
|
||||
}
|
||||
});
|
||||
},
|
||||
toOthersPage(url) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/' + url
|
||||
|
||||
Reference in New Issue
Block a user