webpackJsonp([12],{

/***/ 185:
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(Vue) {

var _public = __webpack_require__(6);

var _public2 = _interopRequireDefault(_public);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_public.iot.ready(init);
function init() {
    _public.uPublic.componentsExtend(['android-notify']);
    var form = new Vue({
        el: '#content',
        data: {
            initButtonText: "测试按钮",
            componentsConfig: initComponentsConfig(), //初始化数据
            dialogFlag: true,
            showFlags: false,
            onNotifyToIndex: notifyToIndex //改方法传入
        },
        mounted: function mounted() {},
        methods: {
            onTapButton: function onTapButton() {
                tapButton(this);
            },
            onAddDeviceButtonTap: function onAddDeviceButtonTap() {
                console.log("onAddDeviceButtonTap......");
            },
            onToSetting: function onToSetting() {
                console.log("点击了toSetting");
            }
        }

    });

    function notifyToIndex() {
        _public.iot.navigator.fire(plus.webview.getWebviewById('device'), 'returnPage', {
            needClose: true
        });
        _public.iot.navigator.openWindow({
            url: './index.html',
            id: 'device',
            styles: {
                popGesture: 'none'
            },
            extras: {
                needClose: true
            }
        });
    }

    function tapButton(self) {
        console.log("tapButton.......");
    }

    //初始化组件参数
    function initComponentsConfig() {
        return {
            // 设置通知弹出框参数
            notifyDialog: {
                // 默认参数
                initParam: {
                    // appName:"js.通用门锁",
                    // time:"js.刚刚",
                    //    title:'js.开启通知',
                    //    content1:'js.开启通知后您将可以及时获取门锁报警',
                    //    content2:'js.提醒、门锁开门消息通知',
                    //    accept:'js.我知道了！',
                    //    buttonTitle:'js.前往开启通知设置'
                }
            },
            addDeviceButton: {
                // 默认参数
                initParam: {
                    class: 'edit-name-button',
                    text: "这是测试button"
                }
            }

        };
    }
}

//重写mui.back
mui.back = function () {
    _public.iot.navigator.fire(plus.webview.currentWebview().opener(), 'returnPage', {});
    console.log("fire");
    _public.iot.navigator.back();
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)["default"]))

/***/ }),

/***/ 295:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(185);


/***/ })

},[295]);
//# sourceMappingURL=notify.js.map