Browse Source

完成会员服务页面UI

master
邓平艺 4 years ago
parent
commit
adacb8f828
  1. 7
      pages.json
  2. 123
      pages/user/member/service.vue

7
pages.json

@ -734,6 +734,13 @@
"navigationBarTitleText": "积分规则",
"navigationStyle": "custom"
}
},
{
"path" : "pages/user/member/service",
"style" : {
"navigationBarTitleText": "会员服务",
"navigationStyle": "custom"
}
}
],
"globalStyle": {

123
pages/user/member/service.vue

@ -0,0 +1,123 @@
<template>
<view>
<lf-nav title="会员服务" :showIcon="true"></lf-nav>
<view class="content">
<view class="head">
<image mode="aspectFill" src="https://picsum.photos/seed/picsum/200/300"></image>
</view>
<view class="main">
<view class="item" v-for="(item, index) in 9" :key="index">
<image class="img"></image>
<view class="title">会员饮品</view>
<view class="desc">每月免费赠饮</view>
</view>
</view>
<view style="height: 120rpx;"></view>
<view class="fixed">
<view class="btn1" hover-class="lf-opacity">在线客服</view>
<view class="btn2" hover-class="lf-opacity">拨打客服电话</view>
</view>
</view>
</view>
</template>
<script>
export default {
data(){
return {
}
},
onLoad(){
},
methods: {
}
}
</script>
<style lang="scss" scoped="scoped">
.content{
padding: 30rpx 32rpx;
.head{
width: 686rpx;
height: 300rpx;
border-radius: 20rpx;
overflow: hidden;
&>image{
width: 100%;
height: 100%;
}
}
.main{
width: 100%;
display: flex;
flex-wrap: wrap;
.item{
width: 200rpx;
height: max-content;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 40rpx;
margin-right: 43rpx;
&:nth-child(3n){
margin-right: 0rpx;
}
.img{
width: 200rpx;
height: 200rpx;
background-color: #D8D8D8;
}
.title{
font-size: 28rpx;
color: #222222;
margin-top: 20rpx;
}
.desc{
font-size: 24rpx;
color: #777777;
margin-top: 10rpx;
}
}
}
.fixed{
height: 120rpx;
width: 750rpx;
position: fixed;
bottom: 0;
left: 0;
z-index: 2;
background-color: #FFFFFF;
border-top: 1rpx solid #e5e5e5;
box-sizing: border-box;
padding: 0 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
.btn1{
width: 243rpx;
height: 100rpx;
border-radius: 50rpx;
border: 2rpx solid #15716E;
display: flex;
justify-content: center;
align-items: center;
color: #15716E;
font-size: 32rpx;
}
.btn2{
width: 423rpx;
height: 100rpx;
background: #15716E;
border-radius: 50rpx;
color: #FFFFFF;
display: flex;
justify-content: center;
align-items: center;
}
}
}
</style>
Loading…
Cancel
Save