|
@@ -81,6 +81,20 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="layui-form-item" id = "range" style="display: none;">
|
|
|
+ <div class="layui-inline">
|
|
|
+ <label class="layui-form-label">中奖范围</label>
|
|
|
+ <div class="layui-input-inline" style="width: 100px;">
|
|
|
+ <input type="text" name="price_min" placeholder="¥" autocomplete="off" lay-verify="price_min" class="layui-input" id = "price_min" maxlength="10">
|
|
|
+ </div>
|
|
|
+ <div class="layui-form-mid">-</div>
|
|
|
+ <div class="layui-input-inline" style="width: 100px;">
|
|
|
+ <input type="text" name="price_max" placeholder="¥" autocomplete="off" lay-verify="price_max" class="layui-input" id = "price_max" maxlength="10">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">备注:</label>
|
|
|
<div class="layui-input-block" >
|
|
@@ -123,8 +137,15 @@
|
|
|
initSelect('isFragile', "IS_FRAGILE", "isFragile", item, true);
|
|
|
}else if(index == 'type'){
|
|
|
$("#"+index+"").val(item);
|
|
|
- initSelect('type',"GAME_SETUP_TYPE","type",item, true);
|
|
|
- }else{
|
|
|
+ initSelect('type',"GAME_EQU_TYPE","type",item, true);
|
|
|
+ if(item == '02'){
|
|
|
+ $('#range').show();
|
|
|
+ }
|
|
|
+ }else if(index == 'drawAmount'){
|
|
|
+ var str = item.split('-');
|
|
|
+ $("#price_min").val(str[0]);
|
|
|
+ $("#price_max").val(str[1]);
|
|
|
+ }else{
|
|
|
$("#"+index+"").val(item);
|
|
|
}
|
|
|
})
|
|
@@ -181,6 +202,8 @@
|
|
|
if (value =='02'){
|
|
|
var promottonPrice = $("#promottonPrice").val();
|
|
|
var gamePrice = $("#gamePrice").val();
|
|
|
+
|
|
|
+
|
|
|
if(isEmpty(gamePrice)){
|
|
|
return '当前游戏类型为游戏购,请输入游戏价';
|
|
|
}else {
|
|
@@ -201,8 +224,11 @@
|
|
|
return '促销价小数点后保留两位数';
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ return '请选择游戏类型';
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
//监听提交
|
|
@@ -214,6 +240,21 @@
|
|
|
data.field.isContainImg = "0"
|
|
|
}
|
|
|
data.field.imgUrl = imgUrl; */
|
|
|
+
|
|
|
+ var type =$("#type").val();
|
|
|
+ if(type == '02'){
|
|
|
+ var price_min = $('#price_min').val();
|
|
|
+ var price_max = $('#price_max').val();
|
|
|
+ if(isEmpty(price_min)){
|
|
|
+ layer.msg('中奖范围不能为空',function() {time:2000});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(isEmpty(price_max)){
|
|
|
+ layer.msg('中奖范围不能为空',function() {time:2000});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ data.field.drawAmount = price_min+'-'+price_max;
|
|
|
+ }
|
|
|
$.request({
|
|
|
action : '../../MachineManageAction/editProEquRel',
|
|
|
data : data.field ,
|
|
@@ -236,11 +277,14 @@
|
|
|
parent.layer.close(parent.layer.index);
|
|
|
});
|
|
|
form.on('select(type)', function(data){
|
|
|
- if(data.value ==30){
|
|
|
- $('#luckno').show();
|
|
|
- }else{
|
|
|
- $('#luckno').hide();
|
|
|
- }
|
|
|
+ if(data.value == 03){
|
|
|
+ $('#luckno').show();
|
|
|
+ }else if(data.value == 02){
|
|
|
+ $('#range').show();
|
|
|
+ }else{
|
|
|
+ $('#range').hide();
|
|
|
+ $('#luckno').hide();
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
|