Commit ba9e1d2a by 朱建香

1124

parent e26abb1d
...@@ -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,
......
...@@ -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:{
......
...@@ -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,
......
...@@ -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);
}, },
......
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