瀏覽代碼

取消跳转

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(){