|
@@ -7,7 +7,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="base-info dir-top-wrap main-center">
|
|
<view class="base-info dir-top-wrap main-center">
|
|
<view class="nickname">{{ userInfo.nickname }}</view>
|
|
<view class="nickname">{{ userInfo.nickname }}</view>
|
|
- <view class="parent">推荐人: {{ userInfo.parent ? userInfo.parent.nickname : '' }}</view>
|
|
|
|
|
|
+ <view class="parent">推荐人: {{ parent.nickname || '-' }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="withdraw-box main-between cross-center">
|
|
<view class="withdraw-box main-between cross-center">
|
|
@@ -59,6 +59,7 @@
|
|
<script>
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
import { mapState } from 'vuex'
|
|
import Qrcode from './components/Qrcode'
|
|
import Qrcode from './components/Qrcode'
|
|
|
|
+import { parent } from '../../api/user'
|
|
export default {
|
|
export default {
|
|
components: { Qrcode },
|
|
components: { Qrcode },
|
|
data() {
|
|
data() {
|
|
@@ -75,7 +76,8 @@ export default {
|
|
],
|
|
],
|
|
qrcodeModal: {
|
|
qrcodeModal: {
|
|
show: false
|
|
show: false
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ parent: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -121,10 +123,18 @@ export default {
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.$hideLoading()
|
|
this.$hideLoading()
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ getParentInfo() {
|
|
|
|
+ this.$api.user.parent().then(res => {
|
|
|
|
+ this.parent = res.data
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShareAppMessage() {
|
|
onShareAppMessage() {
|
|
return this.$util.shareMessage(this.userInfo)
|
|
return this.$util.shareMessage(this.userInfo)
|
|
|
|
+ },
|
|
|
|
+ onShow() {
|
|
|
|
+ this.getParentInfo()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|