Commit 060d376b by 朱建香

10121908

parent d31ac793
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.
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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([18],{
webpackJsonp([26],{
/***/ 151:
/***/ (function(module, exports, __webpack_require__) {
/***/ 210:
/***/ (function(module, exports) {
"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {
var _public = __webpack_require__(2);
_public.iot.ready(init); /**
* v_doorlockUsers.js
* Version: 0.1
* User: wy
* Date: 2017-10-09
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 门锁用户页面
*/
function init() {
//通用 按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-button', 'u-dialog', 'u-loading']);
var app = new Vue({
data: {
userInfo: {
image: '../../resources/image/gray_unbindHead_icon.png',
role: 1,
title: '我是个用户二号',
subtitle: ''
},
bindShowFlag: true,
unbindShowFlag: false,
stateShowFlag: false,
guideShowFlag: false,
guideStep1ShowFlag: false,
guideStep2ShowFlag: false,
guideStep3ShowFlag: false,
guideStep4ShowFlag: false,
//配置组件
componentsConfig: initComponentsConfig()
},
mounted: function mounted() {},
methods: {
getBindShowFlag: function getBindShowFlag() {
return this.bindShowFlag;
},
setBindShowFlag: function setBindShowFlag(boolean) {
this.bindShowFlag = boolean;
},
getUnbindShowFlag: function getUnbindShowFlag() {
return this.unbindShowFlag;
},
setUnbindShowFlag: function setUnbindShowFlag(boolean) {
this.unbindShowFlag = boolean;
},
getStateShowFlag: function getStateShowFlag() {
return this.stateShowFlag;
},
setStateShowFlag: function setStateShowFlag(boolean) {
this.stateShowFlag = boolean;
},
getGuideShowFlag: function getGuideShowFlag() {
return this.guideShowFlag;
},
setGuideShowFlag: function setGuideShowFlag(boolean) {
this.guideShowFlag = boolean;
},
getGuideStep1ShowFlag: function getGuideStep1ShowFlag() {
return this.guideStep1ShowFlag;
},
setGuideStep1ShowFlag: function setGuideStep1ShowFlag(boolean) {
this.guideStep1ShowFlag = boolean;
},
getGuideStep2ShowFlag: function getGuideStep2ShowFlag() {
return this.guideStep2ShowFlag;
},
setGuideStep2ShowFlag: function setGuideStep2ShowFlag(boolean) {
this.guideStep2ShowFlag = boolean;
},
getGuideStep3ShowFlag: function getGuideStep3ShowFlag() {
return this.guideStep3ShowFlag;
},
setGuideStep3ShowFlag: function setGuideStep3ShowFlag(boolean) {
this.guideStep3ShowFlag = boolean;
},
getGuideStep4ShowFlag: function getGuideStep4ShowFlag() {
return this.guideStep4ShowFlag;
},
setGuideStep4ShowFlag: function setGuideStep4ShowFlag(boolean) {
this.guideStep4ShowFlag = boolean;
},
//tap <
onBackTap: function onBackTap() {
backTap();
},
onEditNameTap: function onEditNameTap() {
editNameTap();
},
//tap 邀请绑定
onBindTap: function onBindTap() {
bindTap();
},
//tap 解绑
onUnbindButtonTap: function onUnbindButtonTap() {
unbindButtonTap(this);
},
//tap 绑定开锁信息
onBindUnlockInfoTap: function onBindUnlockInfoTap() {
bindUnlockInfoTap();
},
//tap 历史开门记录
onOpendoorRecordTap: function onOpendoorRecordTap() {
opendoorRecordTap();
},
//tap 删除该用户
onDeleteUserButtonTap: function onDeleteUserButtonTap() {
deleteUserButtonTap(this);
},
onUnbindStateDialogTap: function onUnbindStateDialogTap() {
unbindStateDialogTap(this);
},
//tap 下一步
onNextButtonTap: function onNextButtonTap() {
nextButtonTap(this);
},
//tap 我知道了
onISeeButtonTap: function onISeeButtonTap() {
iSeeButtonTap(this);
}
}
}).$mount('#app');
}
//配置组件参数
function initComponentsConfig() {
return {
//解绑 button 参数
unbindButton: {
initParam: {
class: 'custom-unbind-button',
text: Vue.t('btn.unbind')
}
},
//删除该用户 button 参数
deleteUserButton: {
initParam: {
class: 'custom-button',
text: Vue.t('btn.deleteUser')
}
},
//下一步 button 参数
nextButton: {
initParam: {
class: 'custom-dialog-button',
text: Vue.t('btn.next')
}
},
//我知道了 button 参数
iSeeButton: {
initParam: {
class: 'custom-dialog-button',
text: Vue.t('btn.iSee')
}
},
dialog: {
initParam: {
class: 'custom-dialog'
}
},
loading: {
initParam: {
class: 'custom-loading'
}
}
};
}
//tap <
function backTap() {
_public.iot.navigator.back();
}
function editNameTap() {
_public.iot.navigator.openWindow({
url: './editName.html',
id: 'editName'
});
}
//tap 邀请绑定
function bindTap() {
_public.iot.navigator.openWindow({
url: './inviteBind.html',
id: 'inviteBind'
});
}
//tap 解绑
function unbindButtonTap(self) {
_public.uComponents.openConfirm(self, Vue.t('doorlockUsers.unbindDialogTip'), { text: Vue.t('dialog.cancel'), callback: function callback() {} }, { text: Vue.t('dialog.unbind'), callback: function callback() {
self.setStateShowFlag(true);
} });
}
function unbindStateDialogTap(self) {
self.setStateShowFlag(false);
self.setBindShowFlag(true);
self.setUnbindShowFlag(false);
}
//tap 绑定开锁信息
function bindUnlockInfoTap() {
_public.iot.navigator.openWindow({
url: './unlockInfo.html',
id: 'unlockInfo'
});
}
//tap 历史开门记录
function opendoorRecordTap() {
_public.iot.navigator.openWindow({
url: '../device/opendoorRecord.html',
id: 'opendoorRecord'
});
}
//tap 删除该用户
function deleteUserButtonTap(self) {
_public.uComponents.openConfirm(self, Vue.t('doorlockUsers.deleteUserDialogTip'), { text: Vue.t('dialog.cancel'), callback: function callback() {} }, { text: Vue.t('dialog.delete'), callback: function callback() {} });
}
//tap 下一步
function nextButtonTap(self) {
self.setGuideStep1ShowFlag(false);
self.setGuideStep2ShowFlag(false);
self.setGuideStep3ShowFlag(true);
self.setGuideStep4ShowFlag(true);
}
//tap 我知道了
function iSeeButtonTap(self) {
self.setGuideShowFlag(false);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)["default"]))
throw new Error("Module build failed: SyntaxError: D:/git_zhu/doorlock/dev/src/view/doorlockUsers/v_doorlockUser.js: Unexpected token (214:14)\n\n\u001b[0m \u001b[90m 212 | \u001b[39m\u001b[36mfunction\u001b[39m sleep(time){\n \u001b[90m 213 | \u001b[39m\t\u001b[36mreturn\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mPromise\u001b[39m(\u001b[36mfunction\u001b[39m(resolve\u001b[33m,\u001b[39m reject){\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 214 | \u001b[39m\t\tsetTimeout(()\u001b[33m=\u001b[39m{\n \u001b[90m | \u001b[39m\t\t \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 215 | \u001b[39m\t\t\tresolve(time)\u001b[33m;\u001b[39m\n \u001b[90m 216 | \u001b[39m\t\t}\u001b[33m,\u001b[39mtime)\u001b[33m;\u001b[39m\n \u001b[90m 217 | \u001b[39m\t})\u001b[0m\n");
/***/ }),
/***/ 267:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(151);
module.exports = __webpack_require__(210);
/***/ })
......
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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
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