Compare commits
2 Commits
1c5771d6ed
...
93f04d365f
Author | SHA1 | Date |
---|---|---|
|
93f04d365f | |
|
e27ab28ba0 |
4
App.vue
4
App.vue
|
@ -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',
|
||||
|
|
|
@ -73,7 +73,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>
|
||||
|
@ -86,7 +88,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>
|
||||
|
@ -174,10 +178,9 @@ export default {
|
|||
|
||||
methods: {
|
||||
minutesToTime,
|
||||
|
||||
nfcResFn(data) {
|
||||
if (data) {
|
||||
console.log("%c%s", "color:red", "nfc刷卡成功");
|
||||
nfcResFn(data){
|
||||
if(false){
|
||||
console.log('%c%s', 'color:red', 'nfc刷卡成功');
|
||||
this.successShow = true;
|
||||
} else {
|
||||
console.log("%c%s", "color:red", "刷卡失败");
|
||||
|
@ -378,15 +381,14 @@ export default {
|
|||
background: linear-gradient(to bottom, #a7dafc, white 60%, white);
|
||||
border-radius: 30rpx;
|
||||
// border:1px solid red;
|
||||
position: relative;
|
||||
.logo {
|
||||
position: absolute;
|
||||
top: -50rpx;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
background-color: red;
|
||||
position:relative;
|
||||
.logo{
|
||||
position:absolute;
|
||||
top:-50rpx;
|
||||
left:50%;
|
||||
transform:translateX(-50%);
|
||||
width:200rpx;
|
||||
height:200rpx;
|
||||
}
|
||||
.content-title {
|
||||
position: absolute;
|
||||
|
@ -435,18 +437,18 @@ export default {
|
|||
.box-content {
|
||||
height: 450rpx;
|
||||
background-color: #ffffff;
|
||||
background: linear-gradient(to bottom, #a7dafc, white 60%, white);
|
||||
border-radius: 30rpx;
|
||||
background: linear-gradient(to bottom, #FFEDDF, white 60%, white);
|
||||
border-radius:30rpx;
|
||||
// border:1px solid red;
|
||||
position: relative;
|
||||
.logo {
|
||||
position: absolute;
|
||||
top: -50rpx;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
background-color: red;
|
||||
position:relative;
|
||||
.logo{
|
||||
position:absolute;
|
||||
top:-50rpx;
|
||||
left:50%;
|
||||
transform:translateX(-50%);
|
||||
width:200rpx;
|
||||
height:200rpx;
|
||||
// background-color:red;
|
||||
}
|
||||
.content-title {
|
||||
position: absolute;
|
||||
|
@ -473,16 +475,16 @@ export default {
|
|||
font-size: 30rpx;
|
||||
color: #32353b;
|
||||
}
|
||||
.btn-success {
|
||||
width: 200rpx;
|
||||
height: 70rpx;
|
||||
background-color: #4278f4;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30rpx;
|
||||
color: white;
|
||||
.btn-success{
|
||||
width:200rpx;
|
||||
height:70rpx;
|
||||
background-color:#F76590;
|
||||
border-radius:50rpx;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
font-size:30rpx;
|
||||
color:white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
Loading…
Reference in New Issue