webpackJsonp([23],{

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

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

var _public = __webpack_require__(4);

_public.iot.ready(init); /**
                         * v_wifiAddHelp.js
                         * Version: 0.1
                         * User: wy
                         * Date: 2017-09-07
                         * Copyright(c)  2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
                         * 配置Wi-Fi页面
                         */

function init() {
    //通用 按钮、dialog、loading组件
    _public.uPublic.componentsInit(['u-button', 'u-dialog', 'u-loading']);
    var app = new Vue({
        data: {
            //配置组件
            componentsConfig: initComponentsConfig()
        },
        mounted: function mounted() {
            window.addEventListener('returnPage', function (event) {
                console.log("stopFindDevice");
                _public.iot.business.sds.stopFindDevices({
                    success: function success(response) {
                        console.log(response);
                    },
                    error: function error(_error) {
                        console.log(_error);
                    }
                });
            });
        },

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

            //tap 开始配置Wi-Fi
            onWifiAddButtonTap: function onWifiAddButtonTap() {
                wifiAddButtonTap();
            }
        }
    }).$mount('#app');
}

//配置组件参数
function initComponentsConfig() {
    return {
        //开始配置Wi-Fi button 参数
        wifiAddButton: {
            initParam: {
                class: 'custom-help-button',
                text: Vue.t('btn.wifiAdd')
            }
        },
        dialog: {
            initParam: {
                class: 'custom-dialog'
            }
        },
        loading: {
            initParam: {
                class: 'custom-loading'
            }
        }
    };
}

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

//tap 开始配置Wi-Fi
function wifiAddButtonTap() {
    _public.iot.navigator.openWindow({
        url: './wifiAdd.html',
        id: 'wifiAdd'
    });
    console.log("in");
    //	iot.business.sds.wifiDeviceConfig({
    //      success: function (response) {
    //          console.log('wifiDeviceConfig success');
    //          console.log(response);
    //      },
    //      error: function (error) {
    //          console.log('wifiDeviceConfig error');
    //          console.log(error);
    //      }
    // });
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)["default"]))

/***/ }),

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

module.exports = __webpack_require__(200);


/***/ })

},[301]);
//# sourceMappingURL=wifiAddHelp.js.map