反正网上一大堆,也不知道哪个版本有修复,反正我的没有修复。
问题报错:ReferenceError: angular is not defined
解决如下:
修改文件:addons/ewei_shopv2/plugin/cashier/template/web/manage/_header_base.html
找到
<script src="./resource/js/app/util.js"></script>
加入以下代码:
<script> window.sysinfo = { {if !empty($_W['uniacid'])}'uniacid': '{$_W['uniacid']}',{/if} {if !empty($_W['acid'])}'acid': '{$_W['acid']}',{/if} {if !empty($_W['openid'])}'openid': '{$_W['openid']}',{/if} {if !empty($_W['uid'])}'uid': '{$_W['uid']}',{/if} 'isfounder': {if !empty($_W['isfounder'])}1{else}0{/if}, 'siteroot': '{$_W['siteroot']}', 'siteurl': '{$_W['siteurl']}', 'attachurl': '{$_W['attachurl']}', 'attachurl_local': '{$_W['attachurl_local']}', 'attachurl_remote': '{$_W['attachurl_remote']}', 'module' : {'url' : '{if defined('MODULE_URL')}{MODULE_URL}{/if}', 'name' : '{if defined('IN_MODULE')}{IN_MODULE}{/if}'}, 'cookie' : {'pre': '{$_W['config']['cookie']['pre']}'}, 'account' : {php echo json_encode($_W['account'])}, }; </script> <link href="{php echo EWEI_SHOPV2_LOCAL}static/css/we7.common.css?v=1.0.0" rel="stylesheet"> <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script> <script type="text/javascript" src="./resource/js/app/common.min.js?v=20170802"></script> <script type="text/javascript">if(util){util.clip = function(){}}</script> <link href="{php echo EWEI_SHOPV2_LOCAL}static/css/we7.common172.css?v=1.0.0" rel="stylesheet">