aleyds преди 3 години
родител
ревизия
1a01febd6a
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      pages/getout/getoutpage/getoutpage.vue

+ 5 - 5
pages/getout/getoutpage/getoutpage.vue

@@ -32,7 +32,7 @@
 		<view class="bottom-btn-wrap">
 			<view class="bottom-btn-box u-flex">
 				<view class="bottom-btn bg-blue" @click="handleOut">出场</view>
-				<view class="bottom-btn bg-gray" @click="openPage('pages/getout/getout')">取消</view>
+				<view class="bottom-btn bg-gray" @click="onCancel()">取消</view>
 			</view>
 		</view>
 		
@@ -164,10 +164,10 @@
 			this.handleEntranceOutDetail();
 		},
 		methods:{
-			openPage(path) {
-				console.log('path',path);
-				this.$u.route({ 
-					url: path
+			onCancel(){
+				this.$u.route({
+					type: 'redirectTo',
+					url: 'pages/getout/getout'
 				})
 			},
 			onPayCancel(){