wangjiahai 2 years ago
parent
commit
1c4b675c9f
  1. 50
      pages/card/card.vue

50
pages/card/card.vue

@ -1,26 +1,39 @@
<template> <template>
<z-paging ref="paging" v-model="data" @query="queryList" bgColor="#F8f8f8" :refresher-enabled='false' :auto='true'> <z-paging ref="paging" v-model="data" @query="queryList" bgColor="#F8f8f8" :auto='true'>
<view @click="bind" <view @click="bind"
style="background: #f1f2f3;width: 100%;height: 35px;line-height: 35px;text-align: center;color: red;"> style="background: #f1f2f3;width: 100%;height: 35px;line-height: 35px;text-align: center;color: red;">
绑定新卡</view> 绑定新卡</view>
<view style="display: flex;flex-direction: column;height: 100%;padding-top: 10px;"> <view style="display: flex;flex-direction: column;padding-top: 10px;">
<view style="display: flex;flex-direction: column;align-items: center; "> <view v-for="(item,index) in data" style="display: flex;flex-direction: column;align-items: center;"
<view v-for="(item,index) in data" :class="item.showBtn==true?'oragin':'gray'">
<view
style="display: flex;flex-direction: column;border: 1px solid #e29a68;width: 90%;border-radius: 20rpx;margin-top: 8px;"> style="display: flex;flex-direction: column;border: 1px solid #e29a68;width: 90%;border-radius: 20rpx;margin-top: 8px;">
<view class="use" :style="{'background':item.showBtn?'#ce644e':'#999999'}" style=""> <view class="use">
<view style="flex: 1;display: flex;flex-direction: column;"> <image style="width: 70rpx;height: 70rpx;position: absolute;right: 40px;"
<view style="font-size: 15px;padding: 2px;padding-left: 5px;">{{item.name}}</view> src="../../static/card_line.png"></image>
<view style="font-size: 13px;padding-left: 5px;padding-bottom: 2px;">{{item.time}}</view> <image src="../../static/gift.png" style="width: 30px;height: 30px;padding-left: 6px;"></image>
<view style="flex: 1;display: flex;flex-direction: column;z-index: 1;">
<view style="font-size: 14px;padding: 2px;padding-left: 5px;padding-top: 5px;">{{item.name}}
</view>
<view style="font-size: 12px;padding-left: 5px;padding-bottom: 4px;">{{item.time}}</view>
</view> </view>
<view v-if="item.showBtn" style="flex-shrink: 0;padding: 5px;font-size: 14px;">预约提货</view> <view v-if="item.showBtn"
style="flex-shrink: 0;padding: 5px;font-size: 14px;z-index: 1;font-weight: 600;">预约提货
</view>
</view> </view>
<view style="width: 100%;text-align: center;margin-top: 10px;margin-bottom: 10px;">{{item.state}} <view
style="width: 100%;text-align: center;padding-top: 20px;background: #fef0f0;border-bottom-left-radius: 20px;border-bottom-right-radius: 20px;">
<view style="font-size: 16px;color: red;">{{item.pName}}</view>
<view
style="background-image: url(../../static/card_bg1.png);padding-bottom: 10px;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;font-size: 12px;margin-top: 10px;color: #666;">
{{item.state}}
</view>
</view> </view>
</view> </view>
</view> </view>
@ -52,6 +65,7 @@
showBtn: true, showBtn: true,
time: "2023.10.20-2025.10.20", time: "2023.10.20-2025.10.20",
name: "卡号:123456789", name: "卡号:123456789",
pName: '礼包2',
state: "已失效", state: "已失效",
sid: "" sid: ""
}, { }, {
@ -70,7 +84,7 @@
name: "卡号:1234567809", name: "卡号:1234567809",
state: "已失效1" state: "已失效1"
}, { }, {
showBtn: false, showBtn: true,
time: "2023.10.20-2025.10.30", time: "2023.10.20-2025.10.30",
name: "卡号:1234567809", name: "卡号:1234567809",
state: "已失效1" state: "已失效1"
@ -120,12 +134,14 @@
border-top-right-radius: 20rpx; border-top-right-radius: 20rpx;
color: #FFF; color: #FFF;
align-items: center; align-items: center;
background: linear-gradient(89.8deg, rgba(218, 51, 33, 1) -3.76%, rgba(237, 113, 53, 0) 300.05%);
}
.gray {
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
transition: filter 0.2s;
} }
/* uni-page-body, .oragin {}
page {
width: 100%;
height: 100%;
height: calc(100% + var(--window-bottom); )
} */
</style> </style>
Loading…
Cancel
Save