Commit 6e46873f by 朱建香

1207删除web里的js

parent ae658cb9
dev/node_modules dev/node_modules
web/lib/js/p.js
web/lib/js/p.js.map web/lib/js/p.js.map
web/lib/dist web/lib/dist
web/view/*.map web/view/*.map
web/view/*.js
web/view/*/*.map web/view/*/*.map
web/view/*/*.js
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([27],{
/***/ 196:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_deviceList.js
* Version: 0.1
* User: wy
* Date: 2017-11-03
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 产品型号页面
*/
function init() {
//通用 list、dialog、loading组件
_public.uPublic.componentsInit(['u-list', 'u-dialog', 'u-loading']);
var app = new Vue({
data: {
//配置组件
componentsConfig: initComponentsConfig(),
deviceList: null
},
mounted: function mounted() {
getDeviceList(this);
},
methods: {
getDeviceList: function getDeviceList() {
return this.deviceList;
},
setDeviceList: function setDeviceList(list) {
this.deviceList = list;
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
onDeviceListRowTap: function onDeviceListRowTap(value) {
deviceListRowTap(this, value);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
var model = Vue.t('deviceList.model');
return {
deviceList: {
initParam: {
class: 'custom-device-list',
list: [],
tip: ''
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
function getDeviceList(self) {
_public.iot.business.sds.getProductList({
success: function success(response) {
console.log(response);
var list = [];
var data = response.data;
self.setDeviceList(data);
for (var i = 0; i < data.length; i++) {
list[i] = {
leftImage: data[i].icon,
title: data[i].deviceName,
subtitle: Vue.t('deviceList.model') + data[i].model,
rightIcon: '&#xe6a7;'
};
}
_public.uComponents.changeList(self, list);
},
error: function error(_error) {
if (window.iotDebug) {
iotDebug.push('end: 获取设备列表失败' + JSON.stringify(_error));
}
if (window.iotDebug) {
iotDebug.upload(_public.iot, '获取设备列表失败');
}
}
});
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
function deviceListRowTap(self, value) {
console.log(self.getDeviceList()[value].model);
_public.iot.navigator.openWindow({
url: './wifiAddHelp.html',
id: 'wifiAddHelp',
extras: {
model: self.getDeviceList()[value].model
}
});
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 297:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(196);
/***/ })
},[297]);
//# sourceMappingURL=deviceList.js.map
\ No newline at end of file
webpackJsonp([26],{
/***/ 197:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_index.js
* Version: 0.1
* User: wy
* Date: 2017-09-07
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 添加设备页面
*/
function init() {
//通用 dialog、loading组件
_public.uPublic.componentsInit(['u-dialog', 'u-loading']);
var app = new Vue({
data: {
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {},
methods: {
//tap <
onBackTap: function onBackTap() {
backTap();
},
//tap 扫描绑定设备
onScanAddTap: function onScanAddTap() {
scanAddTap();
},
//tap 配置Wi-Fi
onWifiAddTap: function onWifiAddTap() {
wifiAddTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
//tap 扫描绑定设备
function scanAddTap() {
_public.iot.navigator.openWindow({
url: './scanCodeAdd.html',
id: 'scanCodeAdd'
});
}
//tap 配置Wi-Fi
function wifiAddTap() {
_public.iot.navigator.openWindow({
url: './wifiAddHelp.html',
id: 'wifiAddHelp'
});
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 298:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(197);
/***/ })
},[298]);
//# sourceMappingURL=index.js.map
\ No newline at end of file
webpackJsonp([25],{
/***/ 198:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_scanCodeAdd.js
* Version: 0.1
* User: wy
* Date: 2017-09-07
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 扫描绑定设备页面
*/
function init() {
//通用 dialog、loading组件
_public.uPublic.componentsInit(['u-dialog', 'u-loading']);
var app = new Vue({
data: {
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {
var self = this;
if (plus.os.name == 'Android') {
_public.iot.permission.checkPermission(['CAMERA'], function (res) {
console.log('success', res);
openScanCode(self);
}, function (err) {
console.log('error', err);
});
} else {
openScanCode(self);
}
},
methods: {
//tap <
onBackTap: function onBackTap() {
backTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
function openScanCode(self) {
_public.iot.utils.scanBarcode({
data: {
id: 'bcid',
styles: {
frameColor: '#00ffff',
scanbarColor: '#00ffff',
background: '#242b35'
}
},
success: function success(response) {
console.log(response);
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
//扫描成功
var result = JSON.parse(data.result);
var qrKey = result.qrKey;
var lockId = result.lockId;
var relId = result.relId;
//绑定设备
_public.iot.business.sds.scanqr({
data: {
qrKey: qrKey
},
success: function success(response) {
console.log(response);
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
//云端绑定
deviceBind(self, lockId, relId);
} else {}
},
error: function error(_error) {
//绑定失败
console.log(_error);
// if(window.iotDebug){
// iotDebug.push('end: 绑定失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'绑定失败');
// }
_public.uComponents.openAlert(self, Vue.t('addDevice.bindFailure'), {
text: Vue.t('dialog.confirm'), callback: function callback() {}
});
}
});
} else {}
},
error: function error(_error2) {
//请求失败
console.log(_error2);
// if(window.iotDebug){
// iotDebug.push('end: 扫描失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'扫描失败');
// }
_public.uPublic.openRequestErrorAlert(self);
}
});
}
function deviceBind(self, lockId, relId) {
_public.iot.business.api.sendCustom('lock/bindUser', {
data: {
device_id: lockId,
rel_id: relId,
// mac: parameters.mac,
nickname: ''
},
success: function success(response) {
console.log(response);
var data = response.data;
if (data.success) {
_public.uComponents.openAlert(self, Vue.t('addDevice.bindSuccess'), {
text: Vue.t('dialog.confirm'), callback: function callback() {
_public.iot.navigator.openWindow({
url: '../device/index.html',
id: 'device'
});
}
});
}
},
error: function error(_error3) {
console.log(_error3);
// if(window.iotDebug){
// iotDebug.push('end: 云端绑定失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'云端绑定失败');
// }
_public.uComponents.openAlert(self, Vue.t('addDevice.bindFailure'), {
text: Vue.t('dialog.confirm'), callback: function callback() {}
});
},
complete: function complete() {}
});
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 299:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(198);
/***/ })
},[299]);
//# sourceMappingURL=scanCodeAdd.js.map
\ No newline at end of file
webpackJsonp([23],{
/***/ 200:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_wifiAddHelp.js
* Version: 0.1
* User: wy
* Date: 2017-09-07
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 配置Wi-Fi页面
*/
function init() {
//通用 按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-button', 'u-dialog', 'u-loading']);
var app = new Vue({
data: {
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {
window.addEventListener('returnPage', function (event) {
console.log("stopFindDevice");
_public.iot.business.sds.stopFindDevices({
success: function success(response) {
console.log(response);
},
error: function error(_error) {
console.log(_error);
}
});
});
},
methods: {
//tap <
onBackTap: function onBackTap() {
backTap();
},
//tap 开始配置Wi-Fi
onWifiAddButtonTap: function onWifiAddButtonTap() {
wifiAddButtonTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
//开始配置Wi-Fi button 参数
wifiAddButton: {
initParam: {
class: 'custom-help-button',
text: Vue.t('btn.wifiAdd')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
//tap 开始配置Wi-Fi
function wifiAddButtonTap() {
_public.iot.navigator.openWindow({
url: './wifiAdd.html',
id: 'wifiAdd'
});
console.log("in");
// iot.business.sds.wifiDeviceConfig({
// success: function (response) {
// console.log('wifiDeviceConfig success');
// console.log(response);
// },
// error: function (error) {
// console.log('wifiDeviceConfig error');
// console.log(error);
// }
// });
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 301:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(200);
/***/ })
},[301]);
//# sourceMappingURL=wifiAddHelp.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([22],{
/***/ 207:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _config = __webpack_require__(9);
var _config2 = _interopRequireDefault(_config);
var _public = __webpack_require__(4);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* v_editName.js
* Version: 0.1
* User: wy
* Date: 2017-09-06
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 修改名称页面
*/
_public.iot.ready(init);
function init() {
//通用 input、按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']);
_public.uPublic.closeSlideBack();
var app = new Vue({
data: {
textName: _public.iot.navigator.getExtras().nickname,
textErrorTip: null,
//配置组件
componentsConfig: initComponentsConfig(),
extras: {}
},
mounted: function mounted() {
this.extras = _public.iot.navigator.getExtras();
console.log(this.extras);
},
methods: {
getTextName: function getTextName() {
return this.textName;
},
setTextName: function setTextName(text) {
this.textName = text;
},
setTextErrorTip: function setTextErrorTip(text) {
this.textErrorTip = text;
},
onNameChange: function onNameChange(text) {
nameChange(this, text);
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
//tap 保存
onSaveTap: function onSaveTap() {
saveTap(this);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
nameInput: {
initParam: {
class: 'custom-editName-text',
placeholder: Vue.t('editName.nameInputTip'),
maxlength: _config2.default.input.maxlength
}
},
//保存 button 参数
saveButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.save')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
function alert() {
alert('aaa');
}
function nameChange(self, text) {
self.setTextName(text);
self.setTextErrorTip('');
console.log('nameChange: ' + self.textName);
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
//tap 保存
function saveTap(self) {
if (self.getTextName() == null || self.getTextName().trim() == '') {
self.setTextErrorTip(Vue.t('editName.error.nameCanNotBeBlank'));
} else {
_public.uComponents.showLoading(self);
_public.iot.business.device.setName({
data: {
device_id: self.extras.lockId,
device_name: self.getTextName()
},
success: function success(response) {
console.log(response);
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
_public.uComponents.openAlert(self, Vue.t('editName.editNameSuccess'), {
text: Vue.t('btn.confirm'), callback: function callback() {
_public.iot.navigator.fire(plus.webview.currentWebview().opener(), 'returnPage', {});
console.log('returnPage');
_public.iot.navigator.back();
}
});
}
},
error: function error(_error) {
console.log(_error);
// if(window.iotDebug){
// iotDebug.push('end: 修改设备名称失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'修改设备名称失败');
// }
_public.uComponents.openAlert(self, Vue.t('editName.editNameFailue'), {
text: Vue.t('btn.confirm'), callback: function callback() {
var opener = plus.webview.currentWebview().opener();
_public.iot.navigator.back();
}
});
},
complete: function complete() {
_public.uComponents.hideLoading(self);
}
});
}
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 308:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(207);
/***/ })
},[308]);
//# sourceMappingURL=editName.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([21],{
/***/ 211:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _config = __webpack_require__(9);
var _config2 = _interopRequireDefault(_config);
var _public = __webpack_require__(4);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* v_addUser.js
* Version: 0.1
* User: wy
* Date: 2017-10-09
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 添加用户页面
*/
_public.iot.ready(init);
function init() {
//通用 input、按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']);
_public.uPublic.closeSlideBack();
var app = new Vue({
data: {
textName: null,
textErrorTip: null,
//配置组件
componentsConfig: initComponentsConfig(),
extras: {}
},
mounted: function mounted() {
this.extras = _public.iot.navigator.getExtras();
console.log(this.extras);
},
methods: {
getTextName: function getTextName() {
return this.textName;
},
setTextName: function setTextName(text) {
this.textName = text;
},
getTextErrorTip: function getTextErrorTip() {
return this.textErrorTip;
},
setTextErrorTip: function setTextErrorTip(tip) {
this.textErrorTip = tip;
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
onNameChange: function onNameChange(text) {
nameChange(this, text);
},
//tap 确定
onConfirmButtonTap: function onConfirmButtonTap() {
confirmButtonTap(this);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
nameInput: {
initParam: {
class: 'custom-text',
icon: '&#xe6b0;',
placeholder: Vue.t('addUser.nameInputTip'),
maxlength: _config2.default.input.maxlength
}
},
//确定 button 参数
confirmButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.confirm')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
function nameChange(self, text) {
self.textName = text;
self.setTextErrorTip(null);
console.log('nameChange: ' + self.textName);
}
//tap 确定
function confirmButtonTap(self) {
if (self.getTextName() == null || self.getTextName().trim() == '') {
self.setTextErrorTip(Vue.t('addUser.error.nameCanNotEmpty'));
} else {
_public.uComponents.showLoading(self);
_public.iot.business.api.sendCustom('lock/addLockUser', {
data: {
device_id: self.extras.deviceId,
nickname: self.getTextName()
},
success: function success(response) {
console.log(response);
if (response.data.id) {
_public.uComponents.openAlert(self, Vue.t('addUser.addUserSuccess'), {
text: Vue.t('btn.confirm'), callback: function callback() {
console.log("添加用户成功");
//跳转到门锁用户界面
_public.iot.navigator.openWindow({
url: './doorlockUser.html',
id: 'doorlockUser',
extras: {
id: response.data.id,
lockId: self.extras.lockId,
uuid: self.extras.uuid,
role: self.extras.role
}
});
}
});
}
},
error: function error(_error) {
console.log(_error);
// if(window.iotDebug){
// iotDebug.push('end: 添加用户成功'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'添加用户失败');
// }
_public.uComponents.openAlert(self, Vue.t('addUser.addUserFailure'), {
text: Vue.t('btn.confirm'), callback: function callback() {
console.log("添加用户失败");
}
});
},
complete: function complete() {
_public.uComponents.hideLoading(self);
}
});
}
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 312:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(211);
/***/ })
},[312]);
//# sourceMappingURL=addUser.js.map
\ No newline at end of file
webpackJsonp([20],{
/***/ 213:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _config = __webpack_require__(9);
var _config2 = _interopRequireDefault(_config);
var _public = __webpack_require__(4);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* v_editName.js
* Version: 0.1
* User: wy
* Date: 2017-10-09
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 修改名称页面
*/
_public.iot.ready(init);
function init() {
//通用 input、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-dialog', 'u-loading']);
_public.uPublic.closeSlideBack();
var app = new Vue({
data: {
textName: _public.iot.navigator.getExtras().nickname,
textErrorTip: null,
//配置组件
componentsConfig: initComponentsConfig(),
extras: {},
role: null
},
mounted: function mounted() {
this.extras = _public.iot.navigator.getExtras();
this.role = this.extras.role;
},
methods: {
getTextName: function getTextName() {
return this.textName;
},
setTextName: function setTextName(text) {
this.textName = text;
},
getTextErrorTip: function getTextErrorTip() {
return this.textErrorTip;
},
setTextErrorTip: function setTextErrorTip(tip) {
this.textErrorTip = tip;
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
//tap 保存
onSaveTap: function onSaveTap() {
saveTap(this);
},
onNameChange: function onNameChange(text) {
nameChange(this, text);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
nameInput: {
initParam: {
class: 'custom-editName-text',
placeholder: Vue.t('editName.nickNameInputTip'),
maxlength: _config2.default.input.maxlength
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
_public.iot.navigator.aback = function () {
_public.iot.navigator.fire(plus.webview.currentWebview().opener(), 'returnPage', {});
_public.iot.navigator.back();
};
//tap <
function backTap() {
_public.iot.navigator.aback();
}
//tap 保存
function saveTap(self) {
if (self.getTextName() == null || self.getTextName().trim() == '') {
self.setTextErrorTip(Vue.t('editName.error.nicknameCanNotBeBlank'));
} else {
_public.uComponents.showLoading(self);
_public.iot.business.api.sendCustom('lock/setLockUserName', {
data: {
rel_id: self.extras.id,
nickname: self.getTextName(),
device_id: self.extras.deviceId
},
success: function success(response) {
console.log(response);
if (response.data.success) {
_public.uComponents.openAlert(self, Vue.t('editName.editNameSuccess'), {
text: Vue.t('btn.confirm'), callback: function callback() {
var opener = plus.webview.currentWebview().opener();
var view = plus.webview.getWebviewById(opener.id);
console.log(view);
_public.iot.navigator.aback();
}
});
}
// let data = uPublic.checkResponseData(response.data);
// if(data){
// uComponents.openAlert(self, Vue.t('editName.nicknameCanNotBeBlank'), {
// text: Vue.t('btn.confirm'), callback: function () {
// let opener = plus.webview.currentWebview().opener();
// let view = plus.webview.getWebviewById(opener.id);
// console.log(view);
// iot.navigator.fire(plus.webview.currentWebview().opener(),'returnPage',{});
// console.log('returnPage');
// iot.navigator.back();
// }
// });
// }
},
error: function error(_error) {
console.log(_error);
// if(window.iotDebug){
// iotDebug.push('end: 修改用户名称失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'修改用户名称失败');
// }
_public.uComponents.openAlert(self, Vue.t('editName.editNameFailue'), {
text: Vue.t('btn.confirm'), callback: function callback() {
var opener = plus.webview.currentWebview().opener();
_public.iot.navigator.back();
}
});
},
complete: function complete() {
_public.uComponents.hideLoading(self);
}
});
}
}
function nameChange(self, text) {
self.textName = text;
self.setTextErrorTip(null);
console.log('nameChange: ' + self.textName);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 314:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(213);
/***/ })
},[314]);
//# sourceMappingURL=editName.js.map
\ No newline at end of file
webpackJsonp([18],{
/***/ 217:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_forgetPassword.js
* Version: 0.1
* User: wy
* Date: 2017-09-06
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 忘记密码页面
*/
function init() {
//通用 input、按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']);
var app = new Vue({
data: {
numberTel: null,
textCode: null,
codeDisabledFlag: false,
textPassword: null,
textErrorTip: null,
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {},
methods: {
getCodeDisabledFlag: function getCodeDisabledFlag() {
return this.codeDisabledFlag;
},
setCodeDisabledFlag: function setCodeDisabledFlag(boolean) {
this.codeDisabledFlag = boolean;
},
onTelChange: function onTelChange(number) {
telChange(this, number);
},
onCodeChange: function onCodeChange(text) {
codeChange(this, text);
},
onPasswordChange: function onPasswordChange(text) {
passwordChange(this, text);
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
//tap 获取验证码
onCodeButtonTap: function onCodeButtonTap() {
codeButtonTap(this);
},
//tap 确定
onConfirmButtonTap: function onConfirmButtonTap() {
confirmButtonTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
telInput: {
initParam: {
class: 'custom-text',
icon: '&#xe6e8;',
placeholder: Vue.t('forgetPassword.telInputTip'),
maxlength: 11,
minlength: 11
}
},
codeInput: {
initParam: {
class: 'custom-code-text',
icon: '&#xe805;',
placeholder: Vue.t('forgetPassword.codeInputTip')
}
},
//获取验证码 button 参数
codeButton: {
initParam: {
class: 'custom-code-button',
text: Vue.t('btn.getCode')
}
},
passwordInput: {
initParam: {
class: 'custom-password-text',
icon: '&#xe64d;',
placeholder: Vue.t('forgetPassword.passwordInputTip'),
type: 'password',
maxlength: 6,
minlength: 6
}
},
//确定 button 参数
confirmButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.confirm')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
function telChange(self, number) {
self.numberTel = number;
console.log('telChange: ' + self.numberTel);
}
function codeChange(self, text) {
self.textCode = text;
console.log('codeChange: ' + self.textCode);
}
//tap 获取验证码
function codeButtonTap(self) {
self.setCodeDisabledFlag(true);
}
function passwordChange(self, text) {
self.textPassword = text;
console.log('passwordChange: ' + self.textPassword);
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
//tap 确定
function confirmButtonTap() {
_public.iot.navigator.back();
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 318:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(217);
/***/ })
},[318]);
//# sourceMappingURL=forgetPassword.js.map
\ No newline at end of file
webpackJsonp([17],{
/***/ 218:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_index.js
* Version: 0.1
* User: wy
* Date: 2017-09-06
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 引导页面
*/
function init() {
//通用 dialog、loading组件
_public.uPublic.componentsInit(['u-dialog', 'u-loading', 'u-button']);
_public.uPublic.closeSlideBack();
var app = new Vue({
data: {
//配置组件
componentsConfig: initComponentsConfig(),
clientId: null,
showLoginButtonFlag: true
},
mounted: function mounted() {
if (window.iotDebug) {
iotDebug.push('start: Debug');
}
var clientInfo = plus.push.getClientInfo();
this.setClientId(clientInfo.clientid);
var self = this;
if (plus.os.name == 'Android') {
_public.iot.permission.checkPermission(['READ_EXTERNAL_STORAGE'], function (res) {
console.log('success', res);
loginButtonTap(self);
}, function (err) {
console.log('error', err);
});
} else {
loginButtonTap(self);
}
},
methods: {
getShowLoginButtonFlag: function getShowLoginButtonFlag() {
return this.showLoginButtonFlag;
},
setShowLoginButtonFlag: function setShowLoginButtonFlag(flag) {
this.showLoginButtonFlag = flag;
},
onLoginButtonTap: function onLoginButtonTap() {
_public.uComponents.showLoading(this);
loginButtonTap(this);
},
getClientId: function getClientId() {
return this.clientId;
},
setClientId: function setClientId(id) {
this.clientId = id;
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
//登录 button 参数
loginButton: {
initParam: {
class: 'custom-guide-button',
text: Vue.t('btn.guideLogin')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
function loginButtonTap(self) {
// if(window.iotDebug){
// iotDebug.push('start: initSDSLogin');
// }
// window.SDSPlugin.login({},(res)=>{
// console.log(res);
// var data = uPublic.checkResponseData(res.data);
// if(data){
// cloudsLogin(self, data.UserID);
// }
// },(err)=>{
// console.log(err);
// })
_public.iot.business.sds.login({
data: {
userinfo: {}
},
success: function success(response) {
// alert(JSON.stringify(response));
console.log(response);
if (window.iotDebug) {
iotDebug.push('end: SDSloginSuccees');
}
// alert(JSON.stringify(response));
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
self.setShowLoginButtonFlag(false);
if (data.hasOwnProperty('UserID')) {
console.log("sds登陆成功了");
cloudsLogin(self, data.UserID);
}
} else {}
},
error: function error(_error) {
console.log(_error);
// alert(JSON.stringify(error));
if (window.iotDebug) {
iotDebug.push('end: sds登陆失败' + JSON.stringify(_error));
}
if (window.iotDebug) {
iotDebug.upload(_public.iot, 'sds登陆失败');
}
},
complete: function complete() {
_public.uComponents.hideLoading(self);
}
});
}
function cloudsLogin(self, id) {
_public.uComponents.showLoading(self);
if (window.iotDebug) {
iotDebug.push('start: cloudsLogin');
}
_public.iot.business.api.send('user/sds_login', {
// iot.business.user.simpleLogin({
data: {
username: id,
clienId: self.getClientId()
},
success: function success(response) {
if (window.iotDebug) {
iotDebug.push('end: cloudsLogin');
}
if (window.iotDebug) {
iotDebug.upload(_public.iot, '登陆流程时间');
}
var data = _public.uPublic.checkResponseData(response.data);
var infoArray = [];
if (data) {
infoArray.push(['utoken', data.utoken]);
infoArray.push(['userinfo', data]);
_public.iot.business.websql.setMaps(infoArray, function () {
_public.iot.navigator.openWindow({
url: '../device/index.html',
id: 'device'
});
}, function (error) {
console.log(error);
});
plus.navigator.closeSplashscreen();
}
},
error: function error(_error2) {
console.log(_error2);
if (window.iotDebug) {
iotDebug.push('end: 云端登陆失败' + JSON.stringify(_error2));
}
if (window.iotDebug) {
iotDebug.upload(_public.iot, '云端登陆失败');
}
_public.uPublic.openRequestErrorAlert(self);
},
complete: function complete() {
// uComponents.hideLoading(self);
}
}, false);
// });
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 319:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(218);
/***/ })
},[319]);
//# sourceMappingURL=index.js.map
\ No newline at end of file
webpackJsonp([16],{
/***/ 219:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_login.js
* Version: 0.1
* User: wy
* Date: 2017-09-06
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 登录页面
*/
function init() {
//通用 input、按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']);
var app = new Vue({
data: {
numberTel: null,
textPassword: null,
textErrorTip: null,
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {
_public.iot.business.sds.init({
data: {
oa: true
},
success: function success(response) {
console.log(response);
_public.iot.business.user.login({
data: {
sds: true
},
success: function success(response) {
console.log(response);
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
_public.iot.business.user.login({
data: {
username: data.UserId,
pwd: data.UserId
},
success: function success(response) {
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
_public.iot.navigator.openWindow({
url: '../device/index.html',
id: 'device'
});
} else {}
},
error: function error(_error) {},
complete: function complete() {}
});
} else {}
},
error: function error(_error2) {
console.log(_error2);
},
complete: function complete() {}
});
},
error: function error(_error3) {
console.log(_error3);
}
});
},
methods: {
onTelChange: function onTelChange(number) {
telChange(this, number);
},
onPasswordChange: function onPasswordChange(text) {
passwordChange(this, text);
},
//tap 登录
onLoginButtonTap: function onLoginButtonTap() {
loginButtonTap();
},
//tap 快速注册
onRegisterTap: function onRegisterTap() {
registerTap();
},
//tap 忘记密码
onForgetPasswordTap: function onForgetPasswordTap() {
forgetPasswordTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
telInput: {
initParam: {
class: 'custom-text',
icon: '&#xe6e8;',
placeholder: Vue.t('login.telInputTip'),
maxlength: 11,
minlength: 11
}
},
passwordInput: {
initParam: {
class: 'custom-password-text',
icon: '&#xe64d;',
placeholder: Vue.t('login.passwordInputTip'),
type: 'password'
}
},
//登录 button 参数
loginButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.login')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
function telChange(self, number) {
self.numberTel = number;
console.log('telChange: ' + self.numberTel);
}
function passwordChange(self, text) {
self.textPassword = text;
console.log('passwordChange: ' + self.textPassword);
}
//tap 登录
function loginButtonTap() {
_public.iot.navigator.openWindow({
url: '../device/index.html',
id: 'device'
});
}
//tap 快速注册
function registerTap() {}
// iot.navigator.openWindow({
// url: './register.html',
// id: 'register'
// });
//tap 忘记密码
function forgetPasswordTap() {
_public.iot.navigator.openWindow({
url: './forgetPassword.html',
id: 'forgetPassword'
});
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 320:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(219);
/***/ })
},[320]);
//# sourceMappingURL=login.js.map
\ No newline at end of file
webpackJsonp([15],{
/***/ 220:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_register.js
* Version: 0.1
* User: wy
* Date: 2017-09-06
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 注册页面
*/
function init() {
//通用 input、按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']);
var app = new Vue({
data: {
numberTel: null,
textCode: null,
codeDisabledFlag: false,
textPassword: null,
textErrorTip: null,
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {},
methods: {
getCodeDisabledFlag: function getCodeDisabledFlag() {
return this.codeDisabledFlag;
},
setCodeDisabledFlag: function setCodeDisabledFlag(boolean) {
this.codeDisabledFlag = boolean;
},
onTelChange: function onTelChange(number) {
telChange(this, number);
},
onCodeChange: function onCodeChange(text) {
codeChange(this, text);
},
onPasswordChange: function onPasswordChange(text) {
passwordChange(this, text);
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
//tap 获取验证码
onCodeButtonTap: function onCodeButtonTap() {
codeButtonTap(this);
},
//tap 注册
onRegisterButtonTap: function onRegisterButtonTap() {
registerButtonTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
telInput: {
initParam: {
class: 'custom-text',
icon: '&#xe6e8;',
placeholder: Vue.t('register.telInputTip'),
maxlength: 11,
minlength: 11
}
},
codeInput: {
initParam: {
class: 'custom-code-text',
icon: '&#xe805;',
placeholder: Vue.t('register.codeInputTip')
}
},
//获取验证码 button 参数
codeButton: {
initParam: {
class: 'custom-code-button',
text: Vue.t('btn.getCode')
}
},
passwordInput: {
initParam: {
class: 'custom-password-text',
icon: '&#xe64d;',
placeholder: Vue.t('register.passwordInputTip'),
type: 'password',
maxlength: 6,
minlength: 6
}
},
//注册 button 参数
registerButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.register')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
function telChange(self, number) {
self.numberTel = number;
console.log('telChange: ' + self.numberTel);
}
function codeChange(self, text) {
self.textCode = text;
console.log('codeChange: ' + self.textCode);
}
//tap 获取验证码
function codeButtonTap(self) {
self.setCodeDisabledFlag(true);
}
function passwordChange(self, text) {
self.textPassword = text;
console.log('passwordChange: ' + self.textPassword);
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
//tap 注册
function registerButtonTap() {
_public.iot.navigator.openWindow({
url: '../device/index.html',
id: 'device'
});
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 321:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(220);
/***/ })
},[321]);
//# sourceMappingURL=register.js.map
\ No newline at end of file
webpackJsonp([27],{
/***/ 238:
/***/ (function(module, exports) {
"use strict";
throw new Error("Module build failed: Error: ENOENT: no such file or directory, open 'D:\\git_zhu\\doorlock\\dev\\src\\view\\login\\v_unlockInfo.js'");
/***/ }),
/***/ 280:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(238);
/***/ })
},[280]);
//# sourceMappingURL=unlockInfo.js.map
\ No newline at end of file
webpackJsonp([14],{
/***/ 221:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _config = __webpack_require__(9);
var _config2 = _interopRequireDefault(_config);
var _public = __webpack_require__(4);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* v_editNickname.js
* Version: 0.1
* User: zjx
* Date: 2017-09-29
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 引导页面
*/
_public.iot.ready(init);
function init() {
//通用 dialog、loading组件
_public.uPublic.componentsInit(['u-dialog', 'u-loading', 'u-text']);
_public.uPublic.closeSlideBack();
var app = new Vue({
data: {
//配置组件
textNickName: _public.iot.navigator.getExtras().nickname,
textErrorTip: null,
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {},
methods: {
getTextNickName: function getTextNickName() {
return this.textNickName;
},
setTextNickName: function setTextNickName(text) {
this.textNickName = this;
},
onSaveTap: function onSaveTap() {
saveTap(this);
},
onBackTap: function onBackTap() {
backTap();
},
onNicknameChange: function onNicknameChange(text) {
nicknameChange(this, text);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
nameInput: {
initParam: {
class: 'custom-editNickname-text',
placeholder: Vue.t('editNickname.nickNameInputTip'),
maxlength: _config2.default.input.maxlength
}
},
//保存 button 参数
saveButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.save')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//保存昵称
function saveTap(self) {
if (self.textNickName == null || self.textNickName.trim() == '') {
self.textErrorTip = Vue.t('editNickname.nickNameInputTip');
} else {
_public.uComponents.showLoading(self);
_public.iot.business.user.setInfo({
data: {
nickname: self.textNickName,
head: ''
},
success: function success(response) {
if (response.data = 'success') {
_public.iot.navigator.aback();
}
},
error: function error(_error) {
console.log(_error);
// if(window.iotDebug){
// iotDebug.push('end: 保存用户昵称失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'保存用户昵称失败');
// }
_public.uPublic.openRequestErrorAlert(self);
},
complete: function complete() {
_public.uComponents.hideLoading(self);
}
});
}
}
_public.iot.navigator.aback = function () {
_public.iot.navigator.fire(plus.webview.currentWebview().opener(), 'returnPage', {});
_public.iot.navigator.back();
};
//返回上一页
function backTap() {
_public.iot.navigator.aback();
}
function nicknameChange(self, text) {
self.textNickName = text;
self.textErrorTip = '';
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 322:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(221);
/***/ })
},[322]);
//# sourceMappingURL=editNickname.js.map
\ No newline at end of file
webpackJsonp([13],{
/***/ 222:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_editPassword.js
* Version: 0.1
* User: zjx
* Date: 2017-09-29
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 引导页面
*/
function init() {
//通用 dialog、loading组件
_public.uPublic.componentsInit(['u-dialog', 'u-loading', 'u-text']);
var app = new Vue({
data: {
//配置组件
textNewPassword: null,
textOldPassword: null,
textOldPasswordAgain: null,
textErrorTip: '密码不能为空',
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {},
methods: {
onSaveTap: function onSaveTap() {
saveTap();
},
onBackTap: function onBackTap() {
backTap();
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
newPassword: {
initParam: {
class: 'custom-editPassword-text',
placeholder: Vue.t('editPassword.newPasswordInputTip')
}
},
oldPassword: {
initParam: {
class: 'custom-editPassword-text',
placeholder: Vue.t('editPassword.oldPasswordInputTip')
}
},
oldPasswordAgain: {
initParam: {
class: 'custom-editPassword-text',
placeholder: Vue.t('editPassword.oldPasswordInputTipAgain')
}
},
//保存 button 参数
saveButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.save')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//保存昵称
function saveTap() {}
//返回上一页
function backTap() {
_public.iot.navigator.back();
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 323:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(222);
/***/ })
},[323]);
//# sourceMappingURL=editPassword.js.map
\ No newline at end of file
webpackJsonp([12],{
/***/ 223:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(4);
_public.iot.ready(init); /**
* v_index.js
* Version: 0.1
* User: zjx
* Date: 2017-09-26
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 引导页面
*/
function init() {
//通用 dialog、loading组件
_public.uPublic.componentsInit(['u-button', 'u-dialog', 'u-loading']);
_public.uPublic.closeSlideBack();
var app = new Vue({
data: {
//配置组件
nickname: null,
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {
var self = this;
getInfo(this);
window.addEventListener('returnPage', function (event) {
console.log("in");
getInfo(self);
});
var wv = _public.iot.navigator.getCurrentWebView();
console.log(wv);
},
methods: {
//tap 修改昵称
onEditNicknameTap: function onEditNicknameTap() {
editNicknameTap(this);
},
//tap 修改密码
onEditPasswordTap: function onEditPasswordTap() {
editPasswordTap();
},
onBackTap: function onBackTap() {
backTap();
},
//tap 退出系统
onLogoutButtonTap: function onLogoutButtonTap() {
logoutButtonTap(this);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
logoutButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.logout')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//tap 修改昵称
function editNicknameTap(self) {
_public.iot.navigator.openWindow({
url: '../myInfo/editNickname.html',
id: 'editNickname',
extras: {
nickname: self.nickname
}
});
}
//tap 修改密码
function editPasswordTap() {
_public.iot.navigator.openWindow({
url: '../myInfo/editPassword.html',
id: 'editPassword'
});
}
function backTap() {
_public.iot.navigator.back();
}
function getInfo(self) {
_public.iot.business.user.getInfo({
success: function success(response) {
var data = _public.uPublic.checkResponseData(response.data);
if (data) {
console.log(data);
self.nickname = data.nickname;
} else {}
},
error: function error(_error) {
console.log(_error);
// if(window.iotDebug){
// iotDebug.push('end: 获取用户信息'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'获取用户信息');
// }
_public.uPublic.openRequestErrorAlert(self);
},
complete: function complete() {}
});
}
//tap 退出系统
function logoutButtonTap(self) {
_public.uComponents.openConfirm(self, Vue.t('myInfo.logoutDialogTip'), { text: Vue.t('dialog.cancel'), callback: function callback() {} }, { text: Vue.t('dialog.confirm'), callback: function callback() {
_public.iot.business.user.logout({
data: {
sds: true
},
success: function success(response) {
_public.iot.business.websql.delMaps(['utoken', 'userinfo'], function (response) {
console.log(response);
}, function (error) {
console.log(error);
// if(window.iotDebug){
// iotDebug.push('end: 清除tocken失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'清除tocken失败');
// }
_public.uPublic.openRequestErrorAlert(self);
});
_public.iot.storage.delMaps(['notifyTime', 'alarmTime', 'openTime'], function (response) {
console.log(response);
}, function () {});
_public.iot.navigator.openWindow({
url: '../login/index.html',
id: 'login'
});
var wvs = plus.webview.all();
for (var i = 0; i < wvs.length - 1; i++) {
plus.webview.close(wvs[i]);
}
},
error: function error(_error2) {
console.log(_error2);
if (window.iotDebug) {
iotDebug.push('end: 退出登陆失败' + JSON.stringify(_error2));
}
if (window.iotDebug) {
iotDebug.upload(_public.iot, '退出登陆失败');
}
_public.uPublic.openRequestErrorAlert(self);
},
complete: function complete() {
console.log("complete");
}
});
} });
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))
/***/ }),
/***/ 324:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(223);
/***/ })
},[324]);
//# sourceMappingURL=index.js.map
\ No newline at end of file
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