webpackJsonp([17],{

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

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

var _public = __webpack_require__(2);

_public.iot.ready(init); /**
                         * v_editName.js
                         * Version: 0.1
                         * User: wy
                         * Date: 2017-10-09
                         * Copyright(c)  2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
                         * 修改名称页面
                         */

function init() {
    //通用 input、dialog、loading组件
    _public.uPublic.componentsInit(['u-text', 'u-dialog', 'u-loading']);
    var app = new Vue({
        data: {
            textName: '我是个用户二号',
            textErrorTip: null,
            //配置组件
            componentsConfig: initComponentsConfig()
        },
        mounted: function mounted() {},

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

            //tap 保存
            onSaveTap: function onSaveTap() {
                saveTap();
            },
            onNameChange: function onNameChange(text) {
                nameChange(this, text);
            }
        }
    }).$mount('#app');
}

//配置组件参数
function initComponentsConfig() {
    return {
        nameInput: {
            initParam: {
                class: 'custom-editName-text',
                placeholder: Vue.t('editName.nameInputTip')
            }
        },
        dialog: {
            initParam: {
                class: 'custom-dialog'
            }
        },
        loading: {
            initParam: {
                class: 'custom-loading'
            }
        }
    };
}

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

//tap 保存
function saveTap() {
    _public.iot.navigator.back();
}

function nameChange(self, text) {
    self.textName = text;
    console.log('nameChange: ' + self.textName);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)["default"]))

/***/ }),

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

module.exports = __webpack_require__(152);


/***/ })

},[268]);
//# sourceMappingURL=editName.js.map