Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
19723978
ShopXO
项目概览
jamesyang1999
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
19723978
编写于
4月 18, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用优化
上级
73b3b454
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
307 addition
and
280 deletion
+307
-280
application/plugins/petscms/Service.php
application/plugins/petscms/Service.php
+10
-10
application/plugins/view/petscms/pets/detail.html
application/plugins/view/petscms/pets/detail.html
+237
-225
application/plugins/view/petscms/pets/index.html
application/plugins/view/petscms/pets/index.html
+1
-1
application/plugins/view/petscms/pets/saveinfo.html
application/plugins/view/petscms/pets/saveinfo.html
+4
-4
application/plugins/view/petscms/petsadmin/index.html
application/plugins/view/petscms/petsadmin/index.html
+1
-1
application/plugins/view/petscms/petsadmin/saveinfo.html
application/plugins/view/petscms/petsadmin/saveinfo.html
+32
-39
public/static/plugins/css/petscms/pets.detail.css
public/static/plugins/css/petscms/pets.detail.css
+22
-0
未找到文件。
application/plugins/petscms/Service.php
浏览文件 @
19723978
...
...
@@ -73,7 +73,7 @@ class Service
foreach
(
$data
as
&
$v
)
{
// 类型
$v
[
'type_name'
]
=
self
::
$pets_attribute_type_list
[
$v
[
'type'
]][
'name'
];
$v
[
'type_name'
]
=
empty
(
$v
[
'type'
])
?
''
:
self
::
$pets_attribute_type_list
[
$v
[
'type'
]][
'name'
];
// 性别
$v
[
'gender_name'
]
=
self
::
$pets_attribute_gender_list
[
$v
[
'gender'
]][
'name'
];
...
...
@@ -249,20 +249,20 @@ class Service
'checked_type'
=>
'length'
,
'key_name'
=>
'title'
,
'checked_data'
=>
'1,60'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'标题格式 1~60 个字符之间'
,
],
[
'checked_type'
=>
'length'
,
'key_name'
=>
'name'
,
'checked_data'
=>
'1,30'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'宠物名字格式 1~30 个字符之间'
,
],
[
'checked_type'
=>
'empty'
,
'key_name'
=>
'birthday'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'请填写出生日期'
,
],
[
...
...
@@ -276,7 +276,7 @@ class Service
'checked_type'
=>
'length'
,
'key_name'
=>
'varieties'
,
'checked_data'
=>
'30'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'品种格式最多 30 个字符'
,
],
[
...
...
@@ -296,35 +296,35 @@ class Service
[
'checked_type'
=>
'empty'
,
'key_name'
=>
'photo'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'请上传宠物相册'
,
],
[
'checked_type'
=>
'length'
,
'key_name'
=>
'content'
,
'checked_data'
=>
'105000'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'宠物简介内容最多 105000 个字符'
,
],
[
'checked_type'
=>
'length'
,
'key_name'
=>
'person_name'
,
'checked_data'
=>
'1,30'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'主人姓名格式 1~30 个字符之间'
,
],
[
'checked_type'
=>
'length'
,
'key_name'
=>
'person_tel'
,
'checked_data'
=>
'1,30'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'主人电话格式 1~30 个字符之间'
,
],
[
'checked_type'
=>
'length'
,
'key_name'
=>
'person_weixin'
,
'checked_data'
=>
'1,30'
,
'is_checked'
=>
2
,
'is_checked'
=>
1
,
'error_msg'
=>
'主人微信格式 1~30 个字符之间'
,
],
[
...
...
application/plugins/view/petscms/pets/detail.html
浏览文件 @
19723978
...
...
@@ -14,6 +14,7 @@
{{if !empty($data)}}
<div
class=
"pets-detail am-container"
>
{{if isset($data['user_id']) and $data['user_id'] gt 0}}
<div
class=
"top"
>
<div
class=
"am-u-md-4 photo"
>
{{if !empty($data['photo'])}}
...
...
@@ -202,6 +203,15 @@
<div
class=
"rich-content"
>
{{$data.content|raw}}
</div>
</div>
{{/if}}
{{else /}}
<div
class=
"pets-not-bind"
>
<i
class=
"am-icon-github-alt am-animation-slide-top"
></i>
<div
class=
"am-alert am-alert-secondary am-animation-shake"
data-am-alert
>
该宠物还没有主人领取,立即领取可爱的宠物宝宝哦!
</div>
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'saveinfo', ['pest_no'=>$data['pest_no']])}}"
class=
"am-btn am-btn-primary am-radius am-icon-get-pocket am-animation-slide-bottom"
>
我要领取
</a>
</div>
{{/if}}
</div>
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
没有相关数据
</div>
...
...
@@ -209,12 +219,13 @@
{{include file="public/footer" /}}
<!-- map -->
<script
type=
"text/javascript"
src=
"{{$Think.__MY_HTTP__}}://api.map.baidu.com/api?v=2.0&ak={{:MyC('common_baidu_map_ak')}}"
></script>
{{if isset($data['user_id']) and $data['user_id'] gt 0}}
<!-- map -->
<script
type=
"text/javascript"
src=
"{{$Think.__MY_HTTP__}}://api.map.baidu.com/api?v=2.0&ak={{:MyC('common_baidu_map_ak')}}"
></script>
<script
type=
"text/javascript"
>
$
(
function
()
{
<script
type=
"text/javascript"
>
$
(
function
()
{
// 丢失地址-地图展示
{{
if
!
empty
(
$data
[
'
lose_lng
'
])
and
!
empty
(
$data
[
'
lose_lat
'
])}}
var
map
=
new
BMap
.
Map
(
"
map-view
"
,
{
enableMapClick
:
false
});
...
...
@@ -269,5 +280,6 @@ $(function()
var
bs
=
map
.
getBounds
();
//返回地图可视区域
cr
.
addCopyright
({
id
:
1
,
content
:
"
<div class='map-copy'><span>拖动红色图标直接定位</span></div>
"
,
bounds
:
bs
});
{{
/
if
}}
});
</script>
\ No newline at end of file
});
</script>
{{/if}}
\ No newline at end of file
application/plugins/view/petscms/pets/index.html
浏览文件 @
19723978
...
...
@@ -99,7 +99,7 @@
<!-- operation start -->
<div
class=
"am-g operation-nav"
>
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'saveinfo')}}"
class=
"am-btn am-btn-primary am-radius am-btn-xs am-icon-plus"
>
新增
/ 绑定
</a>
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'saveinfo')}}"
class=
"am-btn am-btn-primary am-radius am-btn-xs am-icon-plus"
>
新增
</a>
</div>
<!-- operation end -->
...
...
application/plugins/view/petscms/pets/saveinfo.html
浏览文件 @
19723978
...
...
@@ -30,10 +30,10 @@
<!-- 基础 -->
<div
class=
"base-view"
>
{{if empty($data['id'])}}
{{if empty($data['id'])
and !empty($params['pest_no'])
}}
<div
class=
"am-form-group"
>
<label>
编号
<span
class=
"am-form-group-label-tips
-must"
>
请输入二维码上的编号(无二维码留空即可)
</span></label>
<input
type=
"text"
name=
"pest_no"
placeholder=
"编号"
maxlength=
"60"
data-validation-message=
"编号格式 1~60 个字符之间"
class=
"am-radius"
value=
""
/>
<label>
编号
<span
class=
"am-form-group-label-tips
"
>
宠物绑定
</span></label>
<input
type=
"text"
name=
"pest_no"
placeholder=
"编号"
maxlength=
"60"
data-validation-message=
"编号格式 1~60 个字符之间"
class=
"am-radius"
value=
"
{{$params.pest_no}}"
readonly=
"true
"
/>
</div>
{{/if}}
...
...
@@ -63,7 +63,7 @@
</div>
<div
class=
"am-form-group"
>
<label>
品种
<span
class=
"am-form-group-label-tips"
>
必填
</span></label>
<label>
品种
<span
class=
"am-form-group-label-tips
-must
"
>
必填
</span></label>
<input
type=
"text"
name=
"varieties"
placeholder=
"品种"
maxlength=
"30"
data-validation-message=
"品种格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['varieties'])}}{{$data.varieties}}{{/if}}"
required
/>
</div>
...
...
application/plugins/view/petscms/petsadmin/index.html
浏览文件 @
19723978
...
...
@@ -86,7 +86,7 @@
<!-- operation start -->
<div
class=
"am-g operation-nav"
>
<a
href=
"{{:PluginsAdminUrl('petscms', 'petsadmin', 'saveinfo')}}"
class=
"am-btn am-btn-primary am-radius am-btn-xs am-icon-plus"
>
新增
/ 绑定
</a>
<a
href=
"{{:PluginsAdminUrl('petscms', 'petsadmin', 'saveinfo')}}"
class=
"am-btn am-btn-primary am-radius am-btn-xs am-icon-plus"
>
新增
</a>
</div>
<!-- operation end -->
...
...
application/plugins/view/petscms/petsadmin/saveinfo.html
浏览文件 @
19723978
...
...
@@ -11,31 +11,24 @@
<form
class=
"am-form form-validation view-save"
action=
"{{:PluginsAdminUrl('petscms', 'petsadmin', 'save')}}"
method=
"POST"
request-type=
"ajax-url"
request-value=
"{{:PluginsAdminUrl('petscms', 'petsadmin', 'index', $params)}}"
enctype=
"multipart/form-data"
>
<!-- 基础 -->
<div
class=
"base-view"
>
{{if empty($data['id'])}}
<div
class=
"am-form-group"
>
<label>
编号
<span
class=
"am-form-group-label-tips-must"
>
请输入二维码上的编号(无二维码留空即可)
</span></label>
<input
type=
"text"
name=
"pest_no"
placeholder=
"编号"
maxlength=
"60"
data-validation-message=
"编号格式 1~60 个字符之间"
class=
"am-radius"
value=
""
/>
</div>
{{/if}}
<div
class=
"am-form-group"
>
<label>
标题
<span
class=
"am-form-group-label-tips-must"
>
必填
</span></label>
<input
type=
"text"
name=
"title"
placeholder=
"标题"
minlength=
"1"
maxlength=
"60"
data-validation-message=
"标题格式 1~60 个字符之间"
class=
"am-radius"
value=
"{{if !empty($data['title'])}}{{$data.title}}{{/if}}"
required
/>
<label>
标题
</label>
<input
type=
"text"
name=
"title"
placeholder=
"标题"
maxlength=
"60"
data-validation-message=
"标题格式最多 60 个字符"
class=
"am-radius"
value=
"{{if !empty($data['title'])}}{{$data.title}}{{/if}}"
/>
</div>
<div
class=
"am-form-group"
>
<label>
宠物名字
<
span
class=
"am-form-group-label-tips-must"
>
必填
</span><
/label>
<input
type=
"text"
name=
"name"
placeholder=
"宠物名字"
m
inlength=
"1"
maxlength=
"30"
data-validation-message=
"宠物名字格式 1~30 个字符之间"
class=
"am-radius"
value=
"{{if !empty($data['name'])}}{{$data.name}}{{/if}}"
required
/>
<label>
宠物名字
</label>
<input
type=
"text"
name=
"name"
placeholder=
"宠物名字"
m
axlength=
"30"
data-validation-message=
"宠物名字格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['name'])}}{{$data.name}}{{/if}}"
/>
</div>
<div
class=
"am-form-group"
>
<label>
出生日期
<
span
class=
"am-form-group-label-tips-must"
>
必填
</span><
/label>
<input
type=
"text"
name=
"birthday"
class=
"am-form-field am-radius Wdate"
placeholder=
"出生日期"
data-validation-message=
"出生日期格式有误"
{{
if
!
empty
($
data
['
birthday_name
'])}}
value=
"{{$data.birthday_name}}"
{{/
if
}}
onclick=
"WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})"
autocomplete=
"off"
required
/>
<label>
出生日期
</label>
<input
type=
"text"
name=
"birthday"
class=
"am-form-field am-radius Wdate"
placeholder=
"出生日期"
data-validation-message=
"出生日期格式有误"
{{
if
!
empty
($
data
['
birthday_name
'])}}
value=
"{{$data.birthday_name}}"
{{/
if
}}
onclick=
"WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})"
autocomplete=
"off"
/>
</div>
<div
class=
"am-form-group"
>
<label>
类型
<
span
class=
"am-form-group-label-tips-must"
>
必选
</span><
/label>
<select
name=
"type"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择类型"
required
>
<label>
类型
</label>
<select
name=
"type"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择类型"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_type_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
type
'])
and
$
data
['
type
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
...
...
@@ -44,13 +37,13 @@
</div>
<div
class=
"am-form-group"
>
<label>
品种
<
span
class=
"am-form-group-label-tips"
>
必填
</span><
/label>
<input
type=
"text"
name=
"varieties"
placeholder=
"品种"
maxlength=
"30"
data-validation-message=
"品种格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['varieties'])}}{{$data.varieties}}{{/if}}"
required
/>
<label>
品种
</label>
<input
type=
"text"
name=
"varieties"
placeholder=
"品种"
maxlength=
"30"
data-validation-message=
"品种格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['varieties'])}}{{$data.varieties}}{{/if}}"
/>
</div>
<div
class=
"am-form-group"
>
<label>
性别
<
span
class=
"am-form-group-label-tips-must"
>
必选
</span><
/label>
<select
name=
"gender"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择性别"
required
>
<label>
性别
</label>
<select
name=
"gender"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择性别"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_gender_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
gender
'])
and
$
data
['
gender
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
...
...
@@ -59,8 +52,8 @@
</div>
<div
class=
"am-form-group"
>
<label>
是否绝育
<
span
class=
"am-form-group-label-tips-must"
>
必选
</span><
/label>
<select
name=
"sterilization"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择是否绝育"
required
>
<label>
是否绝育
</label>
<select
name=
"sterilization"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择是否绝育"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_is_text_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
sterilization
'])
and
$
data
['
sterilization
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
...
...
@@ -69,8 +62,8 @@
</div>
<div
class=
"am-form-group"
>
<label>
是否疫苗
<
span
class=
"am-form-group-label-tips-must"
>
必选
</span><
/label>
<select
name=
"vaccine"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择是否疫苗"
required
>
<label>
是否疫苗
</label>
<select
name=
"vaccine"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择是否疫苗"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_is_text_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
vaccine
'])
and
$
data
['
vaccine
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
...
...
@@ -80,7 +73,7 @@
<!-- 相册 -->
<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>
<ul
class=
"plug-file-upload-view goods-photo-view"
data-form-name=
"photo[]"
data-max-number=
"6"
data-dialog-type=
"images"
>
{{if !empty($data['photo'])}}
{{foreach $data.photo as $v}}
...
...
@@ -97,7 +90,7 @@
<!-- 宠物简介 -->
<div
class=
"am-form-group"
>
<label>
宠物简介
<
span
class=
"am-form-group-label-tips"
>
选填
</span><
/label>
<label>
宠物简介
</label>
<textarea
class=
"am-radius am-validate"
name=
"content"
maxlength=
"105000"
id=
"editor-tag"
data-validation-message=
"宠物简介内容最多 105000 个字符"
>
{{if !empty($data['content'])}}{{$data.content}}{{/if}}
</textarea>
</div>
</div>
...
...
@@ -107,16 +100,16 @@
<h2>
主人信息
</h2>
<hr
data-am-widget=
"divider"
style=
""
class=
"am-divider am-divider-default"
/>
<div
class=
"am-form-group"
>
<label>
主人姓名
<
span
class=
"am-form-group-label-tips-must"
>
必填
</span><
/label>
<input
type=
"text"
name=
"person_name"
placeholder=
"主人姓名"
m
inlength=
"1"
maxlength=
"30"
data-validation-message=
"主人姓名格式 1~30 个字符之间"
class=
"am-radius"
value=
"{{if !empty($data['person_name'])}}{{$data.person_name}}{{/if}}"
required
/>
<label>
主人姓名
</label>
<input
type=
"text"
name=
"person_name"
placeholder=
"主人姓名"
m
axlength=
"30"
data-validation-message=
"主人姓名格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['person_name'])}}{{$data.person_name}}{{/if}}"
/>
</div>
<div
class=
"am-form-group"
>
<label>
主人电话
<
span
class=
"am-form-group-label-tips-must"
>
必填
</span><
/label>
<input
type=
"text"
name=
"person_tel"
placeholder=
"主人电话"
m
inlength=
"1"
maxlength=
"30"
data-validation-message=
"主人电话格式 1~30 个字符之间"
class=
"am-radius"
value=
"{{if !empty($data['person_tel'])}}{{$data.person_tel}}{{/if}}"
required
/>
<label>
主人电话
</label>
<input
type=
"text"
name=
"person_tel"
placeholder=
"主人电话"
m
axlength=
"30"
data-validation-message=
"主人电话格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['person_tel'])}}{{$data.person_tel}}{{/if}}"
/>
</div>
<div
class=
"am-form-group"
>
<label>
主人微信
<
span
class=
"am-form-group-label-tips-must"
>
必填
</span><
/label>
<input
type=
"text"
name=
"person_weixin"
placeholder=
"主人微信"
m
inlength=
"1"
maxlength=
"30"
data-validation-message=
"主人微信格式 1~30 个字符之间"
class=
"am-radius"
value=
"{{if !empty($data['person_weixin'])}}{{$data.person_weixin}}{{/if}}"
required
/>
<label>
主人微信
</label>
<input
type=
"text"
name=
"person_weixin"
placeholder=
"主人微信"
m
axlength=
"30"
data-validation-message=
"主人微信格式最多 30 个字符"
class=
"am-radius"
value=
"{{if !empty($data['person_weixin'])}}{{$data.person_weixin}}{{/if}}"
/>
</div>
</div>
...
...
@@ -125,19 +118,19 @@
<h2>
丢失信息(丢失状态下有效)
</h2>
<hr
data-am-widget=
"divider"
style=
""
class=
"am-divider am-divider-default"
/>
<div
class=
"am-form-group"
>
<label>
丢失时间
<
span
class=
"am-form-group-label-tips"
>
选填
</span><
/label>
<label>
丢失时间
</label>
<input
type=
"text"
name=
"lose_time"
class=
"am-form-field am-radius Wdate"
placeholder=
"丢失时间"
data-validation-message=
"丢失时间格式有误"
{{
if
!
empty
($
data
['
lose_time_name
'])}}
value=
"{{$data.lose_time_name}}"
{{/
if
}}
onclick=
"WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})"
autocomplete=
"off"
/>
</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=
"text"
name=
"lose_reward_amount"
placeholder=
"悬赏金额"
data-validation-message=
"请填写有效的悬赏金额"
class=
"am-radius"
pattern=
"^([0-9]{1}\d{0,6})(\.\d{1,2})?$"
value=
"{{if !empty($data['lose_reward_amount']) and $data['lose_reward_amount'] gt 0}}{{$data.lose_reward_amount}}{{/if}}"
/>
</div>
<div
class=
"am-form-group"
>
<label>
宠物特征
<
span
class=
"am-form-group-label-tips"
>
选填
</span><
/label>
<label>
宠物特征
</label>
<textarea
class=
"am-radius am-validate"
name=
"lose_features"
rows=
"5"
maxlength=
"230"
placeholder=
"内容最多230个字"
data-validation-message=
"宠物特征最多 230 个字符"
>
{{if !empty($data['lose_features'])}}{{$data.lose_features}}{{/if}}
</textarea>
</div>
<div
class=
"am-form-group region-linkage"
data-url=
"{{:MyUrl('index/region/index')}}"
>
<label
class=
"block"
>
省市区
<
span
class=
"am-form-group-label-tips"
>
选填
</span><
/label>
<label
class=
"block"
>
省市区
</label>
<select
name=
"province"
data-next=
"city"
class=
"am-radius chosen-select"
data-placeholder=
"省份"
data-validation-message=
"请选择省份"
data-value=
"{{if isset($data['lose_province'])}}{{$data.lose_province}}{{else /}}0{{/if}}"
/>
<option
value=
""
>
省份
</option>
</select>
...
...
@@ -149,11 +142,11 @@
</select>
</div>
<div
class=
"am-form-group map-address"
>
<label>
详细地址
<
span
class=
"am-form-group-label-tips"
>
选填
</span><
/label>
<label>
详细地址
</label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"hidden"
name=
"lng"
id=
"form-lng"
value=
"{{if !empty($data['lose_lng'])}}{{$data.lose_lng}}{{/if}}"
/>
<input
type=
"hidden"
name=
"lat"
id=
"form-lat"
value=
"{{if !empty($data['lose_lat'])}}{{$data.lose_lat}}{{/if}}"
/>
<input
type=
"text"
name=
"address"
id=
"form-address"
placeholder=
"详细地址"
maxlength=
"80"
data-validation-message=
"详细地址格式
1~80 个字符之间
"
class=
"am-radius"
value=
"{{if !empty($data['lose_address'])}}{{$data.lose_address}}{{/if}}"
/>
<input
type=
"text"
name=
"address"
id=
"form-address"
placeholder=
"详细地址"
maxlength=
"80"
data-validation-message=
"详细地址格式
最多 180 个字符
"
class=
"am-radius"
value=
"{{if !empty($data['lose_address'])}}{{$data.lose_address}}{{/if}}"
/>
<span
class=
"am-input-group-btn"
>
<button
class=
"am-btn am-btn-default am-radius"
type=
"button"
id=
"map-location-submit"
><span
class=
"am-icon-map-marker"
></span>
定位
</button>
</span>
...
...
@@ -163,8 +156,8 @@
</div>
<div
class=
"am-form-group"
>
<label>
状态
<
span
class=
"am-form-group-label-tips-must"
>
必选
</span><
/label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择状态"
required
>
<label>
状态
</label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择状态"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
status
'])
and
$
data
['
status
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
...
...
public/static/plugins/css/petscms/pets.detail.css
浏览文件 @
19723978
...
...
@@ -51,6 +51,28 @@
background
:
transparent
;
}
/**
* 未绑定
*/
.pets-not-bind
{
text-align
:
center
;
max-width
:
600px
;
margin
:
auto
;
margin-top
:
30px
;
margin-bottom
:
50px
;
padding
:
0
5px
;
}
.pets-not-bind
i
{
font-size
:
60px
;
color
:
#00b0ff
;
}
.pets-not-bind
.am-alert-secondary
{
margin-top
:
0
;
}
.pets-not-bind
.am-btn
{
margin-top
:
10px
;
}
/**
* 左侧
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录