Commit 1840a1dd by 梁建民

js

parent dd7e6d7a
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<include file="public/foot" /> <include file="public/foot" />
<script src="__PUBLIC__/js/goodmanage/uploadsingle.js"></script> <script src="__PUBLIC__/js/goodmanage/uploadsingle.js"></script>
<script type="text/html" id="deliveryHtml"> <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"> <input type="text" placeholder="输入时间" class="boxsiz day_input input" lay-verify="required|number" name="day">
<i class="day"></i> <i class="day"></i>
{{# } }} {{# } }}
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}) })
var platform = { var platform = {
pf: 20, source: 2,
token: '1298dc6f00a017d9e94fc1e57792625d' token: '1298dc6f00a017d9e94fc1e57792625d'
} }
......
...@@ -18,20 +18,13 @@ ...@@ -18,20 +18,13 @@
//货期选择 //货期选择
layui.form.on('radio(delivery)', function (data) { layui.form.on('radio(delivery)', function (data) {
var val = 1; var str = '期货';
if (data.value == '期货') { data.value == '期货' ? str='期货':str='现货';
val = 1;
} else if (data.value == '现货') {
val = 2;
}
var getTpl = deliveryHtml.innerHTML; var getTpl = deliveryHtml.innerHTML;
layui.laytpl(getTpl).render(val, function (html) { layui.laytpl(getTpl).render(str, function (html) {
$("#day").empty().html(html); $("#day").empty().html(html);
...@@ -74,6 +67,8 @@ ...@@ -74,6 +67,8 @@
opt.isClick = false; 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