فهرست منبع

评论只显示自己的

赵启卫 2 سال پیش
والد
کامیت
a01961879b

+ 2 - 1
application/wap/controller/Special.php

xqd
@@ -562,7 +562,8 @@ class Special extends AuthController
     public function special_reply_list($special_id = '', $page = 1, $limit = 8, $filter = 'all')
     {
         if (!$special_id || !is_numeric($special_id)) return JsonService::fail('参数错误!');
-        $list = SpecialReply::getSpecialReplyList($special_id, $page, $limit, $filter);
+        if (!$this->uid) return JsonService::successful([]);
+        $list = SpecialReply::getSpecialReplyList($special_id, $page, $limit, $filter, $this->uid);
         return JsonService::successful($list);
     }
 

+ 6 - 2
application/wap/model/special/SpecialReply.php

xqd
@@ -83,9 +83,13 @@ class SpecialReply extends ModelBasic
      * @throws \think\db\exception\ModelNotFoundException
      * @throws \think\exception\DbException
      */
-    public static function getSpecialReplyList($special_id, $page = 0, $limit = 8, $order = 'All')
+    public static function getSpecialReplyList($special_id, $page = 0, $limit = 8, $order = 'All', $uid = 0)
     {
-        $model = self::specialValidWhere('A')->where('A.special_id', $special_id)
+        $where['A.special_id'] = $special_id;
+        if ($uid) {
+            $where['A.uid'] = $uid;
+        }
+        $model = self::specialValidWhere('A')->where($where)
             ->field('A.satisfied_score,A.comment,A.pics,A.add_time,A.merchant_reply_content,S.title,A.is_selected,A.uid,A.id')
             ->join('__SPECIAL__ S', 'A.special_id = S.id');
         $baseOrder = 'A.is_selected DESC,A.add_time DESC,A.satisfied_score DESC';

+ 2 - 0
application/wap/view/first/special/special_cate.html

xqd
@@ -99,7 +99,9 @@
         <span v-show="loading" class="fa fa-spinner loadingpic" style="font-size: 0.4rem;"></span>
         <span v-text="loadTitle">加载更多</span>
     </p>
+    <div>
     {include file="public/store_menu"}
+    </div>
 </div>
 {/block}
 {block name="foot"}