chore: 优化系统功能与界面体验
- 升级系统版本至1.0.100 - 新增订单详情页物流、资质等信息展示 - 优化师傅报价页收益计算与显示 - 新增企业资质管理模块 - 优化后台标签页管理与交互 - 修复标签解析与地址脱敏问题 - 优化预约时段选择逻辑 - 调整服务类型配置界面布局
这个提交包含在:
@@ -250,10 +250,7 @@ class Appeal extends Backend
|
||||
$appealImages = array_values(array_filter(array_map('trim', explode(',', (string)$row['images']))));
|
||||
$reviewImages = $review ? array_values(array_filter(array_map('trim', explode(',', (string)$review['images'])))) : [];
|
||||
|
||||
$orderStatusMap = [
|
||||
0 => '待支付', 1 => '待接单', 2 => '待上门', 3 => '已到达',
|
||||
4 => '服务中', 5 => '待验收', 6 => '已完成', 9 => '已取消', 10 => '售后/异常'
|
||||
];
|
||||
$orderStatusMap = (new \app\admin\model\Order())->getStatusList();
|
||||
|
||||
$this->view->assign([
|
||||
'row' => $row,
|
||||
|
||||
@@ -33,7 +33,141 @@ class Merchant extends Backend
|
||||
/** 独立展示用户提交的企业资质;审核接口沿用原权限。 */
|
||||
public function certificates()
|
||||
{
|
||||
return $this->view->fetch();
|
||||
$this->request->filter(['strip_tags', 'trim']);
|
||||
$certStatusList = ['pending' => '待审核', 'pass' => '已通过', 'reject' => '已驳回'];
|
||||
if (false === $this->request->isAjax()) {
|
||||
$this->view->assign('certStatusList', $certStatusList);
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
$offset = max(0, (int)$this->request->get('offset', 0));
|
||||
$limit = min(100, max(1, (int)$this->request->get('limit', 20)));
|
||||
$search = trim((string)$this->request->get('search', ''));
|
||||
$sort = (string)$this->request->get('sort', 'id');
|
||||
$order = strtolower((string)$this->request->get('order', 'desc')) === 'asc' ? 'asc' : 'desc';
|
||||
|
||||
$fieldMap = [
|
||||
'id' => 'c.id',
|
||||
'company_name' => 'c.company_name',
|
||||
'license_no' => 'c.license_no',
|
||||
'legal_person' => 'c.legal_person',
|
||||
'verify_status' => 'c.verify_status',
|
||||
'audit_msg' => 'c.audit_msg',
|
||||
'createtime' => 'c.createtime',
|
||||
'updatetime' => 'c.updatetime',
|
||||
'nickname' => 'u.nickname',
|
||||
'mobile' => 'u.mobile',
|
||||
'user_type' => 'u.user_type',
|
||||
];
|
||||
$sortCol = $fieldMap[$sort] ?? 'c.id';
|
||||
|
||||
$filter = json_decode((string)$this->request->get('filter', '{}'), true);
|
||||
$op = json_decode((string)$this->request->get('op', '{}'), true);
|
||||
$filter = is_array($filter) ? $filter : [];
|
||||
$op = is_array($op) ? $op : [];
|
||||
|
||||
$makeQuery = function () use ($search, $filter, $op, $fieldMap) {
|
||||
$query = Db::name('user_enterprise_cert')->alias('c')->join('user u', 'u.id = c.user_id', 'LEFT');
|
||||
if ($search !== '') {
|
||||
$query->where(function ($q) use ($search) {
|
||||
$q->where('c.company_name', 'like', '%' . $search . '%')
|
||||
->whereOr('c.license_no', 'like', '%' . $search . '%')
|
||||
->whereOr('c.legal_person', 'like', '%' . $search . '%')
|
||||
->whereOr('u.nickname', 'like', '%' . $search . '%')
|
||||
->whereOr('u.mobile', 'like', '%' . $search . '%');
|
||||
});
|
||||
}
|
||||
foreach ($filter as $k => $v) {
|
||||
if (!isset($fieldMap[$k]) || $v === '' || $v === null) {
|
||||
continue;
|
||||
}
|
||||
$col = $fieldMap[$k];
|
||||
$sym = strtoupper(trim((string)($op[$k] ?? '=')));
|
||||
if ($sym === 'LIKE') {
|
||||
$query->where($col, 'like', '%' . $v . '%');
|
||||
} elseif ($sym === 'RANGE' && is_string($v) && strpos($v, ' - ') !== false) {
|
||||
[$startStr, $endStr] = explode(' - ', $v, 2);
|
||||
$start = strtotime(trim($startStr));
|
||||
$end = strtotime(trim($endStr));
|
||||
if ($start !== false && $end !== false) {
|
||||
$query->where($col, 'between', [$start, $end]);
|
||||
}
|
||||
} else {
|
||||
$query->where($col, '=', $v);
|
||||
}
|
||||
}
|
||||
return $query;
|
||||
};
|
||||
|
||||
$total = $makeQuery()->count();
|
||||
$rows = $makeQuery()
|
||||
->field('c.*, u.nickname, u.mobile, u.user_type')
|
||||
->order($sortCol, $order)
|
||||
->limit($offset, $limit)
|
||||
->select();
|
||||
|
||||
foreach ($rows as &$row) {
|
||||
$row['license_url'] = !empty($row['license_image']) ? cdnurl($row['license_image'], true) : '';
|
||||
}
|
||||
unset($row);
|
||||
|
||||
return json(['total' => $total, 'rows' => $rows]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业资质详情与审核弹窗(待审核时可提交审核结论,已处理时展示只读审核结果)
|
||||
*/
|
||||
public function auditCert($ids = null)
|
||||
{
|
||||
$id = (int)$ids;
|
||||
$row = Db::name('user_enterprise_cert')->alias('c')
|
||||
->join('user u', 'u.id = c.user_id', 'LEFT')
|
||||
->field('c.*, u.nickname, u.mobile, u.user_type')
|
||||
->where('c.id', $id)
|
||||
->find();
|
||||
if (!$row) {
|
||||
$this->error(__('No Results were found'));
|
||||
}
|
||||
|
||||
$canAudit = $this->auth->check('merchant/edit') || $this->auth->check('merchant/auditcert');
|
||||
|
||||
if (false === $this->request->isPost()) {
|
||||
$row['license_url'] = !empty($row['license_image']) ? cdnurl($row['license_image'], true) : '';
|
||||
$this->view->assign('row', $row);
|
||||
$this->view->assign('canAudit', $canAudit);
|
||||
return $this->view->fetch('audit_cert');
|
||||
}
|
||||
|
||||
if (!$canAudit) {
|
||||
$this->error('无权审核企业资质');
|
||||
}
|
||||
|
||||
$params = $this->request->post('row/a', []);
|
||||
$decision = trim((string)($params['verify_status'] ?? ''));
|
||||
$reason = trim((string)($params['audit_msg'] ?? ''));
|
||||
|
||||
if (!in_array($decision, ['pass', 'reject'], true)) {
|
||||
$this->error('请选择审核结论(通过或驳回)');
|
||||
}
|
||||
if ($decision === 'reject' && $reason === '') {
|
||||
$this->error('驳回申请时必须填写驳回原因');
|
||||
}
|
||||
if (mb_strlen($reason) > 500) {
|
||||
$this->error('审核意见不能超过500字');
|
||||
}
|
||||
|
||||
$updated = Db::name('user_enterprise_cert')
|
||||
->where('id', $id)
|
||||
->where('verify_status', 'pending')
|
||||
->update([
|
||||
'verify_status' => $decision,
|
||||
'audit_msg' => $decision === 'reject' ? $reason : '',
|
||||
'updatetime' => time(),
|
||||
]);
|
||||
if (!$updated) {
|
||||
$this->error('申请不存在或已处理,请刷新');
|
||||
}
|
||||
$this->success('审核完成');
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
||||
@@ -241,7 +241,11 @@ class Review extends Backend
|
||||
*/
|
||||
protected function parseTags($raw)
|
||||
{
|
||||
$raw = trim((string)$raw);
|
||||
$raw = trim(html_entity_decode((string)$raw, ENT_QUOTES, 'UTF-8'));
|
||||
// 兼容双重 HTML 转义
|
||||
if (strpos($raw, '"') !== false || strpos($raw, ''') !== false) {
|
||||
$raw = trim(html_entity_decode($raw, ENT_QUOTES, 'UTF-8'));
|
||||
}
|
||||
if ($raw === '') {
|
||||
return [];
|
||||
}
|
||||
@@ -250,6 +254,9 @@ class Review extends Backend
|
||||
if (is_array($arr)) {
|
||||
return array_values(array_filter(array_map('trim', $arr)));
|
||||
}
|
||||
if (preg_match_all('/"([^"]+)"/', $raw, $m) && !empty($m[1])) {
|
||||
return array_values(array_filter(array_map('trim', $m[1])));
|
||||
}
|
||||
}
|
||||
return array_values(array_filter(array_map('trim', explode(',', $raw))));
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ class Showcase extends Backend
|
||||
|
||||
protected function parseTags($raw)
|
||||
{
|
||||
$raw = trim((string)$raw);
|
||||
$raw = trim(html_entity_decode((string)$raw, ENT_QUOTES, 'UTF-8'));
|
||||
if ($raw === '') {
|
||||
return [];
|
||||
}
|
||||
@@ -163,6 +163,10 @@ class Showcase extends Backend
|
||||
if (is_array($arr)) {
|
||||
return array_values(array_filter(array_map('trim', $arr)));
|
||||
}
|
||||
// 兼容非标准 JSON(如空格分隔未加逗号)
|
||||
if (preg_match_all('/"([^"]+)"/', $raw, $m) && !empty($m[1])) {
|
||||
return array_values(array_filter(array_map('trim', $m[1])));
|
||||
}
|
||||
}
|
||||
return array_values(array_filter(array_map('trim', explode(',', $raw))));
|
||||
}
|
||||
|
||||
@@ -75,10 +75,19 @@ class Config extends Backend
|
||||
}
|
||||
$siteList[$v['group']]['list'][] = $value;
|
||||
}
|
||||
$index = 0;
|
||||
$hasActive = false;
|
||||
foreach ($siteList as $k => &$v) {
|
||||
$v['active'] = !$index ? true : false;
|
||||
$index++;
|
||||
if (!$hasActive && !empty($v['list'])) {
|
||||
$v['active'] = true;
|
||||
$hasActive = true;
|
||||
} else {
|
||||
$v['active'] = false;
|
||||
}
|
||||
}
|
||||
unset($v);
|
||||
if (!$hasActive && !empty($siteList)) {
|
||||
$firstKey = array_key_first($siteList);
|
||||
$siteList[$firstKey]['active'] = true;
|
||||
}
|
||||
$this->view->assign('siteList', $siteList);
|
||||
$this->view->assign('typeList', ConfigModel::getTypeList());
|
||||
|
||||
@@ -17,9 +17,33 @@
|
||||
</a>
|
||||
|
||||
<!--如果不想在顶部显示角标,则给ul加上disable-top-badge类即可-->
|
||||
<ul class="nav nav-tabs nav-addtabs disable-top-badge hidden-xs" role="tablist">
|
||||
{$navlist}
|
||||
</ul>
|
||||
<div class="yjyf-tabs-wrap hidden-xs">
|
||||
<button type="button" class="yjyf-tabs-scroll-btn yjyf-tabs-prev hide" title="向左滚动" aria-label="向左滚动">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</button>
|
||||
<ul class="nav nav-tabs nav-addtabs disable-top-badge hidden-xs" role="tablist">
|
||||
{$navlist}
|
||||
</ul>
|
||||
<button type="button" class="yjyf-tabs-scroll-btn yjyf-tabs-next hide" title="向右滚动" aria-label="向右滚动">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</button>
|
||||
{if !$Think.config.fastadmin.multiplenav}
|
||||
<div class="dropdown yjyf-tabs-actions">
|
||||
<a href="javascript:;" class="dropdown-toggle yjyf-tabs-action-btn" data-toggle="dropdown" title="标签页管理" aria-expanded="false">
|
||||
<span class="yjyf-tabs-count">1</span>
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right yjyf-tabs-dropdown">
|
||||
<li class="yjyf-tabs-op"><a href="javascript:;" data-tab-action="refresh"><i class="fa fa-refresh fa-fw"></i> 刷新当前页面</a></li>
|
||||
<li class="yjyf-tabs-op"><a href="javascript:;" data-tab-action="close-current"><i class="fa fa-times fa-fw"></i> 关闭当前标签</a></li>
|
||||
<li class="yjyf-tabs-op"><a href="javascript:;" data-tab-action="close-other"><i class="fa fa-minus-circle fa-fw"></i> 关闭其他标签</a></li>
|
||||
<li class="yjyf-tabs-op"><a href="javascript:;" data-tab-action="close-all"><i class="fa fa-trash-o fa-fw"></i> 关闭全部标签</a></li>
|
||||
<li class="divider"></li>
|
||||
<li class="dropdown-header yjyf-tabs-list-header">已打开页面</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
{/if}
|
||||
|
||||
<!-- 现代企业级 SaaS 统一视觉规范样式引擎 -->
|
||||
<link href="__CDN__/assets/css/theme-modern.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
|
||||
<link href="__CDN__/assets/css/theme-modern.css?v={$Think.config.site.version|htmlentities}-20261124c" rel="stylesheet">
|
||||
|
||||
<!-- 优匠优服 橙白企业级品牌视觉引擎 -->
|
||||
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
|
||||
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}-20261124c" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
/* The image viewer sits above existing dialogs and has its own close control. */
|
||||
@@ -60,7 +60,7 @@
|
||||
var require = {
|
||||
config: {$config|json_encode}
|
||||
};
|
||||
require.config.site.version += "-admin-list-20261119";
|
||||
require.config.site.version += "-admin-ui-fix-20261124c";
|
||||
if (require.config.controllername === 'merchant' || require.config.controllername === 'user.user') {
|
||||
require.config.site.version += "-identity-security-20261121";
|
||||
}
|
||||
|
||||
@@ -179,6 +179,12 @@
|
||||
padding: 4px 8px !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.fc-card-box-body .form-horizontal .control-label {
|
||||
white-space: nowrap;
|
||||
min-width: 148px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="panel panel-default panel-intro">
|
||||
@@ -274,13 +280,13 @@
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="row[include_diff_in_commission]" value="1" {if $cfg.include_diff_in_commission == '1'}checked{/if}>
|
||||
<strong class="text-primary"><i class="fa fa-check-circle"></i> 计入平台抽佣</strong>(推荐:按「主单 + 增项」总付款抽成,杜绝师傅与客户故意低报主单逃佣)
|
||||
<strong class="text-primary">计入平台抽佣</strong>(推荐:按「主单 + 增项」总付款抽成,杜绝师傅与客户故意低报主单逃佣)
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio" style="margin-top:8px;">
|
||||
<label>
|
||||
<input type="radio" name="row[include_diff_in_commission]" value="0" {if $cfg.include_diff_in_commission == '0'}checked{/if}>
|
||||
<strong class="text-muted"><i class="fa fa-circle-o"></i> 增项免抽佣</strong>(增项款 100% 归师傅,仅对主单金额按比例扣佣)
|
||||
<strong class="text-muted">增项免抽佣</strong>(增项款 100% 归师傅,仅对主单金额按比例扣佣)
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -451,7 +457,7 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">单笔提现范围:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最低 ¥</span>
|
||||
@@ -469,7 +475,7 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">单人单日限制:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">单日累计最高 ¥</span>
|
||||
|
||||
@@ -100,11 +100,11 @@
|
||||
<div class="panel-body">
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane fade active in" id="one">
|
||||
<div class="widget-body no-padding">
|
||||
<div class="widget-body no-padding" style="max-width:100%; overflow-x:auto;">
|
||||
<div id="toolbar" class="toolbar">
|
||||
{:build_toolbar('refresh')}
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
|
||||
<table id="table" class="table table-striped table-bordered table-hover" width="100%">
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
margin-bottom: 8px;
|
||||
padding-right: 56px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.kpi-deck-card .kpi-value {
|
||||
font-size: 30px;
|
||||
@@ -112,6 +114,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 10px;
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
}
|
||||
@@ -178,10 +182,11 @@
|
||||
background: #ffffff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
text-decoration: none !important;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
@@ -194,22 +199,24 @@
|
||||
.action-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.action-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 18px;
|
||||
margin-right: 12px;
|
||||
font-size: 15px;
|
||||
margin-right: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.action-text .name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.action-text .sub {
|
||||
font-size: 11px;
|
||||
@@ -217,9 +224,10 @@
|
||||
margin-top: 2px;
|
||||
}
|
||||
.action-num {
|
||||
font-size: 22px;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 师傅运力健康监控条 */
|
||||
@@ -248,6 +256,7 @@
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
white-space: nowrap;
|
||||
background: #f8fafc;
|
||||
border-bottom: 1px solid #e2e8f0 !important;
|
||||
padding: 10px 14px !important;
|
||||
|
||||
@@ -526,22 +526,26 @@
|
||||
|
||||
{include file="common/script" /}
|
||||
<script type="text/javascript">
|
||||
// 确保在 RequireJS 加载完成后安全绑定,避免全局 $ 未定义
|
||||
if (typeof require === 'function') {
|
||||
require(['jquery'], function ($) {
|
||||
$(document).ajaxComplete(function (event, xhr, settings) {
|
||||
if (settings && settings.url && settings.url.indexOf('login') !== -1) {
|
||||
try {
|
||||
var json = JSON.parse(xhr.responseText);
|
||||
if (json && json.code === 0) {
|
||||
var img = document.querySelector(".captcha-badge-box img");
|
||||
if (img) img.click();
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
// 等待 require-backend.js 完成 RequireJS 配置并挂载 jQuery,避免提前 require(['jquery']) 触发 404
|
||||
(function bindLoginCaptchaRefresh() {
|
||||
var timer = setInterval(function () {
|
||||
if (window.jQuery) {
|
||||
clearInterval(timer);
|
||||
window.jQuery(document).ajaxComplete(function (event, xhr, settings) {
|
||||
if (settings && settings.url && settings.url.indexOf('login') !== -1) {
|
||||
try {
|
||||
var json = JSON.parse(xhr.responseText);
|
||||
if (json && json.code === 0) {
|
||||
var img = document.querySelector(".captcha-badge-box img");
|
||||
if (img) img.click();
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 50);
|
||||
setTimeout(function () { clearInterval(timer); }, 10000);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -37,14 +37,14 @@
|
||||
.md-card-title i { color: #f97316; }
|
||||
.md-card-body { padding: 16px; min-width: 0; }
|
||||
.md-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
||||
.md-table-scroll table { min-width: 560px; }
|
||||
.md-table-scroll table { width: 100%; min-width: 420px; }
|
||||
.md-grid-list { min-width: 0; }
|
||||
.md-item-v { min-width: 0; }
|
||||
.master-detail-container .md-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 24px; }
|
||||
@media (max-width: 900px) {
|
||||
@media (max-width: 1100px) {
|
||||
.master-detail-container > .row > .col-sm-6 { width: 100%; float: none; }
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
@media (max-width: 960px) {
|
||||
.md-grid-list { grid-template-columns: 1fr !important; }
|
||||
.md-grid-list .md-item { grid-column: auto !important; }
|
||||
.md-kpi-grid { flex-wrap: wrap; }
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
<style>
|
||||
.cert-license-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; text-align: center; }
|
||||
.cert-license-img { max-width: 100%; max-height: 300px; border-radius: 4px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
|
||||
.cert-license-empty { padding: 36px 0; color: #94a3b8; }
|
||||
.quick-reasons { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.btn-quick-reason { font-size: 12px; padding: 3px 10px; border-radius: 12px; border: 1px dashed #cbd5e1; background: #fff; color: #64748b; cursor: pointer; transition: all 0.2s; }
|
||||
.btn-quick-reason:hover { border-color: #f0710d; color: #f0710d; background: #fff7f0; }
|
||||
</style>
|
||||
|
||||
<form id="audit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
<div class="panel panel-default" style="margin-bottom: 14px;">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title"><i class="fa fa-building-o"></i> 企业资质申报信息(只读核验)</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">申请编号:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static"><code>#{$row.id}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">当前状态:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static">
|
||||
{if $row.verify_status == 'pass'}
|
||||
<span class="label label-success">已通过</span>
|
||||
{elseif $row.verify_status == 'reject'/}
|
||||
<span class="label label-danger">已驳回</span>
|
||||
{else/}
|
||||
<span class="label label-warning">待审核</span>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">申请用户:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static">
|
||||
<strong>{$row.nickname|default='-'|htmlentities}</strong>
|
||||
{if !empty($row.mobile)}<span class="text-muted">({$row.mobile|htmlentities})</span>{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">用户类型:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static">
|
||||
{if $row.user_type == 'merchant'}
|
||||
<span class="label label-primary">商家用户</span>
|
||||
{else/}
|
||||
<span class="label label-default">个人用户</span>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">企业名称:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static"><strong>{$row.company_name|default='-'|htmlentities}</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">法人姓名:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static"><strong>{$row.legal_person|default='-'|htmlentities}</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">营业执照号:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static"><code style="font-size:14px; font-weight:600;">{$row.license_no|default='-'|htmlentities}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">提交时间:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static text-muted">{$row.createtime|datetime}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-2">营业执照:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="cert-license-box">
|
||||
{if !empty($row.license_url)}
|
||||
<a href="{$row.license_url|htmlentities}" target="_blank" title="点击新窗口查看高清原图">
|
||||
<img class="cert-license-img" src="{$row.license_url|htmlentities}"
|
||||
onerror="this.style.display='none';this.parentNode.nextElementSibling.style.display='block';" />
|
||||
</a>
|
||||
<div class="cert-license-empty" style="display:none;">
|
||||
<i class="fa fa-exclamation-triangle fa-2x text-warning"></i><br>
|
||||
<span>营业执照图片加载失败或文件不存在</span>
|
||||
</div>
|
||||
<div class="help-block" style="margin-bottom:0; margin-top:6px;">点击图片可在新窗口放大核验企业名称、统一社会信用代码与法人信息</div>
|
||||
{else/}
|
||||
<div class="cert-license-empty">
|
||||
<i class="fa fa-picture-o fa-2x"></i><br>
|
||||
<span>未上传营业执照图片</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title"><i class="fa fa-gavel"></i> 平台审核结论</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{if $row.verify_status != 'pending'}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">审核结论:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static">
|
||||
{if $row.verify_status == 'pass'}
|
||||
<span class="label label-success">审核通过</span>
|
||||
{else/}
|
||||
<span class="label label-danger">已驳回</span>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">处理时间:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static text-muted">{$row.updatetime|datetime}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-2">审核意见:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<p class="form-control-static">{$row.audit_msg|default='-'|htmlentities}</p>
|
||||
</div>
|
||||
</div>
|
||||
{elseif !$canAudit/}
|
||||
<div class="alert alert-info" style="margin-bottom:0;">
|
||||
当前申请处于「待审核」状态,您暂无审核操作权限。
|
||||
</div>
|
||||
{else/}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">审核结论:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="radio">
|
||||
<label for="row[verify_status]-pass" style="margin-right:20px;">
|
||||
<input id="row[verify_status]-pass" name="row[verify_status]" type="radio" value="pass" data-rule="checked" />
|
||||
<span class="text-success"><strong>审核通过</strong></span>
|
||||
</label>
|
||||
<label for="row[verify_status]-reject">
|
||||
<input id="row[verify_status]-reject" name="row[verify_status]" type="radio" value="reject" data-rule="checked" />
|
||||
<span class="text-danger"><strong>驳回申请</strong></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-2" for="c-audit_msg">审核意见:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<textarea id="c-audit_msg" class="form-control" rows="3" name="row[audit_msg]" placeholder="通过可留空;选择驳回时必须填写驳回原因(最多500字)"></textarea>
|
||||
<div class="quick-reasons">
|
||||
<span class="btn-quick-reason" data-text="营业执照照片模糊不清,请重新上传高清完整原件">照片模糊不清</span>
|
||||
<span class="btn-quick-reason" data-text="企业名称与营业执照不一致,请核对后重新提交">企业名称不一致</span>
|
||||
<span class="btn-quick-reason" data-text="营业执照号码填写有误,请核对统一社会信用代码">执照号码有误</span>
|
||||
<span class="btn-quick-reason" data-text="法人姓名与营业执照登记信息不符">法人信息不符</span>
|
||||
<span class="btn-quick-reason" data-text="请上传有效期内且加盖公章或清晰的营业执照正副本">证件无效或已过期</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $row.verify_status == 'pending' && $canAudit}
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</form>
|
||||
@@ -1,8 +1,28 @@
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading"><strong>企业资质审核</strong><p class="text-muted">个人用户和商家用户均可提交企业资质认证;认证不会改变用户类型。</p></div>
|
||||
<div class="panel-heading">
|
||||
<div class="panel-lead"><em>企业资质审核</em>个人用户和商家用户均可提交企业资质认证;认证不会改变用户类型。</div>
|
||||
<ul class="nav nav-tabs" data-field="verify_status">
|
||||
<li class="{:$Think.get.verify_status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">全部申请</a></li>
|
||||
{foreach name="certStatusList" item="vo"}
|
||||
<li class="{:$Think.get.verify_status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<form id="cert-audit-token">{:token()}</form>
|
||||
<div id="certs-toolbar" class="toolbar"><a href="javascript:;" class="btn btn-primary" id="certs-refresh" title="刷新"><i class="fa fa-refresh"></i></a></div>
|
||||
<table id="certs-table" class="table table-striped table-bordered table-hover table-nowrap" data-operate-audit="{:$auth->check('merchant/edit')}" width="100%"></table>
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane fade active in" id="one">
|
||||
<div class="widget-body no-padding">
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i></a>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover"
|
||||
data-operate-detail="1"
|
||||
data-operate-audit="{:$auth->check('merchant/edit') || $auth->check('merchant/auditcert') ? '1' : '0'}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -29,27 +29,27 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">可用角色:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<label class="control-label" style="padding-top:0; font-weight:normal;">可作为【主服务项目】:</label>
|
||||
<div class="radio">
|
||||
<label><input name="row[can_be_main]" type="radio" value="1" checked /> 是</label>
|
||||
<label><input name="row[can_be_main]" type="radio" value="0" /> 否</label>
|
||||
<label style="margin-left:8px;"><input name="row[can_be_main]" type="radio" value="0" /> 否</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<label class="control-label" style="padding-top:0; font-weight:normal;">可作为【增项服务】:</label>
|
||||
<div class="radio">
|
||||
<label><input name="row[can_be_addon]" type="radio" value="1" /> 是</label>
|
||||
<label><input name="row[can_be_addon]" type="radio" value="0" checked /> 否</label>
|
||||
<label style="margin-left:8px;"><input name="row[can_be_addon]" type="radio" value="0" checked /> 否</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<label class="control-label" style="padding-top:0; font-weight:normal;">是否【支持一口价】:</label>
|
||||
<div class="radio">
|
||||
<div class="radio" style="white-space:nowrap;">
|
||||
<label><input name="row[support_fixed]" type="radio" value="1" checked /> 支持一口价</label>
|
||||
<label><input name="row[support_fixed]" type="radio" value="0" /> 仅师傅报价</label>
|
||||
<label style="margin-left:10px;"><input name="row[support_fixed]" type="radio" value="0" /> 仅师傅报价</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,32 +63,37 @@
|
||||
<h4 class="panel-title"><i class="fa fa-sliders"></i> 排序与启用状态</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">运营配置:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">排序权重</span>
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="50">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">排序权重:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="50">
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="radio" style="padding-top: 7px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">默认首选:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="radio">
|
||||
<label><input name="row[is_default]" type="radio" value="1" /> 默认首选服务</label>
|
||||
<label><input name="row[is_default]" type="radio" value="0" checked /> 普通服务</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="radio" style="padding-top: 7px;">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
<label style="margin-left:12px;"><input name="row[is_default]" type="radio" value="0" checked /> 普通服务</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">启用状态:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="radio">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}" style="margin-right:16px;"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -29,27 +29,27 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">可用角色:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<label class="control-label" style="padding-top:0; font-weight:normal;">可作为【主服务项目】:</label>
|
||||
<div class="radio">
|
||||
<label><input name="row[can_be_main]" type="radio" value="1" {if $row.can_be_main==1}checked{/if} /> 是</label>
|
||||
<label><input name="row[can_be_main]" type="radio" value="0" {if $row.can_be_main==0}checked{/if} /> 否</label>
|
||||
<label style="margin-left:8px;"><input name="row[can_be_main]" type="radio" value="0" {if $row.can_be_main==0}checked{/if} /> 否</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<label class="control-label" style="padding-top:0; font-weight:normal;">可作为【增项服务】:</label>
|
||||
<div class="radio">
|
||||
<label><input name="row[can_be_addon]" type="radio" value="1" {if $row.can_be_addon==1}checked{/if} /> 是</label>
|
||||
<label><input name="row[can_be_addon]" type="radio" value="0" {if $row.can_be_addon==0}checked{/if} /> 否</label>
|
||||
<label style="margin-left:8px;"><input name="row[can_be_addon]" type="radio" value="0" {if $row.can_be_addon==0}checked{/if} /> 否</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<label class="control-label" style="padding-top:0; font-weight:normal;">是否【支持一口价】:</label>
|
||||
<div class="radio">
|
||||
<div class="radio" style="white-space:nowrap;">
|
||||
<label><input name="row[support_fixed]" type="radio" value="1" {if $row.support_fixed==1}checked{/if} /> 支持一口价</label>
|
||||
<label><input name="row[support_fixed]" type="radio" value="0" {if $row.support_fixed==0}checked{/if} /> 仅师傅报价</label>
|
||||
<label style="margin-left:10px;"><input name="row[support_fixed]" type="radio" value="0" {if $row.support_fixed==0}checked{/if} /> 仅师傅报价</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,32 +63,37 @@
|
||||
<h4 class="panel-title"><i class="fa fa-sliders"></i> 排序与启用状态</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">运营配置:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">排序权重</span>
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">排序权重:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="radio" style="padding-top: 7px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">默认首选:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="radio">
|
||||
<label><input name="row[is_default]" type="radio" value="1" {if $row.is_default==1}checked{/if} /> 默认首选服务</label>
|
||||
<label><input name="row[is_default]" type="radio" value="0" {if $row.is_default==0}checked{/if} /> 普通服务</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="radio" style="padding-top: 7px;">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
<label style="margin-left:12px;"><input name="row[is_default]" type="radio" value="0" {if $row.is_default==0}checked{/if} /> 普通服务</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">启用状态:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="radio">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}" style="margin-right:16px;"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户