|
@@ -67,7 +67,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { reactive, ref } from 'vue';
|
|
|
|
|
|
+import { reactive, ref, nextTick } from 'vue';
|
|
import permision from '@/common/permission.js';
|
|
import permision from '@/common/permission.js';
|
|
import { onShow, onLoad, onUnload, onHide, onBackPress, onNavigationBarButtonTap } from '@dcloudio/uni-app';
|
|
import { onShow, onLoad, onUnload, onHide, onBackPress, onNavigationBarButtonTap } from '@dcloudio/uni-app';
|
|
import { getBindParamsURL, bindShippingURL, getWaybillsURL } from '@/utils/api.js';
|
|
import { getBindParamsURL, bindShippingURL, getWaybillsURL } from '@/utils/api.js';
|
|
@@ -254,6 +254,7 @@ const onsubmit = () => {
|
|
getHistory();
|
|
getHistory();
|
|
}
|
|
}
|
|
st = setTimeout(() => {
|
|
st = setTimeout(() => {
|
|
|
|
+ setFocus();
|
|
reset();
|
|
reset();
|
|
st && clearTimeout(st);
|
|
st && clearTimeout(st);
|
|
}, 1000);
|
|
}, 1000);
|
|
@@ -311,11 +312,20 @@ onBackPress(() => {
|
|
// #endif
|
|
// #endif
|
|
});
|
|
});
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
|
+ hidePage.value = false;
|
|
token.value = uni.getStorageSync('token');
|
|
token.value = uni.getStorageSync('token');
|
|
getBindParams();
|
|
getBindParams();
|
|
getHistory();
|
|
getHistory();
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+const setFocus = () => {
|
|
|
|
+ if (hidePage.value) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ focusType.value = false;
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ focusType.value = true;
|
|
|
|
+ });
|
|
|
|
+};
|
|
const getBindParams = () => {
|
|
const getBindParams = () => {
|
|
uni.request({
|
|
uni.request({
|
|
url: getBindParamsURL,
|
|
url: getBindParamsURL,
|
|
@@ -439,4 +449,4 @@ onNavigationBarButtonTap((event) => {
|
|
color: #999;
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|