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
ba9e1d2a
Commit
ba9e1d2a
authored
Nov 24, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1124
parent
e26abb1d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
dev/src/view/doorlockUsers/v_doorlockUser.js
+1
-1
dev/src/view/login/v_index.js
+5
-5
web/view/doorlockUsers/doorlockUser.js
+1
-1
web/view/login/index.js
+5
-5
No files found.
dev/src/view/doorlockUsers/v_doorlockUser.js
View file @
ba9e1d2a
...
@@ -345,7 +345,7 @@ function unbindButtonTap(self){
...
@@ -345,7 +345,7 @@ function unbindButtonTap(self){
uComponents
.
openConfirm
(
self
,
Vue
.
t
(
'doorlockUser.unbindDialogTip'
),
uComponents
.
openConfirm
(
self
,
Vue
.
t
(
'doorlockUser.unbindDialogTip'
),
{
text
:
Vue
.
t
(
'dialog.cancel'
),
callback
:
function
()
{}},
{
text
:
Vue
.
t
(
'dialog.cancel'
),
callback
:
function
()
{}},
{
text
:
Vue
.
t
(
'dialog.unbind'
),
callback
:
function
()
{
{
text
:
Vue
.
t
(
'dialog.unbind'
),
callback
:
function
()
{
alert
(
self
.
extras
.
account
);
//
alert(self.extras.account);
// iot.business.sds.unbindByManager({
// iot.business.sds.unbindByManager({
// data: {
// data: {
// uuid: self.extras.uuid,
// uuid: self.extras.uuid,
...
...
dev/src/view/login/v_index.js
View file @
ba9e1d2a
...
@@ -25,20 +25,20 @@ function init() {
...
@@ -25,20 +25,20 @@ function init() {
if
(
window
.
iotDebug
){
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'start: Debug'
);
iotDebug
.
push
(
'start: Debug'
);
}
}
var
clientInfo
=
plus
.
push
.
getClientInfo
();
this
.
setClientId
(
clientInfo
.
clientid
);
var
self
=
this
;
var
self
=
this
;
if
(
plus
.
os
.
name
==
'Android'
)
{
if
(
plus
.
os
.
name
==
'Android'
)
{
iot
.
permission
.
checkPermission
([
'READ_EXTERNAL_STORAGE'
],
function
(
res
)
{
iot
.
permission
.
checkPermission
([
'READ_EXTERNAL_STORAGE'
],
function
(
res
)
{
console
.
log
(
'success'
,
res
);
console
.
log
(
'success'
,
res
);
var
clientInfo
=
plus
.
push
.
getClientInfo
();
//
var clientInfo = plus.push.getClientInfo();
self
.
setClientId
(
clientInfo
.
clientid
);
//
self.setClientId(clientInfo.clientid);
loginButtonTap
(
self
);
loginButtonTap
(
self
);
},
function
(
err
)
{
},
function
(
err
)
{
console
.
log
(
'error'
,
err
);
console
.
log
(
'error'
,
err
);
});
});
}
}
// var clientInfo = plus.push.getClientInfo();
// this.setClientId(clientInfo.clientid);
// loginButtonTap(this);
// loginButtonTap(this);
},
},
methods
:{
methods
:{
...
...
web/view/doorlockUsers/doorlockUser.js
View file @
ba9e1d2a
...
@@ -1193,7 +1193,7 @@ function bindTap(self) {
...
@@ -1193,7 +1193,7 @@ function bindTap(self) {
//tap 解绑
//tap 解绑
function
unbindButtonTap
(
self
)
{
function
unbindButtonTap
(
self
)
{
_public
.
uComponents
.
openConfirm
(
self
,
Vue
.
t
(
'doorlockUser.unbindDialogTip'
),
{
text
:
Vue
.
t
(
'dialog.cancel'
),
callback
:
function
callback
()
{}
},
{
text
:
Vue
.
t
(
'dialog.unbind'
),
callback
:
function
callback
()
{
_public
.
uComponents
.
openConfirm
(
self
,
Vue
.
t
(
'doorlockUser.unbindDialogTip'
),
{
text
:
Vue
.
t
(
'dialog.cancel'
),
callback
:
function
callback
()
{}
},
{
text
:
Vue
.
t
(
'dialog.unbind'
),
callback
:
function
callback
()
{
alert
(
self
.
extras
.
account
);
//
alert(self.extras.account);
// iot.business.sds.unbindByManager({
// iot.business.sds.unbindByManager({
// data: {
// data: {
// uuid: self.extras.uuid,
// uuid: self.extras.uuid,
...
...
web/view/login/index.js
View file @
ba9e1d2a
...
@@ -32,20 +32,20 @@ function init() {
...
@@ -32,20 +32,20 @@ function init() {
if
(
window
.
iotDebug
)
{
if
(
window
.
iotDebug
)
{
iotDebug
.
push
(
'start: Debug'
);
iotDebug
.
push
(
'start: Debug'
);
}
}
var
clientInfo
=
plus
.
push
.
getClientInfo
();
this
.
setClientId
(
clientInfo
.
clientid
);
var
self
=
this
;
var
self
=
this
;
if
(
plus
.
os
.
name
==
'Android'
)
{
if
(
plus
.
os
.
name
==
'Android'
)
{
_public
.
iot
.
permission
.
checkPermission
([
'READ_EXTERNAL_STORAGE'
],
function
(
res
)
{
_public
.
iot
.
permission
.
checkPermission
([
'READ_EXTERNAL_STORAGE'
],
function
(
res
)
{
console
.
log
(
'success'
,
res
);
console
.
log
(
'success'
,
res
);
var
clientInfo
=
plus
.
push
.
getClientInfo
();
//
var clientInfo = plus.push.getClientInfo();
self
.
setClientId
(
clientInfo
.
clientid
);
//
self.setClientId(clientInfo.clientid);
loginButtonTap
(
self
);
loginButtonTap
(
self
);
},
function
(
err
)
{
},
function
(
err
)
{
console
.
log
(
'error'
,
err
);
console
.
log
(
'error'
,
err
);
});
});
}
}
// var clientInfo = plus.push.getClientInfo();
// this.setClientId(clientInfo.clientid);
// loginButtonTap(this);
// loginButtonTap(this);
},
},
...
...
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