af-mobile-client-vue3 1.4.72 → 1.4.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -99,7 +99,13 @@ input[type='password']::-ms-clear {
|
|
|
99
99
|
<style scoped>
|
|
100
100
|
.app-wrapper {
|
|
101
101
|
width: 100%;
|
|
102
|
-
height: 100vh;
|
|
103
102
|
position: relative;
|
|
104
103
|
}
|
|
104
|
+
/*
|
|
105
|
+
// 此处注释的原因是 height: 100vh 会触发vue的滚动条问题
|
|
106
|
+
.app-wrapper {
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: 100vh;
|
|
109
|
+
position: relative;
|
|
110
|
+
}*/
|
|
105
111
|
</style>
|
|
@@ -173,9 +173,10 @@ function triggerCamera() {
|
|
|
173
173
|
handlePhotoUpload(result.data)
|
|
174
174
|
}
|
|
175
175
|
else if (result.status === 'error') {
|
|
176
|
+
console.error('拍照异常原因:', result.message)
|
|
176
177
|
showDialog({
|
|
177
178
|
title: '拍照异常',
|
|
178
|
-
message:
|
|
179
|
+
message: '拍照失败,请重试',
|
|
179
180
|
})
|
|
180
181
|
}
|
|
181
182
|
},
|
|
@@ -195,6 +196,8 @@ function getImageMimeType(fileName: string): string {
|
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
function handlePhotoUpload(photoData: any) {
|
|
199
|
+
// 看看图片是否正常
|
|
200
|
+
console.log('图片上传前的参数:', photoData)
|
|
198
201
|
// 添加临时预览
|
|
199
202
|
const mimeType = getImageMimeType(photoData.filePath)
|
|
200
203
|
const tempFile = {
|
|
@@ -806,7 +806,7 @@ function emitFunc(func: any, data: any, value: any) {
|
|
|
806
806
|
|
|
807
807
|
<template>
|
|
808
808
|
<div id="XCellList">
|
|
809
|
-
<VanRow v-if="showFilter" class="filter-condition" :class="{ dark: isDark }">
|
|
809
|
+
<VanRow v-if="showFilter" class="filter-condition" :class="{ dark: isDark }" @touchmove.prevent>
|
|
810
810
|
<!-- 左侧动态插槽区域 -->
|
|
811
811
|
<template v-for="(_, name) in slots" :key="name">
|
|
812
812
|
<template v-if="typeof name === 'string' && name.startsWith('search-left-')">
|
|
@@ -862,7 +862,9 @@ function emitFunc(func: any, data: any, value: any) {
|
|
|
862
862
|
/>
|
|
863
863
|
</VanCol>
|
|
864
864
|
</VanRow>
|
|
865
|
-
<
|
|
865
|
+
<div @touchmove.prevent>
|
|
866
|
+
<slot name="search-after" />
|
|
867
|
+
</div>
|
|
866
868
|
|
|
867
869
|
<!-- 多选功能提示 -->
|
|
868
870
|
<div v-if="enableMultiSelect && !isMultiSelectMode" class="multi-select-tip">
|
|
@@ -1117,7 +1119,6 @@ function emitFunc(func: any, data: any, value: any) {
|
|
|
1117
1119
|
height: calc(100vh - var(--van-nav-bar-height) - 20px);
|
|
1118
1120
|
display: flex;
|
|
1119
1121
|
flex-direction: column;
|
|
1120
|
-
overflow: hidden;
|
|
1121
1122
|
--van-search-padding: 3px;
|
|
1122
1123
|
--van-dropdown-menu-title-padding: 3px;
|
|
1123
1124
|
--van-text-color-2: rgb(75, 85, 99);
|
|
@@ -1462,9 +1463,6 @@ function emitFunc(func: any, data: any, value: any) {
|
|
|
1462
1463
|
.filter-condition {
|
|
1463
1464
|
display: flex;
|
|
1464
1465
|
align-items: center;
|
|
1465
|
-
flex-shrink: 0;
|
|
1466
|
-
overflow: hidden;
|
|
1467
|
-
touch-action: none;
|
|
1468
1466
|
padding: 8px 12px;
|
|
1469
1467
|
background-color: #fff;
|
|
1470
1468
|
gap: 1px;
|