收藏
回答

小程序直播列表无法显示主播图片如何处理?

Failed to load local image resource /static/image/order-empty.png 

 the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error) 

回答关注问题邀请回答
收藏

3 个回答

  • 小程序技术专员-binnie
    小程序技术专员-binnie
    2020-04-17

    看下cover_img的地址正常不

    2020-04-17
    有用 1
    回复
  • 林
    2020-04-15

    debugger:///VM1027:2

    .group("Wed Apr 15 2020 15:41:35 GMT+0800 (中国标准时间) 渲染层网络层错误")

            console.error("Failed to load local image resource /static/image/order-empty.png \n the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error) \n")

          console.groupEnd()

    VM643:1

    .group("Wed Apr 15 2020 15:41:35 GMT+0800 (中国标准时间) 渲染层网络层错误")

            console.error("Failed to load local image resource /static/image/order-empty.png \n the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error) \n")

          console.groupEnd()

    INDEX.JSON

    {

        "navigationBarTitleText": "直播列表",

        "usingComponents": {

            "subscribe": "plugin-private://wx2b03c6e691cd7370/components/subscribe/subscribe",

            "app-button": "/components/basic-component/app-button/app-button",

            "app-form-id": "/components/basic-component/app-form-id/app-form-id",

            "app-layout": "/components/basic-component/app-layout/app-layout",

            "app-input": "/components/basic-component/app-input/app-input",

            "app-jump-button": "/components/basic-component/app-jump-button/app-jump-button",

            "app-load-text": "/components/basic-component/app-load-text/app-load-text",

            "app-image": "/components/basic-component/app-image/app-image"

        }

    }


    2020-04-15
    有用
    回复
  • Peter👊
    Peter👊
    2020-04-15

    请提供一个可以复现的代码片段

    2020-04-15
    有用
    回复 8
    • 林
      2020-04-15
      (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/live/index" ], {
          "23a3": function(t, n, i) {
              var a = function() {
                  var t = this;
                  t.$createElement;
                  t._self._c;
              }, o = [];
              i.d(n, "a", function() {
                  return a;
              }), i.d(n, "b", function() {
                  return o;
              });
          },
          "41a5": function(t, n, i) {
              var a = i("c03d");
              i.n(a).a;
          },
          "6ade": function(t, n, i) {
              i.r(n);
              var a = i("8055"), o = i.n(a);
              for (var e in a) "default" !== e && function(t) {
                  i.d(n, t, function() {
                      return a[t];
                  });
              }(e);
              n.default = o.a;
          },
          8055: function(t, n, i) {
              (function(t) {
                  Object.defineProperty(n, "__esModule", {
                      value: !0
                  }), n.default = void 0;
                  var i = {
                      data: function() {
                          return {
                              list: [],
                              page: 1,
                              is_show_load: !1,
                              is_show_hint: !1
                          };
                      },
                      methods: {
                          liveClick: function(n) {
                              101 === n.live_status || 102 === n.live_status ? t.navigateTo({
                                  url: "plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(n.roomid)
                              }) : 103 === n.live_status && (t.setStorage({
                                  key: "live_playback",
                                  data: {
                                      room_info: n
                                  }
                              }), t.navigateTo({
                                  url: "/pages/live/playback?room_id=".concat(n.roomid)
                              }));
                          },
                          getList: function() {
                              var n = this;
                              n.is_show_load || n.$showLoading({
                                  text: "加载中..."
                              }), n.$request({
                                  url: n.$api.live.index,
                                  data: {
                                      page: n.page
                                  }
                              }).then(function(i) {
                                  if (n.$hideLoading(), n.is_show_load = !1, 0 === i.code) {
                                      var a = i.data.list;
                                      1 != n.page ? n.list = n.list.concat(a) : n.list = a, n.page = a.length ? n.page + 1 : n.page,
                                      0 === a.length && (n.is_show_hint = !0);
                                  } else t.showToast({
                                      title: i.msg,
                                      icon: "none",
                                      duration: 1e3
                                  });
                              }).catch(function() {
                                  n.is_show_load = !1, n.$hideLoading();
                              });
                          },
                          subscribeClick: function() {
                              console.log(1);
                          }
                      },
                      onLoad: function(t) {
                          this.getList();
                      },
                      onReachBottom: function() {
                          this.is_show_load = !0, this.is_show_hint = !1, this.getList();
                      }
                  };
                  n.default = i;
              }).call(this, i("543d").default);
          },
          b077: function(t, n, i) {
              i.r(n);
              var a = i("23a3"), o = i("6ade");
              for (var e in o) "default" !== e && function(t) {
                  i.d(n, t, function() {
                      return o[t];
                  });
              }(e);
              i("41a5");
              var s = i("2877"), l = Object(s.a)(o.default, a.a, a.b, !1, null, "1d768906", null);
              n.default = l.exports;
          },
          c03d: function(t, n, i) {}
      }, [ [ "6e50", "common/runtime", "common/vendor" ] ] ]);
      2020-04-15
      回复
    • Peter👊
      Peter👊
      2020-04-15回复
      此页面的右上角有个搜索框,搜索一下代码片段,然后把代码片段的链接分享出来
      2020-04-15
      回复
    • 林
      2020-04-16回复Peter👊
      https://developers.weixin.qq.com/s/BftGkEmF7Qg0
      2020-04-16
      回复
    • Peter👊
      Peter👊
      2020-04-16回复
      都没办法运行
      2020-04-16
      回复
    • 林
      2020-04-16回复Peter👊
      怎么新建才能让一个代码片段运行起来
      2020-04-16
      回复
    查看更多(3)
登录 后发表内容
问题标签