123 lines
7.5 KiB
HTML
Executable File
123 lines
7.5 KiB
HTML
Executable File
<include file="Public/Header" />
|
|
|
|
<!-- right content start -->
|
|
<div class="content-right">
|
|
<div class="content">
|
|
<!-- back nav start -->
|
|
<legend>
|
|
<span class="fs-16">{{:L('alipay_life_message_content_title')}}</span>
|
|
<a href="{{:U('Admin/AlipayLifeMessage/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
|
|
</legend>
|
|
<!-- back nav end -->
|
|
|
|
<!-- operation start -->
|
|
<if condition="($msg_type eq 0 and $list_count eq 0) or ($msg_type eq 1 and $list_count lt 10)">
|
|
<div class="am-g">
|
|
<a href="{{:U('Admin/AlipayLifeMessage/ContentSaveInfo', ['message_id'=>$params['message_id']])}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
|
|
</div>
|
|
</if>
|
|
<!-- operation end -->
|
|
|
|
<!-- list start -->
|
|
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
|
|
<thead>
|
|
<tr>
|
|
<th>{{:L('alipay_life_message_title_text')}}</th>
|
|
<th>{{:L('alipay_life_message_content_text')}}</th>
|
|
<th>{{:L('alipay_life_message_image_url_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('alipay_life_message_url_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('alipay_life_message_action_name_text')}}</th>
|
|
<th>{{:L('common_more_name')}}</th>
|
|
<th>{{:L('common_operation_name')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<if condition="!empty($list)">
|
|
<foreach name="list" item="v">
|
|
<tr id="data-list-{{$v.id}}">
|
|
<td>
|
|
<if condition="empty($v['title'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.title}}</if>
|
|
</td>
|
|
<td>
|
|
<if condition="empty($v['content'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.content}}</if>
|
|
</td>
|
|
<td>
|
|
<if condition="!empty($v['image_url'])">
|
|
<a href="{{$v['image_url']}}" target="_blank">
|
|
<img src="{{$v['image_url']}}" class="am-radius" width="100" />
|
|
</a>
|
|
<else />
|
|
<span class="cr-ddd">{{:L('common_on_fill_in_images')}}</span>
|
|
</if>
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
<if condition="empty($v['url'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.url}}</if>
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
<if condition="empty($v['action_name'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.action_name}}</if>
|
|
</td>
|
|
<td>
|
|
<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> {{:L('common_see_more_name')}}</span>
|
|
<div class="am-popup am-radius" id="my-popup{{$v.id}}">
|
|
<div class="am-popup-inner">
|
|
<div class="am-popup-hd">
|
|
<h4 class="am-popup-title">{{:L('common_detail_content')}}</h4>
|
|
<span data-am-modal-close class="am-close">×</span>
|
|
</div>
|
|
<div class="am-popup-bd">
|
|
<dl class="dl-content">
|
|
<dt>{{:L('alipay_life_message_title_text')}}</dt>
|
|
<dd><if condition="empty($v['title'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.title}}</if></dd>
|
|
|
|
<dt>{{:L('alipay_life_message_content_text')}}</dt>
|
|
<dd><if condition="empty($v['content'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.content}}</if></dd>
|
|
|
|
<dt>{{:L('alipay_life_message_image_url_text')}}</dt>
|
|
<dd>
|
|
<if condition="!empty($v['image_url'])">
|
|
<img src="{{$v['image_url']}}" class="am-img-thumbnail am-radius" width="100" height="100" />
|
|
<else />
|
|
<span class="cr-ddd">{{:L('common_on_fill_in_images')}}</span>
|
|
</if>
|
|
</dd>
|
|
|
|
<dt>{{:L('alipay_life_message_url_text')}}</dt>
|
|
<dd><if condition="empty($v['url'])"><span class="cr-ddd">{{:L('common_not_set_text')}}</span><else />{{$v.url}}</if></dd>
|
|
|
|
<dt>{{:L('alipay_life_message_action_name_text')}}</dt>
|
|
<dd><if condition="empty($v['action_name'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.action_name}}</if></dd>
|
|
|
|
<dt>{{:L('common_create_time_name')}}</dt>
|
|
<dd>{{$v.add_time}}</dd>
|
|
|
|
<dt>{{:L('common_upd_time_name')}}</dt>
|
|
<dd>{{$v.upd_time}}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="view-operation">
|
|
<if condition="$v['status'] eq 0">
|
|
<a href="{{:U('Admin/AlipayLifeMessage/ContentSaveInfo', array('id'=>$v['id'], 'message_id'=>$params['message_id']))}}">
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> {{:L('common_operation_edit')}}</button>
|
|
</a>
|
|
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/AlipayLifeMessage/ContentDelete')}}" data-id="{{$v.id}}"> {{:L('common_operation_delete')}}</button>
|
|
</if>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
<else />
|
|
<tr><td colspan="20" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
|
|
</if>
|
|
</tbody>
|
|
</table>
|
|
<!-- list end -->
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
<include file="Public/Footer" />
|
|
<!-- footer end --> |