問題描述:
比如我首頁DIY 的商品列表組件只添加了 4 個商品,滑動頁面觸底刷新以后會請求接口重新追加這四條商品數(shù)據(jù)
修復方法:
1. 文件位置 uniapp/pages/index/components/goodList.vue 添加如圖所示的代碼
2. 文件位置 uniapp/pages/index/index.vue 修改如圖所示的代碼
比如我首頁DIY 的商品列表組件只添加了 4 個商品,滑動頁面觸底刷新以后會請求接口重新追加這四條商品數(shù)據(jù)
1. 文件位置 uniapp/pages/index/components/goodList.vue 添加如圖所示的代碼
2. 文件位置 uniapp/pages/index/index.vue 修改如圖所示的代碼
鄉(xiāng)關何處 最后編輯于2024-07-05 16:46:29
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}} LV.{{ item.user_info.bbs_level }}
作者 管理員 企業(yè)
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回復 {{itemc.comment_user_info.nickname}}{{itemf.name}}
相關推薦
快速安全登錄
微信登錄/注冊
{{ bind_phone ? '綁定手機' : '手機登錄'}}