|
@@ -651,7 +651,6 @@ let itp_fn_form_event = {
|
651
|
651
|
if($(this).val().length > 13) return;
|
652
|
652
|
value = $(this).val().replace(/[^0-9]/g, "")
|
653
|
653
|
.replace(/(^[0-9]{6})([0-9]+)?([0-9]{7})$/,"######-#######")
|
654
|
|
- // .replace(/(\d{6})(\d{7})/, '######-#######')
|
655
|
654
|
}
|
656
|
655
|
if ($.inArray('tel', arry) > -1) {
|
657
|
656
|
value = ($(this).val().startsWith('0')) ? $(this).val().replace(/[^0-9]/g, "")
|
|
@@ -707,7 +706,7 @@ let itp_fn_payment = {
|
707
|
706
|
|
708
|
707
|
let itp_fn_call_app = {
|
709
|
708
|
barcode: function() {
|
710
|
|
-
|
|
709
|
+ location.replace('app:barcode');
|
711
|
710
|
},
|
712
|
711
|
payment: function(param) {
|
713
|
712
|
location.replace('app:payment:' + param);
|
|
@@ -834,6 +833,17 @@ let CommonObj = {
|
834
|
833
|
schWhsDvsn: function(isEmpty) {
|
835
|
834
|
return (fn_make_user_info.get('authTpCd') === '50') ? 'W02' : isEmpty ? '' : 'W01';
|
836
|
835
|
},
|
|
836
|
+ appInfo: {
|
|
837
|
+ object: function() {
|
|
838
|
+ return JSON.parse(sessionStorage.getItem('itp_manage_app_info'));
|
|
839
|
+ },
|
|
840
|
+ set: function(strInfo) {
|
|
841
|
+ sessionStorage.setItem('itp_manage_app_info', strInfo);
|
|
842
|
+ },
|
|
843
|
+ get: function(key) {
|
|
844
|
+ return (key === undefined || key === null) ? '' : this.appInfo.object()[key];
|
|
845
|
+ }
|
|
846
|
+ },
|
837
|
847
|
isApp: (/oqpo_android|oqpo_ios/).test(navigator.userAgent.toLowerCase())
|
838
|
848
|
};
|
839
|
849
|
|