You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
904 lines
20 KiB
904 lines
20 KiB
<template>
|
|
<view class="order-list-container">
|
|
<!-- Tab切换 -->
|
|
<view class="tab-container">
|
|
<view
|
|
class="tab-item"
|
|
:class="{ active: currentTab === index }"
|
|
v-for="(tab, index) in tabs"
|
|
:key="index"
|
|
@click="switchTab(index)"
|
|
>
|
|
<text class="tab-text">{{ tab.name }}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 订单列表 -->
|
|
<scroll-view
|
|
class="order-scroll"
|
|
scroll-y
|
|
@scrolltolower="loadMore"
|
|
refresher-enabled
|
|
:refresher-triggered="refresherTriggered"
|
|
@refresherrefresh="onRefresh"
|
|
>
|
|
<!-- 订单项 -->
|
|
<view class="order-item" v-for="order in orderList" :key="order.id">
|
|
<!-- 订单头部 -->
|
|
<view class="order-header">
|
|
<view class="order-left">
|
|
<view class="order-number-section">
|
|
<text class="order-label">订单号</text>
|
|
<text class="order-number">{{ order.orderNo }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="order-status-wrapper">
|
|
<text class="order-status" :class="[getStatusClass(order.status)]">
|
|
{{ getStatusText(order.status) }}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 权益商品包名 -->
|
|
<view class="package-section">
|
|
<view class="package-icon">📦</view>
|
|
<text class="package-name">{{ order.packageName }}</text>
|
|
</view>
|
|
|
|
<!-- 商品列表 -->
|
|
<view class="goods-section">
|
|
<view class="goods-title">商品清单</view>
|
|
<view class="goods-list">
|
|
<view
|
|
class="goods-item"
|
|
v-for="goods in order.goodsList"
|
|
:key="goods.id"
|
|
>
|
|
<image class="goods-image" :src="goods.image" mode="aspectFill" />
|
|
<view class="goods-info">
|
|
<text class="goods-name">{{ goods.name }}</text>
|
|
<view class="goods-meta">
|
|
<text class="goods-type">{{
|
|
getGoodsTypeName(goods.type)
|
|
}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="goods-action">
|
|
<button
|
|
class="action-btn"
|
|
:class="[getActionBtnClass(goods.type)]"
|
|
@click="handleGoodsAction(goods)"
|
|
>
|
|
{{ getActionBtnText(goods.type) }}
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 订单底部 -->
|
|
<view class="order-footer">
|
|
<view class="order-info">
|
|
<view class="order-time-section">
|
|
<text class="time-label">下单时间</text>
|
|
<text class="order-time">{{ formatTime(order.createTime) }}</text>
|
|
</view>
|
|
<view class="order-total-section">
|
|
<text class="total-label">实付金额</text>
|
|
<text class="order-total">¥{{ order.totalAmount }}</text>
|
|
</view>
|
|
</view>
|
|
<view class="order-actions">
|
|
<button
|
|
class="equity-code-btn"
|
|
@click="showEquityCode(order)"
|
|
v-if="order.status !== 0"
|
|
>
|
|
<text class="btn-icon">🎫</text>
|
|
<text>权益码</text>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 空状态 -->
|
|
<view class="empty-state" v-if="goodsList&&goodsList.length==0||loading">
|
|
<image
|
|
class="empty-image"
|
|
:src="showImg('/uploads/20250808/c16267f9cc2b7a68bf23713b5847987e.png')"
|
|
mode="aspectFit"
|
|
/>
|
|
<text class="empty-text">暂无订单</text>
|
|
</view>
|
|
|
|
<!-- 加载更多 -->
|
|
<view class="load-more" v-if="hasMore && orderList.length > 0">
|
|
<text class="load-text">{{
|
|
loading ? "加载中..." : "上拉加载更多"
|
|
}}</text>
|
|
</view>
|
|
|
|
<!-- 没有更多数据 -->
|
|
<view class="no-more" v-if="!hasMore && orderList.length > 0">
|
|
<text class="no-more-text">没有更多数据了</text>
|
|
</view>
|
|
</scroll-view>
|
|
|
|
<!-- 权益码弹窗 -->
|
|
<uni-popup ref="equityPopup" type="center">
|
|
<view class="equity-popup">
|
|
<view class="popup-header">
|
|
<text class="popup-title">权益码</text>
|
|
<text class="popup-close" @click="closeEquityPopup">×</text>
|
|
</view>
|
|
<view class="popup-content">
|
|
<!-- 二维码 -->
|
|
<view class="qrcode-container">
|
|
<image
|
|
class="qrcode-image"
|
|
:src="currentEquity.qrcode"
|
|
mode="aspectFit"
|
|
/>
|
|
</view>
|
|
<!-- 编号串码 -->
|
|
<view class="code-container">
|
|
<text class="code-label">权益码:</text>
|
|
<text class="code-value" @longpress="copyCode">{{
|
|
currentEquity.code
|
|
}}</text>
|
|
</view>
|
|
<text class="code-tip">长按编号可复制</text>
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
currentTab: 0,
|
|
tabs: [
|
|
{ name: "全部", status: "" },
|
|
{ name: "待使用", status: 1 },
|
|
{ name: "待收货", status: 2 },
|
|
{ name: "已完成", status: 3 },
|
|
{ name: "售后/退款", status: 4 },
|
|
],
|
|
orderList: [],
|
|
loading: false,
|
|
refresherTriggered: false,
|
|
hasMore: true,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
currentEquity: {
|
|
qrcode: "",
|
|
code: "",
|
|
},
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.loadOrderList();
|
|
},
|
|
methods: {
|
|
// 切换Tab
|
|
switchTab(index) {
|
|
this.currentTab = index;
|
|
this.resetList();
|
|
this.loadOrderList();
|
|
},
|
|
|
|
// 重置列表
|
|
resetList() {
|
|
this.orderList = [];
|
|
this.currentPage = 1;
|
|
this.hasMore = true;
|
|
},
|
|
|
|
// 加载订单列表
|
|
async loadOrderList() {
|
|
if (this.loading || !this.hasMore) return;
|
|
|
|
this.loading = true;
|
|
try {
|
|
const params = {
|
|
page: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
status: this.tabs[this.currentTab].status,
|
|
};
|
|
|
|
// 这里调用实际的API接口
|
|
const res = await this.getOrderList(params);
|
|
|
|
if (this.currentPage === 1) {
|
|
this.orderList = res.data.list || [];
|
|
} else {
|
|
this.orderList = [...this.orderList, ...(res.data.list || [])];
|
|
}
|
|
|
|
this.hasMore = res.data.list.length === this.pageSize;
|
|
this.currentPage++;
|
|
} catch (error) {
|
|
console.error("加载订单列表失败:", error);
|
|
uni.showToast({
|
|
title: "加载失败",
|
|
icon: "none",
|
|
});
|
|
} finally {
|
|
this.loading = false;
|
|
this.refresherTriggered = false;
|
|
}
|
|
},
|
|
|
|
// 上拉加载更多
|
|
loadMore() {
|
|
this.loadOrderList();
|
|
},
|
|
|
|
// 下拉刷新
|
|
onRefresh() {
|
|
this.refresherTriggered = true;
|
|
this.resetList();
|
|
this.loadOrderList();
|
|
},
|
|
|
|
// 获取订单状态文本
|
|
getStatusText(status) {
|
|
const statusMap = {
|
|
0: "待付款",
|
|
1: "待使用",
|
|
2: "待收货",
|
|
3: "已完成",
|
|
4: "售后/退款",
|
|
};
|
|
return statusMap[status] || "未知";
|
|
},
|
|
|
|
// 获取订单状态样式类
|
|
getStatusClass(status) {
|
|
const classMap = {
|
|
0: "status-pending",
|
|
1: "status-waiting",
|
|
2: "status-shipping",
|
|
3: "status-completed",
|
|
4: "status-refund",
|
|
};
|
|
return classMap[status] || "";
|
|
},
|
|
|
|
// 获取商品类型名称
|
|
getGoodsTypeName(type) {
|
|
const typeMap = {
|
|
1: "IP数字资产",
|
|
2: "IP资源商品",
|
|
3: "君道苏州门票",
|
|
};
|
|
return typeMap[type] || "未知类型";
|
|
},
|
|
|
|
// 获取操作按钮文本
|
|
getActionBtnText(type) {
|
|
const textMap = {
|
|
1: "查看",
|
|
2: "预约发货",
|
|
3: "去使用",
|
|
};
|
|
return textMap[type] || "操作";
|
|
},
|
|
|
|
// 获取操作按钮样式类
|
|
getActionBtnClass(type) {
|
|
const classMap = {
|
|
1: "btn-view",
|
|
2: "btn-reserve",
|
|
3: "btn-use",
|
|
};
|
|
return classMap[type] || "";
|
|
},
|
|
|
|
// 处理商品操作
|
|
handleGoodsAction(goods) {
|
|
switch (goods.type) {
|
|
case 1: // IP数字资产 - 查看
|
|
this.viewDigitalAsset(goods);
|
|
break;
|
|
case 2: // IP资源商品 - 预约发货
|
|
this.reserveDelivery(goods);
|
|
break;
|
|
case 3: // 君道苏州门票 - 去使用
|
|
this.useTicket(goods);
|
|
break;
|
|
}
|
|
},
|
|
|
|
// 查看数字资产
|
|
viewDigitalAsset(goods) {
|
|
// 跳转到数字资产详情页面
|
|
uni.showToast({
|
|
title: "查看数字资产",
|
|
icon: "none",
|
|
});
|
|
},
|
|
|
|
// 预约发货
|
|
reserveDelivery(goods) {
|
|
// 处理预约发货逻辑
|
|
uni.showToast({
|
|
title: "预约发货",
|
|
icon: "none",
|
|
});
|
|
},
|
|
|
|
// 使用门票
|
|
useTicket(goods) {
|
|
// 处理使用门票逻辑
|
|
uni.showToast({
|
|
title: "使用门票",
|
|
icon: "none",
|
|
});
|
|
},
|
|
|
|
// 显示权益码
|
|
showEquityCode(order) {
|
|
this.currentEquity = {
|
|
qrcode: order.qrcode || "/static/image/default-qrcode.png",
|
|
code: order.equityCode || "EQUITY123456789",
|
|
};
|
|
this.$refs.equityPopup.open();
|
|
},
|
|
|
|
// 关闭权益码弹窗
|
|
closeEquityPopup() {
|
|
this.$refs.equityPopup.close();
|
|
},
|
|
|
|
// 复制权益码
|
|
copyCode() {
|
|
uni.setClipboardData({
|
|
data: this.currentEquity.code,
|
|
success: () => {
|
|
uni.showToast({
|
|
title: "已复制到剪贴板",
|
|
icon: "success",
|
|
});
|
|
},
|
|
});
|
|
},
|
|
|
|
// 格式化时间
|
|
formatTime(time) {
|
|
if (!time) return "";
|
|
const date = new Date(time);
|
|
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(
|
|
2,
|
|
"0"
|
|
)}-${String(date.getDate()).padStart(2, "0")} ${String(
|
|
date.getHours()
|
|
).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}`;
|
|
},
|
|
|
|
// API接口 - 获取订单列表
|
|
async getOrderList(params) {
|
|
// 模拟API数据
|
|
return new Promise((resolve) => {
|
|
setTimeout(() => {
|
|
const mockData = {
|
|
code: 200,
|
|
data: {
|
|
list: [
|
|
{
|
|
id: 1,
|
|
orderNo: "EQ202401011234567",
|
|
packageName: "Epic Soul限定权益包",
|
|
status: 1,
|
|
totalAmount: "299.00",
|
|
createTime: "2024-01-01 12:00:00",
|
|
qrcode: "/static/image/qrcode-sample.png",
|
|
equityCode: "EPIC2024010112345",
|
|
goodsList: [
|
|
{
|
|
id: 1,
|
|
name: "数字藏品-桃子系列",
|
|
type: 1,
|
|
price: "99.00",
|
|
image: "/static/image/goods1.jpg",
|
|
},
|
|
{
|
|
id: 2,
|
|
name: "文创周边产品",
|
|
type: 2,
|
|
price: "150.00",
|
|
image: "/static/image/goods2.jpg",
|
|
},
|
|
{
|
|
id: 3,
|
|
name: "君道苏州体验门票",
|
|
type: 3,
|
|
price: "50.00",
|
|
image: "/static/image/goods3.jpg",
|
|
},
|
|
],
|
|
},
|
|
// 可以添加更多模拟数据
|
|
],
|
|
},
|
|
};
|
|
resolve(mockData);
|
|
}, 1000);
|
|
});
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.order-list-container {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
}
|
|
|
|
// Tab样式
|
|
.tab-container {
|
|
display: flex;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
box-shadow: 0 4rpx 20rpx rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
padding: 32rpx 0;
|
|
text-align: center;
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
|
|
&.active {
|
|
.tab-text {
|
|
color: #ffffff;
|
|
font-weight: 700;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 80rpx;
|
|
height: 6rpx;
|
|
background: linear-gradient(45deg, #ffffff, #f1f2f6);
|
|
border-radius: 3rpx;
|
|
box-shadow: 0 2rpx 8rpx rgba(255, 255, 255, 0.4);
|
|
}
|
|
}
|
|
|
|
&:not(.active) {
|
|
.tab-text {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tab-text {
|
|
font-size: 26rpx;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5rpx;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
// 订单列表样式
|
|
.order-scroll {
|
|
height: calc(100vh - 120rpx);
|
|
margin: 20rpx;
|
|
width: 710rpx;
|
|
}
|
|
|
|
.order-item {
|
|
background-color: #fff;
|
|
border-radius: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.8);
|
|
transition: all 0.3s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-4rpx);
|
|
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.12);
|
|
}
|
|
}
|
|
|
|
// 订单头部
|
|
.order-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: 24rpx 30rpx;
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.order-left {
|
|
flex: 1;
|
|
}
|
|
|
|
.order-number-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6rpx;
|
|
}
|
|
|
|
.order-label {
|
|
font-size: 22rpx;
|
|
color: #8e9aaf;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.order-number {
|
|
font-size: 26rpx;
|
|
color: #495057;
|
|
font-weight: 600;
|
|
font-family: "SF Mono", "Monaco", "Cascadia Code", monospace;
|
|
}
|
|
|
|
.order-status-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.order-status {
|
|
font-size: 24rpx;
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 50rpx;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5rpx;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
|
|
&.status-pending {
|
|
background: linear-gradient(45deg, #fff3cd, #ffeaa7);
|
|
color: #856404;
|
|
border: 1px solid #ffeaa7;
|
|
}
|
|
|
|
&.status-waiting {
|
|
background: linear-gradient(45deg, #d4edda, #00b894);
|
|
color: #ffffff;
|
|
border: 1px solid #00b894;
|
|
}
|
|
|
|
&.status-shipping {
|
|
background: linear-gradient(45deg, #cce5ff, #0984e3);
|
|
color: #ffffff;
|
|
border: 1px solid #0984e3;
|
|
}
|
|
|
|
&.status-completed {
|
|
background: linear-gradient(45deg, #e2e3e5, #636e72);
|
|
color: #ffffff;
|
|
border: 1px solid #636e72;
|
|
}
|
|
|
|
&.status-refund {
|
|
background: linear-gradient(45deg, #f8d7da, #e17055);
|
|
color: #ffffff;
|
|
border: 1px solid #e17055;
|
|
}
|
|
}
|
|
|
|
// 权益商品包
|
|
.package-section {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20rpx 30rpx;
|
|
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
|
margin: 0 20rpx;
|
|
border-radius: 16rpx;
|
|
margin-top: -10rpx;
|
|
box-shadow: 0 4rpx 20rpx rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.package-icon {
|
|
font-size: 32rpx;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
.package-name {
|
|
font-size: 28rpx;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5rpx;
|
|
}
|
|
|
|
// 商品部分
|
|
.goods-section {
|
|
margin: 20rpx 0;
|
|
}
|
|
|
|
.goods-title {
|
|
font-size: 26rpx;
|
|
color: #495057;
|
|
font-weight: 600;
|
|
padding: 0 30rpx 16rpx;
|
|
border-bottom: 2rpx solid #e9ecef;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.goods-list {
|
|
padding: 0 20rpx;
|
|
}
|
|
|
|
.goods-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 24rpx 20rpx;
|
|
margin-bottom: 16rpx;
|
|
background: #ffffff;
|
|
border-radius: 16rpx;
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
border: 1px solid #f1f3f4;
|
|
transition: all 0.3s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-2rpx);
|
|
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.goods-image {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
border-radius: 16rpx;
|
|
margin-right: 20rpx;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.goods-info {
|
|
flex: 1;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.goods-name {
|
|
display: block;
|
|
font-size: 26rpx;
|
|
color: #2d3748;
|
|
font-weight: 600;
|
|
margin-bottom: 12rpx;
|
|
line-height: 1.4;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.goods-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.goods-type {
|
|
font-size: 22rpx;
|
|
color: #718096;
|
|
background: #edf2f7;
|
|
padding: 6rpx 12rpx;
|
|
border-radius: 20rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.goods-price {
|
|
font-size: 26rpx;
|
|
color: #e53e3e;
|
|
font-weight: 700;
|
|
font-family: "SF Mono", "Monaco", "Cascadia Code", monospace;
|
|
}
|
|
|
|
.goods-action {
|
|
.action-btn {
|
|
padding: 2rpx 25rpx;
|
|
border-radius: 24rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
border: none;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
|
|
transition: all 0.3s ease;
|
|
|
|
&:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
&.btn-view {
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: #fff;
|
|
}
|
|
|
|
&.btn-reserve {
|
|
background: linear-gradient(45deg, #f093fb, #f5576c);
|
|
color: #fff;
|
|
}
|
|
|
|
&.btn-use {
|
|
background: linear-gradient(45deg, #4facfe, #00f2fe);
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 订单底部
|
|
.order-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24rpx 30rpx;
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
border-top: 1px solid #dee2e6;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.order-info {
|
|
flex: 1;
|
|
display: flex;
|
|
gap: 40rpx;
|
|
}
|
|
|
|
.order-time-section,
|
|
.order-total-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6rpx;
|
|
}
|
|
|
|
.time-label,
|
|
.total-label {
|
|
font-size: 20rpx;
|
|
color: #8e9aaf;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.order-time {
|
|
font-size: 24rpx;
|
|
color: #495057;
|
|
font-weight: 500;
|
|
font-family: "SF Mono", "Monaco", "Cascadia Code", monospace;
|
|
}
|
|
|
|
.order-total {
|
|
font-size: 28rpx;
|
|
color: #e53e3e;
|
|
font-weight: 700;
|
|
font-family: "SF Mono", "Monaco", "Cascadia Code", monospace;
|
|
}
|
|
|
|
.order-actions {
|
|
.equity-code-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
padding: 0rpx 25rpx;
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: #fff;
|
|
border-radius: 32rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
border: none;
|
|
box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4);
|
|
transition: all 0.3s ease;
|
|
|
|
&:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.btn-icon {
|
|
font-size: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 空状态
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 200rpx 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.empty-image {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
|
|
// 加载更多
|
|
.load-more,
|
|
.no-more {
|
|
text-align: center;
|
|
padding: 30rpx;
|
|
}
|
|
|
|
.load-text,
|
|
.no-more-text {
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
}
|
|
|
|
// 权益码弹窗
|
|
.equity-popup {
|
|
width: 600rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.popup-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 30rpx;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.popup-close {
|
|
font-size: 40rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.popup-content {
|
|
padding: 40rpx 30rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.qrcode-container {
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.qrcode-image {
|
|
width: 300rpx;
|
|
height: 300rpx;
|
|
border: 1px solid #eee;
|
|
border-radius: 12rpx;
|
|
}
|
|
|
|
.code-container {
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.code-label {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.code-value {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: bold;
|
|
background-color: #f8f9fa;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
.code-tip {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
</style>
|
|
|