dever 7 年之前
父節點
當前提交
bf15b1bc9c

+ 4 - 4
tm/template_dir/admin/activity/page_create.html

@@ -118,7 +118,7 @@
 		<div>
 			<{foreach from=$focusDisplay  item=info key=key}>
 			<label class="radio-inline">
-				<input name="focus_display" type="radio" value="<{$key}>" <{if $eventData.focus_display == $key}>checked<{/if}> > <{$info.desc}>
+				<input name="focus_display" type="radio" value="<{$key}>" <{if $key == 1}>checked<{/if}> > <{$info.desc}>
 			</label>
 			<{/foreach}>
 		</div>	
@@ -129,7 +129,7 @@
 		<div>
 			<{foreach from=$topDisplay  item=info key=key}>
 			<label class="radio-inline">
-				<input name="top_display" type="radio" value="<{$key}>" <{if $eventData.top_display == $key}>checked<{/if}> > <{$info.desc}>
+				<input name="top_display" type="radio" value="<{$key}>" <{if $key == 1}>checked<{/if}> > <{$info.desc}>
 			</label>
 			<{/foreach}>
 		</div>	
@@ -140,7 +140,7 @@
 		<div>
 			<{foreach from=$authorize item=info key=authid}>
 			<label class="radio-inline">
-				<input name="authorize" type="radio" value="<{$authid}>"> <{$info.desc}>
+				<input name="authorize" type="radio" value="<{$authid}>" <{if $authid == 1}>checked<{/if}>> <{$info.desc}>
 			</label>
 			<{/foreach}>
 		</div>	
@@ -151,7 +151,7 @@
 		<div>
 			<{foreach from=$listDisplay item=info key=key}>
 			<label class="radio-inline">
-				<input name="list_display" type="radio" value="<{$key}>"> <{$info.desc}>
+				<input name="list_display" type="radio" value="<{$key}>" <{if $key == 1}>checked<{/if}>> <{$info.desc}>
 			</label>
 			<{/foreach}>
 		</div>	

+ 3 - 3
tm/template_dir/admin/activity/setPage_event.html

@@ -46,7 +46,7 @@
 				<label class="control-label rowlabel">显示顶部数据栏目:</label>
 				<{foreach from=$eventsTopData item=info key=key}>
 				<label class="radio-inline">
-					<input name="top_data" type="radio" value="<{$key}>" <{if $eventData.top_data == $key}>checked<{/if}>> <{$info.desc}>
+					<input name="top_data" type="radio" value="<{$key}>" <{if $eventData.top_data == $key}>checked<{elseif !$eventData.top_data && $key == 1}>checked<{/if}>> <{$info.desc}>
 				</label>
 				<{/foreach}>
 			</div>
@@ -76,7 +76,7 @@
 				<label class="control-label rowlabel">是否显示分享按钮:</label>
 				<{foreach from=$eventsShareButton item=info key=key}>
 				<label class="radio-inline">
-					<input name="share_button" type="radio" value="<{$key}>" <{if $eventData.share_button == $key}>checked<{/if}>> <{$info.desc}>
+					<input name="share_button" type="radio" value="<{$key}>" <{if $eventData.share_button == $key}>checked<{elseif !$eventData.share_button && $key == 1}>checked<{/if}>> <{$info.desc}>
 				</label>
 				<{/foreach}>
 
@@ -87,7 +87,7 @@
 				<label class="control-label rowlabel">是否显示导购按钮:</label>
 				<{foreach from=$eventsBuyButton item=info key=key}>
 				<label class="radio-inline">
-					<input name="buy_button" type="radio" value="<{$key}>" <{if $eventData.buy_button == $key}>checked<{/if}>> <{$info.desc}>
+					<input name="buy_button" type="radio" value="<{$key}>" <{if $eventData.buy_button == $key}>checked<{elseif !$eventData.buy_button && $key == 1}>checked<{/if}>> <{$info.desc}>
 				</label>
 				<{/foreach}>
 

+ 0 - 2
tm/template_dir/header.html

@@ -19,9 +19,7 @@
 <script src="<{$web_cfg.cdn}>/public/static/js/jquery-1.8.3.min.js?v=0.2" charset="utf-8"></script>
 <script src="<{$web_cfg.cdn}>/public/static/js/sidebar.js?v=0.2" charset="utf-8"></script>
 
-<!--
 <script src="<{$web_cfg.cdn}>/public/login.js" charset="utf-8"></script>
--->
 <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/public/static/css/base.css" />
 <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/public/static/css/style.css" />
 <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/public/bootstrap/font-awesome-4.3.0/css/font-awesome.css" />