Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
5e62b7d5
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5e62b7d5
编写于
4月 16, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用开发
上级
ffd81783
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
154 addition
and
127 deletion
+154
-127
application/plugins/petscms/Pets.php
application/plugins/petscms/Pets.php
+1
-1
application/plugins/view/commontopmaxpicture/index/content.html
...ation/plugins/view/commontopmaxpicture/index/content.html
+1
-1
application/plugins/view/petscms/pets/detail.html
application/plugins/view/petscms/pets/detail.html
+126
-120
application/plugins/view/petscms/pets/index.html
application/plugins/view/petscms/pets/index.html
+5
-3
public/static/plugins/css/petscms/pets.detail.css
public/static/plugins/css/petscms/pets.detail.css
+21
-2
未找到文件。
application/plugins/petscms/Pets.php
浏览文件 @
5e62b7d5
...
...
@@ -146,7 +146,7 @@ class Pets extends Controller
$data_params
=
array
(
'm'
=>
0
,
'n'
=>
1
,
'where'
=>
[
'id'
=>
intval
(
$params
[
'id'
])],
'where'
=>
[
'id'
=>
intval
(
$params
[
'id'
])
,
'status'
=>
[
0
,
1
,
2
]
],
);
$ret
=
Service
::
PetsList
(
$data_params
);
$data
=
empty
(
$ret
[
'data'
][
0
])
?
[]
:
$ret
[
'data'
][
0
];
...
...
application/plugins/view/commontopmaxpicture/index/content.html
浏览文件 @
5e62b7d5
<div
style=
"text-align: center; {{if !empty($data['bg_color'])}}background: {{$data.bg_color}};{{/if}}"
>
<a
href=
"{{if !empty($data['url'])}}{{$data.url}}{{else /}}javascript:;{{/if}}"
{{
if
isset
($
data
['
is_new_window_open
'])
and
$
data
['
is_new_window_open
']
eq
1}}
target=
"_blank"
{{/
if
}}
>
<img
src=
"{{$data.images}}"
/>
<img
src=
"{{$data.images}}"
alt=
"顶部大图"
style=
"max-width: 100%;vertical-align: middle;"
/>
</a>
</div>
\ No newline at end of file
application/plugins/view/petscms/pets/detail.html
浏览文件 @
5e62b7d5
...
...
@@ -12,67 +12,69 @@
<!-- goods category -->
{{include file="public/goods_category" /}}
<div
class=
"pets-detail am-container"
>
<div
class=
"top"
>
<div
class=
"am-u-md-4 photo"
>
{{if !empty($data['photo'])}}
<div
data-am-widget=
"slider"
class=
"am-slider am-slider-a1"
data-am-slider=
'{"directionNav":false, "slideshow":false}'
>
<ul
class=
"am-slides"
>
{{foreach $data.photo as $photo}}
<li>
<img
src=
"{{$photo.images}}"
alt=
"{{$data.title}}"
/>
</li>
{{/foreach}}
</ul>
</div>
{{/if}}
</div>
<div
class=
"am-u-md-8 base"
>
<h1>
{{$data.title}}
</h1>
<ul
class=
"basic"
>
<li>
<span>
编号
</span>
<span>
{{$data.pest_no}}
</span>
</li>
<li>
<span>
名字
</span>
<span>
{{$data.name}}
</span>
</li>
<li>
<span>
类型
</span>
<span>
{{$data.type_name}}
</span>
</li>
<li>
<span>
性别
</span>
<span>
{{$data.gender_name}}
</span>
</li>
<li>
<span>
生日
</span>
<span>
{{$data.birthday_name}}
</span>
</li>
<li>
<span>
年龄
</span>
<span>
{{$data.age}}
</span>
</li>
<li>
<span>
品种
</span>
<span>
{{$data.varieties}}
</span>
</li>
<li>
<span>
绝育
</span>
<span>
{{$data.sterilization_name}}
</span>
</li>
<li>
<span>
疫苗
</span>
<span>
{{$data.vaccine_name}}
</span>
</li>
</ul>
{{if isset($data['status']) and in_array($data['status'], [0,1])}}
{{if $data['status'] eq 1}}
<div
class=
"base-btn"
data-am-modal=
"{target: '#lose-provide-popup'}"
>
<button
type=
"button"
class=
"am-btn am-btn-primary am-radius am-icon-pencil"
>
我要提供信息
</button>
{{if !empty($data)}}
<div
class=
"pets-detail am-container"
>
<div
class=
"top"
>
<div
class=
"am-u-md-4 photo"
>
{{if !empty($data['photo'])}}
<div
data-am-widget=
"slider"
class=
"am-slider am-slider-a1"
data-am-slider=
'{"directionNav":false, "slideshow":false}'
>
<ul
class=
"am-slides"
>
{{foreach $data.photo as $photo}}
<li>
<img
src=
"{{$photo.images}}"
alt=
"{{$data.title}}"
/>
</li>
{{/foreach}}
</ul>
</div>
{{/if}}
</div>
<div
class=
"am-u-md-8 base"
>
<h1>
{{$data.title}}
</h1>
<ul
class=
"basic"
>
<li>
<span>
编号
</span>
<span>
{{$data.pest_no}}
</span>
</li>
<li>
<span>
名字
</span>
<span>
{{$data.name}}
</span>
</li>
<li>
<span>
类型
</span>
<span>
{{$data.type_name}}
</span>
</li>
<li>
<span>
性别
</span>
<span>
{{$data.gender_name}}
</span>
</li>
<li>
<span>
生日
</span>
<span>
{{$data.birthday_name}}
</span>
</li>
<li>
<span>
年龄
</span>
<span>
{{$data.age}}
</span>
</li>
<li>
<span>
品种
</span>
<span>
{{$data.varieties}}
</span>
</li>
<li>
<span>
绝育
</span>
<span>
{{$data.sterilization_name}}
</span>
</li>
<li>
<span>
疫苗
</span>
<span>
{{$data.vaccine_name}}
</span>
</li>
<li>
<span>
状态
</span>
<span>
{{$data.status_name}}
</span>
</li>
</ul>
{{if isset($data['status']) and $data['status'] eq 1}}
<button
type=
"button"
class=
"am-btn am-btn-primary am-radius am-icon-pencil provide-submit"
data-am-modal=
"{target: '#lose-provide-popup'}"
>
我要提供信息
</button>
<!-- 提供信息窗口 -->
<div
class=
"am-popup"
id=
"lose-provide-popup"
>
...
...
@@ -130,76 +132,80 @@
</div>
</div>
{{/if}}
<div
class=
"base-share"
>
<!-- 分享 -->
<div
class=
"base-share {{if !isset($data['status']) or $data['status'] neq 1}}base-share-mobile{{/if}}"
>
<div
class=
"bdsharebuttonbox"
><a
href=
"#"
class=
"bds_more"
data-cmd=
"more"
></a><a
href=
"#"
class=
"bds_qzone"
data-cmd=
"qzone"
title=
"分享到QQ空间"
></a><a
href=
"#"
class=
"bds_tsina"
data-cmd=
"tsina"
title=
"分享到新浪微博"
></a><a
href=
"#"
class=
"bds_weixin"
data-cmd=
"weixin"
title=
"分享到微信"
></a><a
href=
"#"
class=
"bds_sqq"
data-cmd=
"sqq"
title=
"分享到QQ好友"
></a><a
href=
"#"
class=
"bds_renren"
data-cmd=
"renren"
title=
"分享到人人网"
></a><a
href=
"#"
class=
"bds_tieba"
data-cmd=
"tieba"
title=
"分享到百度贴吧"
></a><a
href=
"#"
class=
"bds_linkedin"
data-cmd=
"linkedin"
title=
"分享到linkedin"
></a></div>
<script>
window
.
_bd_share_config
=
{
"
common
"
:{
"
bdSnsKey
"
:{},
"
bdText
"
:
""
,
"
bdMini
"
:
"
2
"
,
"
bdMiniList
"
:
false
,
"
bdPic
"
:
""
,
"
bdStyle
"
:
"
0
"
,
"
bdSize
"
:
"
24
"
},
"
share
"
:{}};
with
(
document
)
0
[(
getElementsByTagName
(
'
head
'
)[
0
]
||
body
).
appendChild
(
createElement
(
'
script
'
)).
src
=
'
http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=
'
+~
(
-
new
Date
()
/
36
e5
)];
</script>
</div>
{{/if}}
</div>
</div>
</div>
{{if isset($data['status']) and $data['status'] eq 1}}
<div
class=
"lose"
>
<div
class=
"am-alert am-alert-warning"
data-am-alert
>
{{if !empty($data['lose_features'])}}
<p
class=
"lose-desc"
>
{{$data.lose_features|raw}}
</p>
{{/if}}
<ul
class=
"person"
>
{{if !empty($data['person_name'])}}
<li>
<span>
主人姓名
</span>
<span>
{{$data.person_name}}
</span>
</li>
{{/if}}
{{if !empty($data['person_tel'])}}
<li
class=
"tel"
>
<span>
主人电话
</span>
<a
href=
"tel:{{$data.person_tel}}"
>
{{$data.person_tel}}
</a>
</li>
{{/if}}
{{if !empty($data['person_weixin'])}}
<li>
<span>
主人微信
</span>
<span>
{{$data.person_weixin}}
</span>
</li>
{{if isset($data['status']) and $data['status'] eq 1}}
<div
class=
"lose"
>
<div
class=
"am-alert am-alert-warning"
data-am-alert
>
{{if !empty($data['lose_features'])}}
<p
class=
"lose-desc"
>
{{$data.lose_features|raw}}
</p>
{{/if}}
<ul
class=
"person"
>
{{if !empty($data['person_name'])}}
<li>
<span>
主人姓名
</span>
<span>
{{$data.person_name}}
</span>
</li>
{{/if}}
{{if !empty($data['person_tel'])}}
<li
class=
"tel"
>
<span>
主人电话
</span>
<a
href=
"tel:{{$data.person_tel}}"
>
{{$data.person_tel}}
</a>
</li>
{{/if}}
{{if !empty($data['person_weixin'])}}
<li>
<span>
主人微信
</span>
<span>
{{$data.person_weixin}}
</span>
</li>
{{/if}}
{{if !empty($data['lose_time_name'])}}
<li>
<span>
丢失时间
</span>
<span>
{{$data.lose_time_name}}
</span>
</li>
{{/if}}
{{if !empty($data['lose_reward_amount']) and $data['lose_reward_amount'] gt 0}}
<li
class=
"price"
>
<span>
悬赏金额
</span>
<strong>
¥{{$data.lose_reward_amount}}
</strong>
</li>
{{/if}}
{{if !empty($data['lose_address'])}}
<li>
<span>
丢失地址
</span>
<span>
{{$data.province_name}}{{$data.city_name}}{{$data.county_name}}{{$data.lose_address}}
</span>
</li>
{{/if}}
</ul>
{{if !empty($data['lose_time_name'])}}
<li>
<span>
丢失时间
</span>
<span>
{{$data.lose_time_name}}
</span>
</li>
{{/if}}
{{if !empty($data['lose_reward_amount']) and $data['lose_reward_amount'] gt 0}}
<li
class=
"price"
>
<span>
悬赏金额
</span>
<strong>
¥{{$data.lose_reward_amount}}
</strong>
</li>
{{/if}}
{{if !empty($data['lose_address'])}}
<li>
<span>
丢失地址
</span>
<span>
{{$data.province_name}}{{$data.city_name}}{{$data.county_name}}{{$data.lose_address}}
</span>
</li>
{{/if}}
</ul>
</div>
{{if !empty($data['lose_lng']) and !empty($data['lose_lat'])}}
<div
id=
"map-view"
data-level=
"17"
class=
"am-form-group"
></div>
{{/if}}
</div>
{{if !empty($data['lose_lng']) and !empty($data['lose_lat'])}}
<div
id=
"map-view"
data-level=
"17"
class=
"am-form-group"
></div>
{{/if}}
</div>
{{/if}}
{{/if}}
{{if !empty($data['content'])}}
<div
class=
"content"
>
<div
class=
"spacing-nav-title"
>
<span
class=
"line"
></span>
<span
class=
"text-wrapper"
>
宠物详情
</span>
{{if !empty($data['content'])}}
<div
class=
"content"
>
<div
class=
"spacing-nav-title"
>
<span
class=
"line"
></span>
<span
class=
"text-wrapper"
>
宠物详情
</span>
</div>
<div
class=
"rich-content"
>
{{$data.content|raw}}
</div>
</div>
<div
class=
"rich-content"
>
{{$data.content|raw}}
</div>
</div>
{{/if}}
</div>
{{/if}}
</div>
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
没有相关数据
</div>
{{/if}}
{{include file="public/footer" /}}
...
...
application/plugins/view/petscms/pets/index.html
浏览文件 @
5e62b7d5
...
...
@@ -111,7 +111,7 @@
<th
class=
"am-hide-sm-only"
>
标题/相册
</th>
<th>
宠物信息
</th>
<th
class=
"am-hide-sm-only"
>
主人信息
</th>
<th
class=
"am-hide-sm-only"
>
二维码
</th>
<th>
二维码
</th>
<th>
状态
</th>
<th
class=
"am-hide-sm-only"
>
操作时间
</th>
<th>
操作
</th>
...
...
@@ -160,7 +160,7 @@
微信:{{if empty($v['person_weixin'])}}
<span
class=
"items-value-empty"
>
未填写
</span>
{{else /}}{{$v.person_weixin}}{{/if}}
<br
/>
</td>
<td
class=
"
am-hide-sm-only
row-qucode"
>
<td
class=
"row-qucode"
>
<img
src=
"{{$v.qrcode_url}}"
alt=
"{{$v.title}}"
/>
<a
href=
"#"
>
<p><i
class=
"am-icon-cloud-download"
></i>
下载二维码
</p>
...
...
@@ -175,7 +175,9 @@
</td>
<td>
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'saveinfo',array_merge($params, ['id'=>$v['id']]))}}"
class=
"am-btn am-btn-secondary am-btn-xs am-radius am-icon-edit am-btn-block"
>
编辑
</a>
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'detail',array_merge($params, ['id'=>$v['id']]))}}"
class=
"am-btn am-btn-success am-btn-xs am-radius am-icon-newspaper-o am-btn-block"
target=
"_blank"
>
详情
</a>
{{if $v['status'] neq 3}}
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'detail',array_merge($params, ['id'=>$v['id']]))}}"
class=
"am-btn am-btn-success am-btn-xs am-radius am-icon-newspaper-o am-btn-block"
target=
"_blank"
>
详情
</a>
{{/if}}
<a
href=
"{{:PluginsHomeUrl('petscms', 'pets', 'help',array_merge($params, ['pets_id'=>$v['id']]))}}"
class=
"am-btn am-btn-default am-btn-xs am-radius am-icon-gg am-btn-block"
target=
"_blank"
>
帮助
</a>
</td>
</tr>
...
...
public/static/plugins/css/petscms/pets.detail.css
浏览文件 @
5e62b7d5
...
...
@@ -29,7 +29,7 @@
.pets-detail
{
margin-top
:
10px
;
}
.
base-btn
,
.base-share
{
.
provide-submit
,
.base-share
{
margin-top
:
20px
;
}
.pets-detail
.am-btn-primary
{
...
...
@@ -200,5 +200,24 @@ form.form-validation #map {
#map-view
,
form
.form-validation
#map
{
height
:
200px
;
}
.provide-submit
,
.base-share-mobile
{
margin
:
0
;
position
:
fixed
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
z-index
:
2
;
height
:
35px
;
}
.base-share-mobile
{
background
:
#9bddff
;
}
.base-share-mobile
a
{
padding-left
:
0
!important
;
width
:
24px
!important
;
margin
:
6px
calc
(
12.5%
-
32px
)
!important
;
}
.am-footer
{
padding-bottom
:
35px
;
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录