aa
This commit is contained in:
parent
c7295caf71
commit
18421bc31b
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="充值" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff" title-size='36'
|
<u-navbar title="充值" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff"
|
||||||
height='58'></u-navbar>
|
title-size='36' height='58'></u-navbar>
|
||||||
<view class="title">
|
<view class="title">
|
||||||
设备名称:{{deviceobj.deviceName}}
|
设备名称:{{deviceobj.deviceName}}
|
||||||
</view>
|
</view>
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
indexactive: 0,
|
indexactive: 0,
|
||||||
checked: false,
|
checked: false,
|
||||||
deviceobj: {},
|
deviceobj: {},
|
||||||
deviceid: 'DS-000002',
|
deviceid: '',
|
||||||
timer: null,
|
timer: null,
|
||||||
expireTimeStr: '',
|
expireTimeStr: '',
|
||||||
zfobj: {},
|
zfobj: {},
|
||||||
|
@ -77,9 +77,24 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
if (option.q) {
|
||||||
|
function getQueryParam(url, paramName) {
|
||||||
|
let regex = new RegExp(`[?&]${paramName}=([^&]*)`);
|
||||||
|
let results = regex.exec(url);
|
||||||
|
return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null;
|
||||||
|
}
|
||||||
|
let sceneValue = option.q
|
||||||
|
let decodedValue = decodeURIComponent(sceneValue);
|
||||||
|
this.id = getQueryParam(decodedValue, 'deviceNo')
|
||||||
|
console.log(this.id)
|
||||||
|
this.startTimer()
|
||||||
|
this.gettaoc()
|
||||||
|
} else {
|
||||||
this.id = option.id
|
this.id = option.id
|
||||||
this.startTimer()
|
this.startTimer()
|
||||||
this.gettaoc()
|
this.gettaoc()
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
||||||
|
@ -195,6 +210,7 @@
|
||||||
/deep/ .u-title {
|
/deep/ .u-title {
|
||||||
padding-bottom: 41rpx;
|
padding-bottom: 41rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
// /deep/ .u-icon__icon{
|
// /deep/ .u-icon__icon{
|
||||||
// padding-bottom: 41rpx;
|
// padding-bottom: 41rpx;
|
||||||
// }
|
// }
|
||||||
|
@ -212,6 +228,7 @@
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
.tip_box {
|
.tip_box {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 72rpx;
|
left: 72rpx;
|
||||||
|
@ -221,8 +238,10 @@
|
||||||
background: #F7FAFE;
|
background: #F7FAFE;
|
||||||
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
||||||
z-index: 10000000;
|
z-index: 10000000;
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
padding: 52rpx 38rpx 42rpx 36rpx;
|
padding: 52rpx 38rpx 42rpx 36rpx;
|
||||||
|
|
||||||
.txt {
|
.txt {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -231,11 +250,13 @@
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bot {
|
.bot {
|
||||||
border-top: 2rpx solid #D8D8D8;
|
border-top: 2rpx solid #D8D8D8;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.bot_left {
|
.bot_left {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
|
@ -246,6 +267,7 @@
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bot_right {
|
.bot_right {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
|
|
|
@ -41,6 +41,9 @@
|
||||||
total: 0,
|
total: 0,
|
||||||
keyword:''
|
keyword:''
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.wateringList = []
|
this.wateringList = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user