Przeglądaj źródła

滋补养生+鼎盛联盟+精品大仓底部加上没有更多了

许雷 2 lat temu
rodzic
commit
b6bcceaf11

+ 8 - 0
src/pages/product/dingshenglianmeng.vue

@@ -44,6 +44,14 @@
44 44
               </div>
45 45
             </div>
46 46
           </grid-view>
47
+          <div class="pb-safe flex justify-center items-center text-[12px] text-gray-500" >
48
+            <div v-if="state.status === 'loading'">
49
+              加载中...
50
+            </div>
51
+            <div v-if="state.status === 'noMore'">
52
+              没有更多了~
53
+            </div>
54
+          </div>
47 55
         </div>
48 56
       </div>
49 57
       <CXBEmpty v-else/>

+ 10 - 2
src/pages/product/zibuyangsheng.vue

@@ -30,7 +30,7 @@ function loadList(action: 'page' | 'reload', callback?: (items) => void) {
30 30
 	if (action === 'reload') {
31 31
 		state.currentPage = 1
32 32
 	}
33
-	
33
+
34 34
 	getProductList(state.id,state.currentPage,state.pageSize).then(res => {
35 35
 		if (res) {
36 36
 			if (action === 'reload') {
@@ -40,7 +40,7 @@ function loadList(action: 'page' | 'reload', callback?: (items) => void) {
40 40
 			}
41 41
 			state.totalPage = Math.ceil(res.count / state.pageSize);
42 42
 			state.status = 'more'
43
-			
43
+
44 44
 			if (callback) {
45 45
 			      callback(res.list)
46 46
 			}
@@ -126,6 +126,14 @@ onPullDownRefresh(() => {
126 126
               </div>
127 127
             </div>
128 128
           </grid-view>
129
+          <div class="pb-safe flex justify-center items-center text-[12px] text-gray-500" >
130
+            <div v-if="state.status === 'loading'">
131
+              加载中...
132
+            </div>
133
+            <div v-if="state.status === 'noMore'">
134
+              没有更多了~
135
+            </div>
136
+          </div>
129 137
         </div>
130 138
       </div>
131 139
     </scroll-view>