外卖人商品库上传产品图片窗口打开慢的解决方案

2019-12-17 浏览:1465
外卖人商品库上传产品图片窗口打开慢的解决方案
评论:(0)复制地址

外卖人商品库上传产品图片窗口打开慢,主要是因为<{ofunc type=img link="<{$goodsinfo['img']}>"这行代码加载默认的网站logo,并且在logo前面加上了域名,导致图片加载不到。如http://www.xxx.com/http://www.xxx.com//images/370300/other/xxx.png,解决方法如下:

打开templates/adminpage/shop/goodsone.html 搜索<div id="newimg">

<img <{ofunc type=img link="<{$goodsinfo['img']}>" }> width="136" height="130" id="imgshow" <{if empty($goodsinfo['img'])}> style="display:none;"<{/if}>> 

改为

<{if empty($goodsinfo['img'])}><img <{ofunc type=img  link="<{$goodlogo}>"}> width="136" height="130" id="imgshow" style="display:none;"><{else}><img <{ofunc type=img link="<{$goodsinfo['img']}>" }> width="136" height="130" id="imgshow"><{/if}>


评论:(0)复制地址
发布:苗景云 | 分类:IT技术&设计 | Tags:外卖人

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。