首页根据类型判断显示,位置,报警,发送信息按钮
This commit is contained in:
@ -34,7 +34,7 @@
|
|||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/common/index/index',
|
url: '/pages/common/index/index',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.eventChannel.emit('index', {
|
res.eventChannel.emit('index', {
|
||||||
data: item
|
data: item
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,11 @@
|
|||||||
{{tab.typeName}}
|
{{tab.typeName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="uniui-more" >
|
<view class="uniui-more">
|
||||||
<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,16 +190,17 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
finished: false,
|
finished: false,
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
deviceName: "" //重命名
|
deviceName: "", //重命名
|
||||||
|
activeTabInfo: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 更多
|
// 更多
|
||||||
allMore(){
|
allMore() {
|
||||||
this.showshare = !this.showshare;
|
this.showshare = !this.showshare;
|
||||||
},
|
},
|
||||||
// 所有分享,所有类型
|
// 所有分享,所有类型
|
||||||
handleshareClick(item){
|
handleshareClick(item) {
|
||||||
this.showshare = false; // 关闭弹窗
|
this.showshare = false; // 关闭弹窗
|
||||||
switch (item.action) {
|
switch (item.action) {
|
||||||
case 'type':
|
case 'type':
|
||||||
@ -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
|
||||||
@ -292,7 +294,7 @@
|
|||||||
scan() {
|
scan() {
|
||||||
this.showTooltip = !this.showTooltip;
|
this.showTooltip = !this.showTooltip;
|
||||||
},
|
},
|
||||||
// 添加设备,扫一扫,蓝牙
|
// 添加设备,扫一扫,蓝牙
|
||||||
handleMenuClick(item) {
|
handleMenuClick(item) {
|
||||||
this.showTooltip = false; // 关闭弹窗
|
this.showTooltip = false; // 关闭弹窗
|
||||||
switch (item.action) {
|
switch (item.action) {
|
||||||
@ -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,7 +813,8 @@
|
|||||||
/* 根据导航栏高度调整 */
|
/* 根据导航栏高度调整 */
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
.tooltip-share{
|
|
||||||
|
.tooltip-share {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 18rpx;
|
right: 18rpx;
|
||||||
top: 230rpx;
|
top: 230rpx;
|
||||||
|
Reference in New Issue
Block a user