success.vue 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <appResult :title="title">
  3. <button class="admin-button-com big blue" style="width:80%;margin-top:50upx;" @click="goBackHome">返回</button>
  4. </appResult>
  5. </template>
  6. <script>
  7. import appResult from "@/components/app-result";
  8. export default {
  9. name: "commonSuccess",
  10. components: {
  11. appResult
  12. },
  13. data() {
  14. return {
  15. title:'操作成功',
  16. };
  17. },
  18. onShow(){
  19. },
  20. onLoad(e){
  21. let titleType = e.titleType || 1
  22. if(titleType == 1){
  23. this.title = '操作成功'
  24. }
  25. if(titleType == 2){
  26. this.title = '结账成功'
  27. }
  28. if(titleType == 3){
  29. this.title = '收款成功'
  30. }
  31. },
  32. onUnload(){
  33. },
  34. methods: {
  35. goBackHome() {
  36. uni.navigateBack()
  37. }
  38. },
  39. };
  40. </script>
  41. <style lang="scss" scoped>
  42. .admin-button-com {
  43. margin-bottom: 20upx;
  44. width: 100%;
  45. }
  46. </style>