From a3a48da30bdea132d2bfbb47fa2ccf83f1937c45 Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Tue, 19 Jan 2021 08:29:55 +0800
Subject: [PATCH] 提交

---
 hive-app/pages/workbench/submitSucceed.vue |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/hive-app/pages/workbench/submitSucceed.vue b/hive-app/pages/workbench/submitSucceed.vue
index a890cb6..9a0e738 100644
--- a/hive-app/pages/workbench/submitSucceed.vue
+++ b/hive-app/pages/workbench/submitSucceed.vue
@@ -2,15 +2,44 @@
 	<!-- 提交成功 -->
 	<view class="flex flex-v align-center">
 		<image class="img" mode="aspectFit" src="../../static/images/succeed.png"></image>
-		<text class="font-16">提交成功请到前台付款</text>
+		<text class="font-16">{{txt}}</text>
 		<view class="sticky-footer">
-			<button class="blue-btn btn mt-20">查看详情</button>
-			<button class="white-btn btn mt-20">返回首页</button>
+			<navigator :url="url">
+				<button class="blue-btn btn">查看{{type == 1?'订单':'服务单'}}</button>
+			</navigator>
+			<navigator url="./index" open-type="switchTab">
+				<button class="white-btn btn mt-15">返回首页</button>
+			</navigator>
 		</view>
 	</view>
 </template>
 
 <script>
+	export default{
+		data(){
+			return {
+				type: 1, //1 订单提交成功, 2服务单提交成功
+				txt: '提交成功请到前台付款',
+				url: './orderList'
+			}
+		},
+		onLoad(options) {
+			if(options.type == 2){
+				this.type = 2;
+				this.txt = '预约成功请到前台排班';
+				this.url = './serviceOrderList';
+			}
+		},
+		onBackPress(options) {
+			if (options.from === 'navigateBack') {  
+				return false;  
+			}  
+			uni.switchTab({
+				url: "./index"
+			})
+			return true;  
+		},
+	}
 </script>
 
 <style>

--
Gitblit v1.9.1