首页根据类型判断显示,位置,报警,发送信息按钮
This commit is contained in:
@ -16,7 +16,7 @@
|
|||||||
<image @click="allMore" src="/static/images/more.png" mode="" class="more"></image>
|
<image @click="allMore" src="/static/images/more.png" mode="" class="more"></image>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="sendFlex" v-if="activeTab && activeTab.id !== '' ||activeTab.communicationMode==0">
|
<view class="sendFlex" v-if="activeTab && activeTab.id !== ''&& activeTabInfo.communicationMode==0">
|
||||||
<view class="callpolice">报警</view>
|
<view class="callpolice">报警</view>
|
||||||
<view class="Sendmessage" @click="location">位置</view>
|
<view class="Sendmessage" @click="location">位置</view>
|
||||||
<view class="Sendmessage" @click="handleSend">发送信息</view>
|
<view class="Sendmessage" @click="handleSend">发送信息</view>
|
||||||
@ -190,7 +190,8 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
finished: false,
|
finished: false,
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
deviceName: "" //重命名
|
deviceName: "", //重命名
|
||||||
|
activeTabInfo: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -248,6 +249,7 @@
|
|||||||
switchTab(tab, index) {
|
switchTab(tab, index) {
|
||||||
this.deviceList = [];
|
this.deviceList = [];
|
||||||
this.activeTab = index;
|
this.activeTab = index;
|
||||||
|
this.activeTabInfo = tab
|
||||||
this.page = 1; // 重置页码
|
this.page = 1; // 重置页码
|
||||||
this.finished = false; // 重
|
this.finished = false; // 重
|
||||||
// 明确传递参数,空字符串改为null或undefined
|
// 明确传递参数,空字符串改为null或undefined
|
||||||
@ -434,7 +436,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.typeName == '6155') {
|
if (item.typeName == '6155') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/6155/deviceDetail",
|
url: "/pages/6155/deviceDetail",
|
||||||
@ -812,6 +813,7 @@
|
|||||||
/* 根据导航栏高度调整 */
|
/* 根据导航栏高度调整 */
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip-share {
|
.tooltip-share {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 18rpx;
|
right: 18rpx;
|
||||||
|
Reference in New Issue
Block a user