mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-13 01:05:42 +08:00
76 lines
3.3 KiB
HTML
76 lines
3.3 KiB
HTML
<!--
|
|
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
|
|
|
|
<link rel="stylesheet" href="<{$env.app.res_url}>/css/footer.css">
|
|
<footer id="footer" class="fixed bottom">
|
|
<nav class="icon-bar reverse two-up" data-topbar>
|
|
<a href="<{$delivery_link.desktop}>" class="item <{if empty($action)}>active<{/if}>"><i class="icon-panel"></i><label>工作台</label></a>
|
|
<a href="<{$delivery_link.mine}>" class="item <{if in_array($action, array('mine', 'user', 'passwd', 'info'))}>active<{/if}>"><i class="icon-user"></i><label>个人中心</label></a>
|
|
</nav>
|
|
<div class="text-center" style="padding:6px 0;font-size:12px;color:#999;">
|
|
Powered by
|
|
<a href="https://shopex.cn" target="_blank" style="color:#999;text-decoration:none;">
|
|
<img src="<{$env.CONF.ROOT_DIR}>/app/desktop/statics/mini-logo.png" alt="oneX OMS Logo" style="height:16px;vertical-align:middle;">
|
|
</a>
|
|
</div>
|
|
</footer>
|
|
<script src="<{$env.app.res_url}>/js/libs.min.js"></script>
|
|
<script src="<{$env.app.res_url}>/js/mobile.min.js"></script>
|
|
<script src="<{$env.app.res_url}>/js/main.min.js"></script>
|
|
|
|
<script>
|
|
|
|
function setupWebViewJavascriptBridge( callback ) {
|
|
if ( window.WebViewJavascriptBridge ) {
|
|
return callback( WebViewJavascriptBridge )
|
|
}
|
|
if ( window.WVJBCallbacks ) {
|
|
return window.WVJBCallbacks.push( callback )
|
|
}
|
|
window.WVJBCallbacks = [callback]
|
|
|
|
var WVJBIframe = document.createElement( 'iframe' )
|
|
WVJBIframe.style.display = 'none'
|
|
WVJBIframe.src = 'wvjbscheme://__BRIDGE_LOADED__'
|
|
document.documentElement.appendChild( WVJBIframe )
|
|
setTimeout( function () {
|
|
document.documentElement.removeChild( WVJBIframe )
|
|
}, 0 )
|
|
}
|
|
|
|
// APP扫码测试
|
|
setupWebViewJavascriptBridge(function(bridge) {
|
|
bridge.registerHandler('NTBleScanCodeJSActionCallHandler', function(data, responseCallback) {
|
|
console.log( 'NTBleScanCodeJSActionCallHandler: ', data )
|
|
var activeElement = document.activeElement
|
|
if ( activeElement.tagName.toLocaleLowerCase() == 'input' ) {
|
|
$( activeElement ).val( data.keyword )
|
|
document.querySelector( ".scan-form" ).submit();
|
|
}/* */
|
|
})
|
|
})
|
|
|
|
// function NTBleScanCodeJSActionCallHandler( context ) {
|
|
// console.log( 'NTBleScanCodeJSActionCallHandler: ', context )
|
|
// var activeElement = document.activeElement
|
|
// if ( activeElement.tagName.toLocaleLowerCase() == 'input' ) {
|
|
// $( activeElement ).val( context.keyword )
|
|
// document.querySelector( ".scan-form" ).submit();
|
|
// }
|
|
// }
|
|
</script> |