我用weui做了个合同签约的页面, 我需要有个链接, 点击阅读合同详情, 那么在WEUI的界面上, 怎么弹出来一个窗体,有参考网上,说是应该类似如下写,但是写完不起作用,
有建议的方式的不?
网络上的地址是这个:http://jqweui.com/extends#popup
wb.InsertHTML("form1","<div class='weui_cells weui_cells_form' style='text-align:center'>")
wb.InsertHTML("form1","<label for='weuiAgree' class='weui-agree'>")
wb.InsertHTML("form1","<input id='weuiAgree' type='checkbox' class='weui-agree__checkbox' checked='true'>")
wb.InsertHTML("form1","<span class='weui-agree__text'>已阅读并同意<a href='javascript:void(0);' class='open-popup' data-target='#ht'>《货物运输合同》</a></span>")
wb.InsertHTML("form1","</label></div>")
With wb.AddButtonGroup("form1","btg1",True)
.Add("btn1", "确定", "submit")
End With
wb.InsertHTML("<div id='ht' class='weui-popup__container' style='display: none;'>")
wb.InsertHTML(" <div class='weui-popup__overlay'></div>")
wb.InsertHTML(" <div class='weui-popup__modal'>")
wb.InsertHTML(" 你的内容放在这里...")
wb.InsertHTML(" </div>")
wb.InsertHTML("</div>")
[此贴子已经被作者于2018/12/19 18:42:30编辑过]