Commit ba9e1d2a by 朱建香

1124

parent e26abb1d
......@@ -345,7 +345,7 @@ function unbindButtonTap(self){
uComponents.openConfirm(self, Vue.t('doorlockUser.unbindDialogTip'),
{text: Vue.t('dialog.cancel'), callback: function () {}},
{text: Vue.t('dialog.unbind'), callback: function () {
alert(self.extras.account);
// alert(self.extras.account);
// iot.business.sds.unbindByManager({
// data: {
// uuid: self.extras.uuid,
......
......@@ -25,20 +25,20 @@ function init() {
if(window.iotDebug){
iotDebug.push('start: Debug');
}
var clientInfo = plus.push.getClientInfo();
this.setClientId(clientInfo.clientid);
var self = this;
if (plus.os.name == 'Android') {
iot.permission.checkPermission(['READ_EXTERNAL_STORAGE'], function (res) {
console.log('success', res);
var clientInfo = plus.push.getClientInfo();
self.setClientId(clientInfo.clientid);
// var clientInfo = plus.push.getClientInfo();
// self.setClientId(clientInfo.clientid);
loginButtonTap(self);
}, function (err) {
console.log('error', err);
});
}
// var clientInfo = plus.push.getClientInfo();
// this.setClientId(clientInfo.clientid);
// loginButtonTap(this);
},
methods:{
......
......@@ -1193,7 +1193,7 @@ function bindTap(self) {
//tap 解绑
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() {
alert(self.extras.account);
// alert(self.extras.account);
// iot.business.sds.unbindByManager({
// data: {
// uuid: self.extras.uuid,
......
......@@ -32,20 +32,20 @@ function init() {
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);
var clientInfo = plus.push.getClientInfo();
self.setClientId(clientInfo.clientid);
// var clientInfo = plus.push.getClientInfo();
// self.setClientId(clientInfo.clientid);
loginButtonTap(self);
}, function (err) {
console.log('error', err);
});
}
// var clientInfo = plus.push.getClientInfo();
// this.setClientId(clientInfo.clientid);
// loginButtonTap(this);
},
......
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