完善功能
This commit is contained in:
@ -7,11 +7,18 @@
|
|||||||
<view class="pr d-c-c mb-20" v-for="item in list" :key="item.id" @click="jumpPage(`/bundle/combo/details?id=${item.id}`)">
|
<view class="pr d-c-c mb-20" v-for="item in list" :key="item.id" @click="jumpPage(`/bundle/combo/details?id=${item.id}`)">
|
||||||
<view class="pr">
|
<view class="pr">
|
||||||
<image :src="item.img" style="width: 690rpx; height: 300rpx;" />
|
<image :src="item.img" style="width: 690rpx; height: 300rpx;" />
|
||||||
<view class="kt-eg-name">{{ item.eg_name }}</view>
|
<view class="kt-eg-name">
|
||||||
|
{{ item.eg_name }}
|
||||||
|
</view>
|
||||||
<view class="kt-name">{{ item.name }}</view>
|
<view class="kt-name">{{ item.name }}</view>
|
||||||
<view class="kt-btn-bg">
|
<view class="kt-btn-bg">
|
||||||
<view :class="item.order ? 'kt-txt2' : 'kt-txt1'">{{ item.order ? '续费' : '立即开通' }}</view>
|
<view :class="item.order ? 'kt-txt2' : 'kt-txt1'">{{ item.order ? '续费' : '立即开通' }}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="kt-price-box" style="position: absolute; right: 40rpx; bottom: 22rpx; display: flex; align-items: center;">
|
||||||
|
<view class="kt-price" v-if="item.month_price && item.month_price > 0" style="color: #977A5D; font-size: 24rpx; font-weight: 400; margin-right: 20rpx;">月卡 ¥{{ item.month_price }}</view>
|
||||||
|
<view class="kt-price" v-if="item.seasonal_price && item.seasonal_price > 0" style="color: #977A5D; font-size: 24rpx; font-weight: 400;">季卡 ¥{{ item.seasonal_price }}</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -94,6 +101,7 @@ page {
|
|||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
|
|
||||||
& .kt-txt1 {
|
& .kt-txt1 {
|
||||||
padding-left: 60rpx;
|
padding-left: 60rpx;
|
||||||
}
|
}
|
||||||
@ -101,9 +109,18 @@ page {
|
|||||||
& .kt-txt2 {
|
& .kt-txt2 {
|
||||||
padding-left: 80rpx;
|
padding-left: 80rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.kt-price {
|
||||||
|
color: #C2863E;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mb-20 {
|
.mb-20 {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<!-- Rights Content -->
|
<!-- Rights Content -->
|
||||||
<view class="content-section">
|
<view class="content-section">
|
||||||
<view class="section-title">
|
<view class="section-title" style="margin-top: 20rpx;">
|
||||||
<image src="https://xh.stnav.com/uploads/sport/hyqy.png" mode="heightFix" style="height: 40rpx;">
|
<image src="https://xh.stnav.com/uploads/sport/hyqy.png" mode="heightFix" style="height: 40rpx;">
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
@ -65,6 +65,33 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view style="margin-bottom: 28rpx;">
|
||||||
|
<view class="section-title" style="margin-bottom: 34rpx;">
|
||||||
|
<image src="https://xh.stnav.com/uploads/sport/hyyh.png" mode="heightFix" style="height: 40rpx;">
|
||||||
|
</image>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="combo-cards">
|
||||||
|
<view class="combo-card" v-if="info.month_price && info.month_price > 0">
|
||||||
|
<view class="combo-tag pr">
|
||||||
|
<image src="https://xh.stnav.com/uploads/sport/yk_bg.png" style="width: 112rpx; height: 40rpx;"></image>
|
||||||
|
<view class="combo-type1 pb">月卡</view>
|
||||||
|
</view>
|
||||||
|
<view class="combo-price"><text class="currency">¥</text>{{ info.month_price }}</view>
|
||||||
|
<view class="combo-desc">每月/¥{{ info.month_price }}</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="combo-card" v-if="info.seasonal_price && info.seasonal_price > 0">
|
||||||
|
<view class="combo-tag pr">
|
||||||
|
<image src="https://xh.stnav.com/uploads/sport/jk_bg.png" style="width: 112rpx; height: 40rpx;"></image>
|
||||||
|
<view class="combo-type2">季卡</view>
|
||||||
|
</view>
|
||||||
|
<view class="combo-price"><text class="currency">¥</text>{{ info.seasonal_price }}</view>
|
||||||
|
<view class="combo-desc">每季/¥{{ info.seasonal_price }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- Rules Box -->
|
<!-- Rules Box -->
|
||||||
<view class="rules-box">
|
<view class="rules-box">
|
||||||
<view class="rules-tag">
|
<view class="rules-tag">
|
||||||
@ -447,6 +474,79 @@ page {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.combo-cards {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 30rpx;
|
||||||
|
padding: 0 30rpx 0;
|
||||||
|
|
||||||
|
.combo-card {
|
||||||
|
width: 216rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
border: 2rpx solid #F0DCAF;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.02);
|
||||||
|
|
||||||
|
.combo-tag {
|
||||||
|
position: absolute;
|
||||||
|
top: -8rpx;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
width: 112rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.combo-type1 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #CB8438;
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.combo-type2 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 500;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.combo-price {
|
||||||
|
margin-top: 60rpx;
|
||||||
|
font-size: 44rpx;
|
||||||
|
color: #C2863E;
|
||||||
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: normal;
|
||||||
|
margin-right: 4rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.combo-desc {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #888888;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
padding-bottom: 200rpx;
|
padding-bottom: 200rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -377,7 +377,7 @@ export default {
|
|||||||
},
|
},
|
||||||
function(res) {
|
function(res) {
|
||||||
if (res.code) {
|
if (res.code) {
|
||||||
self.info = res.data;
|
self.setting = res.data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -400,9 +400,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
contactUs() {
|
contactUs() {
|
||||||
console.log("🚀 ~ this.setting:", this.setting)
|
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: this.setting.company.contact
|
phoneNumber: this.setting.lists.company.contact
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -41,9 +41,9 @@
|
|||||||
|
|
||||||
<view class="card right-card" @click="toCombo" style="background-image: url('https://xh.stnav.com/uploads/sport/home_image1.png'); background-size: 100% 100%; background-repeat: no-repeat;">
|
<view class="card right-card" @click="toCombo" style="background-image: url('https://xh.stnav.com/uploads/sport/home_image1.png'); background-size: 100% 100%; background-repeat: no-repeat;">
|
||||||
<view class="card-text">
|
<view class="card-text">
|
||||||
<view class="card-title" style="color: #D1834F;">篮球套餐卡</view>
|
<view class="card-title" style="color: #D1834F;">篮球会员卡</view>
|
||||||
<view class="card-subtitle right-subtitle" style="color: #CD9C7B;">青年卡、亲子卡、成年卡...等你来领</view>
|
<view class="card-subtitle right-subtitle" style="color: #CD9C7B;">青年卡、亲子卡、成年卡...等你来领</view>
|
||||||
<view><text class="card-btn" style="background-color: #D19A62; color: #fff;">立即查看</text></view>
|
<view><text class="card-btn" style="background-color: #D19A62; color: #fff;">立即抢购</text></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user