| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <appResult :title="title">
- <button class="admin-button-com big blue" style="width:80%;margin-top:50upx;" @click="goBackHome">返回</button>
- </appResult>
- </template>
- <script>
- import appResult from "@/components/app-result";
- export default {
- name: "commonSuccess",
- components: {
- appResult
- },
- data() {
- return {
- title:'操作成功',
- };
- },
- onShow(){
- },
- onLoad(e){
- let titleType = e.titleType || 1
- if(titleType == 1){
- this.title = '操作成功'
- }
- if(titleType == 2){
- this.title = '结账成功'
- }
- if(titleType == 3){
- this.title = '收款成功'
- }
- },
- onUnload(){
- },
- methods: {
- goBackHome() {
- uni.navigateBack()
- }
- },
- };
- </script>
- <style lang="scss" scoped>
- .admin-button-com {
- margin-bottom: 20upx;
- width: 100%;
- }
- </style>
|