pageSuccess.vue 796 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <appResult :title="title?title:'成功'">
  3. <button class="admin-button-com big" @click="goBackHome">返回首页</button>
  4. </appResult>
  5. <!-- 这个页面在安卓端会卡住,请不要再使用 -->
  6. </template>
  7. <script>
  8. import appResult from "@/components/app-result";
  9. export default {
  10. name: "pageSuccess",
  11. components: {
  12. appResult,
  13. },
  14. data() {
  15. return {
  16. title:'',
  17. };
  18. },
  19. onLoad(e){
  20. this.title = e.title
  21. },
  22. onUnload(){
  23. uni.navigateBack({delta:2})
  24. },
  25. methods: {
  26. closeLayer() {
  27. uni.navigateBack({delta: 3});
  28. },
  29. goBackHome() {
  30. this.$util.pageTo({ url: "/admin/home/workbench", type: 4, query: { tabIndex: 0 }, })
  31. },
  32. },
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. .admin-button-com {
  37. margin-bottom: 20upx;
  38. width: 100%;
  39. }
  40. </style>