Эх сурвалжийг харах

fix: 修复复审任务页面滚动问题并更新API基础URL

refactor: 重构pageScroll组件计算高度逻辑
feat: 添加复审任务列表总数显示功能
style: 更新CSS样式文件版本标识
ylong 2 долоо хоног өмнө
parent
commit
535d1ad05f

+ 6 - 6
components/pageScroll/index.vue

@@ -17,22 +17,22 @@ import {
     onShow
 } from '@dcloudio/uni-app';
 import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js";
-import {
-    store
-} from "@/store/index.js"
-
 
 // 调用mescroll的hook (注: mescroll-uni不用传onPageScroll,onReachBottom, 而mescroll-body必传)
 const {
     mescrollInit,
-    downCallback,
     getMescroll
 } = useMescroll()
 
 const windowHeight = computed(() => {
-    return store.clientHeight - props.diffHeight
+    const sys = uni.getSystemInfoSync()
+    return sys.windowHeight - props.diffHeight
 })
 
+const downCallback = (mescroll) => {
+    mescroll.resetUpScroll()
+}
+
 const emit = defineEmits(['updateList', 'update:total'])
 const props = defineProps({
     request: {

+ 1 - 1
config/request.js

@@ -1,7 +1,7 @@
 /**
  * 文档地址:https://uiadmin.net/uview-plus/js/http.html
  */
-const baseUrl = "https://bpi.shuhi.com";
+const baseUrl = "https://bk.shuhi.com";
 export function initRequest() {
     console.log("初始化了 http 请求代码");
     // 初始化请求配置

+ 2 - 1
pages.json

@@ -105,7 +105,8 @@
 				{
 					"path": "audit/review-order",
 					"style": {
-						"navigationBarTitleText": "复审任务"
+						"navigationBarTitleText": "复审任务",
+						"disableScroll": true
 					}
 				},
 				{

+ 2 - 9
pages/index/audit/review-order.vue

@@ -1,7 +1,7 @@
 <template>
     <view class="common-page" style="padding: 0" @click="playGlobalSound">
         <PageScroll requestStr="/app/orderreview/reviewOrderList" @updateList="updateList" ref="scrollRef"
-            :otherParams="otherParams" :immediate="true">
+            :otherParams="otherParams" :immediate="true" v-model:total="total">
             <view class="list-con" v-if="dataList.length">
                 <ReviewOrderItem v-for="cell in dataList" :key="cell.orderId" :item="cell" class="mt-20" @click="handleReviewOrder(cell)">
                 </ReviewOrderItem>
@@ -35,15 +35,8 @@ const refreshList = () => {
 let dataList = ref([]);
 let total = ref(0);
 
-const updateList = (data, page) => {
+const updateList = (data) => {
     dataList.value = data;
-    // 假设API返回的数据结构中包含total字段
-    // 如果API响应结构不同,需要根据实际情况调整
-    if (page && page.total !== undefined) {
-        total.value = page.total;
-    } else {
-        total.value = data.length;
-    }
 };
 
 const handleReviewOrder = (item) => {

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
unpackage/dist/build/app-plus/app-service.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
unpackage/dist/build/app-plus/pages/index/audit/review-order.css


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
unpackage/dist/build/app-plus/pages/index/detail/batch-audit.css


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
unpackage/dist/build/app-plus/pages/index/detail/book-audit.css


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
unpackage/dist/build/app-plus/pages/index/detail/review-detail.css


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно