Commit 36108546 by 朱建香

1636

parent e3929a52
...@@ -41,5 +41,8 @@ export default { ...@@ -41,5 +41,8 @@ export default {
"input":{ "input":{
"maxlength": 16 "maxlength": 16
}, },
"password":{
"maxlength": 6
},
"ringBell_timeout": 300 "ringBell_timeout": 300
} }
\ No newline at end of file
...@@ -383,7 +383,8 @@ function initComponentsConfig() { ...@@ -383,7 +383,8 @@ function initComponentsConfig() {
initParam: { initParam: {
class: 'custom-text', class: 'custom-text',
icon: '', icon: '',
placeholder: Vue.t('remoteOpendoor.passwordInputTip') placeholder: Vue.t('remoteOpendoor.passwordInputTip'),
maxlength: config.password.maxlength
} }
}, },
ucommloading: { ucommloading: {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* 添加用户页面 * 添加用户页面
*/ */
import config from '../../public/config.js';
import {iot, uPublic, uComponents} from '../../public/public.js'; import {iot, uPublic, uComponents} from '../../public/public.js';
iot.ready(init); iot.ready(init);
...@@ -61,7 +62,8 @@ function initComponentsConfig() { ...@@ -61,7 +62,8 @@ function initComponentsConfig() {
initParam: { initParam: {
class: 'custom-text', class: 'custom-text',
icon: '', icon: '',
placeholder: Vue.t('addUser.nameInputTip') placeholder: Vue.t('addUser.nameInputTip'),
maxlength: config.input.maxlength
} }
}, },
//确定 button 参数 //确定 button 参数
......
...@@ -97,7 +97,7 @@ function loginButtonTap(self){ ...@@ -97,7 +97,7 @@ function loginButtonTap(self){
iotDebug.upload(iot,'sds登陆失败'); iotDebug.upload(iot,'sds登陆失败');
} }
//请求失败 //请求失败
uPublic.openRequestErrorAlert(self); // uPublic.openRequestErrorAlert(self);
}, },
complete: () => { complete: () => {
uComponents.hideLoading(self); uComponents.hideLoading(self);
......
...@@ -9855,6 +9855,9 @@ exports.default = { ...@@ -9855,6 +9855,9 @@ exports.default = {
"input": { "input": {
"maxlength": 16 "maxlength": 16
}, },
"password": {
"maxlength": 6
},
"ringBell_timeout": 300 "ringBell_timeout": 300
}; };
......
...@@ -24235,7 +24235,8 @@ function initComponentsConfig() { ...@@ -24235,7 +24235,8 @@ function initComponentsConfig() {
initParam: { initParam: {
class: 'custom-text', class: 'custom-text',
icon: '', icon: '',
placeholder: Vue.t('remoteOpendoor.passwordInputTip') placeholder: Vue.t('remoteOpendoor.passwordInputTip'),
maxlength: _config2.default.password.maxlength
} }
}, },
ucommloading: { ucommloading: {
......
...@@ -6,17 +6,24 @@ webpackJsonp([21],{ ...@@ -6,17 +6,24 @@ webpackJsonp([21],{
"use strict"; "use strict";
/* WEBPACK VAR INJECTION */(function(Vue) { /* WEBPACK VAR INJECTION */(function(Vue) {
var _config = __webpack_require__(9);
var _config2 = _interopRequireDefault(_config);
var _public = __webpack_require__(4); var _public = __webpack_require__(4);
_public.iot.ready(init); /** function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
* v_addUser.js
* Version: 0.1 /**
* User: wy * v_addUser.js
* Date: 2017-10-09 * Version: 0.1
* Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved. * User: wy
* 添加用户页面 * Date: 2017-10-09
*/ * Copyright(c) 2017. U-GEN Tech.Co,Ltd. All Rights Reserved.
* 添加用户页面
*/
_public.iot.ready(init);
function init() { function init() {
//通用 input、按钮、dialog、loading组件 //通用 input、按钮、dialog、loading组件
_public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']); _public.uPublic.componentsInit(['u-text', 'u-button', 'u-dialog', 'u-loading']);
...@@ -71,7 +78,8 @@ function initComponentsConfig() { ...@@ -71,7 +78,8 @@ function initComponentsConfig() {
initParam: { initParam: {
class: 'custom-text', class: 'custom-text',
icon: '', icon: '',
placeholder: Vue.t('addUser.nameInputTip') placeholder: Vue.t('addUser.nameInputTip'),
maxlength: _config2.default.input.maxlength
} }
}, },
//确定 button 参数 //确定 button 参数
......
...@@ -103,7 +103,7 @@ function loginButtonTap(self) { ...@@ -103,7 +103,7 @@ function loginButtonTap(self) {
iotDebug.upload(_public.iot, 'sds登陆失败'); iotDebug.upload(_public.iot, 'sds登陆失败');
} }
//请求失败 //请求失败
_public.uPublic.openRequestErrorAlert(self); // uPublic.openRequestErrorAlert(self);
}, },
complete: function complete() { complete: function complete() {
_public.uComponents.hideLoading(self); _public.uComponents.hideLoading(self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment