c5_labsci/web/admin/demo/front/form_inputbet.html
2026-01-27 00:52:00 +08:00

79 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<link href="/jscss/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/jscss/theme.js"></script>
</head>
<body>
<form onsubmit="formsubmit(event);">
<div style="height:10em;">占位</div>
<div class="row" style="background:#eeeeee;">
<div class="ciy-form col-24 col-sm-24">
<label>测试a</label>
<div><ciy-inputbet inpstyle="font-size:1.5em;" com="a" unit="米" bet="1000" /></div>
</div>
<div class="ciy-form col-24 col-sm-24">
<label>测试b</label>
<div><ciy-inputbet initevent hasmore com="b" align="center" width="3em"></ciy-inputbet></div>
</div>
<div class="ciy-form col-24 col-sm-24">
<label>测试c</label>
<div><ciy-inputbet hasmore com="c" bet="10" /></div>
</div>
<div class="ciy-form col-24 col-sm-24">
<label>测试d</label>
<div><ciy-inputbet hasmore com="d" bet="100.1000000.10000000000" unit="元.万元.亿元" /></div>
</div>
<div class="ciy-form col-24 col-sm-24">
<label>测试e</label>
<div><ciy-inputbet com="e" bet="10.1000.1000000" unit="CM.*M.KM" /></div>
</div>
</div>
<button type="submit" class="btn lg">提交</button>
<a class="btn" onclick="chg()">改变值</a>
<pre id="id_result"></pre>
<div style="height:30em;">占位</div>
<div style="height:30em;">占位</div>
<div style="height:30em;">占位</div>
</form>
<script type="text/javascript" src="/jscss/ciy.js"></script>
<script type="text/javascript" src="/jscss/ciycmp.js"></script>
<script type="text/javascript" src="/jscss/ciycmp2.js"></script>
<script type="text/javascript" src="/ud/dict/ciy_arearpc.js"></script>
<script type="text/javascript" src="../../common.js"></script>
<script type="text/javascript">
'use strict';
var c;
ciyfn.pageload(function () {
c = ciycmp({ dom: '[com=a]' });
c.onchange = function (d) { showlog(d) };
ciycmp({ dom: '[com=b]', onchange: function (d) { showlog(d) } });
ciycmp({ dom: '[com=c]', value: 100, onchange: function (d) { showlog(d) } });
ciycmp({ dom: '[com=d]', value: "0", onchange: function (d) { showlog(d) } });
ciycmp({ dom: '[com=e]', value: "023", onchange: function (d) { showlog(d) } });
});
function formsubmit(event) {
event.preventDefault();
var postparam = ciyfn.getform(event.target);
showlog(postparam);
}
function showlog(dat) {
console.log(dat);
delete dat.dom;
$5('#id_result').html(JSON.stringify(dat, null, 2));
}
function chg() {
c.setvalue(220);
}
</script>
</body>
</html>