|
|
@@ -713,10 +713,6 @@ function toggleHelpInfo(obj) {
|
|
|
if (curElement && curElement.hasClass('page_help')) {
|
|
|
curElement.next().toggle();
|
|
|
}
|
|
|
- if (window.location.hash === '#wps') {
|
|
|
- EMUI.LanguageController.registerLanguageEx('wps_page_help', 'wps_page_help', '%s', 'wifi_auth_label');
|
|
|
- EMUI.LanguageController.transLangEx();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
function showErrorMsg(divid, errormsgid, para) {
|
|
|
@@ -937,6 +933,16 @@ function getQueryStringByName(item) {
|
|
|
var AJAX_TIMEOUT = 30000;
|
|
|
var RVC_TIMEOUT = 10000;
|
|
|
|
|
|
+const stepGlobalOptions = {
|
|
|
+ doneBtnText: '完成', // Text on the final button
|
|
|
+ closeBtnText: '关闭', // Text on the close button for this step
|
|
|
+ nextBtnText: '下一步', // Next button text for this step
|
|
|
+ prevBtnText: '上一步', // Previous button text for this step
|
|
|
+ showButtons: true, // Do not show control buttons in footer
|
|
|
+ allowClose: false, // Whether the click on overlay should close or not
|
|
|
+ //stageBackground: '#000000',
|
|
|
+ opacity: 0.5,
|
|
|
+};
|
|
|
|
|
|
var RVC = {};
|
|
|
|
|
|
@@ -1550,6 +1556,7 @@ $(function () {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
RVC.EntityController = RVC.Object.extend({
|
|
|
entityName:'',
|
|
|
className: '',
|
|
|
@@ -1585,18 +1592,19 @@ $(function () {
|
|
|
},
|
|
|
|
|
|
commCallback : function(ret) {
|
|
|
- if("undefined" != typeof ret.errorCode && ret.errorCode === 0) {
|
|
|
+ if("undefined" !== typeof ret.errorCode && ret.errorCode === 0) {
|
|
|
utilStartCommonDialog("操作成功!");
|
|
|
setTimeout(function () {
|
|
|
utilStopCommonDialog();
|
|
|
}, 1000);
|
|
|
- } else {
|
|
|
+ } else if("undefined" !== typeof ret.errorCode) {
|
|
|
if('undefined' != typeof ret.userCode) {
|
|
|
utilStartAlertDialog("操作失败! ErrorCode: " + ErrorCodeStringfy(ret.errorCode) + " | UserCode: " + ret.userCode);
|
|
|
} else {
|
|
|
utilStartAlertDialog("操作失败! ErrorCode: " + ErrorCodeStringfy(ret.errorCode));
|
|
|
}
|
|
|
-
|
|
|
+ } else {
|
|
|
+ utilStartAlertDialog("操作失败! 响应数据无法解析");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -1984,41 +1992,25 @@ function utilGetTimeString(timeVal) {
|
|
|
tmpVal = parseInt(timeInt / (60 * 60 * 24), 10);
|
|
|
if (tmpVal > 0) {
|
|
|
timeString += tmpVal;
|
|
|
- var langId = 'public.day';
|
|
|
- timeString += '<span lang-id="' + langId + '">' + publicLang[langId] + '</span>';
|
|
|
+ timeString += '<span>天</span>';
|
|
|
}
|
|
|
timeInt %= 60 * 60 * 24;
|
|
|
tmpVal = parseInt(timeInt / (60 * 60), 10);
|
|
|
if (tmpVal > 0) {
|
|
|
timeString += tmpVal;
|
|
|
- if (tmpVal > 1) {
|
|
|
- langId = 'public.hours';
|
|
|
- } else {
|
|
|
- langId = 'public.hour';
|
|
|
- }
|
|
|
- timeString += '<span lang-id="' + langId + '">' + publicLang[langId] + '</span>';
|
|
|
+ timeString += '<span>小时</span>';
|
|
|
}
|
|
|
timeInt %= 60 * 60;
|
|
|
tmpVal = parseInt(timeInt / (60), 10);
|
|
|
if (tmpVal > 0) {
|
|
|
timeString += tmpVal;
|
|
|
- if (tmpVal > 1) {
|
|
|
- langId = 'public.minutes';
|
|
|
- } else {
|
|
|
- langId = 'public.minute';
|
|
|
- }
|
|
|
- timeString += '<span lang-id="' + langId + '">' + publicLang[langId] + '</span>';
|
|
|
+ timeString += '<span>分钟</span>';
|
|
|
}
|
|
|
timeInt %= 60;
|
|
|
tmpVal = parseInt(timeInt, 10);
|
|
|
if (tmpVal > 0) {
|
|
|
timeString += tmpVal;
|
|
|
- if (tmpVal > 1) {
|
|
|
- langId = 'public.seconds';
|
|
|
- } else {
|
|
|
- langId = 'public.second';
|
|
|
- }
|
|
|
- timeString += '<span lang-id="' + langId + '">' + publicLang[langId] + '</span>';
|
|
|
+ timeString += '<span>秒</span>';
|
|
|
}
|
|
|
return timeString;
|
|
|
}
|
|
|
@@ -2032,7 +2024,7 @@ function getCurrentTime(time) {
|
|
|
}
|
|
|
times = times - day * 86400;
|
|
|
if (finalTime !== '') {
|
|
|
- finalTime += '<span lang-id="public.day">' + publicLang['public.day'] + '</span> ';
|
|
|
+ finalTime += '<span>天</span> ';
|
|
|
}
|
|
|
var hours = parseInt((times / 3600), 10);
|
|
|
if (hours > 9) {
|