Silent 6 anni fa
parent
commit
3dcb7980bd

+ 1 - 0
app/Http/Controllers/WeChat/ApiController.php

xqd
@@ -335,6 +335,7 @@ class ApiController extends Controller
         $list = Content::whereIn('type', [1])->orderBy('sort')->offset($offset)->limit(15)->get();
         foreach($list as $item) {
             $item->publish_date = substr($item->created_at, 0, 10);
+            $item->pic_url = url($item->pic_url);
         }
         return response()->json(['status' => 'success', 'list' => $list]);
     }

+ 1 - 0
wechat/pages/announce/announce.wxml

xqd
@@ -4,6 +4,7 @@
     <view class='info-bg' catchtap='redirectToAnnounce' data-id='{{ item.id }}'>
       <view class="info-label">{{ item.title||'未命名' }}</view>
       <view class="info-date">{{ item.publish_date }}</view>
+      <view class="info-image">{{ item.publish_date }}</view>
     </view>
   </view>
 </view>