Commit 78d39c6e by baihong

add:个人中心

parent 724afe39
......@@ -8,6 +8,17 @@
},
"pages": [
{
"path" : "pages/activities/activities",
"style" :
{
"navigationStyle": "custom",
"app-plus": {
"titleView": false
},
"enablePullDownRefresh": false
}
},
{
"path" : "pages/user/user",
"style" :
{
......
<template>
<view class="app">
<view class="header">
<page-header>
<view class="nav">
<u-icon name="arrow-left" color="#000000" size="38"></u-icon>
<text class="title">个人中心</text>
</view>
<view class="header-main">
<view class="header-left">
<u-image width="110rpx" height="110rpx" :src="src" shape='circle'></u-image>
<text class="name">realme</text>
</view>
<view class="header-right">
<view>
<image src="../../static/imgs/ic_coin_01@2x.png" mode=""></image>
<text>998</text>
</view>
<view class="tags">
积分明细
<u-icon name="arrow-right" color="#999999" size="18"></u-icon>
</view>
</view>
</view>
</page-header>
</view>
<view class="main-box">
<view class="top">
<text>保持7天的微笑</text>
<text>规则<u-icon style="margin-left: 10rpx;" name="arrow-right" color="#000000" size="18"></u-icon>
</text>
</view>
<view class="days">
<view class="day-box">
<view class="cor" v-if="active">
X2
</view>
<view class="tip" v-if="active">
+300
</view>
<image v-if="active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
<view class="line"></view>
<view class="day-box">
<view class="cor" v-if="active">
X2
</view>
<view class="tip" v-if="active">
+300
</view>
<image v-if="active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
<view class="line"></view>
<view class="day-box">
<view class="cor" v-if="active">
X2
</view>
<view class="tip" v-if="active">
+300
</view>
<image v-if="active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
<view class="line"></view>
<view class="day-box">
<view class="cor" v-if="active">
X2
</view>
<view class="tip" v-if="active">
+300
</view>
<image v-if="active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
<view class="line"></view>
<view class="day-box">
<view class="cor" v-if="active">
X2
</view>
<view class="tip" v-if="active">
+300
</view>
<image v-if="active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
<view class="line"></view>
<view class="day-box">
<view class="cor" v-if="active">
X2
</view>
<view class="tip" v-if="active">
+300
</view>
<image v-if="active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
<view class="line"></view>
<view class="day-box">
<view class="cor" v-if="!active">
X2
</view>
<view class="tip" v-if="!active">
+300
</view>
<image v-if="!active" src="../../static/imgs/ic_bay_01@2x.png" mode=""></image>
<image v-else src="../../static/imgs/ic_bay_02@2x.png" mode=""></image>
<text>day1</text>
</view>
</view>
<view class="btn">
签到
</view>
<p>在赚1000 realme coin ?</p>
</view>
<view class="img-box">
<p>敢于微笑</p>
</view>
</view>
</template>
<script>
import pageHeader from '@/components/page-header.vue';
export default {
components: {
pageHeader
},
data() {
return {
active:true,
src: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF',
list: [{
name: '审核中'
}, {
name: '已通过'
}, {
name: '已拒绝'
}],
current: 0
};
},
computed: {
},
onLoad(option) {
},
methods: {
change(index) {
this.current = index;
},
goSalesInquiry() {
uni.navigateTo({
url: '../salesInquiry/salesInquiry'
});
},
startMove() {
// eslint-disable-next-line
let timer = setTimeout(() => {
if (this.number === 2) {
this.number = 0;
} else {
this.number += 1;
}
this.startMove();
}, 2000); // 滚动不需要停顿则将2000改成动画持续时间
}
}
};
</script>
<style lang="scss" scoped>
.app {
background: #f5f7f9;
height: 100vh;
p {
font-size: 32rpx;
font-family: OpenSans;
color: #000000;
line-height: 43rpx;
text-align: center;
}
.img-box {
width: 690rpx;
padding: 30rpx;
box-sizing: border-box;
background: #FFFFFF;
border-radius: 7px;
margin: 0 auto;
p {
text-align: left;
}
}
.main-box {
width: 690rpx;
box-sizing: border-box;
background: #FFFFFF;
border-radius: 7rpx;
padding: 27rpx 21rpx 50rpx 23rpx;
margin: -40rpx auto 20rpx auto;
.btn{
width: 398rpx;
height: 74rpx;
background: #FFC915;
border-radius: 8rpx;
font-size: 28rpx;
font-family: OpenSans-Bold, OpenSans;
font-weight: bold;
color: #000000;
line-height: 38rpx;
margin: 50rpx auto 30rpx auto;
display: flex;
align-items: center;
justify-content: center;
}
.days {
display: flex;
margin-top: 70rpx;
.line {
width: 60rpx;
height: 3rpx;
background: #DCDCDC;
margin-top: 74rpx;
}
.day-box {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
min-height: 74rpx;
justify-content: flex-end;
.cor {
width: 40rpx;
height: 40rpx;
background: #FFFFFF;
border: 1rpx solid #FF1130;
font-size: 18rpx;
font-family: OpenSans;
color: #FF1130;
line-height: 24rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: -16rpx;
top: -36rpx;
}
.tip {
width: 71rpx;
height: 48rpx;
font-size: 22rpx;
font-family: OpenSans;
color: #333333;
background-image: url(../../static/imgs/ic_number_01@2x.png);
background-repeat: no-repeat;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
image {
width: 54rpx;
height: 54rpx;
}
text {
font-size: 24rpx;
font-family: OpenSans;
color: #555555;
line-height: 33rpx;
}
}
}
.top {
display: flex;
justify-content: space-between;
text {
font-size: 28rpx;
font-family: OpenSans;
color: #000000;
line-height: 38rpx;
}
text:nth-child(2) {
color: #999999;
line-height: 28rpx;
}
}
}
.header {
width: 100vw;
height: 303rpx;
background: linear-gradient(136deg, #FFCA16 0%, #FFD64A 100%);
&-main {
padding: 0 40rpx 0 60rpx;
box-sizing: border-box;
display: flex;
margin-top: 47rpx;
justify-content: space-between;
.header-right {
display: flex;
align-items: center;
flex-direction: column;
.tags {
border-radius: 4rpx;
border: 1rpx solid #555555;
padding: 7rpx 5rpx 7rpx 13rpx;
font-size: 24rpx;
font-family: OpenSans;
color: #333333;
line-height: 28rpx;
margin-top: 20rpx;
}
image {
width: 28rpx;
height: 30rpx;
}
text {
font-size: 32rpx;
font-family: OpenSans;
color: #000000;
line-height: 34rpx;
margin: 0 14rpx;
}
}
.header-left {
display: flex;
align-items: center;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 30rpx;
.name {
font-size: 40rpx;
font-family: OpenSans;
color: #000000;
line-height: 72rpx;
margin-left: 20rpx;
}
}
}
.nav {
display: flex;
align-items: center;
margin-top: 20rpx;
padding-left: 15rpx;
.title {
margin-left: 250rpx;
font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
line-height: 50rpx;
}
}
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment