cetc 1 个月前
父节点
当前提交
0631ce0773
共有 3 个文件被更改,包括 22 次插入2 次删除
  1. 20
    0
      pages/order/order.vue
  2. 1
    1
      subpackage/orders/order_payment.vue
  3. 1
    1
      subpackage/orders/release-products.vue

+ 20
- 0
pages/order/order.vue 查看文件

import orderListItem from "./components/order-list-item"; import orderListItem from "./components/order-list-item";
import useOrderList from "@/composables/order/useOrderList"; import useOrderList from "@/composables/order/useOrderList";
import filter from '@/components/filter/filter.vue'; import filter from '@/components/filter/filter.vue';
import {onUnload,onLoad} from '@dcloudio/uni-app'
import { reactive } from "vue";
const { const {
data, data,
tabbarRef tabbarRef
} = useOrderList(); } = useOrderList();
onLoad((option : any) => {
if(option.indexPage){
state.indexPage = option.indexPage
}
})

onUnload(()=>{
if(state.indexPage == 1){
uni.reLaunch({
url: `/pages/index/index`
});
}
})
const state = reactive({
indexPage:0
});
</script> </script>



+ 1
- 1
subpackage/orders/order_payment.vue 查看文件

confirmText: "我知道了", confirmText: "我知道了",
success() { success() {
uni.redirectTo({ uni.redirectTo({
url: `/pages/order/order`
url: `/pages/order/order?indexPage=1`
}); });
} }
}); });

+ 1
- 1
subpackage/orders/release-products.vue 查看文件

confirmText: "我知道了", confirmText: "我知道了",
success() { success() {
uni.redirectTo({ uni.redirectTo({
url: `/pages/order/order`
url: `/pages/order/order?indexPage=1`
}); });
} }
}); });

正在加载...
取消
保存