• 日常搜索
  • 端口查询
  • IP查询
  • 在线工具
  • 搜本站

人人商城前端图片报错的坑

人人小程序前端报错:Failed to load local image resource /plugin/app/static/images/wxapp/accredit.png
 the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)
其实没啥问题,如果看着不爽的话,改一下图片路径就可以,如下

路径:

前端\pages\message\auth\index.wxml

原:

<view class="image">
           <image src="{{imgUrl+'/plugin/app/static/images/wxapp/accredit.png'}}"></image>
       </view>

改成

<view class="image">

           <image src="https://自己域名/addons/ewei_shopv2/plugin/app/static/images/wxapp/accredit.png"></image>
       </view>


文章目录
  • 路径:
  • 原:
  • 发表评论