shish 3 лет назад
Родитель
Сommit
9fd092e355
3 измененных файлов с 35 добавлено и 1 удалено
  1. 1 0
      ghsApp/src/pages.json
  2. 1 1
      ghsApp/src/pagesOrder/refund.vue
  3. 33 0
      ghsApp/src/pagesOrder/refundSuccess.vue

+ 1 - 0
ghsApp/src/pages.json

@@ -94,6 +94,7 @@
 				{"path": "select","style": {"navigationBarTitleText": "重选花材"}},
 				{"path": "print","style": {"navigationBarTitleText": "连接蓝牙"}},
 				{"path": "allot","style": {"navigationBarTitleText": "分配工作"}},
+				{"path": "refundSuccess","style": {"navigationBarTitleText": "结果"}},
 				{"path": "refundList","style": {"navigationBarTitleText": "退款记录", "enablePullDownRefresh": true}}
 			]
 		},

+ 1 - 1
ghsApp/src/pagesOrder/refund.vue

@@ -151,7 +151,7 @@ export default {
 				refund(refundParams).then(res => {
 					if(res.code == 1){
 						uni.hideLoading()
-						uni.navigateTo({url:'/common/success?titleType=1&id='+res.data.id,type:2})
+						this.$util.pageTo({url: '/pagesOrder/refundSuccess',type:2})
 					}
 				})
 			})

+ 33 - 0
ghsApp/src/pagesOrder/refundSuccess.vue

@@ -0,0 +1,33 @@
+<template>
+  <appResult :title="title">
+	<button class="admin-button-com big blue" style="width:80%;margin-top:50upx;" @click="goBack">返回</button>
+  </appResult>
+</template>
+<script>
+import appResult from "@/components/app-result";
+export default {
+  name: "commonSuccess",
+  components: {
+    appResult
+  },
+	data() {
+		return {
+			title:'操作成功',
+		};
+	},
+	methods: {
+    init(){
+
+    },
+    goBack() {
+        uni.navigateBack({})
+    }
+  },
+};
+</script>
+<style lang="scss" scoped>
+.admin-button-com {
+	margin-bottom: 20upx;
+	width: 100%;
+}
+</style>