wkyy 3 лет назад
Родитель
Сommit
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: "加载中",