wkyy 3 年之前
父節點
當前提交
f7e32bed41
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      pages/record/details.vue

+ 6 - 1
pages/record/details.vue

@@ -35,7 +35,7 @@
 			<view class="details-row"><p>充电车辆</p><span>{{chargeDetail.carNumber}}</span></view>
 		</view>
 		<view class="detailsBtn">
-			<u-button class="detailsBtn-btn" type="primary" shape="circle" plain>返回主页</u-button>
+			<u-button class="detailsBtn-btn" type="primary" shape="circle" plain @click="toHome">返回主页</u-button>
 		</view>
 	</view>
 </template>
@@ -57,6 +57,11 @@
 			}
 		},
 		methods: {
+			toHome() {
+				uni.navigateTo({
+					url: '/pages/index/index'
+				})
+			},
 			getchargingDetail() {
 				uni.showLoading({
 					title: "加载中",