@@ -29,8 +29,8 @@ | |||||
upDateBulidIngObj() { | upDateBulidIngObj() { | ||||
this.bulidIngObj = uni.getStorageSync('buildingID') | this.bulidIngObj = uni.getStorageSync('buildingID') | ||||
}, | }, | ||||
addLookingCount() { | |||||
this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id }) | |||||
addLookingCount(id) { | |||||
this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id, recordId: id }) | |||||
}, | }, | ||||
// 时分秒转换为秒 | // 时分秒转换为秒 | ||||
@@ -1,5 +1,5 @@ | |||||
const ENV_PATH = { | const ENV_PATH = { | ||||
baseUrl: 'http://192.168.31.244:8080/autoSR/api', // 长龙 | |||||
baseUrl: 'http://192.168.31.160:8080/autoSR/api', // 长龙 | |||||
} | } | ||||
module.exports = ENV_PATH | |||||
module.exports = ENV_PATH |
@@ -469,12 +469,12 @@ | |||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
this.addLookingCount() | |||||
uni.$on('Receivedetailabouts', info => { | uni.$on('Receivedetailabouts', info => { | ||||
console.log('我监听收到了', info) | console.log('我监听收到了', info) | ||||
this.init(info, 'seek') | this.init(info, 'seek') | ||||
}) | }) | ||||
this.customerId = options.customerId; | this.customerId = options.customerId; | ||||
this.addLookingCount(options.customerId) | |||||
this.$zaudio.autoPlay = true | this.$zaudio.autoPlay = true | ||||
if (options.info && options.info.length > 0) { | if (options.info && options.info.length > 0) { | ||||
@@ -280,9 +280,9 @@ | |||||
} | } | ||||
}, | }, | ||||
onLoad(option) { | onLoad(option) { | ||||
this.addLookingCount() | |||||
this.status = option.status; | this.status = option.status; | ||||
this.customerId = option.customerId; | this.customerId = option.customerId; | ||||
this.addLookingCount(option.customerId) | |||||
this.stateisshow = option.stateisshow; | this.stateisshow = option.stateisshow; | ||||
this.itemobj = uni.getStorageSync('searchobj'); | this.itemobj = uni.getStorageSync('searchobj'); | ||||
if (option.isMerge) this.isMerge = option.isMerge | if (option.isMerge) this.isMerge = option.isMerge | ||||
@@ -275,12 +275,13 @@ | |||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
this.addLookingCount() | |||||
let menu = uni.getStorageSync('weapp_session_Menu_data'); | let menu = uni.getStorageSync('weapp_session_Menu_data'); | ||||
this.eqLog = menu.findIndex(item=>item.name=='设备日志'); | this.eqLog = menu.findIndex(item=>item.name=='设备日志'); | ||||
this.status = options.status; | this.status = options.status; | ||||
this.customerId = options.customerId; | this.customerId = options.customerId; | ||||
this.addLookingCount(options.customerId) | |||||
this.itemobj = uni.getStorageSync('searchobj'); | this.itemobj = uni.getStorageSync('searchobj'); | ||||
this.stateisshow = options.stateisshow; | this.stateisshow = options.stateisshow; | ||||
@@ -782,13 +782,13 @@ | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
this.addLookingCount() | |||||
this.LOADING = true | this.LOADING = true | ||||
let menu = uni.getStorageSync('weapp_session_Menu_data'); | let menu = uni.getStorageSync('weapp_session_Menu_data'); | ||||
this.eqLog = menu.findIndex(item => item.name == '设备日志'); | this.eqLog = menu.findIndex(item => item.name == '设备日志'); | ||||
this.status = options.status; | this.status = options.status; | ||||
this.customerId = options.customerId; | this.customerId = options.customerId; | ||||
this.visitParams.id = options.customerId; | this.visitParams.id = options.customerId; | ||||
this.addLookingCount(options.customerId) | |||||
this.KeyWordsfraction = options.wordFraction == 'undefined' ? 0 : options.wordFraction; | this.KeyWordsfraction = options.wordFraction == 'undefined' ? 0 : options.wordFraction; | ||||
this.itemobj = uni.getStorageSync('searchobj'); | this.itemobj = uni.getStorageSync('searchobj'); | ||||
this.stateisshow = options.stateisshow; | this.stateisshow = options.stateisshow; | ||||