pageSuccess.vue 611 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <appResult :title="title?title:'成功'">
  3. <button class="admin-button-com big" @click="closeLayer">关闭</button>
  4. </appResult>
  5. </template>
  6. <script>
  7. import appResult from "@/components/app-result";
  8. export default {
  9. name: "pageSuccess",
  10. components: {
  11. appResult,
  12. },
  13. data() {
  14. return {
  15. title:'',
  16. };
  17. },
  18. onLoad(e){
  19. this.title = e.title
  20. },
  21. onUnload(){
  22. uni.navigateBack({delta:2})
  23. },
  24. methods: {
  25. closeLayer() {
  26. uni.navigateBack({delta: 3});
  27. },
  28. },
  29. };
  30. </script>
  31. <style lang="scss" scoped>
  32. .admin-button-com {
  33. margin-bottom: 20px;
  34. width: 100%;
  35. }
  36. </style>