mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-04 22:36:52 +08:00
8 lines
555 B
JavaScript
8 lines
555 B
JavaScript
/**
|
|
* Shopex OMS
|
|
*
|
|
* Copyright (c) 2025 Shopex (http://www.shopex.cn)
|
|
* Licensed under Apache-2.0 with additional terms (See LICENSE file)
|
|
*/
|
|
|
|
$(document).mobile();$("form").on("complete.validator",function(e,rs){try{rs=JSON.parse(rs)}catch(e){}if(rs.redirect){if(rs.message){$(document).off("hide.tips").on("hide.tips",function(){location.href=rs.redirect})}else{location.href=rs.redirect}}if(rs.error){return $(document).mobile("tips","show",[rs.message,"msg"])}if(rs.success){if(rs.message)$(document).mobile("tips","show",[rs.message,"msg"])}}); |