InspectionCleaning/pages/adminNfc/nfcResult.vue

91 lines
1.9 KiB
Vue
Raw Normal View History

2025-04-15 11:50:28 +08:00
<template>
<view class="content">
<u-navbar
:is-back="false"
title="NFC卡写入"
title-color="black"
:background="{ backgroundColor: '#fff' }"
:border-bottom="false"
>
</u-navbar>
<view class="image-box">
<image src="/static/images/nfc-result.png" mode="widthFix" />
</view>
<view class="result-box">
<view class="result-title">NFC卡写入成功!</view>
<view class="result-content">NFC卡已成功绑定子区域</view>
</view>
2025-04-15 13:29:51 +08:00
<view>
<button @click="showDialog = true">显示弹窗</button>
<bind-dialog
:visible="showDialog"
@close="showDialog = false"
@changeBinding="onChangeBinding"
@confirm="onConfirm"
></bind-dialog>
</view>
2025-04-15 11:50:28 +08:00
<u-tabbar :list="vuex_tabbar"></u-tabbar>
</view>
</template>
<script>
import { loginApi } from "@/api/apiList";
2025-04-15 13:29:51 +08:00
import BindDialog from "@/pages/adminNfc/components/bindDialog.vue"; // 确保路径正确
2025-04-15 11:50:28 +08:00
export default {
2025-04-15 13:29:51 +08:00
components: {
BindDialog,
},
2025-04-15 11:50:28 +08:00
data() {
return {
2025-04-15 13:29:51 +08:00
showDialog: false,
2025-04-15 11:50:28 +08:00
};
},
2025-04-15 13:29:51 +08:00
onLoad() {},
2025-04-15 11:50:28 +08:00
mounted() {
uni.hideLoading(); // 关闭 Loading
},
2025-04-15 13:29:51 +08:00
methods: {
onChangeBinding() {
console.log("点击了更换绑定");
// 处理更换绑定的逻辑
},
onConfirm() {
console.log("点击了知道了");
// 处理确认逻辑
},
},
2025-04-15 11:50:28 +08:00
};
</script>
<style lang="scss" scoped>
.content {
height: calc(100vh - 100rpx); // 确保容器有明确高度
overflow: hidden;
padding-bottom: 100rpx;
.image-box {
width: 100%;
height: 500rpx;
image {
width: 100%;
}
}
.result-box {
.result-title {
font-size: 36rpx;
font-weight: bold;
text-align: center;
}
.result-content {
margin-top: 32rpx;
font-size: 28rpx;
color: #999;
text-align: center;
}
}
}
</style>