优化页面

This commit is contained in:
pengxiaolong
2025-05-23 21:50:04 +08:00
parent c55be10783
commit 0d7301f3b1
27 changed files with 483 additions and 131 deletions

View File

@@ -1,5 +1,5 @@
<template>
<scroll-view scroll-y="true" class="scroll" lower-threshold="100" @scrolltolower="onScrollToLower" >
<scroll-view scroll-y="true" class="scroll" refresher-enabled="true" refresher-threshold="40" @refresherrefresh="onRefresherRefresh" lower-threshold="100" @scrolltolower="onScrollToLower" >
<uni-card v-for="(item, index) in list">
<view class="content-list" @click="goDetail(item)">
<!-- `````````````````````````` -->
@@ -41,6 +41,11 @@ export default {
this.pkList()
},
methods: {
onRefresherRefresh() {
this.page = 0;
this.list = [];
this.pkList();
},
goDetail(item) {
uni.navigateTo({
url: '/pages/pkDetail/pkDetail',