9.24
This commit is contained in:
parent
dfc84612dd
commit
2b60d598d0
@ -408,6 +408,20 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "额度管理"
|
"navigationBarTitleText": "额度管理"
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "licensePlate/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "车牌管理"
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "licensePlate/addCar",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "添加车牌"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
163
gasStation-uni/pagesMy/licensePlate/addCar.vue
Normal file
163
gasStation-uni/pagesMy/licensePlate/addCar.vue
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<view class="container">
|
||||||
|
|
||||||
|
<view class="box-left">请输入车牌号</view>
|
||||||
|
|
||||||
|
<view class="box-hang" >
|
||||||
|
<input type="text" @click="show = !show" v-model="value" placeholder="鲁" class="box-input" />
|
||||||
|
<input type="text" @click="show = !show" v-model="value" placeholder="A" class="box-input" />
|
||||||
|
<input type="text" @click="show = !show" v-model="value" placeholder="请输入车牌号" class="box-car" />
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="but-sub">保存</view>
|
||||||
|
|
||||||
|
<u-keyboard ref="uKeyboard" mode="car" @change="valChange" @backspace="backspace" :show="show"
|
||||||
|
@confirm="confirm1" @cancel="cancel1"></u-keyboard>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '../../utils/request';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
List: [],
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
totalPage: '',
|
||||||
|
value: '',
|
||||||
|
show: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
//下拉刷新
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
// 触底加载
|
||||||
|
if (this.pageNo >= this.totalPage) {} else {
|
||||||
|
this.pageNo++
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 按键被点击(点击退格键不会触发此事件)
|
||||||
|
valChange(val) {
|
||||||
|
// 将每次按键的值拼接到value变量中,注意+=写法
|
||||||
|
this.value += val;
|
||||||
|
console.log(this.value);
|
||||||
|
},
|
||||||
|
// 退格键被点击
|
||||||
|
backspace() {
|
||||||
|
// 删除value的最后一个字符
|
||||||
|
if (this.value.length) this.value = this.value.substr(0, this.value.length - 1);
|
||||||
|
console.log(this.value);
|
||||||
|
},
|
||||||
|
cancel1() {
|
||||||
|
this.show = false
|
||||||
|
},
|
||||||
|
confirm1() {
|
||||||
|
this.show = false
|
||||||
|
},
|
||||||
|
goback() {
|
||||||
|
uni.navigateBack()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.content {
|
||||||
|
background: #f4f5f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.my-header {
|
||||||
|
width: 100%;
|
||||||
|
height: 88px;
|
||||||
|
background: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
color: #000;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0px 15px;
|
||||||
|
padding-top: 40px;
|
||||||
|
z-index: 99999;
|
||||||
|
|
||||||
|
.my-icons {
|
||||||
|
width: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.but-sub {
|
||||||
|
width: 305px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: #FF9655;
|
||||||
|
color: white;
|
||||||
|
border-radius: 50px;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-hang {
|
||||||
|
width: 99%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 15px;
|
||||||
|
border-bottom: 1px solid #f4f5f6;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-left {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 10px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dis {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #FA6400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
background: #ffffff;
|
||||||
|
width: 40px;
|
||||||
|
height: 50px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-car {
|
||||||
|
background: #ffffff;
|
||||||
|
width: 255px;
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 5px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
</style>
|
170
gasStation-uni/pagesMy/licensePlate/index.vue
Normal file
170
gasStation-uni/pagesMy/licensePlate/index.vue
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<view class="container">
|
||||||
|
|
||||||
|
<view v-if="type==0">
|
||||||
|
<view class="box-null">
|
||||||
|
<image src="@/static/my/car.png" mode="" class="box-img"></image>
|
||||||
|
<view>添加车牌,快捷支付</view>
|
||||||
|
<view class="box-text">不用下车排队,绑定车牌即可支付</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view v-if="type==1">
|
||||||
|
<view class="box-hang" style="margin-top: 8px;">
|
||||||
|
<view class="box-left">鲁A 659KG</view>
|
||||||
|
<view class="dis" @click="show=!show">
|
||||||
|
解绑
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="but-sub" @click="goAdd()">添加车牌</view>
|
||||||
|
|
||||||
|
<u-modal :show="show" :title="title" :content='content' :showCancelButton='true' @confirm="confirm1"
|
||||||
|
@cancel="cancel1" confirmColor="#FA6400"></u-modal>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '../../utils/request';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
List: [],
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
totalPage: '',
|
||||||
|
// 是否存在车牌信息 0不存在 1存在
|
||||||
|
type: 1,
|
||||||
|
show: false,
|
||||||
|
title: "温馨提示",
|
||||||
|
content: '确定解绑?'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
//下拉刷新
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
// 触底加载
|
||||||
|
if (this.pageNo >= this.totalPage) {} else {
|
||||||
|
this.pageNo++
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
goAdd(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:"/pagesMy/licensePlate/addCar"
|
||||||
|
})
|
||||||
|
},
|
||||||
|
cancel1() {
|
||||||
|
this.show = false
|
||||||
|
},
|
||||||
|
confirm1() {
|
||||||
|
this.show = false
|
||||||
|
},
|
||||||
|
goback() {
|
||||||
|
uni.navigateBack()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.content {
|
||||||
|
background: #f4f5f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.my-header {
|
||||||
|
width: 100%;
|
||||||
|
height: 88px;
|
||||||
|
background: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
color: #000;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0px 15px;
|
||||||
|
padding-top: 40px;
|
||||||
|
z-index: 99999;
|
||||||
|
|
||||||
|
.my-icons {
|
||||||
|
width: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.but-sub {
|
||||||
|
width: 305px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: #FF9655;
|
||||||
|
color: white;
|
||||||
|
border-radius: 50px;
|
||||||
|
text-align: center;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 40px;
|
||||||
|
left: 11%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-hang {
|
||||||
|
background-color: white;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 15px 15px;
|
||||||
|
border-bottom: 1px solid #f4f5f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-left {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dis {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #FA6400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-null {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
color: #999999;
|
||||||
|
text-align: center;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-img {
|
||||||
|
margin-top: 60px;
|
||||||
|
width: 140px;
|
||||||
|
height: 145px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-text {
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
BIN
gasStation-uni/static/my/car.png
Normal file
BIN
gasStation-uni/static/my/car.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in New Issue
Block a user