webpackJsonp([26],{

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

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

var _public = __webpack_require__(4);

_public.iot.ready(init); /**
                         * v_index.js
                         * Version: 0.1
                         * User: wy
                         * Date: 2017-09-07
                         * Copyright(c)  2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
                         * 添加设备页面
                         */

function init() {
    //通用 dialog、loading组件
    _public.uPublic.componentsInit(['u-dialog', 'u-loading']);
    var app = new Vue({
        data: {
            //配置组件
            componentsConfig: initComponentsConfig()
        },
        mounted: function mounted() {},

        methods: {
            //tap <
            onBackTap: function onBackTap() {
                backTap();
            },

            //tap 扫描绑定设备
            onScanAddTap: function onScanAddTap() {
                scanAddTap();
            },

            //tap 配置Wi-Fi
            onWifiAddTap: function onWifiAddTap() {
                wifiAddTap();
            }
        }
    }).$mount('#app');
}

//配置组件参数
function initComponentsConfig() {
    return {
        dialog: {
            initParam: {
                class: 'custom-dialog'
            }
        },
        loading: {
            initParam: {
                class: 'custom-loading'
            }
        }
    };
}

//tap <
function backTap() {
    _public.iot.navigator.back();
}

//tap 扫描绑定设备
function scanAddTap() {
    _public.iot.navigator.openWindow({
        url: './scanCodeAdd.html',
        id: 'scanCodeAdd'
    });
}

//tap 配置Wi-Fi
function wifiAddTap() {
    _public.iot.navigator.openWindow({
        url: './deviceList.html',
        id: 'deviceList'
    });
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))

/***/ }),

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

module.exports = __webpack_require__(197);


/***/ })

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