Commit 1840a1dd by 梁建民

js

parent dd7e6d7a
......@@ -96,7 +96,7 @@
<include file="public/foot" />
<script src="__PUBLIC__/js/goodmanage/uploadsingle.js"></script>
<script type="text/html" id="deliveryHtml">
{{# if (d== 1) { }}
{{# if (d=='期货') { }}
<input type="text" placeholder="输入时间" class="boxsiz day_input input" lay-verify="required|number" name="day">
<i class="day"></i>
{{# } }}
......
......@@ -9,7 +9,7 @@
})
var platform = {
pf: 20,
source: 2,
token: '1298dc6f00a017d9e94fc1e57792625d'
}
......
......@@ -18,20 +18,13 @@
//货期选择
layui.form.on('radio(delivery)', function (data) {
var val = 1;
var str = '期货';
if (data.value == '期货') {
val = 1;
} else if (data.value == '现货') {
val = 2;
}
data.value == '期货' ? str='期货':str='现货';
var getTpl = deliveryHtml.innerHTML;
layui.laytpl(getTpl).render(val, function (html) {
layui.laytpl(getTpl).render(str, function (html) {
$("#day").empty().html(html);
......@@ -73,6 +66,8 @@
layer.msg(res.errmsg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment