作者 Rico

完善公众号

... ... @@ -794,6 +794,24 @@
}
}
,{
"path" : "lower/lower",
"style" :
{
"navigationBarTitleText": "我的小伙伴",
"enablePullDownRefresh": false
}
}
,{
"path" : "mycode/mycode",
"style" :
{
"navigationBarTitleText": "我的二维码",
"enablePullDownRefresh": false
}
}
]
}
],
... ...
... ... @@ -51,7 +51,7 @@
<image src="../../../static/back.png" mode=""></image>
</view>
<view class="nav-list">
<view @click="tolower" class="nav-list">
<view>
<image src="../../../static/friend.png" mode=""></image>
<view>我的伙伴</view>
... ... @@ -59,7 +59,7 @@
<image src="../../../static/back.png" mode=""></image>
</view>
<view class="nav-list">
<view @click="tocode" class="nav-list">
<view>
<image src="../../../static/group.png" mode=""></image>
<view>我的二维码</view>
... ... @@ -88,6 +88,16 @@
};
},
methods:{
tocode(){
uni.navigateTo({
url:"/pages/user/mycode/mycode"
})
},
tolower(){
uni.navigateTo({
url:'/pages/user/lower/lower'
})
},
tocareer(){
uni.navigateTo({
url:'/pages/user/career/career'
... ...
<template>
<view>
<view v-for="(item,index) in list" class="award-wrp">
<view>
<image class="avatar-wrp" :src="item.avatar"></image>
<view class="tit-wrp">
<view>{{item.nickname}}</view>
<view>{{item.createtime}}</view>
</view>
</view>
<view>¥{{item.commission_sum}}</view>
</view>
</view>
</template>
<script>
import request from "../../../App.vue"
export default {
data() {
return {
list:''
};
},
onLoad:function(){
request.post('/api/user/lowerList').then(r=>{
if(r.code == 1){
this.list = r.data.data
}
})
}
}
</script>
<style lang="scss" scoped>
.tit-wrp{
display: flex;
flex-direction: column;
margin-left: 24rpx;
}
.avatar-wrp{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.award-wrp{
display: flex;
justify-content: space-between;
align-items: center;
width: 686rpx;
margin: 0 auto;
padding-bottom: 28rpx;
border-bottom: 1rpx solid #EBEDF0;
padding-top: 23rpx;
>view:first-child{
display: flex;
align-items: center;
>view:first-child{
color: #323233;
font-size: 28rpx;
padding-bottom: 16rpx;
}
>view:last-child{
color: #969799;
font-size: 24rpx;
font-weight: 400;
}
}
>view:last-child{
color: #FC8C06;
font-size: 32rpx;
}
}
</style>
... ...
<template>
<!-- 居中 -->
<view class="wrapper">
<image mode="widthFix" :src="qrcode"></image>
</view>
</template>
<script>
import request from "../../../App.vue"
export default {
data() {
return {
qrcode:''
};
},
onLoad:function(){
request.post('/api/user/userPoster').then(r=>{
if(r.code == 1){
this.qrcode = r.data.url
}
})
}
}
</script>
<style lang="scss" scoped>
page {
background-image: url("../../../static/imgs/codeback.png");
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
}
.wrapper{
>image{
width: 622rpx;
}
}
</style>
... ...