|
@@ -20,6 +20,9 @@
|
|
<u-cell-item title="地锁控制" @click="lockControl()">
|
|
<u-cell-item title="地锁控制" @click="lockControl()">
|
|
<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
|
|
<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
|
|
</u-cell-item>
|
|
</u-cell-item>
|
|
|
|
+ <u-cell-item title="语音播报开关" @click="speakControl()">
|
|
|
|
+ <u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
|
|
|
|
+ </u-cell-item>
|
|
<u-cell-item title="版本检测" @click="onCheckVersion()">
|
|
<u-cell-item title="版本检测" @click="onCheckVersion()">
|
|
<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
|
|
<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
|
|
</u-cell-item>
|
|
</u-cell-item>
|
|
@@ -28,6 +31,21 @@
|
|
</u-cell-item>
|
|
</u-cell-item>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-popup v-model="speakShow" mode="center" length="auto" >
|
|
|
|
+ <view class="speack">
|
|
|
|
+ <view class="speack-pop">
|
|
|
|
+ <u-form>
|
|
|
|
+ <u-form-item label="设备入场开关" label-width="350"><u-switch v-model="switchVal1" @change="change1"></u-switch></u-form-item>
|
|
|
|
+ <u-form-item label="设备出场开关" label-width="350"><u-switch v-model="switchVal2" @change="change2"></u-switch></u-form-item>
|
|
|
|
+ <u-form-item label="收费员入场开关" label-width="350"><u-switch v-model="switchVal3" @change="change3"></u-switch></u-form-item>
|
|
|
|
+ <u-form-item label="收费员出场开关" label-width="350"><u-switch v-model="switchVal4" @change="change4"></u-switch></u-form-item>
|
|
|
|
+ </u-form>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="speack-btn">
|
|
|
|
+ <u-button @click="submitSpeak" type="primary" size="medium">执行</u-button>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </u-popup>
|
|
<u-popup v-model="show" mode="center" length="auto" >
|
|
<u-popup v-model="show" mode="center" length="auto" >
|
|
<view>
|
|
<view>
|
|
<u-form :model="lockForm" ref="uForm">
|
|
<u-form :model="lockForm" ref="uForm">
|
|
@@ -56,6 +74,11 @@
|
|
export default{
|
|
export default{
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ switchVal1:'',
|
|
|
|
+ switchVal2:'',
|
|
|
|
+ switchVal3:'',
|
|
|
|
+ switchVal4:'',
|
|
|
|
+ speakShow:false,
|
|
show: false,
|
|
show: false,
|
|
wgtInfo:{},
|
|
wgtInfo:{},
|
|
lockForm:{
|
|
lockForm:{
|
|
@@ -82,11 +105,52 @@
|
|
},
|
|
},
|
|
onLoad(){
|
|
onLoad(){
|
|
this.getVersion();
|
|
this.getVersion();
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
|
|
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ change1(status){
|
|
|
|
+ // console.log(status)
|
|
|
|
+ this.switchVal1=status;
|
|
|
|
+ },
|
|
|
|
+ change2(status){
|
|
|
|
+ // console.log(status)
|
|
|
|
+ this.switchVal2=status;
|
|
|
|
+ },
|
|
|
|
+ change3(status){
|
|
|
|
+ // console.log(status)
|
|
|
|
+ this.switchVal3=status;
|
|
|
|
+ },
|
|
|
|
+ change4(status){
|
|
|
|
+ // console.log(status)
|
|
|
|
+ this.switchVal4=status;
|
|
|
|
+ },
|
|
|
|
+ speakControl(){
|
|
|
|
+ this.speakShow=true;
|
|
|
|
+ uni.getStorage({
|
|
|
|
+ key:'speakData',
|
|
|
|
+ success: (res) => {
|
|
|
|
+ this.switchVal1 = res.data.switchVal1;
|
|
|
|
+ this.switchVal2 = res.data.switchVal2;
|
|
|
|
+ this.switchVal3 = res.data.switchVal3;
|
|
|
|
+ this.switchVal4 = res.data.switchVal4;
|
|
|
|
+ // console.log('passWord',res.data)
|
|
|
|
+ },
|
|
|
|
+ fail: (err) => {
|
|
|
|
+ // console.log('passWord err',err)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ submitSpeak(){
|
|
|
|
+ uni.setStorage({
|
|
|
|
+ key:'speakData',
|
|
|
|
+ data:{switchVal1:this.switchVal1, switchVal2:this.switchVal2, switchVal3:this.switchVal3, switchVal4:this.switchVal4 }
|
|
|
|
+ });
|
|
|
|
+ this.speakShow=false;
|
|
|
|
+ },
|
|
lockControl(){
|
|
lockControl(){
|
|
let that = this;
|
|
let that = this;
|
|
let roadInfo = this.$store.state.vuex_user?.roadList?.[0]||[];
|
|
let roadInfo = this.$store.state.vuex_user?.roadList?.[0]||[];
|