Authored by wangshusheng

Merge branch 'dev_限定商品支持小程序' into test6.7

... ... @@ -98,6 +98,7 @@ $(window).on('beforeunload', function() {
var e = new common.edit('#editor-group',ENMA.bucket);
e.on("render",function(){
var isFirst=true;
var _um=$("#limitProductType").val();
if(_um=="2" || _um=="5"){
$("#limitProductType_"+_um).show().find("input").attr("required",true);
... ... @@ -162,7 +163,13 @@ e.on("render",function(){
$("#sknInfo").hide();
$(".product_normal").show();
$(".product_global").hide();
$(":radio[name='limitProductType']:checked").change();
if(isFirst){
$(":radio[name='limitProductType']:checked").change();
isFirst=false;
}else{
$(":radio[name='limitProductType']:first")[0].checked=true;
$(":radio[name='limitProductType']:first").change();
}
break;
case "1":
$("#sknName").hide();
... ... @@ -190,9 +197,6 @@ e.on("render",function(){
var productType = $("#productType").val();
if ( productType == "") productType = 0;
$(":radio[name='productType'][value='"+productType+"']").attr("checked",'checked').change();
$("#productType").val($(":radio[name='productType']:checked").val());
var _sm=$("#hotFlag").val();
... ... @@ -210,6 +214,8 @@ e.on("render",function(){
$(".order-by").find(".red").hide();
}
});
$(":radio[name='channelType']:checked").change();
$("#channelType").val($(":radio[name='channelType']:checked").val());
});
e.on("validate", function() {
... ... @@ -282,7 +288,7 @@ e.on("validate", function() {
_m=res.message;
}
}, true);
if(_m){
return _m;
}
... ... @@ -300,7 +306,7 @@ e.on("validate", function() {
}
var _um=$("#limitProductType").val();
if(_um=="1" || _um=="3"){
if(_um=="1" || _um=="3" || _um=="4"){
return true;
}
... ... @@ -367,7 +373,7 @@ e.on("validate", function() {
});
/*验证排序*/
e.on("validate",function(){
var error=0;
/ var error=0;
var a={};
if(g.__rows.length>0){
for(var i in g.__rows){
... ...