Foxtable(狐表)用户栏目专家坐堂 → grid 图片不显示


  共有1941人关注过本帖树形打印复制链接

主题:grid 图片不显示

帅哥哟,离线,有人找我吗?
fubblyc
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2355 积分:16187 威望:0 精华:0 注册:2013/9/1 8:09:00
grid 图片不显示  发帖心情 Post By:2018/6/4 14:34:00 [显示全部帖子]


奇怪,一个 grid 有显示小图,
另一个没有。
同样的路径的图片
这个不显示:
With wb.AddGrid("","g1")
    For Each dr As DataRow In DataTables("JSAPI").sqlselect("")
        .Add(dr("product_id"),dr("商品名称"),"./images/button.png").Attribute = " & dr("product_id") & "')"""
    Next
End With

这个有显示:
      With wb.AddGrid("","g1")
            .Add("c01","扫码支付", "./images/button.png", "nativepay/index.htm")
            .Add("c02","公众号支付", "./images/button.png", "jsapipay/index.htm")
            .Add("c03","公众号支付测试用例", "./images/button.png", "jsapipay/test.htm")
        End With



图片点击可在新窗口打开查看此主题相关图片如下:微信截图_20180604143742.png
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看此主题相关图片如下:微信截图_20180604143729.png
图片点击可在新窗口打开查看


 回到顶部
帅哥哟,离线,有人找我吗?
fubblyc
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2355 积分:16187 威望:0 精华:0 注册:2013/9/1 8:09:00
  发帖心情 Post By:2018/6/4 15:09:00 [显示全部帖子]

甜老师,完整代码:

'公众号内支付测试用例网页,调用jssdk
Dim e As RequestEventArgs = args(0)

Dim wb As New weui
wb.AddTopTips("","toptip1","请选择经办人信息!")
wb.AddPageTitle("","pageheader","微信充值卡","公司")
wb.AddForm("","form1","test.htm") 
With wb.AddInputGroup("form1","ipg2","经办人信息")
    .AddInput("dp","经办店铺","text").Placeholder = "请选择经办店铺"
    .AddInput("xm","经办人","text").Placeholder = "请选择经办人姓名"
    .AddHiddenValue("订单编号","0010")
End With
With wb.AddInputGroup("form1","ipg3","充值金额")
End With

With wb.AddGrid("","g1")
    For Each dr As DataRow In DataTables("JSAPI").sqlselect("")
        .Add(dr("product_id"),dr("商品名称"),"./images/button.png").Attribute = " & dr("product_id") & "')"" "  
    Next
End With
wb.AppendHTML("<script src='../lib/pay.js'></script>") '引入脚本文件
e.WriteString(wb.Build) '生成网页

 回到顶部
帅哥哟,离线,有人找我吗?
fubblyc
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2355 积分:16187 威望:0 精华:0 注册:2013/9/1 8:09:00
  发帖心情 Post By:2018/6/4 15:26:00 [显示全部帖子]

甜老师,奇怪了,两者都不行。。。


Dim wb As New weui
wb.AddTopTips("","toptip1","请选择经办人信息!")
wb.AddPageTitle("","pageheader","微信充值卡","公司")
wb.AddForm("","form1","test.htm") 
With wb.AddInputGroup("form1","ipg2","经办人信息")
    .AddInput("dp","经办店铺","text").Placeholder = "请选择经办店铺"
    .AddInput("xm","经办人","text").Placeholder = "请选择经办人姓名"
    .AddHiddenValue("订单编号","0010")
End With
With wb.AddInputGroup("form1","ipg3","充值金额")
End With

With wb.AddGrid("","g1")
    'For Each dr As DataRow In DataTables("JSAPI").sqlselect("")
        '.Add(dr("product_id"),dr("商品名称"),"./images/button.png")    '.Attribute = " & dr("product_id") & "')"" "  
    'Next
上面那段已经注释了。
下面这个也是图片没显示:
           .Add("c01","扫码支付", "./images/button.png", "nativepay/index.htm")
            .Add("c02","公众号支付", "./images/button.png", "jsapipay/index.htm")
            .Add("c03","公众号支付测试用例", "./images/button.png", "jsapipay/test.htm")

End With
wb.AppendHTML("<script src='../lib/pay.js'></script>") '引入脚本文件
e.WriteString(wb.Build) '生成网页

 回到顶部
帅哥哟,离线,有人找我吗?
fubblyc
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2355 积分:16187 威望:0 精华:0 注册:2013/9/1 8:09:00
  发帖心情 Post By:2018/6/4 15:28:00 [显示全部帖子]

With wb.AddGrid("form1","g1")

也是不行

 回到顶部
帅哥哟,离线,有人找我吗?
fubblyc
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2355 积分:16187 威望:0 精华:0 注册:2013/9/1 8:09:00
  发帖心情 Post By:2018/6/4 15:45:00 [显示全部帖子]

原来问题在这里:

host=www.yijiansoft.net
path=jsapipay\images\button.png
HttpMethod=GET
poststring=

Case "jsapipay\test.htm" '公众号测试用例页面'
        Functions.Execute("htm_jsapipay_test",e)


甜老师威武!!
[此贴子已经被作者于2018/6/4 15:46:59编辑过]

 回到顶部