提交210历史记录

This commit is contained in:
fengerli
2025-12-03 16:45:52 +08:00
parent 07bd22e848
commit 0f49f2fb19

View File

@ -8,7 +8,7 @@
<custom-navbar :title="navTitle" :showBack="true" color="#FFFFFF" :rightIcons="[ <custom-navbar :title="navTitle" :showBack="true" color="#FFFFFF" :rightIcons="[
{src: '/static/images/210/ls.png'}, {src: '/static/images/210/ls.png'},
...(isRightIconVisible ? [{src: '/static/images/common/shape.png'}] : []) ...(isRightIconVisible ? [{src: '/static/images/common/shape.png'}] : [])
]" @right-click="shareUp" @icon-click="handleIconClick"></custom-navbar> ]" @icon-click="handleIconClick"></custom-navbar>
<view class="device-detail-container" :style="{ paddingTop: navBarHeight + 'px' }"> <view class="device-detail-container" :style="{ paddingTop: navBarHeight + 'px' }">
<!-- 设备电量信息 --> <!-- 设备电量信息 -->
@ -596,40 +596,37 @@
this.lightModeA = false; this.lightModeA = false;
// console.log("保存的时间:", time); // console.log("保存的时间:", time);
}, },
handleIconClick(index) { handleIconClick(s,e) {
// 历史记录 if (s === 0) {
if (index === 0) { console.log("消息");
uni.navigateTo({ uni.navigateTo({
url: '/pages/210/historyRecords/index', url: '/pages/670/History',
events: {
ack: function(data) {}
},
success: (res) => { success: (res) => {
res.eventChannel.emit('share', { res.eventChannel.emit('detailData', {
data: this.itemInfo, data: these.device,
}); });
} }
}) })
} else { return;
} else if (s === 1) {
console.log("分享");
uni.navigateTo({ uni.navigateTo({
url: '/pages/6170/share/index', url: '/pages/common/share/index',
events: { events: {
ack: function(data) {} ack: function(data) {}
}, },
success: (res) => { success: (res) => {
let json = {
persissonType: '210'
};
Object.assign(json, this.device);
res.eventChannel.emit('share', { res.eventChannel.emit('share', {
data: this.itemInfo, data: json
}); });
} }
}) })
} }
}, },
// 分享
shareUp() {
},
// 操作说明 // 操作说明
operatingInst() { operatingInst() {
uni.navigateTo({ uni.navigateTo({
@ -1286,6 +1283,7 @@
align-items: center; align-items: center;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.uploadIMG { .uploadIMG {
width: 68rpx; width: 68rpx;
height: 68rpx; height: 68rpx;