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.
150 lines
2.3 KiB
150 lines
2.3 KiB
3 years ago
|
<template>
|
||
|
<view>
|
||
|
<view class="main">
|
||
|
<view class="integrals-box">
|
||
|
<view class="integral">
|
||
|
<view class="left" @tap="goPageLogin('/pages/my/channelshop')">
|
||
3 years ago
|
<image src="@/static/img/my/channelshop.png"></image>
|
||
3 years ago
|
<text>渠道商家</text>
|
||
|
</view>
|
||
|
<text class="right cuIcon-right"></text>
|
||
|
</view>
|
||
|
<view class="integral">
|
||
|
<view class="left" @tap="goPageLogin('/pages/my/channelmoneydetail')">
|
||
3 years ago
|
<image src="@/static/img/my/channelmoneydetail.png"></image>
|
||
3 years ago
|
<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>
|