|
@@ -10,7 +10,7 @@
|
|
|
<!-- <view class="text1">地锁名称</view> -->
|
|
|
<!---->
|
|
|
<view class="text2" @click="gotoUrl('pages/mylock/editLock?id='+id)" >{{
|
|
|
- floorlockInfo.name
|
|
|
+ infotext(floorlockInfo.name)
|
|
|
}} <u-icon name="edit-pen" size="32" color="#FFFFFF"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -29,66 +29,50 @@
|
|
|
<view class="table">
|
|
|
<view class="row">
|
|
|
<view class="name">地锁型号</view>
|
|
|
- <view class="value">{{floorlockInfo.model}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.model)}}</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<view class="row">
|
|
|
<view class="name">出厂编号</view>
|
|
|
- <view class="value">{{floorlockInfo.factoryNumber}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.factoryNumber)}}</view>
|
|
|
</view>
|
|
|
<template v-if="!listShow">
|
|
|
<view class="row">
|
|
|
<view class="name">固件版号</view>
|
|
|
- <view class="value">{{floorlockInfo.solidVersion}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.solidVersion)}}</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="name">防护等级</view>
|
|
|
- <view class="value">{{floorlockInfo.protectionGrade}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.protectionGrade)}}</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="row" v-if="0">
|
|
|
- <view class="name">输入电压</view>
|
|
|
- <view class="value">{{floorlockInfo.inputVoltage}}</view>
|
|
|
- </view>
|
|
|
- <view class="row" v-if="0">
|
|
|
- <view class="name">输出电压</view>
|
|
|
- <view class="value">{{floorlockInfo.outputVoltage}}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="row" v-if="0">
|
|
|
- <view class="name">输出电流</view>
|
|
|
- <view class="value">{{floorlockInfo.outputCurrent}}</view>
|
|
|
- </view>
|
|
|
- <view class="row" v-if="0">
|
|
|
- <view class="name">输出功率</view>
|
|
|
- <view class="value">{{floorlockInfo.outputPower}}</view>
|
|
|
- </view>
|
|
|
+
|
|
|
|
|
|
<view class="row">
|
|
|
<view class="name">生产日期</view>
|
|
|
- <view class="value">{{floorlockInfo.manufactureDate}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.manufactureDate)}}</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="row">
|
|
|
<view class="name">标准依据</view>
|
|
|
- <view class="value">{{floorlockInfo.standardBasis}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.standardBasis)}}</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="name">联网卡号</view>
|
|
|
- <view class="value">{{floorlockInfo.internetCard}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.internetCard)}}</view>
|
|
|
</view>
|
|
|
<view class="row" v-if="floorlockInfo.tariffStandard">
|
|
|
<view class="name">资费标准</view>
|
|
|
- <view class="value">{{floorlockInfo.tariffStandard}}元/月</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.tariffStandard)}}元/月</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="name">地锁启动时间</view>
|
|
|
- <view class="value">{{floorlockInfo.activationTime}}</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.activationTime)}}</view>
|
|
|
</view>
|
|
|
<view class="row" v-if="floorlockInfo.shelfLife">
|
|
|
<view class="name">地锁质保期</view>
|
|
|
- <view class="value">{{floorlockInfo.shelfLife}}年</view>
|
|
|
+ <view class="value">{{infotext(floorlockInfo.shelfLife)}}年</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -125,7 +109,7 @@
|
|
|
</view>
|
|
|
<view class="page">
|
|
|
<view class="info-title">
|
|
|
- <view class="name">车位白名单<span class="span" v-if="0">({{whiteList.length}}/3)</span></view>
|
|
|
+ <view class="name">地锁授权名单<span class="span" v-if="0">({{whiteList.length}}/3)</span></view>
|
|
|
<view class="value" @click="addUser()">
|
|
|
<u-icon style=" margin-top: 2px;" size="30" name="plus"></u-icon> 添加
|
|
|
</view>
|
|
@@ -159,20 +143,20 @@
|
|
|
mode="car" v-model="carshow" :abc="abc" ></u-keyboard>
|
|
|
|
|
|
|
|
|
- <view class="popup-title">{{vipUser.id?'修改':'添加'}}白名单信息</view>
|
|
|
- <view style="padding: 4px;">白名单车主姓名<span style="color: red;">*</span></view>
|
|
|
- <u-input :customStyle="customStyle" maxlength="8" v-model="vipUser.nickName" placeholder="白名单车主姓名(必填)"></u-input>
|
|
|
- <view style="padding: 4px;">白名单车主手机号码<span style="color: red;">*</span></view>
|
|
|
+ <view class="popup-title">{{vipUser.id?'修改':'添加'}}授权信息</view>
|
|
|
+ <view style="padding: 4px;">授权车主姓名<span style="color: red;">*</span></view>
|
|
|
+ <u-input :customStyle="customStyle" maxlength="8" v-model="vipUser.nickName" placeholder="授权车主姓名(必填)"></u-input>
|
|
|
+ <view style="padding: 4px;">授权车主手机号码<span style="color: red;">*</span></view>
|
|
|
<u-input :customStyle="customStyle" maxlength="13" type="number" v-model="vipUser.phone"
|
|
|
- placeholder="白名单车主手机号码(必填)"></u-input>
|
|
|
- <view style="padding: 4px;">白名单车主车牌号</view>
|
|
|
- <!-- <u-input :customStyle="customStyle" v-model="vipUser.carNumber" placeholder="白名单车主车牌号"></u-input> -->
|
|
|
+ placeholder="授权车主手机号码(必填)"></u-input>
|
|
|
+ <view style="padding: 4px;">授权车主车牌号</view>
|
|
|
+ <!-- <u-input :customStyle="customStyle" v-model="vipUser.carNumber" placeholder="授权车主车牌号"></u-input> -->
|
|
|
|
|
|
<view class="carNumber" @click="carshow=true,valInit(1)"
|
|
|
:class="{
|
|
|
'carNumber1':!vipUser.carNumber
|
|
|
}">
|
|
|
- {{vipUser.carNumber?vipUser.carNumber:'白名单车主车牌号'}}
|
|
|
+ {{vipUser.carNumber?vipUser.carNumber:'授权车主车牌号'}}
|
|
|
</view>
|
|
|
<view v-if="vipUser.id" style="display: flex;">
|
|
|
<u-button type="info" style="margin-top: 10px;width: 49%;" shape="circle"
|
|
@@ -190,7 +174,7 @@
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<u-modal v-model="delShow" @confirm="confirmDelete" confirm-color="#fa3534" :show-cancel-button="true"
|
|
|
- ref="uModal" title="删除白名单用户" content="是否删除当前白名单用户?" confirm-text="删除"></u-modal>
|
|
|
+ ref="uModal" title="删除授权用户" content="是否删除当前授权用户?" confirm-text="删除"></u-modal>
|
|
|
|
|
|
<view class="floating-button">
|
|
|
<view class="button" @click="gotoUrl('pages/business/lockInfo?id='+id)" >
|
|
@@ -246,7 +230,14 @@
|
|
|
onShow(){
|
|
|
this.getFloorlockDetails()
|
|
|
},
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
+ infotext(text){
|
|
|
+ if(text){
|
|
|
+ return text
|
|
|
+ }else{
|
|
|
+ return ""
|
|
|
+ }
|
|
|
+ },
|
|
|
valInit(bl){
|
|
|
if(bl){
|
|
|
this.abc=this.vipUser.carNumber.length>0
|
|
@@ -340,13 +331,13 @@
|
|
|
submitUser() {
|
|
|
if (!this.vipUser.nickName) {
|
|
|
uni.showToast({
|
|
|
- title: "请填写白名单车主姓名"
|
|
|
+ title: "请填写授权车主姓名"
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.vipUser.phone) {
|
|
|
uni.showToast({
|
|
|
- title: "请填写白名单车主手机号码"
|
|
|
+ title: "请填写授权车主手机号码"
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -413,7 +404,7 @@
|
|
|
addUser() {
|
|
|
// if (this.whiteList.length >= 3) {
|
|
|
// uni.showToast({
|
|
|
- // title: "添加白名单用户已达到上限"
|
|
|
+ // title: "添加授权用户已达到上限"
|
|
|
// })
|
|
|
// return
|
|
|
// }
|