|
|
|
@ -2,7 +2,9 @@ |
|
|
|
|
<view> |
|
|
|
|
<view style="width:100%;position: fixed;top:var(--status-bar-height);z-index:99"> |
|
|
|
|
<view class="navBarContent"> |
|
|
|
|
<u-icon name="arrow-left" @click="goToPreviousPage" style="position: absolute;top:50%;left:40rpx;transform: translateY(-50%);" color="#000" size="24"></u-icon> |
|
|
|
|
<u-icon name="arrow-left" @click="goToPreviousPage" |
|
|
|
|
style="position: absolute;top:50%;left:40rpx;transform: translateY(-50%);" color="#000" size="24"> |
|
|
|
|
</u-icon> |
|
|
|
|
<text>加入分销</text> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
@ -12,7 +14,7 @@ |
|
|
|
|
<image :src="$picUrl+'/static/news3/join.png'" mode="widthFix"></image> |
|
|
|
|
<view class="userContent"> |
|
|
|
|
<view v-if="user"> |
|
|
|
|
<image :src="$picUrl+'/static/default-logo.png'" v-if="!user.avatar_url" class="avatar" ></image> |
|
|
|
|
<image :src="$picUrl+'/static/default-logo.png'" v-if="!user.avatar_url" class="avatar"></image> |
|
|
|
|
<image :src="user.avatar_url" v-else mode="aspectFill" class="avatar"></image> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
@ -106,7 +108,7 @@ |
|
|
|
|
onLoad(options) { |
|
|
|
|
this.getCenter() |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
methods: { |
|
|
|
|
goToPreviousPage() { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta: 1 // 返回的页面数,这里设置为1表示返回上一页 |
|
|
|
@ -118,7 +120,7 @@ |
|
|
|
|
app.isLoading = true |
|
|
|
|
Api.center() |
|
|
|
|
.then(result => { |
|
|
|
|
if(result.data.length>0){ |
|
|
|
|
if (result.data) { |
|
|
|
|
const data = result.data |
|
|
|
|
app.isDealer = data.isDealer |
|
|
|
|
app.user = data.user |
|
|
|
@ -126,9 +128,6 @@ |
|
|
|
|
app.refereeName = data.refereeName |
|
|
|
|
app.setting = data.setting |
|
|
|
|
} |
|
|
|
|
// api数据赋值 |
|
|
|
|
|
|
|
|
|
// 设置当前页面标题 |
|
|
|
|
app.setPageTitle() |
|
|
|
|
app.isLoading = false |
|
|
|
|
}) |
|
|
|
@ -145,76 +144,85 @@ |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
page{ |
|
|
|
|
page { |
|
|
|
|
background-color: #F7F8FA; |
|
|
|
|
min-height: 100%; |
|
|
|
|
padding-bottom: 140upx; |
|
|
|
|
padding-top:200upx; |
|
|
|
|
} |
|
|
|
|
.bgImg{ |
|
|
|
|
width:100%; |
|
|
|
|
height:auto; |
|
|
|
|
position:absolute; |
|
|
|
|
top:0; |
|
|
|
|
left:0; |
|
|
|
|
z-index:1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.navBarContent{ |
|
|
|
|
height:88upx; |
|
|
|
|
padding-top: 200upx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.bgImg { |
|
|
|
|
width: 100%; |
|
|
|
|
height: auto; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0; |
|
|
|
|
left: 0; |
|
|
|
|
z-index: 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.navBarContent { |
|
|
|
|
height: 88upx; |
|
|
|
|
line-height: 88upx; |
|
|
|
|
text-align: center; |
|
|
|
|
position: relative; |
|
|
|
|
text{ |
|
|
|
|
|
|
|
|
|
text { |
|
|
|
|
font-size: 32upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 500; |
|
|
|
|
color: #000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
.userInfo{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.userInfo { |
|
|
|
|
position: relative; |
|
|
|
|
z-index:3; |
|
|
|
|
margin:180rpx 30upx 0; |
|
|
|
|
image{ |
|
|
|
|
width:100%; |
|
|
|
|
height:auto; |
|
|
|
|
z-index: 3; |
|
|
|
|
margin: 180rpx 30upx 0; |
|
|
|
|
|
|
|
|
|
image { |
|
|
|
|
width: 100%; |
|
|
|
|
height: auto; |
|
|
|
|
} |
|
|
|
|
.userContent{ |
|
|
|
|
|
|
|
|
|
.userContent { |
|
|
|
|
position: absolute; |
|
|
|
|
top:0; |
|
|
|
|
left:0; |
|
|
|
|
width:100%; |
|
|
|
|
height:100%; |
|
|
|
|
top: 0; |
|
|
|
|
left: 0; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
display: flex; |
|
|
|
|
padding:52upx 30upx; |
|
|
|
|
padding: 52upx 30upx; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
|
.avatar{ |
|
|
|
|
width:114upx; |
|
|
|
|
height:114upx; |
|
|
|
|
.avatar { |
|
|
|
|
width: 114upx; |
|
|
|
|
height: 114upx; |
|
|
|
|
} |
|
|
|
|
.user{ |
|
|
|
|
margin-left:30upx; |
|
|
|
|
flex:1; |
|
|
|
|
.userTop{ |
|
|
|
|
|
|
|
|
|
.user { |
|
|
|
|
margin-left: 30upx; |
|
|
|
|
flex: 1; |
|
|
|
|
|
|
|
|
|
.userTop { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
.name{ |
|
|
|
|
|
|
|
|
|
.name { |
|
|
|
|
|
|
|
|
|
font-size: 36upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 500; |
|
|
|
|
color: #785B45; |
|
|
|
|
margin-right:20upx; |
|
|
|
|
margin-right: 20upx; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
.flag{ |
|
|
|
|
|
|
|
|
|
.flag { |
|
|
|
|
height: 42upx; |
|
|
|
|
background: rgba(255,255,255,0.71); |
|
|
|
|
background: rgba(255, 255, 255, 0.71); |
|
|
|
|
border-radius: 31px 31px 31px 31px; |
|
|
|
|
opacity: 1; |
|
|
|
|
|
|
|
|
@ -224,22 +232,25 @@ page{ |
|
|
|
|
color: #785B45; |
|
|
|
|
line-height: 42upx; |
|
|
|
|
text-align: center; |
|
|
|
|
padding:0 20upx; |
|
|
|
|
padding: 0 20upx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.userBottom{ |
|
|
|
|
|
|
|
|
|
.userBottom { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
margin-top:26upx; |
|
|
|
|
text{ |
|
|
|
|
margin-top: 26upx; |
|
|
|
|
|
|
|
|
|
text { |
|
|
|
|
font-size: 24upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 400; |
|
|
|
|
color: #785B45; |
|
|
|
|
} |
|
|
|
|
.tixian{ |
|
|
|
|
padding:12upx 36upx; |
|
|
|
|
|
|
|
|
|
.tixian { |
|
|
|
|
padding: 12upx 36upx; |
|
|
|
|
background: linear-gradient(180deg, #AF8D72 0%, #7D5C45 100%); |
|
|
|
|
border-radius: 29px 29px 29px 29px; |
|
|
|
|
opacity: 1; |
|
|
|
@ -253,22 +264,25 @@ page{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.yongjinContent{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.yongjinContent { |
|
|
|
|
background: #FFFFFF; |
|
|
|
|
border-radius: 6px 6px 6px 6px; |
|
|
|
|
opacity: 1; |
|
|
|
|
padding:42upx 0; |
|
|
|
|
padding: 42upx 0; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-around; |
|
|
|
|
margin:20upx 30upx; |
|
|
|
|
.item{ |
|
|
|
|
margin: 20upx 30upx; |
|
|
|
|
|
|
|
|
|
.item { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
flex-direction: column; |
|
|
|
|
.num{ |
|
|
|
|
|
|
|
|
|
.num { |
|
|
|
|
|
|
|
|
|
font-size: 40upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
@ -276,42 +290,47 @@ page{ |
|
|
|
|
color: #414141; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
.text{ |
|
|
|
|
|
|
|
|
|
.text { |
|
|
|
|
|
|
|
|
|
font-size: 28upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 400; |
|
|
|
|
color: #616161; |
|
|
|
|
margin-top:10upx; |
|
|
|
|
margin-top: 10upx; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.gridContent{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.gridContent { |
|
|
|
|
display: flex; |
|
|
|
|
background-color: #fff; |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
margin:0upx 30upx; |
|
|
|
|
padding:20upx 0; |
|
|
|
|
.gridItem{ |
|
|
|
|
width:33%; |
|
|
|
|
margin:30upx 0; |
|
|
|
|
margin: 0upx 30upx; |
|
|
|
|
padding: 20upx 0; |
|
|
|
|
|
|
|
|
|
.gridItem { |
|
|
|
|
width: 33%; |
|
|
|
|
margin: 30upx 0; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
image{ |
|
|
|
|
height:auto; |
|
|
|
|
width:50upx; |
|
|
|
|
|
|
|
|
|
image { |
|
|
|
|
height: auto; |
|
|
|
|
width: 50upx; |
|
|
|
|
} |
|
|
|
|
text{ |
|
|
|
|
|
|
|
|
|
text { |
|
|
|
|
|
|
|
|
|
font-size: 28upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 400; |
|
|
|
|
color: #616161; |
|
|
|
|
margin-top:16upx; |
|
|
|
|
margin-top: 16upx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|