From 5e62b7d5fdb8b740f2c54c765016ea0a6cba6978 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Tue, 16 Apr 2019 16:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/plugins/petscms/Pets.php | 2 +- .../commontopmaxpicture/index/content.html | 2 +- .../plugins/view/petscms/pets/detail.html | 248 +++++++++--------- .../plugins/view/petscms/pets/index.html | 8 +- .../plugins/css/petscms/pets.detail.css | 23 +- 5 files changed, 155 insertions(+), 128 deletions(-) diff --git a/application/plugins/petscms/Pets.php b/application/plugins/petscms/Pets.php index 339bc51bb..6ee0359dd 100644 --- a/application/plugins/petscms/Pets.php +++ b/application/plugins/petscms/Pets.php @@ -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]; diff --git a/application/plugins/view/commontopmaxpicture/index/content.html b/application/plugins/view/commontopmaxpicture/index/content.html index ce7d531fd..29d2b8741 100755 --- a/application/plugins/view/commontopmaxpicture/index/content.html +++ b/application/plugins/view/commontopmaxpicture/index/content.html @@ -1,5 +1,5 @@
- + 顶部大图
\ No newline at end of file diff --git a/application/plugins/view/petscms/pets/detail.html b/application/plugins/view/petscms/pets/detail.html index f40fedfc7..756930846 100644 --- a/application/plugins/view/petscms/pets/detail.html +++ b/application/plugins/view/petscms/pets/detail.html @@ -12,67 +12,69 @@ {{include file="public/goods_category" /}} -
-
-
- {{if !empty($data['photo'])}} -
-
    - {{foreach $data.photo as $photo}} -
  • - {{$data.title}} -
  • - {{/foreach}} -
-
- {{/if}} -
-
-

{{$data.title}}

-
    -
  • - 编号 - {{$data.pest_no}} -
  • -
  • - 名字 - {{$data.name}} -
  • -
  • - 类型 - {{$data.type_name}} -
  • -
  • - 性别 - {{$data.gender_name}} -
  • -
  • - 生日 - {{$data.birthday_name}} -
  • -
  • - 年龄 - {{$data.age}} -
  • -
  • - 品种 - {{$data.varieties}} -
  • -
  • - 绝育 - {{$data.sterilization_name}} -
  • -
  • - 疫苗 - {{$data.vaccine_name}} -
  • -
- - {{if isset($data['status']) and in_array($data['status'], [0,1])}} - {{if $data['status'] eq 1}} -
- +{{if !empty($data)}} +
+
+
+ {{if !empty($data['photo'])}} +
+
    + {{foreach $data.photo as $photo}} +
  • + {{$data.title}} +
  • + {{/foreach}} +
+ {{/if}} +
+
+

{{$data.title}}

+
    +
  • + 编号 + {{$data.pest_no}} +
  • +
  • + 名字 + {{$data.name}} +
  • +
  • + 类型 + {{$data.type_name}} +
  • +
  • + 性别 + {{$data.gender_name}} +
  • +
  • + 生日 + {{$data.birthday_name}} +
  • +
  • + 年龄 + {{$data.age}} +
  • +
  • + 品种 + {{$data.varieties}} +
  • +
  • + 绝育 + {{$data.sterilization_name}} +
  • +
  • + 疫苗 + {{$data.vaccine_name}} +
  • +
  • + 状态 + {{$data.status_name}} +
  • +
+ + {{if isset($data['status']) and $data['status'] eq 1}} +
@@ -130,76 +132,80 @@
{{/if}} -
+ + +
- {{/if}} +
-
- {{if isset($data['status']) and $data['status'] eq 1}} -
-
- {{if !empty($data['lose_features'])}} -

{{$data.lose_features|raw}}

+ {{if isset($data['status']) and $data['status'] eq 1}} +
+
+ {{if !empty($data['lose_features'])}} +

{{$data.lose_features|raw}}

+ {{/if}} +
    + {{if !empty($data['person_name'])}} +
  • + 主人姓名 + {{$data.person_name}} +
  • + {{/if}} + {{if !empty($data['person_tel'])}} +
  • + 主人电话 + {{$data.person_tel}} +
  • + {{/if}} + {{if !empty($data['person_weixin'])}} +
  • + 主人微信 + {{$data.person_weixin}} +
  • + {{/if}} + + {{if !empty($data['lose_time_name'])}} +
  • + 丢失时间 + {{$data.lose_time_name}} +
  • + {{/if}} + {{if !empty($data['lose_reward_amount']) and $data['lose_reward_amount'] gt 0}} +
  • + 悬赏金额 + ¥{{$data.lose_reward_amount}} +
  • + {{/if}} + {{if !empty($data['lose_address'])}} +
  • + 丢失地址 + {{$data.province_name}}{{$data.city_name}}{{$data.county_name}}{{$data.lose_address}} +
  • + {{/if}} +
+
+ {{if !empty($data['lose_lng']) and !empty($data['lose_lat'])}} +
{{/if}} -
    - {{if !empty($data['person_name'])}} -
  • - 主人姓名 - {{$data.person_name}} -
  • - {{/if}} - {{if !empty($data['person_tel'])}} -
  • - 主人电话 - {{$data.person_tel}} -
  • - {{/if}} - {{if !empty($data['person_weixin'])}} -
  • - 主人微信 - {{$data.person_weixin}} -
  • - {{/if}} - - {{if !empty($data['lose_time_name'])}} -
  • - 丢失时间 - {{$data.lose_time_name}} -
  • - {{/if}} - {{if !empty($data['lose_reward_amount']) and $data['lose_reward_amount'] gt 0}} -
  • - 悬赏金额 - ¥{{$data.lose_reward_amount}} -
  • - {{/if}} - {{if !empty($data['lose_address'])}} -
  • - 丢失地址 - {{$data.province_name}}{{$data.city_name}}{{$data.county_name}}{{$data.lose_address}} -
  • - {{/if}} -
- {{if !empty($data['lose_lng']) and !empty($data['lose_lat'])}} -
- {{/if}} -
- {{/if}} + {{/if}} - {{if !empty($data['content'])}} -
-
- - 宠物详情 + {{if !empty($data['content'])}} +
+
+ + 宠物详情 +
+
{{$data.content|raw}}
-
{{$data.content|raw}}
-
- {{/if}} -
+ {{/if}} +
+{{else /}} +
没有相关数据
+{{/if}} {{include file="public/footer" /}} diff --git a/application/plugins/view/petscms/pets/index.html b/application/plugins/view/petscms/pets/index.html index a7126a5ad..b547a0cc0 100644 --- a/application/plugins/view/petscms/pets/index.html +++ b/application/plugins/view/petscms/pets/index.html @@ -111,7 +111,7 @@ 标题/相册 宠物信息 主人信息 - 二维码 + 二维码 状态 操作时间 操作 @@ -160,7 +160,7 @@ 微信:{{if empty($v['person_weixin'])}}未填写{{else /}}{{$v.person_weixin}}{{/if}}
- + {{$v.title}}

下载二维码

@@ -175,7 +175,9 @@
编辑 - 详情 + {{if $v['status'] neq 3}} + 详情 + {{/if}} 帮助 diff --git a/public/static/plugins/css/petscms/pets.detail.css b/public/static/plugins/css/petscms/pets.detail.css index 6af6ebaa5..d09458a58 100644 --- a/public/static/plugins/css/petscms/pets.detail.css +++ b/public/static/plugins/css/petscms/pets.detail.css @@ -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