Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DoorLock
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
朱建香
DoorLock
Commits
6a5e9b04
Commit
6a5e9b04
authored
Nov 21, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1121
parent
fdf8a840
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
104 additions
and
60 deletions
+104
-60
dev/src/lang/zh.json
+1
-0
dev/src/view/device/v_index.js
+9
-12
dev/src/view/doorlockUsers/v_doorlockUser.js
+59
-35
web/resources/lang/zh.json
+0
-0
web/view/device/index.js
+9
-12
web/view/doorlockUsers/addUnlockInfo.html
+1
-1
web/view/doorlockUsers/doorlockUser.js
+25
-0
No files found.
dev/src/lang/zh.json
View file @
6a5e9b04
...
...
@@ -301,6 +301,7 @@
"password"
:
"密码"
,
"icCard"
:
"IC卡"
,
"key"
:
"钥匙"
,
"remote"
:
"遥控器"
,
"hijackFingerprint"
:
"劫持指纹"
,
"opendoorRecord"
:
"选择要关联的开锁ID"
,
"tip"
:
"仅显示未绑定开门记录"
,
...
...
dev/src/view/device/v_index.js
View file @
6a5e9b04
...
...
@@ -835,8 +835,15 @@ function notificationListener(self) {
//tap 个人信息
function
myInfoTap
(
self
){
// iot.navigator.openWindow({
// url: '../myInfo/index.html',
iot
.
navigator
.
openWindow
({
url
:
'../myInfo/index.html'
,
id
:
'myInfo'
,
extras
:
{
nickname
:
self
.
nickname
}
});
// uPublic.openWindow({
// url: '../myInfo/index.html',
// id: 'myInfo',
// extras: {
// nickname: self.nickname
...
...
@@ -845,16 +852,6 @@ function myInfoTap(self){
// 'background': 'transparent'
// }
// });
uPublic
.
openWindow
({
url
:
'../myInfo/index.html'
,
id
:
'myInfo'
,
extras
:
{
nickname
:
self
.
nickname
},
styles
:
{
'background'
:
'transparent'
}
});
// let wv = plus.webview.create( '../myInfo/index.html', 'myInfo',{subNViews:[{id:'subnview1',styles:{top:'0px',width: '100px',height:'100px',backgroundColor:'#FF0000'}}],background:'#ff0000',top:'100px',bottom:'0px'});
// wv.show();
// plus.webview.create('new.html', 'new', {'titleNView':{'backgroundcolor':'#FFFFFF','titletext':'标题栏','titlecolor':'#FF0000'}});
...
...
dev/src/view/doorlockUsers/v_doorlockUser.js
View file @
6a5e9b04
...
...
@@ -465,39 +465,63 @@ function iSeeButtonTap(self){
//删除用户
function
deleteUser
(
self
){
uComponents
.
showLoading
(
self
);
iot
.
business
.
api
.
sendCustom
(
'lock/delLockUser'
,{
data
:
{
rel_id
:
self
.
extras
.
id
,
user_id
:
self
.
getInfo
().
user_id
,
device_sn
:
self
.
getInfo
().
device_id
,
device_id
:
self
.
extras
.
lockId
},
success
:
(
response
)
=>
{
console
.
log
(
response
);
if
(
response
.
data
.
success
){
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'doorlockUser.deleteSuccess'
),
{
text
:
Vue
.
t
(
'btn.confirm'
),
callback
:
function
()
{
iot
.
navigator
.
aback
();
}
});
}
},
error
:
(
error
)
=>
{
console
.
log
(
error
);
// if(window.iotDebug){
// iotDebug.push('end: 删除用户失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'删除用户失败');
// }
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'doorlockUser.deleteFailure'
),
{
text
:
Vue
.
t
(
'btn.confirm'
),
callback
:
function
()
{
}
});
},
complete
:
()
=>
{
uComponents
.
hideLoading
(
self
);
}
});
// iot.business.sds.unbindByManager({
// data: {
// uuid: self.extras.uuid,
// destAuid: self.extras.account
// },
// success: (response) => {
//// alert(JSON.stringify(response));
iot
.
business
.
api
.
sendCustom
(
'lock/delLockUser'
,{
data
:
{
rel_id
:
self
.
extras
.
id
,
user_id
:
self
.
getInfo
().
user_id
,
device_sn
:
self
.
getInfo
().
device_id
,
device_id
:
self
.
extras
.
lockId
},
success
:
(
response
)
=>
{
console
.
log
(
response
);
if
(
response
.
data
.
success
){
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'doorlockUser.deleteSuccess'
),
{
text
:
Vue
.
t
(
'btn.confirm'
),
callback
:
function
()
{
iot
.
navigator
.
aback
();
}
});
}
},
error
:
(
error
)
=>
{
console
.
log
(
error
);
// if(window.iotDebug){
// iotDebug.push('end: 删除用户失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'删除用户失败');
// }
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'doorlockUser.deleteFailure'
),
{
text
:
Vue
.
t
(
'btn.confirm'
),
callback
:
function
()
{
}
});
},
complete
:
()
=>
{
uComponents
.
hideLoading
(
self
);
}
});
// },
// error: (error) => {
// console.log(error);
// alert(error);
//// if(window.iotDebug){
//// iotDebug.push('end: sds解绑普通用户失败'+JSON.stringify(error));
//// }
//// if (window.iotDebug) {
//// iotDebug.upload(iot,'sds解绑普通用户失败');
//// }
// uPublic.openRequestErrorAlert(self);
// self.setImageSrc('../../resources/image/green_unbindFail_icon.png');
// self.setTextBindTip(Vue.t('doorlockUser.unbindFailue'));
// self.setStateShowFlag(true);
// },
// complete: () => {
// }
// });
}
web/resources/lang/zh.json
View file @
6a5e9b04
This diff is collapsed.
Click to expand it.
web/view/device/index.js
View file @
6a5e9b04
...
...
@@ -24763,8 +24763,15 @@ function notificationListener(self) {
//tap 个人信息
function
myInfoTap
(
self
)
{
// iot.navigator.openWindow({
// url: '../myInfo/index.html',
_public
.
iot
.
navigator
.
openWindow
({
url
:
'../myInfo/index.html'
,
id
:
'myInfo'
,
extras
:
{
nickname
:
self
.
nickname
}
});
// uPublic.openWindow({
// url: '../myInfo/index.html',
// id: 'myInfo',
// extras: {
// nickname: self.nickname
...
...
@@ -24773,16 +24780,6 @@ function myInfoTap(self) {
// 'background': 'transparent'
// }
// });
_public
.
uPublic
.
openWindow
({
url
:
'../myInfo/index.html'
,
id
:
'myInfo'
,
extras
:
{
nickname
:
self
.
nickname
},
styles
:
{
'background'
:
'transparent'
}
});
// let wv = plus.webview.create( '../myInfo/index.html', 'myInfo',{subNViews:[{id:'subnview1',styles:{top:'0px',width: '100px',height:'100px',backgroundColor:'#FF0000'}}],background:'#ff0000',top:'100px',bottom:'0px'});
// wv.show();
// plus.webview.create('new.html', 'new', {'titleNView':{'backgroundcolor':'#FFFFFF','titletext':'标题栏','titlecolor':'#FF0000'}});
...
...
web/view/doorlockUsers/addUnlockInfo.html
View file @
6a5e9b04
...
...
@@ -53,7 +53,7 @@
<li
class=
"active"
>
{{ $t('addUnlockInfo.fingerprint') }}
</li>
<li>
{{ $t('addUnlockInfo.password') }}
</li>
<li>
{{ $t('addUnlockInfo.icCard') }}
</li>
<li>
遥控器
</li>
<li>
{{ $t('addUnlockInfo.remote') }}
</li>
</ul>
</div>
<div
class=
"guideStep1Tip"
>
...
...
web/view/doorlockUsers/doorlockUser.js
View file @
6a5e9b04
...
...
@@ -1308,6 +1308,13 @@ function iSeeButtonTap(self) {
//删除用户
function
deleteUser
(
self
)
{
_public
.
uComponents
.
showLoading
(
self
);
// iot.business.sds.unbindByManager({
// data: {
// uuid: self.extras.uuid,
// destAuid: self.extras.account
// },
// success: (response) => {
//// alert(JSON.stringify(response));
_public
.
iot
.
business
.
api
.
sendCustom
(
'lock/delLockUser'
,
{
data
:
{
rel_id
:
self
.
extras
.
id
,
...
...
@@ -1341,6 +1348,24 @@ function deleteUser(self) {
_public
.
uComponents
.
hideLoading
(
self
);
}
});
// },
// error: (error) => {
// console.log(error);
// alert(error);
//// if(window.iotDebug){
//// iotDebug.push('end: sds解绑普通用户失败'+JSON.stringify(error));
//// }
//// if (window.iotDebug) {
//// iotDebug.upload(iot,'sds解绑普通用户失败');
//// }
// uPublic.openRequestErrorAlert(self);
// self.setImageSrc('../../resources/image/green_unbindFail_icon.png');
// self.setTextBindTip(Vue.t('doorlockUser.unbindFailue'));
// self.setStateShowFlag(true);
// },
// complete: () => {
// }
// });
}
/* WEBPACK VAR INJECTION */
}.
call
(
exports
,
__webpack_require__
(
2
)[
"default"
],
__webpack_require__
(
128
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment