Commit bd4989a0 by 朱继来

调整js展示

parent 78429e87
......@@ -1066,6 +1066,15 @@
}
});
// 用户来源 -- 其他
$('input[name="client_source"]').on('click', function(){
if($(this).val() == 1){
$('.client-input-other').show();
} else {
$('.client-input-other').hide();
}
});
// 订单审核---通过or不通过
$('input[name="order_status"]').parent().on('click', function(){
if($(this).find('input').val() == 2){
......@@ -1075,6 +1084,15 @@
}
});
// 订单审核 -- 其他
$('input[name="reason"]').on('click', function(){
if($(this).val() == 1){
$('.other-reason').show();
} else {
$('.other-reason').hide();
}
});
$('.cancle_reason label').click(function(){
if($(this).find('input').val() == 1){
var reason = $('textarea[name="reason"]').val();
......
......@@ -37,7 +37,7 @@
<label><input type="radio" name="client_source" value="1">其他</label>
</div>
<div class="client-input-other">
<div class="client-input-other" style="display: none;">
<textarea name="input-other-source" id="input-other-source" placeholder="请填写其他来源"></textarea>
</div>
</td>
......@@ -72,7 +72,7 @@
<label><input type="radio" name="reason" value="1">其他</label>
</div>
<div class="other-reason">
<div class="other-reason" style="display: none;">
<textarea name="reason" id="input-reason" placeholder="请填写其他原因"></textarea>
</div>
</td>
......
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