webpackJsonp([26],{

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

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

var _public = __webpack_require__(2);

_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: './wifiAddHelp.html',
        id: 'wifiAddHelp'
    });
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)["default"]))

/***/ }),

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

module.exports = __webpack_require__(136);


/***/ })

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