oil-station/pos-uni/pagesHome/AddVip/AddVip.vue
2024-05-22 09:39:54 +08:00

179 lines
3.4 KiB
Vue

<template>
<view class="content">
<view class="container">
<headers :titles="titles"><u-icon name="arrow-left" color="#fff" size="22"></u-icon></headers>
<view class="bai-box">
<view class="top-hang">会员信息</view>
<view class="h-box">
<view class="">会员姓名</view>
<view class="r-input">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="h-box">
<view class="">手机号码</view>
<view class="r-input">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="h-box">
<view class="">支付密码</view>
<view class="r-input">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="h-box">
<view class="">性别</view>
<view class="d-s">
<view class="">请选择</view>
<u-icon name="arrow-right" color="#2979ff" size="18"></u-icon>
</view>
</view>
<view class="h-box">
<view class="">生日</view>
<view class="d-s">
<view class="">请选择</view>
<u-icon name="arrow-right" color="#2979ff" size="18"></u-icon>
</view>
</view>
<view class="h-box">
<view class="">会员等级</view>
<view class="d-s">
<view class="">请选择</view>
<u-icon name="arrow-right" color="#2979ff" size="18"></u-icon>
</view>
</view>
<view class="h-box">
<view class="">备注</view>
<view class="r-input">
<input type="text" placeholder="请输入" />
</view>
</view>
</view>
<view class="p-bottom">
<view class="anniu" @click="goback()">
保存
</view>
</view>
</view>
</view>
</template>
<script>
import headers from '../../components/header/headers.vue'
export default {
data() {
return {
titles: "新增会员",
}
},
onShow() {
},
onPullDownRefresh() {
console.log("刷新");
uni.stopPullDownRefresh()
},
onReachBottom() {
// this.show = true
setTimeout(() => {
console.log("加载执行");
}, 2000)
},
components: {
headers
},
methods: {
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
background: #F8F8F8;
// background: linear-gradient(180deg, #B2D2FC 0%, #B2D2FC 14%, rgba(255, 255, 255, 0.84) 24%, rgba(255, 255, 255, 0.84) 100%);
height: 100vh;
}
.container {
width: 100%;
background: #F8F8F8;
box-sizing: border-box;
padding-top: 88px;
}
.img-box {
image {
width: 100%;
height: 100%;
}
}
.p-bottom {
width: 100%;
height: 68px;
background: #fff;
position: fixed;
bottom: 0px;
left: 0px;
}
.anniu {
height: 40px;
background: #0864E9;
width: 80%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
border-radius: 50px;
margin: 5px auto;
}
.bai-box {
width: 95%;
margin: 15px auto;
box-sizing: border-box;
padding: 15px;
background: #fff;
}
.top-hang {
font-weight: bold;
font-size: 16px;
color: #0864E9;
box-sizing: border-box;
padding-bottom: 10px;
border-bottom: 1px solid #F0F0F0;
}
.h-box {
border-bottom: 1px solid #F0F0F0;
box-sizing: border-box;
padding: 10px 0px;
font-size: 14px;
display: flex;
align-items: center;
justify-content: space-between;
}
.d-s {
display: flex;
align-items: center;
color: #0864E9;
}
.r-input {
text-align: right;
}
</style>