好友资料,申请好友流程,调整

This commit is contained in:
2022-01-26 13:53:59 +08:00
parent f4e5166508
commit b24d2a4906
35 changed files with 5294 additions and 107 deletions

View File

@@ -1,29 +1,40 @@
<template>
<div>
我的资料也就展示个二维码吧
获取一波资料吧
</div>
</template>
<script>
import { getUserInfo } from '@/apis/interfaces/im'
export default{
data(){
return{
}
},
mounted() {
console.log(this.$Route)
// getUserInfo(this.$Route.query.id).then(res => {
// })
},
methods: {
}
}
</script>
<style lang="scss" scoped>
<template>
<div>
{{ userInfo.name }}
<uqrcode ref="uQRCode" :text="qrContent" />
<button type="default" @click="saveToPhoto">保存到相册</button>
</div>
</template>
<script>
import {
getUserInfo
} from '@/apis/interfaces/im'
export default {
data() {
return {
qrContent: 'ADDFRIEND|'
}
},
onLoad() {
this.qrContent += this.userInfo.userId
},
computed: {
userInfo() {
return this.$store.getters.sender
}
},
methods: {
saveToPhoto() {
uni.switchTab({
url: '/pages/im/index'
})
}
}
}
</script>
<style lang="scss" scoped>
</style>