3 changed files with 178 additions and 0 deletions
@ -0,0 +1,138 @@ |
|||
<template> |
|||
<view> |
|||
<lf-nav title="积分" :showIcon="true" :spreadOut="false" bgColor="transparent" titleColor="#fff"></lf-nav> |
|||
<view class="head"> |
|||
<view class="bg-left"></view> |
|||
<view class="bg-right"></view> |
|||
<view class="head-content"> |
|||
<view> |
|||
<text class="lf-iconfont icon-- lf-font-50"></text> |
|||
</view> |
|||
<view class="point">78326478</view> |
|||
<view class="head-menu"> |
|||
<view>兑换礼品 ></view> |
|||
<view @click="$url('/pages/point/rule/rule')">积分规则 ></view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="main"> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view class="lf-font-32 lf-color-black lf-font-bold">积分变动明细</view> |
|||
<picker mode='date' :value="date" @change="dateChange"> |
|||
<view style="width: 440rpx; text-align: right;"> |
|||
<text>{{ date || '2021-09-01' }}</text> |
|||
<text class="lf-iconfont icon--1 lf-m-l-10"></text> |
|||
</view> |
|||
</picker> |
|||
</view> |
|||
<view class="item" v-for="(item, index) in 10" :key="index"> |
|||
<view class="lf-row-between"> |
|||
<text class="lf-font-36 lf-color-black lf-font-bold" :class="{'lf-color-price': index % 2}">{{ index % 2 ? '-250' : '+80' }}</text> |
|||
<text class="lf-font-24 lf-color-777">2021-09-01 18:27:58</text> |
|||
</view> |
|||
<view class="lf-m-t-20"> |
|||
<text class="lf-font-24 lf-color-555">商城内消费</text> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data(){ |
|||
return { |
|||
date: '' |
|||
} |
|||
}, |
|||
onLoad(){ |
|||
|
|||
}, |
|||
methods: { |
|||
dateChange(event){ |
|||
this.date = event.detail.value; |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style> |
|||
page{ |
|||
overflow-x: hidden; |
|||
} |
|||
</style> |
|||
<style lang="scss" scoped="scoped"> |
|||
.head{ |
|||
width: 750rpx; |
|||
height: 512rpx; |
|||
background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%); |
|||
position: relative; |
|||
overflow: hidden; |
|||
display: flex; |
|||
align-items: flex-end; |
|||
box-sizing: border-box; |
|||
padding: 60rpx 32rpx; |
|||
color: #FFFFFF; |
|||
.bg-left{ |
|||
position: absolute; |
|||
width: 196rpx; |
|||
height: 196rpx; |
|||
border-radius: 50%; |
|||
background-color: rgba(255,255,255,0.04); |
|||
left: -92rpx; |
|||
bottom: 60rpx; |
|||
} |
|||
.bg-right{ |
|||
position: absolute; |
|||
width: 520rpx; |
|||
height: 520rpx; |
|||
border-radius: 50%; |
|||
background-color: rgba(255,255,255,0.04); |
|||
right: -168rpx; |
|||
top: -122rpx; |
|||
} |
|||
.head-content{ |
|||
width: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
align-items: center; |
|||
&>view{ |
|||
width: 100%; |
|||
text-align: center; |
|||
} |
|||
.head-menu{ |
|||
display: flex; |
|||
justify-content: space-between; |
|||
padding: 0 78rpx; |
|||
font-size: 24rpx; |
|||
margin-top: 50rpx; |
|||
} |
|||
.point{ |
|||
font-size: 72rpx; |
|||
letter-spacing: 2rpx; |
|||
font-weight: bold; |
|||
word-break: break-all; |
|||
line-height: 1; |
|||
margin-top: 10rpx; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.main{ |
|||
padding: 30rpx 32rpx; |
|||
width: 750rpx; |
|||
height: max-content; |
|||
box-sizing: border-box; |
|||
.item{ |
|||
width: 686rpx; |
|||
height: max-content; |
|||
background: #F4F8F8; |
|||
border-radius: 10rpx; |
|||
margin-bottom: 26rpx; |
|||
padding: 30rpx; |
|||
box-sizing: border-box; |
|||
line-height: 1; |
|||
} |
|||
} |
|||
</style> |
|||
@ -0,0 +1,26 @@ |
|||
<template> |
|||
<view> |
|||
<lf-nav title="积分规则" :showIcon="true"></lf-nav> |
|||
<view style="color: #9A7E4C;" v-for="(item, index) in 20" :key="index">积分规则</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data(){ |
|||
return { |
|||
|
|||
} |
|||
}, |
|||
onLoad(){ |
|||
|
|||
}, |
|||
methods: { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped="scoped"> |
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue