后台登录和商品页细节优化

This commit is contained in:
gongfuxiang 2022-03-04 17:30:26 +08:00
parent 5b4da7cd27
commit 03afcf30cc
5 changed files with 16 additions and 12 deletions

View File

@ -56,13 +56,17 @@ class Order extends Common
// 总数
$total = OrderService::OrderTotal($this->form_where);
// 提示信息
$tips_msg = OrderService::OrderTipsMsg($this->form_where);
// 分页
$page_params = [
'number' => $this->page_size,
'total' => $total,
'where' => $this->data_request,
'page' => $this->page,
'url' => MyUrl('admin/order/index'),
'number' => $this->page_size,
'total' => $total,
'where' => $this->data_request,
'page' => $this->page,
'url' => MyUrl('admin/order/index'),
'tips_msg' => $tips_msg,
];
$page = new \base\Page($page_params);

View File

@ -117,8 +117,8 @@
</div>
{{/if}}
<div class="am-padding-horizontal-sm am-nbfc">
<a href="javascript:;" class="text-muted" data-am-popover="{theme: 'danger sm', content: '请联系管理员重置密码', trigger: 'hover focus'}">忘记密码?</a>
<div class="am-padding-horizontal am-nbfc">
<a href="https://doc.shopxo.net/article/1/265389860360028160.html" target="_blank" class="text-muted" data-am-popover="{theme: 'danger sm', content: '请联系管理员重置密码', trigger: 'hover focus'}">忘记密码?</a>
</div>
</div>
</div>

View File

@ -56,8 +56,8 @@
<div class="am-panel-bd am-padding-vertical-xs">
<div class="am-form-group">
<label>标题名称<span class="am-form-group-label-tips-must">必填</span></label>
<input type="hidden" name="title_color" value="{{if !empty($data['title_color'])}}{{$data.title_color}}{{/if}}" />
<div class="am-input-group am-input-group-sm">
<input type="hidden" name="title_color" value="{{if !empty($data['title_color'])}}{{$data.title_color}}{{/if}}" />
<input type="text" name="title" placeholder="标题名称" minlength="2" maxlength="160" data-validation-message="标题名称格式 2~160 个字符" class="am-form-field am-radius" {{if !empty($data)}} value="{{$data.title}}" {{/if}} {{if !empty($data['title_color'])}} style="color:{{$data.title_color}};" {{/if}} required />
<span class="am-input-group-btn">
<button type="button" class="am-btn am-btn-default am-btn-xs colorpicker-submit" data-input-tag="input[name='title']" data-color-tag="input[name='title_color']">

View File

@ -46,7 +46,7 @@
{{/if}}
</div>
<div class="am-form-group reply-submit am-form-group-refreshing">
<div class="am-form-group reply-submit am-form-group-refreshing am-margin-top-sm">
<input type="hidden" name="id" value="" />
<button type="submit" class="am-btn am-btn-primary am-radius am-btn-sm am-btn-block" data-am-loading="{loadingText:'处理中...'}">确认</button>
</div>
@ -92,7 +92,7 @@
<textarea name="refuse_reason" rows="5" class="am-radius" placeholder="拒绝原因格式 2~230 个字符" data-validation-message="拒绝原因格式 2~230 个字符" minlength="2" maxlength="230" required></textarea>
</div>
<div class="am-form-group reply-submit am-form-group-refreshing">
<div class="am-form-group reply-submit am-form-group-refreshing am-margin-top-sm">
<input type="hidden" name="id" value="" />
<button type="submit" class="am-btn am-btn-danger am-radius am-btn-sm am-btn-block" data-am-loading="{loadingText:'处理中...'}">确认</button>
</div>

View File

@ -12,14 +12,14 @@
<div class="am-form-group">
<label>名称<span class="am-form-group-label-tips-must">必填</span></label>
<input type="text" name="name" placeholder="名称" minlength="2" maxlength="16" data-validation-message="名称格式 2~16 个字符之间" class="am-radius" {{if !empty($data)}} value="{{$data.name}}"{{/if}} required />
<input type="text" name="name" placeholder="名称" minlength="2" maxlength="30" data-validation-message="名称格式 2~30 个字符之间" class="am-radius" {{if !empty($data)}} value="{{$data.name}}"{{/if}} required />
</div>
<div class="am-form-group">
<label>别名<span class="am-form-group-label-tips">选填</span></label>
<input type="text" name="alias" placeholder="别名" minlength="0" maxlength="16" data-validation-message="别名格式最多 16 个字符" class="am-radius" {{if !empty($data)}} value="{{$data.alias}}"{{/if}} />
</div>
<div class="am-form-group">
<label>权重<span class="am-form-group-label-tips">选填</span></label>
<label>权重<span class="am-form-group-label-tips">选填、权重数值越大代表权重越高</span></label>
<input type="number" name="level" placeholder="权重" minlength="0" maxlength="16" data-validation-message="请输入有效权重数值" class="am-radius" {{if !empty($data)}} value="{{$data.level}}"{{/if}} />
</div>