Browse Source

fix(member): #32

tbphp 1 year ago
parent
commit
4ffde6b3a6

+ 1 - 1
application/a/controller/Photoer.php

@@ -66,7 +66,7 @@ class Photoer extends Controller
 
         $list = Member::where($map)
             ->order([$order => 'desc', 'id' => 'desc'])
-            ->field(['id', 'head', 'name', 'sex', 'city', 'profession', 'fans', 'look', 'domain'])
+            ->field(['id', 'head', 'name', 'sex', 'city', 'profession', 'fans', 'look', 'domain', 'recomm'])
             ->paginate(10);
         $page  = $list->render();
         $list  = $list->toArray();

+ 1 - 1
application/member/view/index/index.html

@@ -39,7 +39,7 @@
           <div class="img">
             <img src="__UPLOAD__/{$vo.head|default='default-user.jpg'}-head180" alt="头像">
           </div>
-          <h2>{$vo.name}</h2>
+          <h2><span>{$vo.name}</span>{eq name="vo['recomm']" value="y"}<img src="__IMG__/hot.png" class="hot" />{/eq}</h2>
           <p>{$vo.city|default="-"} / {$vo.profession|default="-"}</p>
           <p>{$vo.sign|default="&nbsp;"}</p>
         </div>

+ 4 - 1
application/web/view/article/detail.html

@@ -2,7 +2,10 @@
 <div class="title w">
   <div class="tx fr">
     <a href="{$v['auther']['url']}"><img pic="__UPLOAD__/{$v['auther']['head']|default='default-user.jpg'}-head100" alt="{$v['auther']['name']}-头像"></a>
-    <h3><a href="{$v['auther']['url']}">{$v['auther']['name']}</a></h3>
+    <h3>
+      <a href="{$v['auther']['url']}">{$v['auther']['name']}</a>
+      {eq name="v['auther']['recomm']" value="y"}<img src="__IMG__/hot.png" class="hot" />{/eq}
+    </h3>
     <p class="info">{$v['auther']['city']|default="-"}/{$v['auther']['profession']|default="-"}</p>
     <p>{$v['auther']['fans']}粉丝/{$v['auther']['follow']}关注</p>
     {neq name="v['isself']" value="1"}

+ 4 - 1
application/web/view/photoer/index.html

@@ -54,7 +54,10 @@
     </div>
     <a href="{$l['url']}" class="tx"><img pic="__UPLOAD__/{$l['head']|default='default-user.jpg'}-head140" alt="{$l['name']}"></a>
     <div class="txt">
-      <h2><a href="{$l['url']}">{$l['name']}</a></h2>
+      <h2>
+        <a href="{$l['url']}">{$l['name']}</a>
+        {eq name="l['recomm']" value="y"}<img src="__IMG__/hot.png" class="hot" />{/eq}
+      </h2>
       <p class="info">{$l['sex']} / {$l['city']} / {$l['profession']}</p>
       <p>{$l['fans']}粉丝&nbsp;&nbsp;&nbsp;&nbsp;{$l['look']}人气</p>
       {neq name="l['follow']" value="-1"}

+ 3 - 1
public/static/css/center.css

@@ -17,7 +17,9 @@
 #ban .info .tx .p{width: 12px;height: 12px;background: #ffe500;border-radius: 50%;position: absolute;right: 0;top: 0;}
 #ban .info .tx .img{width: 140px;height: 140px;position: relative;margin: 0 auto;margin-bottom: 8px;}
 #ban .info .tx img{width: 140px;height: 140px;display: block;border-radius: 50%;}
-#ban .info .tx h2{height: 24px;font-size: 18px;font-weight: normal;color: #FFD900;}
+#ban .info .tx h2{height: 24px;font-size: 18px;font-weight: normal;color: #FFD900;line-height: 24px;display: inline-block;}
+#ban .info .tx h2 span{display: inline;float: left;height: 24px;line-height: 24px;}
+#ban .info .tx h2 img.hot{width: 20px;height: 20px;margin: 0;display: inline;float: left;margin-top: 2px;margin-left: 4px;}
 #ban .info .ct{text-align: left;color: #898989;padding: 20px 0;border-bottom: 1px solid #898989;line-height: 24px;}
 #ban .info .ct p{height: 24px;}
 #ban .info .ct span{display: inline;float: left;height: 24px;width: 50%;}

+ 2 - 0
public/static/css/nry.css

@@ -2,6 +2,8 @@
 .title .tx{text-align: right;}
 .title .tx img{width: 100px;height: 100px;border-radius: 50%;display: inline;float: right;}
 .title .tx h3{font-size: 16px;line-height: 26px;height: 26px;margin-right: 114px;font-weight: normal;}
+.title .tx h3 a{display: inline;float: right;height: 26px;line-height: 26px;}
+.title .tx h3 img.hot{width: 20px;height: 20px;border-radius: 0;margin-top: 3px;margin-right: 6px;}
 .title .tx h3 a:hover{text-decoration: underline;}
 .title .tx p{height: 22px;line-height: 22px;margin-right: 114px;}
 .title .tx p.info{color: #FFD900;}

+ 3 - 2
public/static/css/syslb.css

@@ -25,8 +25,9 @@ p.tip b{font-weight: normal;color: #ff0058;}
 .sys .tx{display: inline;float: left;width: 140px;height: 140px;border-radius: 50%;overflow: hidden;}
 .sys .tx img{display: block;width: 100%;height: 100%;}
 .sys .txt{display: inline;float: left;margin-left: 12px;margin-top: 16px;}
-.sys h2{line-height: 32px;font-size: 16px;font-weight: normal;}
-.sys h2 a{color: #FFD900;}
+.sys h2{line-height: 32px;font-size: 16px;font-weight: normal;height: 32px;}
+.sys h2 a{color: #FFD900;display: inline;float: left;height: 32px;line-height: 32px;}
+.sys h2 img.hot{display: inline;float: left;width: 20px;height: 20px;margin-left: 6px;margin-top: 6px;}
 .sys h2 a:hover{text-decoration: underline;}
 .sys h2 a b{font-weight: normal;color: #ff0058;}
 .sys p{line-height: 20px;}