Foxtable(狐表)用户栏目专家坐堂 → 返回到 TabBar


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

主题:返回到 TabBar

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


加好友 发短信
等级:超级版主 帖子:110738 积分:563610 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/7/25 22:43:00 [显示全部帖子]

参考:http://www.foxtable.com/mobilehelp/topics/0109.htm

.Add("btn1""下一页""button").Attribute="onclick=""hide('page1');show('page2')"""

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


加好友 发短信
等级:超级版主 帖子:110738 积分:563610 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/7/26 8:43:00 [显示全部帖子]


Select Case e.Path
    Case "test.htm"
        Dim txt As String = "由各种物质组成的巨型球状天体,叫做星球.星球有一定的形状,有自己的运行轨道."
        '增加三个页面,一个按钮
        With wb.AddTabBar("", "tb1", 1)
            .AddPage("page1","销售信息","./images/Report32.ico")
            .AddPage("page2","销售明细","./images/Relation32.ico")
            .AddPage("page3","销售旧金","./images/OuterTable32.ico")
            
        End With
        '为第一个页面增加内容
……
        '为第三个页面增加内容
        With wb.AddArticle("page3","ar1")
            Dim cmd As new SQLCommand
            cmd.C
            cmd.CommandText= "select *From 销售回收换款旧金 where 编号 = '" & e.GetValues("pv") & "'"
            
            Dim dt As DataTable = cmd.ExecuteReader
            For Each r As DataRow In dt.DataRows
                With wb.AddPreview("page3","pv" & r("_Identify")," ","<span style='font-family:宋体;font-size:20px'>" &  r("对账品名")+"|"+ r("旧金备注")+r("旧金品名")+r("旧金店名") & "</span>" )
                    '.AddItem("商品条码:" , r("商品条码"))
                    .AddItem("<span style='font-family:宋体;font-size:20px'>" & "金重:" & r("金重") & "</span>","<span style='font-family:宋体;font-size:20px'>" & "标签价格:" & r("标签价格") & "</span>")
                    .Addbutton("详情", "", 1)
                End With
                wb.AppendHTML("<br/>")
            Next
        End With
        If e.GetValues.ContainsKey("p") Then
            wb.AppendHTML("<script>hide('page1');show('" & e.GetValues("p") & "')</script>")
        End If
    Case "filter2.htm"
        wb.AddForm("","form1","test.htm")
        
        With wb.AddInputGroup("form1","ipg1","销售明细详情")
            
……
        
        With wb.AddButtonGroup("","btg1")
            .Add("btn1", "返回", "button","test.htm?p=page2")
        End With
End Select


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


加好友 发短信
等级:超级版主 帖子:110738 积分:563610 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/7/26 11:41:00 [显示全部帖子]

test.htm
        '为第二个页面增加内容
        
        With wb.AddPanelGroup("page2","pg2","销售明细")
            Dim cmd As new SQLCommand
            cmd.C
            cmd.CommandText= "select *From 销售明细 where 编号 = '" & e.GetValues("pv") & "'"
            Dim dt As DataTable = cmd.ExecuteReader
            For Each r As DataRow In dt.DataRows
                With wb.AddPreview("page2","pv" & r("_Identify")," ","<span style='font-family:宋体;font-size:20px'>" & r("对账品名")+r("对账品类") & "</span>" )
                    .AddItem("<span style='font-family:宋体;font-size:20px'>" & "商品名称:" & "</span>" ,"<span style='font-family:宋体;font-size:20px'>" & r("品名商品名称") & "</span>")
                    .AddItem("<span style='font-family:宋体;font-size:20px'>" & "商品条码:" & r("商品条码") & "</span>","<span style='font-family:宋体;font-size:20px'>" & "金重:" & r("金重") & "</span>")
                    .AddItem("<span style='font-family:宋体;font-size:20px'>" & "标签价格:" & r("标签价格") & "</span>","<span style='font-family:宋体;font-size:20px'>" & "总重量:" & r("总重量") & "</span>")
                    .Addbutton("详情", "filter2.htm?id=" & r("_Identify") & "&pv=" & e.GetValues("pv"), 1)
                    '.Addbutton("修改", "新增客户.htm?id=" & dr("_Identify"), 0)
                End With
                wb.AppendHTML("<br/>")
            Next
        End With
-------------------------
filter2.htm
……
        
        With wb.AddButtonGroup("","btg1")
            .Add("btn1", "返回", "button","test.htm?p=page2&pv=" & e.GetValues("pv"))
        End With
End Select

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


加好友 发短信
等级:超级版主 帖子:110738 积分:563610 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/7/26 14:37:00 [显示全部帖子]

weui没有这种功能

 回到顶部