You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

156 lines
2.5 KiB

<template>
<view>
<view class="main">
<view class="integrals-box">
<view class="integral">
<view class="left" @tap="goPageLogin('/pages/member/yaoqing')">
<image src="../../static/img/my/myteam.png"></image>
<text>我的团队</text>
</view>
<text class="right cuIcon-right"></text>
</view>
<view class="integral">
<view class="left" @tap="goPageLogin('/pages/my/my')">
<image src="../../static/img/my/teammoney.png"></image>
<text>收益报表</text>
</view>
<text class="right cuIcon-right"></text>
</view>
<view class="integral">
<view class="left" @tap="goPageLogin('/pages/my/shareFriends')">
<image src="../../static/img/my/yaoqing.png"></image>
<text>邀请好友</text>
</view>
<text class="right cuIcon-right"></text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onLoad() {
},
methods: {
goPageLogin(url) {
let token = this.$queue.getData('token');
if (token) {
console.log('是否有token')
uni.navigateTo({
url
})
} else {
this.goLogin();
}
},
goLogin() {
uni.navigateTo({
url: '/pages/public/login'
});
}
}
}
</script>
<style lang="scss">
page {
width: 100%;
}
.main {
.integrals-box {
margin-top: 20upx;
background-color: #FFF;
padding: 10upx 34upx 10upx 40upx;
}
}
.integral {
width: 100%;
height: 92upx;
display: flex;
align-items: center;
justify-content: space-between;
.left1 {
display: flex;
align-items: center;
flex: 1;
text {
color: #333333;
font-size: 38rpx;
font-family: PingFang SC Medium, PingFang SC Medium-Medium;
font-weight: 500;
}
}
.left {
display: flex;
align-items: center;
flex: 1;
image {
width: 35rpx;
height: 35rpx;
}
text {
margin-left: 34rpx;
color: #333333;
font-size: 30rpx;
font-family: PingFang SC Medium, PingFang SC Medium-Medium;
font-weight: 500;
}
button {
flex: 1;
padding: 0;
margin: 0;
border: none;
background: transparent;
text-align: left;
}
button::after {
border: none;
}
button::before {
border: none;
}
.view-text {
font-size: 28upx;
color: #333333;
margin-left: 20upx;
}
}
.right {
font-size: 28upx;
color: #333333;
}
}
.integral1 {
height: 48rpx;
.left {
text {
font-size: 40rpx;
}
}
}
</style>