以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 报告一个bug:移动端AddUploader无法单独使用 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=164207) |
-- 作者:liufucan -- 发布时间:2021/4/29 15:26:00 -- 报告一个bug:移动端AddUploader无法单独使用 wb.AddForm("","form1","daoru.htm) With wb.AddInputGroup("form1","ipg1","文件上传") \'文件上传 .AddUploader("up1","") End With With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End With 这样无法上传文件,必须插入别的 .AddHiddenValue("订单编号","123") |
-- 作者:有点蓝 -- 发布时间:2021/4/29 16:02:00 -- 测试没有问题。怎么接收的,代码看看 |
-- 作者:liufucan -- 发布时间:2021/4/29 16:10:00 -- Dim wb As New weui Select Case e.Path Case "addnew.htm" If e.PostValues.Count = 0 Then wb.AddForm("","form1","addnew.htm") With wb.AddInputGroup("form1","ipg1","增加员工") .AddUploader("up1","照片",True) \'True表示允许上传多个文件 End With With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End With e.WriteString(wb.Build) Else For Each key As String In e.Files.Keys If key = "up1" Then For Each fln As String In e.Files(key) e.SaveFile(key, fln, ProjectPath & "Attachments\\" & fln) Next End If Next \'保存并生成增加成功提示页面 With wb.AddMsgPage("","msgpage","增加成功", "好好学习,天天向上") \'生成成功提示页 .AddButton("btn1","继续增加","addnew.htm") End With e.WriteString(wb.Build) End If End Select [此贴子已经被作者于2021/4/29 16:10:56编辑过]
|
-- 作者:有点蓝 -- 发布时间:2021/4/29 16:47:00 -- If e.PostValues.Count = 0 Then 改为 If e.Files.Keys.Count = 0 Then
|
-- 作者:liufucan -- 发布时间:2021/4/29 16:56:00 -- 谢谢 |