nfc入口函数

This commit is contained in:
李彪 2025-04-10 10:15:14 +08:00
parent 8ea14a72c9
commit e27ab28ba0
4 changed files with 12 additions and 9 deletions

View File

@ -6,7 +6,7 @@ import appUpdate from "@/components/appUpdate/appUpdate.js";
export default {
onLaunch: function () {
console.log("%c%s", "color:red", "onLaunch---");
uni.showLoading({ title: "等待参数传入" });
// uni.showLoading({ title: "" });
// uni.setStorageSync("token", "");
window.initFn = this.initFn;
// this.initFn();
@ -63,7 +63,7 @@ export default {
onHide: function () {},
methods: {
initFn(data) {
uni.hideLoading(); // Loading
// uni.hideLoading(); // Loading
// uni.showModal({
// title: 'initFn',
// content: data || ' initFn',

View File

@ -74,7 +74,9 @@
<u-popup v-model="successShow" mode="center" :round="30" >
<view class="success-box">
<view class="box-content">
<view class="logo"></view>
<view class="logo">
<image style="width: 100%; height: 100%; " src="/static/images/msg-success.png" alt="" /></image>
</view>
<view class="content-title">刷卡成功</view>
<view class="btn-box">
<view class="btn-cancel" @click="successShow = false">暂不</view>
@ -87,7 +89,9 @@
<u-popup v-model="errorShow" mode="center" :round="30" >
<view class="error-box">
<view class="box-content">
<view class="logo"></view>
<view class="logo">
<image style="width: 100%; height: 100%; " src="/static/images/msg-error.png" alt="" /></image>
</view>
<view class="content-title">刷卡失败</view>
<view class="btn-box">
<view class="btn-cancel" @click="errorShow = false">暂不</view>
@ -173,7 +177,7 @@ export default {
},
methods: {
minutesToTime,
minutesToTime,
nfcResFn(data){
if(false){
console.log('%c%s', 'color:red', 'nfc刷卡成功');
@ -382,7 +386,6 @@ export default {
transform:translateX(-50%);
width:200rpx;
height:200rpx;
background-color:red;
}
.content-title{
position:absolute;
@ -431,7 +434,7 @@ export default {
.box-content{
height:450rpx;
background-color: #ffffff;
background: linear-gradient(to bottom, #A7DAFC, white 60%, white);
background: linear-gradient(to bottom, #FFEDDF, white 60%, white);
border-radius:30rpx;
// border:1px solid red;
position:relative;
@ -442,7 +445,7 @@ export default {
transform:translateX(-50%);
width:200rpx;
height:200rpx;
background-color:red;
// background-color:red;
}
.content-title{
position:absolute;
@ -472,7 +475,7 @@ export default {
.btn-success{
width:200rpx;
height:70rpx;
background-color:#4278F4;
background-color:#F76590;
border-radius:50rpx;
display:flex;
align-items:center;

BIN
static/images/msg-error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB