修复bug
This commit is contained in:
@@ -231,7 +231,7 @@
|
||||
uni.removeStorageSync("bindCarName")
|
||||
uni.removeStorageSync("ownerId")
|
||||
uni.removeStorageSync("ownerName")
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myParkingSpaceIndex" })
|
||||
uni.navigateBack({ delta: type.value === '修改' ? 2 : 1 })
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
||||
@@ -81,11 +81,6 @@
|
||||
getList()
|
||||
}
|
||||
|
||||
onPullDownRefresh(() => {
|
||||
onRefresh()
|
||||
})
|
||||
|
||||
|
||||
// ==================== 获取列表数据 ====================
|
||||
const getList = async () => {
|
||||
if (loading.value) return
|
||||
|
||||
@@ -63,9 +63,11 @@
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
onMounted
|
||||
ref
|
||||
} from 'vue'
|
||||
import {
|
||||
onShow
|
||||
} from '@dcloudio/uni-app'
|
||||
import {
|
||||
getCarList
|
||||
} from '@/pageSubPack/api/apiSub.js'
|
||||
@@ -83,8 +85,12 @@
|
||||
getList()
|
||||
}
|
||||
|
||||
// 页面加载时请求第一页
|
||||
onMounted(() => {
|
||||
// 页面显示时请求第一页(首次进入和从详情/修改页返回时都会刷新)
|
||||
onShow(() => {
|
||||
pageNum.value = 1
|
||||
noMoreData.value = false
|
||||
parkingSpaceList.value = []
|
||||
loadingMore.value = false
|
||||
getList()
|
||||
})
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<view class="contentStyle">
|
||||
<view class="status-bar"></view>
|
||||
<!-- <view class="status-bar"></view>
|
||||
<uni-nav-bar title="车位详情" left-icon="left" @clickLeft="goBack" :border="false" backgroundColor="transparent">
|
||||
</uni-nav-bar>
|
||||
</uni-nav-bar> -->
|
||||
|
||||
<scroll-view class="page" scroll-y="true">
|
||||
<view class="status-header">
|
||||
@@ -204,7 +204,7 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myParkingSpaceIndex" })
|
||||
uni.navigateBack({ delta: 1 })
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -249,7 +249,7 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myParkingSpaceIndex" })
|
||||
uni.navigateBack({ delta: 1 })
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -472,7 +472,6 @@
|
||||
.bottom-btn-wrap {
|
||||
padding: 20rpx 30rpx 40rpx;
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.btn-modify {
|
||||
@@ -484,6 +483,7 @@
|
||||
font-size: 30rpx;
|
||||
border-radius: 8rpx;
|
||||
border: none;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.btn-delete {
|
||||
|
||||
Reference in New Issue
Block a user