|
@@ -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: "加载中",
|