二维码样式修改1.0,我的预约页面修改
This commit is contained in:
parent
9c7181ea2e
commit
a485c3cd80
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view v-if="visible" class="qrcode-modal-overlay" @click="handleOverlayClick">
|
<view v-if="visible" class="qrcode-modal-overlay" @click="handleClose">
|
||||||
<view class="qrcode-modal" @click.stop>
|
<view class="qrcode-modal" @click.stop>
|
||||||
<view class="modal-content">
|
<view class="modal-content">
|
||||||
<view class="qrcode-container">
|
<view class="qrcode-container">
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="close" @click="handleClose">X</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -42,13 +43,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
title: {
|
|
||||||
type: String,
|
|
||||||
default: "核销验证码",
|
|
||||||
},
|
|
||||||
description: {
|
description: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "此二维码可直接检票",
|
default: "此二维码 可直接检票",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -63,10 +61,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleOverlayClick() {
|
|
||||||
this.handleClose();
|
|
||||||
},
|
|
||||||
|
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
},
|
},
|
||||||
|
|
@ -75,6 +69,18 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.close {
|
||||||
|
margin-top: 30rpx;
|
||||||
|
width: 80rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
font-size: 60rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 999rpx;
|
||||||
|
border: white solid 1px;
|
||||||
|
}
|
||||||
|
|
||||||
.qrcode-modal-overlay {
|
.qrcode-modal-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -86,6 +92,8 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qrcode-modal {
|
.qrcode-modal {
|
||||||
|
|
|
||||||
|
|
@ -60,10 +60,7 @@
|
||||||
<!-- 操作按钮 -->
|
<!-- 操作按钮 -->
|
||||||
<view class="card-actions">
|
<view class="card-actions">
|
||||||
<!-- 只有待核销状态才显示出示码券按钮 -->
|
<!-- 只有待核销状态才显示出示码券按钮 -->
|
||||||
<view
|
<view v-if="Number(item.state) === 1" class="action-btn"></view>
|
||||||
v-if="Number(item.state) === 1 || Number(item.state) === 2"
|
|
||||||
class="action-btn"
|
|
||||||
></view>
|
|
||||||
<view
|
<view
|
||||||
v-if="Number(item.state) === 1"
|
v-if="Number(item.state) === 1"
|
||||||
class="action-btn secondary"
|
class="action-btn secondary"
|
||||||
|
|
@ -86,14 +83,14 @@
|
||||||
<text class="btn-text">取消预约</text>
|
<text class="btn-text">取消预约</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 已核销状态显示完成提示 -->
|
<!-- 已核销状态显示完成提示 -->
|
||||||
<view v-if="Number(item.state) === 2" class="action-btn completed">
|
<!-- <view v-if="Number(item.state) === 2" class="action-btn completed">-->
|
||||||
<image
|
<!-- <image-->
|
||||||
class="btn-icon"
|
<!-- class="btn-icon"-->
|
||||||
mode="aspectFit"
|
<!-- mode="aspectFit"-->
|
||||||
src="https://api.ccttiot.com/image-1755237410755.png"
|
<!-- src="https://api.ccttiot.com/image-1755237410755.png"-->
|
||||||
/>
|
<!-- />-->
|
||||||
<text class="btn-text">已完成</text>
|
<!-- <text class="btn-text">已完成</text>-->
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<!-- <!– 取消预约状态显示已取消提示 –>-->
|
<!-- <!– 取消预约状态显示已取消提示 –>-->
|
||||||
<!-- <view v-if="Number(item.state) === 3" class="action-btn canceled">-->
|
<!-- <view v-if="Number(item.state) === 3" class="action-btn canceled">-->
|
||||||
<!-- <image-->
|
<!-- <image-->
|
||||||
|
|
@ -366,34 +363,39 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
padding: 8rpx;
|
&.first-child {
|
||||||
|
border-right: 2px solid #c7a26d;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-item {
|
.tab-item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 80rpx;
|
height: 116rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 12rpx;
|
border-radius: 12rpx;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
.tab-text {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #808080;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: #c7a26d;
|
//background: #c7a26d;
|
||||||
|
|
||||||
.tab-text {
|
.tab-text {
|
||||||
color: #fff;
|
color: #c7a26d;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
height: 116rpx;
|
||||||
|
line-height: 116rpx;
|
||||||
|
border-bottom: 2px solid #c7a26d;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-text {
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #695347;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 预约列表
|
// 预约列表
|
||||||
.appointment-list {
|
.appointment-list {
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
|
|
@ -434,18 +436,6 @@ export default {
|
||||||
&.status-pending {
|
&.status-pending {
|
||||||
background: #fef3e0; // 待核销 - 橙色
|
background: #fef3e0; // 待核销 - 橙色
|
||||||
}
|
}
|
||||||
|
|
||||||
&.status-verified {
|
|
||||||
background: #00b894; // 已核销 - 绿色
|
|
||||||
}
|
|
||||||
|
|
||||||
&.status-canceled {
|
|
||||||
background: #000000; // 取消预约 - 灰色
|
|
||||||
}
|
|
||||||
|
|
||||||
&.status-default {
|
|
||||||
background: #74b9ff; // 默认 - 蓝色
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-text {
|
.status-text {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user