Commit e62f2f66 by 冷斌

fix bug

parent 244de9ab
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<option value="0">默认分类</option> <option value="0">默认分类</option>
<volist name="gift_sort" id="vo"> <volist name="gift_sort" id="vo">
<option value="{$key}">{$vo}</option> <option value="{$key}">{$vo}</option>
</volist> </volist>
</select> </select>
<span class="form-required">*</span> <span class="form-required">*</span>
</div> </div>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<label class="radio inline" for="mark_0"><input type="radio" name="mark" value="0" id="mark_0" checked >普通</label> <label class="radio inline" for="mark_0"><input type="radio" name="mark" value="0" id="mark_0" checked >普通</label>
<label class="radio inline" for="mark_1"><input type="radio" name="mark" value="1" id="mark_1" >热门</label> <label class="radio inline" for="mark_1"><input type="radio" name="mark" value="1" id="mark_1" >热门</label>
<label class="radio inline" for="mark_2"><input type="radio" name="mark" value="2" id="mark_2" >守护</label> <label class="radio inline" for="mark_2"><input type="radio" name="mark" value="2" id="mark_2" >守护</label>
<label class="radio inline" for="mark_3"><input type="radio" name="mark" value="3" id="mark_3" >幸运</label> <!-- <label class="radio inline" for="mark_3"><input type="radio" name="mark" value="3" id="mark_3" >幸运</label>-->
<span class="form-required">*</span> <span class="form-required">*</span>
<div id="tips" style="position: absolute;left: 300px;top: 0;display:none;"> <div id="tips" style="position: absolute;left: 300px;top: 0;display:none;">
<span style="color:#ff0000">幸运礼物说明</span><br> <span style="color:#ff0000">幸运礼物说明</span><br>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<span class="form-required">*</span> <span class="form-required">*</span>
</div> </div>
</div> </div>
<div class="control-group" style="display:none;"> <div class="control-group" style="display:none;">
<label class="control-label">小图</label> <label class="control-label">小图</label>
<div class="controls"> <div class="controls">
<input type="hidden" name="gifticon_mini" id="thumb1" value=""> <input type="hidden" name="gifticon_mini" id="thumb1" value="">
...@@ -108,11 +108,11 @@ ...@@ -108,11 +108,11 @@
<a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb3',thumb_images,'1,gif,1,,,1','','','');return false;" id="swftype_bd_0"> <a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb3',thumb_images,'1,gif,1,,,1','','','');return false;" id="swftype_bd_0">
<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb3_preview" width="135" style="cursor: hand" /> <img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb3_preview" width="135" style="cursor: hand" />
</a> </a>
<a href="javascript:void(0);" id="swftype_bd_1" style="display:none"> <a href="javascript:void(0);" id="swftype_bd_1" style="display:none">
<input type="file" name="file"> <input type="file" name="file">
</a> </a>
<input type="button" class="btn btn-small" onclick="$('#thumb3_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb3').val('');return false;" value="取消图片"> <input type="button" class="btn btn-small" onclick="$('#thumb3_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb3').val('');return false;" value="取消图片">
<span class="form-required"></span> <span class="form-required"></span>
</div> </div>
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
b.siblings().hide(); b.siblings().hide();
b.show(); b.show();
}) })
$("#type label.radio").on('click',function(){ $("#type label.radio").on('click',function(){
var v=$("input",this).val(); var v=$("input",this).val();
if(v==0){ if(v==0){
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
$("#mark_3").attr('disabled','disabled'); $("#mark_3").attr('disabled','disabled');
} }
}) })
$("#mark label.radio").on('change',function(){ $("#mark label.radio").on('change',function(){
var v=$("input",this).val(); var v=$("input",this).val();
if(v==3){ if(v==3){
...@@ -166,4 +166,4 @@ ...@@ -166,4 +166,4 @@
})() })()
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<option value="0">默认分类</option> <option value="0">默认分类</option>
<volist name="gift_sort" id="vo"> <volist name="gift_sort" id="vo">
<option value="{$key}" <if condition="$gift['sid'] eq '$key'">selected</if> >{$vo}</option> <option value="{$key}" <if condition="$gift['sid'] eq '$key'">selected</if> >{$vo}</option>
</volist> </volist>
</select> </select>
<span class="form-required">*</span> <span class="form-required">*</span>
</div> </div>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<label class="radio inline" for="mark_0"><input type="radio" name="mark" value="0" id="mark_0" <if condition="$gift['mark'] eq '0'">checked</if> >普通</label> <label class="radio inline" for="mark_0"><input type="radio" name="mark" value="0" id="mark_0" <if condition="$gift['mark'] eq '0'">checked</if> >普通</label>
<label class="radio inline" for="mark_1"><input type="radio" name="mark" value="1" id="mark_1" <if condition="$gift['mark'] eq '1'">checked</if> >热门</label> <label class="radio inline" for="mark_1"><input type="radio" name="mark" value="1" id="mark_1" <if condition="$gift['mark'] eq '1'">checked</if> >热门</label>
<label class="radio inline" for="mark_2"><input type="radio" name="mark" value="2" id="mark_2" <if condition="$gift['mark'] eq '2'">checked</if> >守护</label> <label class="radio inline" for="mark_2"><input type="radio" name="mark" value="2" id="mark_2" <if condition="$gift['mark'] eq '2'">checked</if> >守护</label>
<label class="radio inline" for="mark_3"><input type="radio" name="mark" value="3" id="mark_3" <if condition="$gift['mark'] eq '3'">checked</if> >幸运</label> <!-- <label class="radio inline" for="mark_3"><input type="radio" name="mark" value="3" id="mark_3" <if condition="$gift['mark'] eq '3'">checked</if> >幸运</label>-->
<span class="form-required">*</span> <span class="form-required">*</span>
<div id="tips" style="position: absolute;left: 300px;top: 0;<if condition="$gift['mark'] neq '3'">display:none;</if>"> <div id="tips" style="position: absolute;left: 300px;top: 0;<if condition="$gift['mark'] neq '3'">display:none;</if>">
<span style="color:#ff0000">幸运礼物说明</span><br> <span style="color:#ff0000">幸运礼物说明</span><br>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<label class="control-label">动画图片</label> <label class="control-label">动画图片</label>
<div class="controls"> <div class="controls">
<input type="hidden" name="swf" id="thumb3" value="{$gift['swf']}"> <input type="hidden" name="swf" id="thumb3" value="{$gift['swf']}">
<a class="swftype_bd" href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb3',thumb_images,'1,gif,1,,,1','','','');return false;" id="swftype_bd_0" <if condition="$gift['swftype'] eq '1'">style="display:none;"</if>> <a class="swftype_bd" href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb3',thumb_images,'1,gif,1,,,1','','','');return false;" id="swftype_bd_0" <if condition="$gift['swftype'] eq '1'">style="display:none;"</if>>
<if condition="$gift['swf'] neq '' && $gift['swftype'] eq '0'" > <if condition="$gift['swf'] neq '' && $gift['swftype'] eq '0'" >
<img src="{$gift['swf']}" id="thumb3_preview" width="135" style="cursor: hand" /> <img src="{$gift['swf']}" id="thumb3_preview" width="135" style="cursor: hand" />
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<a class="swftype_bd" href="javascript:void(0);" id="swftype_bd_1" <if condition="$gift['swftype'] eq '0'">style="display:none;" </if> > <a class="swftype_bd" href="javascript:void(0);" id="swftype_bd_1" <if condition="$gift['swftype'] eq '0'">style="display:none;" </if> >
<input type="text" value="{$gift['swf']}" style="width:500px;"> <input type="file" name="file"> <input type="text" value="{$gift['swf']}" style="width:500px;"> <input type="file" name="file">
</a> </a>
<input type="button" class="btn btn-small" onclick="$('#thumb3_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb3').val('');return false;" value="取消图片"> <input type="button" class="btn btn-small" onclick="$('#thumb3_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb3').val('');return false;" value="取消图片">
<span class="form-required"></span> <span class="form-required"></span>
</div> </div>
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
b.siblings(".swftype_bd").hide(); b.siblings(".swftype_bd").hide();
b.show(); b.show();
}) })
$("#type label.radio").on('click',function(){ $("#type label.radio").on('click',function(){
var v=$("input",this).val(); var v=$("input",this).val();
if(v==0){ if(v==0){
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
$("#mark_3").attr('disabled','disabled'); $("#mark_3").attr('disabled','disabled');
} }
}) })
$("#mark label.radio").on('change',function(){ $("#mark label.radio").on('change',function(){
var v=$("input",this).val(); var v=$("input",this).val();
if(v==3){ if(v==3){
...@@ -173,8 +173,8 @@ ...@@ -173,8 +173,8 @@
$("#tips").hide(); $("#tips").hide();
} }
}) })
})() })()
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
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 to comment