pull/8/head
kele 2023-03-14 11:29:30 +08:00
commit c2111da4e9
2 changed files with 1 additions and 14 deletions

View File

@ -49,18 +49,12 @@
loading: true, loading: true,
}); });
// h5bug //
const onSelect = (addressInfo) => { const onSelect = (addressInfo) => {
// const pages = sheep.$router.getCur();
// const lastPage = pages[pages.length - 2];
// if (!_.isEmpty(lastPage) && lastPage.route === "pages/order/confirm") {
// sheep.$router.back();
// uni.navigateBack();
uni.$emit('SELECT_ADDRESS', { uni.$emit('SELECT_ADDRESS', {
addressInfo, addressInfo,
}); });
sheep.$router.back(); sheep.$router.back();
// }
}; };
// //

View File

@ -158,12 +158,6 @@ function getCurrentPage() {
return pages[pages.length - 1]; return pages[pages.length - 1];
} }
function getCur() {
let a = getCurrentPages();
let pages = clone(a);
return pages;
}
function handleAction(path) { function handleAction(path) {
const action = path.split(':'); const action = path.split(':');
switch (action[1]) { switch (action[1]) {
@ -187,6 +181,5 @@ export default {
redirect, redirect,
getCurrentPage, getCurrentPage,
getCurrentRoute, getCurrentRoute,
getCur,
error, error,
}; };