...
|
...
|
@@ -152,32 +152,33 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
$('.vip_price').hide();
|
|
|
}
|
|
|
});
|
|
|
$("#c-category_two_id").data("params", function (obj) {
|
|
|
var id = $("#c-category_one_id").val()?$("#c-category_one_id").val():-1;
|
|
|
return {wherein: {pid: id}};
|
|
|
});
|
|
|
$("#c-category_three_id").data("params", function (obj) {
|
|
|
var id = $("#c-category_two_id").val()?$("#c-category_two_id").val():-1;
|
|
|
return {wherein: {pid: id}};
|
|
|
});
|
|
|
|
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
|
$("#c-category_one_id").on('change',function(){
|
|
|
$("#c-category_two_id").val('');
|
|
|
$("#c-category_two_id_text").val('');
|
|
|
$("#c-category_three_id").val('');
|
|
|
$("#c-category_three_id_text").val('');
|
|
|
$(".category_two .selected_tag").remove();
|
|
|
$(".category_three .selected_tag").remove();
|
|
|
console.log(123);
|
|
|
// $("#c-category_one_id").on('change',function(){
|
|
|
// $("#c-category_two_id").val('');
|
|
|
// $("#c-category_two_id_text").val('');
|
|
|
// $("#c-category_three_id").val('');
|
|
|
// $("#c-category_three_id_text").val('');
|
|
|
// $(".category_two .selected_tag").remove();
|
|
|
// $(".category_three .selected_tag").remove();
|
|
|
// console.log(123);
|
|
|
// });
|
|
|
//
|
|
|
// $("#c-category_two_id").on('change',function(){
|
|
|
// $("#c-category_three_id").val('');
|
|
|
// $("#c-category_three_id_text").val('');
|
|
|
// $(".category_three .selected_tag").remove();
|
|
|
// });
|
|
|
$("#c-category_two_id").data("params", function (obj) {
|
|
|
var id = $("#c-category_one_id").val()?$("#c-category_one_id").val():-1;
|
|
|
return {wherein: {pid: id}};
|
|
|
});
|
|
|
|
|
|
$("#c-category_two_id").on('change',function(){
|
|
|
$("#c-category_three_id").val('');
|
|
|
$("#c-category_three_id_text").val('');
|
|
|
$(".category_three .selected_tag").remove();
|
|
|
$("#c-category_three_id").data("params", function (obj) {
|
|
|
var id = $("#c-category_two_id").val()?$("#c-category_two_id").val():-1;
|
|
|
return {wherein: {pid: id}};
|
|
|
});
|
|
|
}
|
|
|
}
|
...
|
...
|
|