test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

1 line
5.0 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-cf">地理位置接口列表</div>
</div>
{if $user['applet']['status']['value'] == 1}
<div class="widget-body am-fr">
<div class="am-u-sm-12">
<table width="100%" class="am-table am-table-hover tpl-table-black">
<thead>
<tr>
<th>接口名称</th>
<th>接口标识</th>
<th>审核状态</th>
<th>失败原因</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{if $list['errcode']==0 AND sizeof($list['interface_list'])>0}
{foreach $list['interface_list'] as $item}
<tr>
<td class="am-text-middle">{$item['api_ch_name']}</td>
<td class="am-text-middle">{$item['api_name']}</td>
<td class="am-text-middle">
<span class="am-badge
{$item['status'] == 5 ? ' am-badge-success' : ''}
{$item['status'] == 4 ? ' am-badge-danger' : ''}
{$item['status'] == 3 ? ' am-badge-warning' : ''}
{$item['status'] == 2 ? ' am-badge-danger' : ''}">
{$item['status']==1?'待申请开通':''}
{$item['status']==2?'无权限':''}
{$item['status']==3?'审核中':''}
{$item['status']==4?'申请失败':''}
{$item['status']==5?'已开通':''}
</span>
</td>
<td class="am-text-middle">
{$item['fail_reason']?$item['fail_reason']:'--'}
</td>
<td class="am-text-middle">
{if $item['status']==1 or $item['status']==4}
<div class="tpl-table-black-operation">
<a href="javascript:;" class="item-add tpl-table-black-operation-green"
data-api_ch_name="{$item['api_ch_name']}"
data-api_name="{$item['api_name']}">
<i class="am-icon-plus"></i> 开通
</a>
</div>
{/if}
</td>
</tr>
{/foreach}
{else /}
<tr>
<td colspan="5" class="am-text-center">
{$list['errcode'] == 0 ? '暂无记录' : 'code'.$list['errcode'].'msg'.$list['errmsg']}
</td>
</tr>
{/if}
</tbody>
</table>
</div>
</div>
{else /}
<div class="tips am-margin-bottom-sm am-u-sm-12">
<div class="pre-error">
{$user['applet']['app_id'] == '' ?'未授权绑定小程序':'非授权模式,无操作权限'}
</div>
</div>
{/if}
</div>
</div>
</div>
</div>
{include file="wxapp/privacy/position/add" /}
<script>
$(function () {
/**
* 申请开通
*/
$('.item-add').on('click', function () {
var data = $(this).data();
$.showAction({
title: '申请地理位置接口',
area: '460px',
content: template('tpl-add', data),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "{:url('wxapp.privacy.position/add')}"
});
},
btn2: function ($content) {
return true;
}
});
});
});
</script>