Compare commits
8
Commits
2b57392ce0
...
6d1bfc2f1f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d1bfc2f1f | ||
|
|
c0a94a0d6d | ||
|
|
069609f409 | ||
|
|
d971dfbe0f | ||
|
|
881526b104 | ||
|
|
b4d8376dd4 | ||
|
|
db6a239560 | ||
|
|
bda2639d78 |
@@ -5,6 +5,12 @@ import { injectUpSdk } from '@/common/petrolVoucher.js'
|
|||||||
// 在 App 挂载前(document-start 最早 JS 点)注入,逼近静态 head 加载时机(石油券支付修复)
|
// 在 App 挂载前(document-start 最早 JS 点)注入,逼近静态 head 加载时机(石油券支付修复)
|
||||||
injectUpSdk()
|
injectUpSdk()
|
||||||
|
|
||||||
|
// xuchao: 真机调试开关——URL 带 ?vc=1 时加载 vconsole,可看 console/网络/存储;
|
||||||
|
// 普通用户链接无此参数,零影响
|
||||||
|
if (typeof window !== 'undefined' && /[?&#]vc=1/.test(window.location.href || '')) {
|
||||||
|
import('vconsole').then(m => { const V = m.default || m.VConsole; if (V) new V() }).catch(() => {})
|
||||||
|
}
|
||||||
|
|
||||||
// #ifndef VUE3
|
// #ifndef VUE3
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import './uni.promisify.adaptor'
|
import './uni.promisify.adaptor'
|
||||||
|
|||||||
@@ -198,6 +198,7 @@ export default {
|
|||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* xuchao: 底部固定导航遮挡留白;.page 必须撑满屏高并自带底色 —— 之前底色只挂在 body 上、
|
/* xuchao: 底部固定导航遮挡留白;.page 必须撑满屏高并自带底色 —— 之前底色只挂在 body 上、
|
||||||
高度等于内容高度,内容短时下方露出 html 白底,在 TabBar 上方形成一条白带两条缝 */
|
高度等于内容高度,内容短时下方露出 html 白底,在 TabBar 上方形成一条白带两条缝 */
|
||||||
.page {
|
.page {
|
||||||
|
|||||||
+59
-49
@@ -26,7 +26,7 @@
|
|||||||
<!-- 选择预约日期 -->
|
<!-- 选择预约日期 -->
|
||||||
<view class="date-section" v-if="detail.isAppointment && detail.dates && detail.dates.length > 0">
|
<view class="date-section" v-if="detail.isAppointment && detail.dates && detail.dates.length > 0">
|
||||||
<view class="section-title">
|
<view class="section-title">
|
||||||
<image src="https://aliyunoss.hn12301.net/hhrs/hhrs_xzyyrq.png" style="width: 30rpx;height: 30rpx;"></image>
|
<view class="bar"></view>
|
||||||
<text class="section-title-text">选择预约日期</text>
|
<text class="section-title-text">选择预约日期</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="date-list">
|
<view class="date-list">
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<!-- 使用说明 -->
|
<!-- 使用说明 -->
|
||||||
<view class="discount-section">
|
<view class="discount-section">
|
||||||
<view class="section-title">
|
<view class="section-title">
|
||||||
<image src="https://aliyunoss.hn12301.net/hhrs/hhrs_qysm.png" style="width: 30rpx;height: 30rpx;"></image>
|
<view class="bar"></view>
|
||||||
<text class="discount-title">权益说明</text>
|
<text class="discount-title">权益说明</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="discount-list">
|
<view class="discount-list">
|
||||||
@@ -177,7 +177,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
page {
|
page {
|
||||||
background-color: #f2f2f7;
|
background-color: #FDECE2;
|
||||||
padding-top: 24rpx;
|
padding-top: 24rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -185,22 +185,23 @@ export default {
|
|||||||
/* 门店卡片(信息+地址合并容器,样式与门店详情页一致) */
|
/* 门店卡片(信息+地址合并容器,样式与门店详情页一致) */
|
||||||
.store-card {
|
.store-card {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
margin: 0 12px 12px 12px;
|
margin: 0 24rpx 24rpx;
|
||||||
border-radius: 8px;
|
border-radius: 28rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.store-main {
|
.store-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
padding: 12px;
|
padding: 24rpx;
|
||||||
gap: 12px;
|
gap: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.store-img {
|
.store-img {
|
||||||
width: 100px;
|
width: 180rpx;
|
||||||
height: 100px;
|
height: 180rpx;
|
||||||
border-radius: 6px;
|
border-radius: 16rpx;
|
||||||
|
background-color: #f7f7f7;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,29 +210,29 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
gap: 8px;
|
gap: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.store-name {
|
.store-name {
|
||||||
font-size: 16px;
|
font-size: 34rpx;
|
||||||
font-weight: 500;
|
font-weight: bold;
|
||||||
color: #1a1818;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.store-category {
|
.store-category {
|
||||||
font-size: 13px;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.store-hours {
|
.store-hours {
|
||||||
font-size: 13px;
|
font-size: 24rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
height: 1px;
|
height: 1rpx;
|
||||||
background-color: #f2f2f7;
|
background-color: #f2f2f7;
|
||||||
margin: 0 12px;
|
margin: 0 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 地址行(卡片内) */
|
/* 地址行(卡片内) */
|
||||||
@@ -239,7 +240,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 12px;
|
padding: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.address-text {
|
.address-text {
|
||||||
@@ -254,29 +255,38 @@ export default {
|
|||||||
.distance-row {
|
.distance-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 2px;
|
gap: 4rpx;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-left: 8px;
|
margin-left: 16rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.distance-text {
|
.distance-text {
|
||||||
font-size: 12px;
|
font-size: 22rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* xuchao: 栏目标题红色渐变规格条,与首页 .bar 同款 */
|
||||||
|
.bar {
|
||||||
|
width: 8rpx;
|
||||||
|
height: 34rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
background: linear-gradient(180deg, #F6613C, #E01818);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* 选择预约日期 */
|
/* 选择预约日期 */
|
||||||
.date-section {
|
.date-section {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
margin: 12px;
|
margin: 0 24rpx 24rpx;
|
||||||
border-radius: 8px;
|
border-radius: 28rpx;
|
||||||
padding: 16px;
|
padding: 28rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 14rpx;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-icon {
|
.section-icon {
|
||||||
@@ -292,9 +302,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.section-title-text {
|
.section-title-text {
|
||||||
font-size: 15px;
|
font-size: 34rpx;
|
||||||
font-weight: 600;
|
font-weight: bold;
|
||||||
color: #1a1818;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date-list {
|
.date-list {
|
||||||
@@ -308,8 +318,8 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12px 8px;
|
padding: 12px 8px;
|
||||||
border: 1px solid #e8e8e8;
|
border: 1rpx solid #f2f2f7;
|
||||||
border-radius: 8px;
|
border-radius: 16rpx;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,7 +334,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.date-weekday {
|
.date-weekday {
|
||||||
font-size: 12px;
|
font-size: 22rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -333,9 +343,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.date-day {
|
.date-day {
|
||||||
font-size: 15px;
|
font-size: 28rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #1a1818;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date-card.active .date-day {
|
.date-card.active .date-day {
|
||||||
@@ -343,7 +353,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.date-stock {
|
.date-stock {
|
||||||
font-size: 11px;
|
font-size: 22rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -352,7 +362,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.date-tip {
|
.date-tip {
|
||||||
font-size: 12px;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -385,9 +395,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.slot-name {
|
.slot-name {
|
||||||
font-size: 13px;
|
font-size: 26rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #1a1818;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-slot-card.active .slot-name {
|
.time-slot-card.active .slot-name {
|
||||||
@@ -395,7 +405,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.slot-time {
|
.slot-time {
|
||||||
font-size: 11px;
|
font-size: 22rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -404,7 +414,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.slot-stock {
|
.slot-stock {
|
||||||
font-size: 11px;
|
font-size: 22rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -438,9 +448,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.discount-item {
|
.discount-item {
|
||||||
font-size: 13px;
|
font-size: 28rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
line-height: 1.6;
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 底部预约按钮 */
|
/* 底部预约按钮 */
|
||||||
@@ -461,13 +471,13 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.book-btn {
|
.book-btn {
|
||||||
background-color: #E8542F;
|
background: linear-gradient(-135deg, #E8542F 0%, #C0301B 100%);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 32rpx;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
height: 44px;
|
height: 88rpx;
|
||||||
line-height: 44px;
|
line-height: 88rpx;
|
||||||
border-radius: 22px;
|
border-radius: 44rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+22
-93
@@ -29,10 +29,6 @@
|
|||||||
<text class="meta-line" v-if="shop.brandType || shop.category">{{ shop.brandType || shop.category }}</text>
|
<text class="meta-line" v-if="shop.brandType || shop.category">{{ shop.brandType || shop.category }}</text>
|
||||||
<text class="meta-line" v-if="shop.businessTime">营业时间:{{ shop.businessTime }}</text>
|
<text class="meta-line" v-if="shop.businessTime">营业时间:{{ shop.businessTime }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="pay-btn" @click="onPayCode">
|
|
||||||
<svg width="17" height="17" viewBox="0 0 24 24" fill="none"><rect x="3" y="3" width="7" height="7" rx="1.5" stroke="#fff" stroke-width="2"/><rect x="14" y="3" width="7" height="7" rx="1.5" stroke="#fff" stroke-width="2"/><rect x="3" y="14" width="7" height="7" rx="1.5" stroke="#fff" stroke-width="2"/><path d="M14 14h3v3h-3zM18 18h3v3h-3z" fill="#fff"/></svg>
|
|
||||||
<text class="pay-btn-text">付款码</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 优惠说明 -->
|
<!-- 优惠说明 -->
|
||||||
@@ -145,67 +141,6 @@
|
|||||||
if (pages.length > 1) uni.navigateBack()
|
if (pages.length > 1) uni.navigateBack()
|
||||||
else uni.reLaunch({ url: '/pages/index/index' })
|
else uni.reLaunch({ url: '/pages/index/index' })
|
||||||
},
|
},
|
||||||
// xuchao: 付款码——对齐 ysf 项目首页做法:upsdk.qrCodePay() 由云闪付容器原生拉起付款码,无 web 跳转。
|
|
||||||
// SDK 加载复用加油页验证过的注入模式;拉不起的场景(非容器/加载失败/非免密登录)统一弹 payGuide
|
|
||||||
onPayCode() {
|
|
||||||
this.loadUpSdk().then(ready => {
|
|
||||||
if (!ready) { this.payGuide(); return }
|
|
||||||
try {
|
|
||||||
// xuchao: 微信等普通浏览器里 upsdk 脚本能加载但桥永不就绪,pluginReady 回调不到;
|
|
||||||
// 3 秒无响应即判定非云闪付容器(容器内通常 <1s 已拉起付款码)
|
|
||||||
let bridged = false
|
|
||||||
const timer = setTimeout(() => { if (!bridged) this.payGuide() }, 3000)
|
|
||||||
window.upsdk.pluginReady(() => {
|
|
||||||
bridged = true
|
|
||||||
clearTimeout(timer)
|
|
||||||
// xuchao: 付款码依赖云闪付账号与社保卡的绑定关系——只对免密登录(ysf)会话开放;
|
|
||||||
// 验证码登录/未登录时容器钱包账号与本活动身份可能不一致,提示而不是拉起
|
|
||||||
if (uni.getStorageSync('loginWay') !== 'ysf') { this.payGuide(); return }
|
|
||||||
try { window.upsdk.qrCodePay() }
|
|
||||||
catch (e) { uni.showToast({ title: '拉起付款码失败,请重试', icon: 'none' }) }
|
|
||||||
})
|
|
||||||
} catch (e) {
|
|
||||||
uni.showToast({ title: '拉起付款码失败,请重试', icon: 'none' })
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// xuchao: 付款码不可用时的统一提示(运营定稿文案;按反馈改为轻提示两行显示,不用确认弹窗)
|
|
||||||
payGuide() {
|
|
||||||
uni.showToast({
|
|
||||||
title: '暂时无法使用付款码\n请登录云闪付 app 打开付款码进行使用',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2500
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// xuchao: upsdk 运行时注入并返回就绪 Promise(与 petrol/orderConfirm 同一模式,全局只注入一次;
|
|
||||||
// 不能依赖 index.html 静态标签——HBuilderX 构建的 H5 模板不吃根 index.html)
|
|
||||||
loadUpSdk(timeout = 9000) {
|
|
||||||
if (typeof window === 'undefined' || typeof document === 'undefined') return Promise.resolve(false)
|
|
||||||
if (window.upsdk) return Promise.resolve(true)
|
|
||||||
if (this._upSdkPromise) return this._upSdkPromise
|
|
||||||
const loading = new Promise(resolve => {
|
|
||||||
let done = false
|
|
||||||
const finish = v => { if (!done) { done = true; resolve(v) } }
|
|
||||||
const exists = document.querySelector('script[data-upsdk]')
|
|
||||||
if (exists) {
|
|
||||||
const t0 = Date.now()
|
|
||||||
const timer = setInterval(() => {
|
|
||||||
if (window.upsdk) { clearInterval(timer); finish(true) }
|
|
||||||
else if (Date.now() - t0 > timeout) { clearInterval(timer); finish(false) }
|
|
||||||
}, 200)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const s = document.createElement('script')
|
|
||||||
s.src = 'https://open.95516.com/s/open/js/upsdk.js'
|
|
||||||
s.setAttribute('data-upsdk', '1')
|
|
||||||
s.onload = () => finish(!!window.upsdk)
|
|
||||||
s.onerror = () => finish(false)
|
|
||||||
document.head.appendChild(s)
|
|
||||||
setTimeout(() => finish(!!window.upsdk), timeout)
|
|
||||||
})
|
|
||||||
this._upSdkPromise = loading
|
|
||||||
return loading
|
|
||||||
},
|
|
||||||
navTo(s) {
|
navTo(s) {
|
||||||
if (!s.lng || !s.lat) {
|
if (!s.lng || !s.lat) {
|
||||||
uni.showToast({ title: '该门店暂未录入坐标', icon: 'none' })
|
uni.showToast({ title: '该门店暂未录入坐标', icon: 'none' })
|
||||||
@@ -224,7 +159,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.page { min-height: 100vh; background: #F6EFE6; }
|
/* xuchao: 页面底色对齐首页设计稿暖米色(原奶油底 #F6EFE6 与全站不一致) */
|
||||||
|
.page { min-height: 100vh; background: #FDECE2; }
|
||||||
</style>
|
</style>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
@@ -239,17 +175,17 @@
|
|||||||
.body { padding: 24rpx; }
|
.body { padding: 24rpx; }
|
||||||
|
|
||||||
.head-card {
|
.head-card {
|
||||||
background: linear-gradient(180deg, #FFF7EC 0%, #FFFDF9 40%, #FFFFFF 100%);
|
background: #FFFFFF;
|
||||||
border-radius: 28rpx; padding: 28rpx;
|
border-radius: 28rpx; padding: 28rpx;
|
||||||
}
|
}
|
||||||
.head-top { display: flex; align-items: center; gap: 20rpx; }
|
.head-top { display: flex; align-items: center; gap: 20rpx; }
|
||||||
.logo-box {
|
.logo-box {
|
||||||
width: 96rpx; height: 96rpx; border-radius: 16rpx; overflow: hidden;
|
width: 96rpx; height: 96rpx; border-radius: 16rpx; overflow: hidden;
|
||||||
background: #fff; border: 1rpx solid #F2E4D0; flex-shrink: 0;
|
background: #f7f7f7; border: 1rpx solid #f2f2f7; flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.logo { width: 100%; height: 100%; display: block; }
|
.logo { width: 100%; height: 100%; display: block; }
|
||||||
.head-name {
|
.head-name {
|
||||||
flex: 1; min-width: 0; font-size: 36rpx; font-weight: 800; color: #33200F;
|
flex: 1; min-width: 0; font-size: 36rpx; font-weight: bold; color: #333333;
|
||||||
/* xuchao: 店铺名完整显示,允许换行,不用省略号 */
|
/* xuchao: 店铺名完整显示,允许换行,不用省略号 */
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
@@ -263,48 +199,41 @@
|
|||||||
}
|
}
|
||||||
.badge-main { font-size: 30rpx; font-weight: 900; color: #fff; line-height: 1.2; white-space: nowrap; }
|
.badge-main { font-size: 30rpx; font-weight: 900; color: #fff; line-height: 1.2; white-space: nowrap; }
|
||||||
.badge-sub { font-size: 18rpx; color: rgba(255, 255, 255, .92); margin-top: 4rpx; white-space: nowrap; }
|
.badge-sub { font-size: 18rpx; color: rgba(255, 255, 255, .92); margin-top: 4rpx; white-space: nowrap; }
|
||||||
.head-divider { height: 1rpx; background: #F3E7D7; margin: 24rpx 0 18rpx; }
|
.head-divider { height: 1rpx; background: #f2f2f7; margin: 24rpx 0 18rpx; }
|
||||||
.head-meta { display: flex; flex-direction: column; gap: 8rpx; }
|
.head-meta { display: flex; flex-direction: column; gap: 8rpx; }
|
||||||
.meta-line { font-size: 24rpx; color: #8A6E56; }
|
.meta-line { font-size: 24rpx; color: #666666; }
|
||||||
.pay-btn {
|
|
||||||
margin-top: 28rpx; height: 88rpx; border-radius: 16rpx;
|
|
||||||
background: linear-gradient(90deg, #D8431F, #E8542F 55%, #F0703C);
|
|
||||||
display: flex; align-items: center; justify-content: center; gap: 12rpx;
|
|
||||||
box-shadow: 0 8rpx 18rpx rgba(216, 67, 31, .28);
|
|
||||||
}
|
|
||||||
.pay-btn-text { font-size: 32rpx; font-weight: 700; color: #fff; letter-spacing: 2rpx; }
|
|
||||||
|
|
||||||
.card { background: #fff; border-radius: 28rpx; padding: 28rpx; margin-top: 24rpx; }
|
.card { background: #fff; border-radius: 28rpx; padding: 28rpx; margin-top: 24rpx; }
|
||||||
.card-title { display: flex; align-items: center; gap: 14rpx; font-size: 32rpx; font-weight: 800; color: #33200F; }
|
.card-title { display: flex; align-items: center; gap: 14rpx; font-size: 34rpx; font-weight: bold; color: #333333; }
|
||||||
.bar { width: 8rpx; height: 30rpx; border-radius: 4rpx; background: linear-gradient(180deg, #F6613C, #E01818); }
|
.bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: linear-gradient(180deg, #F6613C, #E01818); }
|
||||||
.rules-rich { display: block; margin-top: 20rpx; font-size: 28rpx; color: #4A3A2E; line-height: 1.7; }
|
.rules-rich { display: block; margin-top: 20rpx; font-size: 28rpx; color: #666666; line-height: 1.7; }
|
||||||
.rule-line { display: flex; margin-top: 20rpx; }
|
.rule-line { display: flex; margin-top: 20rpx; }
|
||||||
.rule-no { width: 32rpx; flex-shrink: 0; font-size: 28rpx; color: #4A3A2E; line-height: 1.7; }
|
.rule-no { width: 32rpx; flex-shrink: 0; font-size: 28rpx; color: #666666; line-height: 1.7; }
|
||||||
.rule-txt { flex: 1; font-size: 28rpx; color: #4A3A2E; line-height: 1.7; }
|
.rule-txt { flex: 1; font-size: 28rpx; color: #666666; line-height: 1.7; }
|
||||||
.rule-empty { display: block; margin-top: 16rpx; font-size: 26rpx; color: #B8A28E; }
|
.rule-empty { display: block; margin-top: 16rpx; font-size: 26rpx; color: #999999; }
|
||||||
|
|
||||||
.shops-head { display: flex; align-items: center; justify-content: space-between; }
|
.shops-head { display: flex; align-items: center; justify-content: space-between; }
|
||||||
.shops-title { font-size: 32rpx; font-weight: 800; color: #33200F; }
|
.shops-title { font-size: 34rpx; font-weight: bold; color: #333333; }
|
||||||
.shops-count { font-size: 24rpx; font-weight: 400; color: #A78D75; }
|
.shops-count { font-size: 24rpx; font-weight: 400; color: #999999; }
|
||||||
.shops-more { display: flex; align-items: center; gap: 4rpx; font-size: 26rpx; color: #E0342B; font-weight: 600; }
|
.shops-more { display: flex; align-items: center; gap: 4rpx; font-size: 26rpx; color: #E0342B; font-weight: 600; }
|
||||||
.chev { width: 10rpx; height: 10rpx; border-top: 3rpx solid #E0342B; border-right: 3rpx solid #E0342B; transform: rotate(45deg); }
|
.chev { width: 10rpx; height: 10rpx; border-top: 3rpx solid #E0342B; border-right: 3rpx solid #E0342B; transform: rotate(45deg); }
|
||||||
.chev.up { transform: rotate(-135deg); width: 8rpx; height: 8rpx; }
|
.chev.up { transform: rotate(-135deg); width: 8rpx; height: 8rpx; }
|
||||||
|
|
||||||
.shop-row {
|
.shop-row {
|
||||||
display: flex; align-items: center; gap: 16rpx;
|
display: flex; align-items: center; gap: 16rpx;
|
||||||
padding: 26rpx 0; border-bottom: 1rpx solid #F5EDE2;
|
padding: 26rpx 0; border-bottom: 1rpx solid #f2f2f7;
|
||||||
}
|
}
|
||||||
.shop-row:last-child { border-bottom: none; }
|
.shop-row:last-child { border-bottom: none; }
|
||||||
.pin { flex-shrink: 0; }
|
.pin { flex-shrink: 0; }
|
||||||
.shop-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6rpx; }
|
.shop-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6rpx; }
|
||||||
.shop-name { font-size: 28rpx; font-weight: 700; color: #33200F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.shop-name { font-size: 28rpx; font-weight: 600; color: #333333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.shop-addr { font-size: 22rpx; color: #A78D75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.shop-addr { font-size: 22rpx; color: #999999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.shop-right { display: flex; align-items: center; gap: 14rpx; flex-shrink: 0; }
|
.shop-right { display: flex; align-items: center; gap: 14rpx; flex-shrink: 0; }
|
||||||
.shop-dist { font-size: 22rpx; color: #C8542B; margin-right: 4rpx; }
|
.shop-dist { font-size: 22rpx; color: #E8542F; margin-right: 4rpx; }
|
||||||
.icon-btn {
|
.icon-btn {
|
||||||
width: 56rpx; height: 56rpx; border-radius: 50%; background: #F6F2EC;
|
width: 56rpx; height: 56rpx; border-radius: 50%; background: #f7f7f7;
|
||||||
display: flex; align-items: center; justify-content: center;
|
display: flex; align-items: center; justify-content: center;
|
||||||
}
|
}
|
||||||
.collapse { text-align: center; font-size: 24rpx; color: #A78D75; padding-top: 20rpx; display: flex; align-items: center; justify-content: center; gap: 8rpx; }
|
.collapse { text-align: center; font-size: 24rpx; color: #999999; padding-top: 20rpx; display: flex; align-items: center; justify-content: center; gap: 8rpx; }
|
||||||
.loading-tip { text-align: center; color: #B8A28E; font-size: 26rpx; padding: 120rpx 0; }
|
.loading-tip { text-align: center; color: #999999; font-size: 26rpx; padding: 120rpx 0; }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+67
-39
@@ -4,11 +4,11 @@
|
|||||||
<view class="search-area">
|
<view class="search-area">
|
||||||
<view class="nav-row">
|
<view class="nav-row">
|
||||||
<view class="back-btn" @click="goBack">
|
<view class="back-btn" @click="goBack">
|
||||||
<u-icon name="arrow-left" color="#333333" size="40"></u-icon>
|
<u-icon name="arrow-left" color="#333333" size="32"></u-icon>
|
||||||
<text class="back-text">返回</text>
|
<text class="back-text">返回</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="search-bar">
|
<view class="search-bar">
|
||||||
<u-icon name="search" color="#8e8e93" size="36"></u-icon>
|
<u-icon name="search" color="#8e8e93" size="30"></u-icon>
|
||||||
<input class="search-input" v-model="keyword" placeholder="请搜索场馆名" confirm-type="search" @confirm="onSearch" />
|
<input class="search-input" v-model="keyword" placeholder="请搜索场馆名" confirm-type="search" @confirm="onSearch" />
|
||||||
<view class="search-btn" @click="onSearch">搜索</view>
|
<view class="search-btn" @click="onSearch">搜索</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -28,7 +28,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="card-info">
|
<view class="card-info">
|
||||||
<text class="card-name">{{ item.name }}</text>
|
<text class="card-name">{{ item.name }}</text>
|
||||||
<text class="card-category">{{ item.category }}</text>
|
<!-- xuchao: 类型 + 社保卡标签同一行(类型在前,场馆均支持实体/电子社保卡) -->
|
||||||
|
<view class="card-tags">
|
||||||
|
<text class="card-category">{{ item.category }}</text>
|
||||||
|
<text class="tag-card">实体社保卡</text>
|
||||||
|
<text class="tag-card">电子社保卡</text>
|
||||||
|
</view>
|
||||||
<view class="card-bottom">
|
<view class="card-bottom">
|
||||||
<text class="card-address">{{ item.address }}</text>
|
<text class="card-address">{{ item.address }}</text>
|
||||||
<view class="card-distance" v-if="item.distance !== null">
|
<view class="card-distance" v-if="item.distance !== null">
|
||||||
@@ -173,7 +178,8 @@ export default {
|
|||||||
|
|
||||||
.search-area {
|
.search-area {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 6px 12px 0;
|
/* xuchao: 底部留 8px 灰底间隔,与下方卡片不贴死(对齐折扣页) */
|
||||||
|
padding: 6px 12px 8px;
|
||||||
/* xuchao: 滚动时固定在页面顶部;z-index 高于筛选遮罩(90),保证面板与选中态不被压住 */
|
/* xuchao: 滚动时固定在页面顶部;z-index 高于筛选遮罩(90),保证面板与选中态不被压住 */
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -190,7 +196,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 44px;
|
height: 36px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
}
|
}
|
||||||
@@ -204,25 +210,25 @@ export default {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 44px;
|
height: 36px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border: 1px solid #f2f2f7;
|
border: 1px solid #f2f2f7;
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
gap: 12px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input {
|
.search-input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-btn {
|
.search-btn {
|
||||||
background-color: #E8542F;
|
background-color: #E8542F;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
padding: 4px 10px;
|
padding: 3px 10px;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
@@ -230,27 +236,31 @@ export default {
|
|||||||
.list-area {
|
.list-area {
|
||||||
/* xuchao: 顶部 12px 必须是页面灰底(不能放进头部的白底里),否则与白色卡片连成一片看不出间隔 */
|
/* xuchao: 顶部 12px 必须是页面灰底(不能放进头部的白底里),否则与白色卡片连成一片看不出间隔 */
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
/* xuchao: border-box 防止 padding 撑出页面横向滚动 */
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.venue-card {
|
.venue-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border: 1px solid #f2f2f7;
|
border: 1px solid #f2f2f7;
|
||||||
border-radius: 6px;
|
border-radius: 16rpx;
|
||||||
padding: 24px 12px;
|
padding: 24rpx;
|
||||||
gap: 12px;
|
gap: 20rpx;
|
||||||
box-shadow: 0 2px 3px #f2f2f7;
|
box-shadow: 0 2px 3px #f2f2f7;
|
||||||
margin: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-thumb {
|
.card-thumb {
|
||||||
width: 75px;
|
width: 180rpx;
|
||||||
height: 75px;
|
height: 180rpx;
|
||||||
border-radius: 6px;
|
border-radius: 16rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
background-color: #f7f7f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* xuchao: image 由 thumb 裁圆角,自身不再设圆角 */
|
/* xuchao: image 由 thumb 裁圆角,自身不再设圆角 */
|
||||||
@@ -266,12 +276,12 @@ export default {
|
|||||||
left: 0;
|
left: 0;
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 1px 5px;
|
padding: 2rpx 10rpx;
|
||||||
border-radius: 0 0 6px 0;
|
border-radius: 0 0 16rpx 0;
|
||||||
background: rgba(0, 0, 0, 0.45);
|
background: rgba(0, 0, 0, 0.45);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 10px;
|
font-size: 20rpx;
|
||||||
line-height: 14px;
|
line-height: 28rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -283,14 +293,13 @@ export default {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0;
|
align-items: flex-start;
|
||||||
width: 100%;
|
gap: 8rpx;
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-name {
|
.card-name {
|
||||||
font-size: 16px;
|
font-size: 30rpx;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -298,27 +307,46 @@ export default {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* xuchao: 类型 + 标签同一行;标签为品牌红调胶囊,形制同折扣页 tag-coupon */
|
||||||
|
.card-tags {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8rpx;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.card-category {
|
.card-category {
|
||||||
font-size: 14px;
|
/* xuchao: 类型可收缩省略,保证整行不换行(胶囊不缩) */
|
||||||
color: #727272;
|
font-size: 22rpx;
|
||||||
margin-top: 8px;
|
color: #999999;
|
||||||
/* xuchao: 分类为空也预留一行高度,防止卡片内容底部对齐时名称上下跳动 */
|
min-width: 0;
|
||||||
min-height: 20px;
|
overflow: hidden;
|
||||||
line-height: 20px;
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-card {
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #E8542F;
|
||||||
|
background: rgba(232, 84, 47, 0.08);
|
||||||
|
border-radius: 6rpx;
|
||||||
|
padding: 4rpx 10rpx;
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-bottom {
|
.card-bottom {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-top: 8px;
|
width: 100%;
|
||||||
gap: 8px;
|
gap: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-address {
|
.card-address {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 14px;
|
font-size: 22rpx;
|
||||||
color: #727272;
|
color: #999999;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -333,8 +361,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.distance-text {
|
.distance-text {
|
||||||
font-size: 12px;
|
font-size: 22rpx;
|
||||||
color: #727272;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nomore-area {
|
.nomore-area {
|
||||||
|
|||||||
Reference in New Issue
Block a user