以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- weui框架下如何收藏图片 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=151223) |
-- 作者:sky-18 -- 发布时间:2020/6/18 11:38:00 -- weui框架下如何收藏图片 请教老师问一个问题。 我在weui框架下设计了图片展示功能,现在用户需要对自己喜欢的图片进行收藏。 我该如何为每个图片添加收藏按钮呢?就是内饰打小红心那种功能。 服务器端代码自己会写,关键是怎么写客户端的代码呢? 或者说在weui框架下能否实现这个功能呢?
|
-- 作者:有点蓝 -- 发布时间:2020/6/18 13:36:00 -- 换一种思路,比如: Select Case e.Path Case "test.htm" Dim wb As New weui wb.AddForm("","form1","test.htm") With wb.AddInputGroup("form1","ipg1","") .Attribute = "style=""margin-top:0px""" .AddSwitch("i1","收藏图片1") End With With wb.AddArticle("form1","ar1") .AddImage("./images/001.jpg") End With With wb.AddInputGroup("form1","ipg2","") .Attribute = "style=""margin-top:0px""" .AddSwitch("i2","收藏图片2") End With With wb.AddArticle("form1","ar2") .AddImage("./images/003.jpg") End With With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End With e.WriteString(wb.Build) \'生成网页 End Select |