Compare commits

..

No commits in common. "93f04d365f70123bb042860ef5b13f7f46af10fc" and "1c5771d6ed9e3a4ad69fc9159f189b7ee6e03a40" have entirely different histories.

4 changed files with 38 additions and 40 deletions

View File

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

View File

@ -73,9 +73,7 @@
<u-popup v-model="successShow" mode="center" :round="30"> <u-popup v-model="successShow" mode="center" :round="30">
<view class="success-box"> <view class="success-box">
<view class="box-content"> <view class="box-content">
<view class="logo"> <view class="logo"></view>
<image style="width: 100%; height: 100%; " src="/static/images/msg-success.png" alt="" /></image>
</view>
<view class="content-title">刷卡成功</view> <view class="content-title">刷卡成功</view>
<view class="btn-box"> <view class="btn-box">
<view class="btn-cancel" @click="successShow = false">暂不</view> <view class="btn-cancel" @click="successShow = false">暂不</view>
@ -88,9 +86,7 @@
<u-popup v-model="errorShow" mode="center" :round="30"> <u-popup v-model="errorShow" mode="center" :round="30">
<view class="error-box"> <view class="error-box">
<view class="box-content"> <view class="box-content">
<view class="logo"> <view class="logo"></view>
<image style="width: 100%; height: 100%; " src="/static/images/msg-error.png" alt="" /></image>
</view>
<view class="content-title">刷卡失败</view> <view class="content-title">刷卡失败</view>
<view class="btn-box"> <view class="btn-box">
<view class="btn-cancel" @click="errorShow = false">暂不</view> <view class="btn-cancel" @click="errorShow = false">暂不</view>
@ -178,9 +174,10 @@ export default {
methods: { methods: {
minutesToTime, minutesToTime,
nfcResFn(data){
if(false){ nfcResFn(data) {
console.log('%c%s', 'color:red', 'nfc刷卡成功'); if (data) {
console.log("%c%s", "color:red", "nfc刷卡成功");
this.successShow = true; this.successShow = true;
} else { } else {
console.log("%c%s", "color:red", "刷卡失败"); console.log("%c%s", "color:red", "刷卡失败");
@ -381,14 +378,15 @@ export default {
background: linear-gradient(to bottom, #a7dafc, white 60%, white); background: linear-gradient(to bottom, #a7dafc, white 60%, white);
border-radius: 30rpx; border-radius: 30rpx;
// border:1px solid red; // border:1px solid red;
position:relative; position: relative;
.logo{ .logo {
position:absolute; position: absolute;
top:-50rpx; top: -50rpx;
left:50%; left: 50%;
transform:translateX(-50%); transform: translateX(-50%);
width:200rpx; width: 200rpx;
height:200rpx; height: 200rpx;
background-color: red;
} }
.content-title { .content-title {
position: absolute; position: absolute;
@ -437,18 +435,18 @@ export default {
.box-content { .box-content {
height: 450rpx; height: 450rpx;
background-color: #ffffff; background-color: #ffffff;
background: linear-gradient(to bottom, #FFEDDF, white 60%, white); background: linear-gradient(to bottom, #a7dafc, white 60%, white);
border-radius:30rpx; border-radius: 30rpx;
// border:1px solid red; // border:1px solid red;
position:relative; position: relative;
.logo{ .logo {
position:absolute; position: absolute;
top:-50rpx; top: -50rpx;
left:50%; left: 50%;
transform:translateX(-50%); transform: translateX(-50%);
width:200rpx; width: 200rpx;
height:200rpx; height: 200rpx;
// background-color:red; background-color: red;
} }
.content-title { .content-title {
position: absolute; position: absolute;
@ -475,16 +473,16 @@ export default {
font-size: 30rpx; font-size: 30rpx;
color: #32353b; color: #32353b;
} }
.btn-success{ .btn-success {
width:200rpx; width: 200rpx;
height:70rpx; height: 70rpx;
background-color:#F76590; background-color: #4278f4;
border-radius:50rpx; border-radius: 50rpx;
display:flex; display: flex;
align-items:center; align-items: center;
justify-content:center; justify-content: center;
font-size:30rpx; font-size: 30rpx;
color:white; color: white;
} }
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB