Commit 64139978 by baihong

add:首页

parent 437ce6ba
......@@ -53,6 +53,18 @@
}
}
,{
"path" : "pages/myRecord/myRecord",
"style" :
{
"navigationStyle": "custom",
"app-plus": {
"titleView": false
},
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
......
......@@ -15,6 +15,7 @@
<view class="header-right">
<view class="tag">
我的战绩
<image src="../../static/imgs/ic_record@2x.png" mode=""></image>
</view>
<view class="user">
个人中心
......@@ -27,14 +28,14 @@
<view class="pay-box">
<view class="top">
<view class="item">
<u-icon name="photo" color="#2979ff" size="28"></u-icon>
<image src="../../static/imgs/ic_sign_1@2x.png" mode=""></image>
<view class="text">
<text>参加人数</text>
<text>1000</text>
</view>
</view>
<view class="item">
<u-icon name="photo" color="#2979ff" size="28"></u-icon>
<image style="width: 44rpx;height: 47rpx;" src="../../static/imgs/ic_sign_2@2x.png" mode=""></image>
<view class="text">
<text>上次人均瓜分</text>
<text>1000</text>
......@@ -71,6 +72,40 @@
<u-icon name="arrow-right" color="#999999" size="18"></u-icon>
</view>
</view>
<view class="list">
<p>大家起床时的样子?</p>
<u-image width="626rpx" height="387rpx" :src="src"></u-image>
<view class="smile">
<view class="smile-item">
<image v-if="true" src="../../static/imgs/ic_expression_choose_01.png" mode=""></image>
<image v-else src="../../static/imgs/ic_expression_grey_01.png" mode=""></image>
8
</view>
<view class="smile-item">
<image v-if="true" src="../../static/imgs/ic_expression_choose_02.png" mode=""></image>
<image v-else src="../../static/imgs/ic_expression_grey_02.png" mode=""></image>
8
</view>
<view class="smile-item">
<image v-if="true" src="../../static/imgs/ic_expression_choose_03.png" mode=""></image>
<image v-else src="../../static/imgs/ic_expression_grey_03.png" mode=""></image>
8
</view>
<view class="smile-item">
<image v-if="true" src="../../static/imgs/ic_expression_choose_04.png" mode=""></image>
<image v-else src="../../static/imgs/ic_expression_grey_04.png" mode=""></image>
8
</view>
</view>
<view class="msg">
realme: 哈哈,太有趣了,太有趣了
</view>
<view class="zwb">
+200(真我币)
<image style="width: 26rpx;height: 26rpx;" src="../../static/imgs/ic_dollar@2x.png" mode=""></image>
</view>
</view>
<image class="camera" src="../../static/imgs/ic_health_client@2x.png" mode=""></image>
</view>
</template>
......@@ -82,6 +117,7 @@ export default {
},
data() {
return {
src: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF',
number: 0,
};
},
......@@ -116,6 +152,63 @@ export default {
.app {
background: #f5f7f9;
height: 100vh;
.camera {
width: 110rpx;
height: 110rpx;
position: fixed;
bottom: 65rpx;
right: 22rpx;
}
.list {
width: 690rpx;
background: #FFFFFF;
border-radius: 7rpx;
margin: 20rpx auto 20rpx auto;
padding: 30rpx;
box-sizing: border-box;
.zwb {
font-size: 24rpx;
font-family: OpenSans-Bold, OpenSans;
font-weight: bold;
color: #FFC915;
line-height: 33rpx;
display: flex;
align-items: center;
}
.msg {
font-size: 24rpx;
font-family: OpenSans;
color: #333333;
line-height: 33rpx;
margin: 20rpx 0;
}
.smile {
display: flex;
margin-top: 25rpx;
&-item{
display: flex;
align-items: center;
margin-right: 65rpx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #555555;
line-height: 33rpx;
image{
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
}
}
}
p {
font-size: 32rpx;
font-family: OpenSans;
color: #000000;
line-height: 43rpx;
margin-bottom: 30rpx;
}
}
.gz{
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
......@@ -164,6 +257,13 @@ export default {
border-radius: 4rpx;
border: 1rpx solid #555555;
margin-bottom: 37rpx;
display: flex;
align-items: center;
image{
width: 28rpx;
height: 26rpx;
margin-left: 10rpx;
}
}
}
.header-left {
......@@ -245,6 +345,11 @@ export default {
padding: 0 30rpx;
.item {
display: flex;
align-items: center;
image{
width: 62rpx;
height: 44rpx;
}
.text{
display: flex;
flex-direction: column;
......
<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">
<text>我的战绩</text>
<image src="../../static/imgs/ic_record@2x.png" mode=""></image>
</view>
<view class="header-right">
<text>中奖记录</text>
<u-icon name="arrow-right" color="#000000" size="18"></u-icon>
</view>
</view>
<u-row gutter="12" justify="space-between" style="margin-top: 46rpx;padding-left: 40rpx;">
<u-col span="4">
<view class="demo-layout-item">
<text>3000</text>
<text>累计投入(真我币)</text>
</view>
</u-col>
<u-col span="4">
<view class="demo-layout-item">
<text>3000</text>
<text>累计投入(真我币)</text>
</view>
</u-col>
<u-col span="4">
<view class="demo-layout-item">
<text>3000</text>
<text>累计投入(真我币)</text>
</view>
</u-col>
</u-row>
</page-header>
</view>
<view class="list-box">
<view class="top">
<text></text>
<view class="action" @click="show=true">
时间筛选
<u-icon style="margin-left: 10rpx;" name="arrow-down" color="#999999" size="18"></u-icon>
</view>
</view>
<view class="list">
<view class="time">
2021-04-18
</view>
<text>待打卡</text>
<view class="num">
+200
</view>
</view>
</view>
<u-calendar btn-type='warning' range-bg-color='rgb(255,244,208)' month-arrow-color='#FFC915' year-arrow-color='#FFC915' active-bg-color='#FFC915' v-model="show" :mode="mode"></u-calendar>
</view>
</template>
<script>
import pageHeader from '@/components/page-header.vue';
export default {
components: {
pageHeader
},
data() {
return {
show: false,
mode: 'range',
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;
.list-box {
padding: 40rpx 30rpx;
box-sizing: border-box;
background: #FFFFFF;
.list {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-top: 20rpx;
.time {
font-size: 28rpx;
font-family: OpenSans;
color: #999999;
line-height: 38rpx;
}
.num {
font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #FFC915;
line-height: 50rpx;
}
.left {
display: flex;
flex-direction: column;
text {
font-size: 24rpx;
font-family: OpenSans;
color: #999999;
line-height: 33rpx;
}
text:nth-child(1) {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 40rpx;
margin-bottom: 7rpx;
}
}
}
.top {
display: flex;
justify-content: space-between;
font-size: 28rpx;
font-family: OpenSans;
color: #999999;
line-height: 38rpx;
margin-bottom: 40rpx;
.action {
color: #333333;
}
text {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #000000;
line-height: 40rpx;
}
}
}
.header {
width: 100vw;
height: 380rpx;
background: linear-gradient(136deg, #FFCA16 0%, #FFD64A 100%);
&-main {
padding: 0 40rpx 0 50rpx;
box-sizing: border-box;
display: flex;
margin-top: 57rpx;
justify-content: space-between;
.header-right {
display: flex;
align-items: center;
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;
image{
width: 36rpx;
height: 35rpx;
margin-left: 14rpx;
}
text {
font-size: 40rpx;
font-family: OpenSans;
color: #000000;
line-height: 52rpx;
}
.name {
font-size: 24rpx;
font-family: OpenSans;
color: #333333;
line-height: 30rpx;
margin-left: 4rpx;
}
}
}
.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;
}
}
}
.demo-layout-item {
display: flex;
flex-direction: column;
text{
font-size: 32rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 45rpx;
}
text:nth-child(2){
font-size: 22rpx;
font-weight: 400;
color: #333333;
line-height: 30rpx;
margin-top: 5rpx;
}
}
}
</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