Commit fdb7d462 by 朱建香

2018/01/03 18:12

1.将config中的model配置到defaultConfig里,并修改配网和门锁管理页面
parent bf30f9be
export default {
"url": "https://cloud.iot.u-gen.net/test-openapi/"
"url": "https://cloud.iot.u-gen.net/test-openapi/",
"model": "UGEN_SECURITY_SMARTDOOR_YJ2017"
}
\ No newline at end of file
......@@ -8,6 +8,7 @@
*/
import config from '../../public/config.js';
import defaultConfig from './defaultConfig.js';
import {iot, uPublic, uComponents} from '../../public/public.js';
iot.ready(init);
......@@ -157,7 +158,7 @@ function connectButtonTap(self){
uComponents.showCommLoading(self);
iot.business.sds.findWifi({
data: {
model: config.model,
model: defaultConfig.model,
ssid: self.getTextWiFiName(),
wifiPwd: self.getTextPassword(),
timeout: 20000
......@@ -215,7 +216,7 @@ function connectButtonTap(self){
if (window.iotDebug) {
iotDebug.upload(iot,'找设备');
}
let productId = config.model;
let productId = defaultConfig.model;
if(response.data == "onJoining"){
if(window.iotDebug){
iotDebug.push('end: 激活中'+JSON.stringify(response));
......
......@@ -8,6 +8,7 @@
*/
import config from '../../public/config.js';
import defaultConfig from './defaultConfig.js';
import {iot, uPublic, uComponents} from '../../public/public.js';
import {projectMethods} from '../../public/components.js';
......@@ -199,7 +200,7 @@ function initComponentsConfig() {
function getDoorlockInfo(self){
uComponents.showLoading(self);
let productId = config.model;
let productId = defaultConfig.model;
iot.business.device.getInfo({
data: {
device_id: self.extras.lockInfo.lock_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment