Merge branch 'dev' into 'master'

合并master

See merge request jianweie/coreshoppro!68
This commit is contained in:
bob bob
2024-11-02 09:04:47 +00:00
3 changed files with 11 additions and 5 deletions

View File

@@ -46,9 +46,14 @@
const hanlderBack = () => { const hanlderBack = () => {
if (props.handleCustomRouteJump) { if (props.handleCustomRouteJump) {
props.handleCustomRouteJump(); props.handleCustomRouteJump();
} else { return;
uni.navigateBack();
} }
const pages = getCurrentPages()
if (pages.length === 1) {
handleRouteSwitchTab(RouteSwitchTabEnum.home);
return
}
uni.navigateBack();
} }
</script> </script>

View File

@@ -81,7 +81,7 @@
const { statusBarHeight } = useSystemInfo(); const { statusBarHeight } = useSystemInfo();
const calendarsRef = ref(); const calendarsRef = ref();
const nowTimeStamp = new Date().getTime()
const state = reactive<{ const state = reactive<{
selectedDate : string; selectedDate : string;
arrowUp : boolean; arrowUp : boolean;
@@ -93,7 +93,7 @@
totalMoney : number; totalMoney : number;
userInfo : UserInfoType, userInfo : UserInfoType,
}>({ }>({
selectedDate: new Date().toLocaleDateString().replaceAll('/', '-') + '至' + new Date().toLocaleDateString().replaceAll('/', '-'), selectedDate: timeFormat(nowTimeStamp) + '至' + timeFormat(nowTimeStamp),
arrowUp: false, arrowUp: false,
showMoney: false, showMoney: false,
info: {}, info: {},

View File

@@ -81,6 +81,7 @@
const { statusBarHeight } = useSystemInfo(); const { statusBarHeight } = useSystemInfo();
const calendarsRef = ref(); const calendarsRef = ref();
const nowTimeStamp = new Date().getTime()
const state = reactive<{ const state = reactive<{
selectedDate : string; selectedDate : string;
@@ -93,7 +94,7 @@
totalMoney : number; totalMoney : number;
userInfo : UserInfoType, userInfo : UserInfoType,
}>({ }>({
selectedDate: new Date().toLocaleDateString().replaceAll('/', '-') + '至' + new Date().toLocaleDateString().replaceAll('/', '-'), selectedDate: timeFormat(nowTimeStamp) + '至' + timeFormat(nowTimeStamp),
arrowUp: false, arrowUp: false,
showMoney: false, showMoney: false,
info: {}, info: {},