Browse Source

Merge branch 'dev'

feat-230721
刘嘉炜 3 years ago
parent
commit
14cf8e3085
  1. 2
      src/pages.json
  2. 1
      src/pages/index/index.vue
  3. 3
      src/subpackage/device/js/device_api.js
  4. 3
      src/subpackage/device/pages/switch_manage/switch_manage.vue

2
src/pages.json

@ -100,7 +100,7 @@
{
"path": "pages/turnover/turnover",
"style": {
"navigationBarTitleText": "营业额"
"navigationBarTitleText": "收入统计"
}
},
{

1
src/pages/index/index.vue

@ -1,6 +1,5 @@
<template>
<view class="index-container">
<view class="ic-content">
<view class="ic-header">
<view class="ih-address" v-if="loginStatus" @click="toStoreList">

3
src/subpackage/device/js/device_api.js

@ -23,7 +23,8 @@ export const DEVICE_API = {
hardwareInfo:`${ORIGIN}/admin/stadium/hardware/get/`, // 设备信息
hardwareList:`${ORIGIN}/admin/stadium/hardware/list`, // 设备列表
ouxuanac:`${ORIGIN}/ouxuanac/sendPacket`, // 中控控制
// ouxuanac:`${ORIGIN}/ouxuanac/sendPacket`, // 中控控制
ouxuanac:`${ORIGIN}/stadiumOuxuanac/sendPacket`, // 中控控制 20220511 解决那个门禁的东东
// ouxuanac--> http://api.ouxuan.net/project/233/interface/api/10012 接口文档
// ouxuanac--> http://git.ouxuan.net/ouxuanac/ouxuanac-common/src/branch/master/cmd.ts // 接口参数结构 || ouxuanac.md

3
src/subpackage/device/pages/switch_manage/switch_manage.vue

@ -217,6 +217,7 @@ export default {
let _data = {
device: curStoreInfo.device_name, // ,
data: _query, // src\subpackage\device\js\ouxuanac.md
hardware_id: switchInfo.id + '', // 20220512
};
//2021-12-17 set-rpio set-rpio-lock () set-rpio-lock
@ -229,7 +230,7 @@ export default {
// 20220507 GateControl hardware_mac_addr device_name hardware_mac_addr
// "hardware_id":id
if(switchInfo.hardware_type === 'GateControl'&&!!switchInfo.hardware_mac_addr)_data['device'] = switchInfo.hardware_mac_addr;
if(switchInfo.hardware_type === 'GateControl')_data['hardware_id'] = switchInfo.id;
// if(switchInfo.hardware_type === 'GateControl')_data['hardware_id'] = switchInfo.id;
return _data;
},

Loading…
Cancel
Save