Feat:体验项目详情
This commit is contained in:
@@ -316,3 +316,20 @@ export function getCityShopList(params) {
|
||||
export function getCountyFamousHotelType() {
|
||||
return request.get('/countyFamous/hotelType', {}, {login: true})
|
||||
}
|
||||
|
||||
/**
|
||||
* ������б�
|
||||
* travelMerchantId int �þ��̻�ID
|
||||
* experienceStoreCategoryId int ��������ID
|
||||
*/
|
||||
export function getExperienceStoreList(params) {
|
||||
return request.get('/experienceStore/list', params, { login: true })
|
||||
}
|
||||
|
||||
export function getExperienceStoreProject(experienceMerchantId) {
|
||||
return request.get('/experienceStoreProject/' + experienceMerchantId, {}, { login: true })
|
||||
}
|
||||
|
||||
export function getExperienceStoreDetail(id) {
|
||||
return request.get('/experienceStore/detail/' + id, {}, { login: true })
|
||||
}
|
||||
|
||||
@@ -744,6 +744,13 @@
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "views/experienceProjectDetail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "体验项目详情",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "views/submitOrder",
|
||||
"style": {
|
||||
|
||||
@@ -0,0 +1,544 @@
|
||||
<template>
|
||||
<view class="experience-project-page">
|
||||
<hx-navbar
|
||||
:fixed="true"
|
||||
:background-color="[0, [0, 0, 0, 0], [0, 0, 0, 0]]"
|
||||
statusBarFontColor="#ffffff"
|
||||
barPlaceholder="hidden"
|
||||
transparent="auto"
|
||||
color="#ffffff"
|
||||
/>
|
||||
<scroll-view scroll-y class="page-scroll">
|
||||
<view class="hero-wrap">
|
||||
<image
|
||||
v-if="project.cover"
|
||||
:src="project.cover"
|
||||
class="hero-img"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="store-card">
|
||||
<view class="store-name">
|
||||
{{ project.name }}
|
||||
</view>
|
||||
<view class="store-intro">
|
||||
{{ project.intro }}
|
||||
</view>
|
||||
<view class="store-tags">
|
||||
<view class="time-tag">
|
||||
<view class="time-tag-label">营业时间</view>
|
||||
<view class="time-tag-value">{{ project.serviceTime }}~{{ project.serviceEndTime }}</view>
|
||||
</view>
|
||||
<view class="license-tag">营业执照</view>
|
||||
</view>
|
||||
<view class="store-meta">
|
||||
<view class="meta-left">
|
||||
<u-icon
|
||||
:name="webUrl + '/home/icon-location.png'"
|
||||
size="20"
|
||||
color="#C52733"
|
||||
/>
|
||||
<text class="meta-text">
|
||||
{{ project.cityName }}{{ project.address }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="meta-actions">
|
||||
<view class="action-item" @click="handleNavigate">
|
||||
<view class="action-icon">
|
||||
<u-icon name="map" color="#fff" size="20"></u-icon>
|
||||
</view>
|
||||
<text class="action-text">导航</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleContact">
|
||||
<view class="action-icon">
|
||||
<u-icon name="server-fill" color="#fff" size="20"></u-icon>
|
||||
</view>
|
||||
<text class="action-text">客服</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section-experience">
|
||||
<view class="experience-badge-wrap">
|
||||
<view class="experience-badge">
|
||||
<u-icon name="diamond-fill" color="#F9D24D" size="18"></u-icon>
|
||||
<text class="badge-text">超值体验</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="experience-card">
|
||||
<image
|
||||
v-if="project.cover"
|
||||
:src="project.cover"
|
||||
class="experience-image"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<view class="experience-info">
|
||||
<view class="experience-title-wrap">
|
||||
<view class="experience-title">
|
||||
{{ project.experienceTitle || project.name }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="experience-subtitle">
|
||||
{{ project.experienceSubTitle || project.intro }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<view class="section-title">详情</view>
|
||||
<view v-if="detailList && detailList.length" class="detail-list">
|
||||
<view
|
||||
v-for="(item, index) in detailList"
|
||||
:key="index"
|
||||
class="detail-item"
|
||||
>
|
||||
<view class="detail-name">
|
||||
<text class="dot"></text>
|
||||
<text>{{ item.name }}</text>
|
||||
</view>
|
||||
<view class="detail-count">({{ item.count }})</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="section-text with-dot">
|
||||
<text class="dot"></text>
|
||||
<text>{{ project.detailText || '详情信息由商家提供' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<view class="section-title">备注</view>
|
||||
<view class="section-text with-dot">
|
||||
<text class="dot"></text>
|
||||
<text>{{ project.remark || '仅限堂食,具体以到店实际安排为准' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="section">
|
||||
<view class="section-title">使用须知</view>
|
||||
<view class="section-text with-dot">
|
||||
<text class="dot"></text>
|
||||
<text>有效期: {{ validFrom || '2026年1月1日' }} — {{ validTo || '2026年1月31日' }}</text>
|
||||
</view>
|
||||
<view class="section-text with-dot">
|
||||
<text class="dot"></text>
|
||||
<text>{{ usageNotice || '无需预约,如遇消费高峰时段您可能需要排队' }}</text>
|
||||
</view>
|
||||
<view class="section-text with-dot">
|
||||
<text class="dot"></text>
|
||||
<text>平台温馨提醒:您在到店体验本商品/服务期间,请关注商家的安全提示内容,了解相关注意事项,做好安全防护措施,保护您的安全。</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom-space" />
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getExperienceStoreDetail } from '@/api/qianxian'
|
||||
export default {
|
||||
data() {
|
||||
const webUrl = this.$VUE_APP_RESOURCES_URL
|
||||
return {
|
||||
webUrl,
|
||||
project: {
|
||||
id: '',
|
||||
name: '',
|
||||
cover: '',
|
||||
intro: '',
|
||||
serviceTime: '',
|
||||
serviceEndTime: '',
|
||||
cityName: '',
|
||||
address: '',
|
||||
latitude: '',
|
||||
longitude: '',
|
||||
phone: '',
|
||||
wechat: '',
|
||||
experienceTitle: '',
|
||||
experienceSubTitle: '',
|
||||
detailText: '',
|
||||
remark: ''
|
||||
},
|
||||
detailList: [],
|
||||
experienceMerchantId: '',
|
||||
totalPrice: 0,
|
||||
validFrom: '',
|
||||
validTo: '',
|
||||
usageNotice: ''
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
const decode = v => decodeURIComponent(v || '')
|
||||
const id = query.experienceMerchantId || query.id || ''
|
||||
this.experienceMerchantId = id
|
||||
this.project.id = id
|
||||
this.project.name = decode(query.name)
|
||||
this.project.cover = decode(query.cover)
|
||||
this.project.intro = decode(query.intro)
|
||||
this.project.serviceTime = query.serviceTime || ''
|
||||
this.project.serviceEndTime = query.serviceEndTime || ''
|
||||
this.project.cityName = decode(query.cityName)
|
||||
this.project.address = decode(query.address)
|
||||
this.project.latitude = query.latitude || ''
|
||||
this.project.longitude = query.longitude || ''
|
||||
this.project.experienceTitle = decode(query.experienceTitle || '')
|
||||
this.project.experienceSubTitle = decode(query.experienceSubTitle || '')
|
||||
this.project.detailText = decode(query.detailText || '')
|
||||
this.project.remark = decode(query.remark || '')
|
||||
this.validFrom = query.validFrom || ''
|
||||
this.validTo = query.validTo || ''
|
||||
this.usageNotice = decode(query.usageNotice || '')
|
||||
if (query.detailList) {
|
||||
try {
|
||||
const list = JSON.parse(decode(query.detailList))
|
||||
if (Array.isArray(list)) {
|
||||
this.detailList = list.map(item => ({
|
||||
name: item.name || '',
|
||||
count: item.count || ''
|
||||
}))
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
this.fetchProjectDetail()
|
||||
},
|
||||
methods: {
|
||||
fetchProjectDetail() {
|
||||
if (!this.experienceMerchantId) {
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
getExperienceStoreDetail(this.experienceMerchantId).then(res => {
|
||||
if (res && res.status === 200) {
|
||||
const data = res.data || {}
|
||||
this.project.name = data.name || this.project.name
|
||||
this.project.cover = data.cover || this.project.cover
|
||||
this.project.intro = data.intro || this.project.intro
|
||||
this.project.serviceTime = data.serviceTime || this.project.serviceTime
|
||||
this.project.serviceEndTime = data.serviceEndTime || this.project.serviceEndTime
|
||||
this.project.cityName = data.cityName || this.project.cityName
|
||||
this.project.address = data.address || this.project.address
|
||||
this.project.latitude = data.latitude || this.project.latitude
|
||||
this.project.longitude = data.longitude || this.project.longitude
|
||||
this.project.phone = data.phone || this.project.phone
|
||||
this.project.wechat = data.wechat || this.project.wechat
|
||||
const project = data.project || {}
|
||||
this.project.experienceTitle = project.themeName || this.project.experienceTitle || this.project.name
|
||||
if (project.themeImage) {
|
||||
this.project.cover = project.themeImage
|
||||
}
|
||||
this.project.detailText = project.detail || this.project.detailText
|
||||
this.project.remark = project.remark || this.project.remark
|
||||
this.usageNotice = project.useNotice || this.usageNotice
|
||||
if (project.totalPrice != null) {
|
||||
this.totalPrice = project.totalPrice
|
||||
}
|
||||
if (data.totalPrice != null && this.totalPrice === 0) {
|
||||
this.totalPrice = data.totalPrice
|
||||
}
|
||||
if (project.validityStartTime) {
|
||||
this.validFrom = project.validityStartTime
|
||||
}
|
||||
if (project.validityEndTime) {
|
||||
this.validTo = project.validityEndTime
|
||||
}
|
||||
if (project.projectList && project.projectList.length) {
|
||||
this.detailList = project.projectList.map(item => ({
|
||||
name: item.projectName || '',
|
||||
count: item.projectIntro || ''
|
||||
}))
|
||||
}
|
||||
}
|
||||
}).finally(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
handleNavigate() {
|
||||
if (!this.project.latitude || !this.project.longitude) {
|
||||
uni.showToast({
|
||||
title: '暂无位置信息',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.openLocation({
|
||||
latitude: Number(this.project.latitude),
|
||||
longitude: Number(this.project.longitude),
|
||||
name: this.project.name,
|
||||
address: this.project.address
|
||||
})
|
||||
},
|
||||
handleContact() {
|
||||
if (!this.project.phone) {
|
||||
uni.showToast({
|
||||
title: '暂无联系方式',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: this.project.phone
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.experience-project-page {
|
||||
min-height: 100vh;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
.page-scroll {
|
||||
height: calc(100vh - 120rpx);
|
||||
}
|
||||
.hero-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 400rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.content {
|
||||
margin-top: -60rpx;
|
||||
padding: 0 24rpx 40rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.store-card {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
.store-name {
|
||||
color: #333;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.store-intro {
|
||||
margin-top: 16rpx;
|
||||
color: #666;
|
||||
font-size: 26rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.store-tags {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 24rpx;
|
||||
gap: 16rpx;
|
||||
}
|
||||
.time-tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1rpx solid #C52733;
|
||||
border-radius: 24rpx;
|
||||
overflow: hidden;
|
||||
height: 40rpx;
|
||||
}
|
||||
.time-tag-label {
|
||||
background: #C52733;
|
||||
color: #ffffff;
|
||||
font-size: 22rpx;
|
||||
padding: 0 16rpx;
|
||||
height: 100%;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.time-tag-value {
|
||||
color: #333;
|
||||
font-size: 22rpx;
|
||||
padding: 0 16rpx;
|
||||
height: 100%;
|
||||
line-height: 40rpx;
|
||||
background: #ffffff;
|
||||
}
|
||||
.license-tag {
|
||||
border: 1rpx solid #C52733;
|
||||
color: #C52733;
|
||||
font-size: 22rpx;
|
||||
padding: 0 16rpx;
|
||||
border-radius: 24rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.store-meta {
|
||||
margin-top: 32rpx;
|
||||
padding-top: 32rpx;
|
||||
border-top: 1rpx solid #f0f0f0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.meta-left {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-right: 32rpx;
|
||||
}
|
||||
.meta-text {
|
||||
margin-left: 12rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.meta-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 32rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.action-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.action-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 50%;
|
||||
background: #C52733;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.action-text {
|
||||
font-size: 22rpx;
|
||||
color: #333;
|
||||
}
|
||||
.section-experience {
|
||||
margin-top: 40rpx;
|
||||
position: relative;
|
||||
}
|
||||
.experience-badge-wrap {
|
||||
position: absolute;
|
||||
top: -24rpx;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
.experience-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: linear-gradient(90deg, #E63E48, #C52733);
|
||||
padding: 8rpx 24rpx 8rpx 16rpx;
|
||||
border-radius: 8rpx 32rpx 32rpx 8rpx;
|
||||
position: relative;
|
||||
box-shadow: 0 4rpx 12rpx rgba(197, 39, 51, 0.3);
|
||||
}
|
||||
.experience-badge::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -8rpx;
|
||||
border-top: 8rpx solid #901b24;
|
||||
border-left: 8rpx solid transparent;
|
||||
}
|
||||
.badge-text {
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.experience-card {
|
||||
border-radius: 24rpx;
|
||||
background: #C52733;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8rpx 24rpx rgba(197, 39, 51, 0.15);
|
||||
padding-top: 12rpx;
|
||||
}
|
||||
.experience-image {
|
||||
width: 100%;
|
||||
height: 360rpx;
|
||||
display: block;
|
||||
}
|
||||
.experience-info {
|
||||
padding: 24rpx;
|
||||
}
|
||||
.experience-title-wrap {
|
||||
display: inline-block;
|
||||
background: #ffffff;
|
||||
border-radius: 40rpx;
|
||||
padding: 8rpx 32rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.experience-title {
|
||||
color: #C52733;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.experience-subtitle {
|
||||
color: #ffffff;
|
||||
font-size: 26rpx;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.section {
|
||||
margin-top: 24rpx;
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #ffffff;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.detail-list {
|
||||
background: transparent;
|
||||
}
|
||||
.detail-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.detail-name {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.detail-count {
|
||||
margin-left: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
.dot {
|
||||
display: inline-block;
|
||||
width: 8rpx;
|
||||
height: 8rpx;
|
||||
border-radius: 50%;
|
||||
background: #999;
|
||||
margin-top: 14rpx;
|
||||
margin-right: 16rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.section-text {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.with-dot {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.bottom-space {
|
||||
height: 40rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -82,19 +82,22 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="top-tab acea-row row-middle row-center">
|
||||
<view
|
||||
v-for="(item, index) in tabList"
|
||||
:key="index"
|
||||
:class="item.isShow ? '' : 'hide'"
|
||||
class="tab"
|
||||
@click="changeTab(item.value)"
|
||||
>
|
||||
<view :class="activeIndex === item.value ? 'active' : ''" class="tab-item">
|
||||
{{ item.text }}
|
||||
<view class="top-tab">
|
||||
<scroll-view scroll-x class="tab-scroll" :show-scrollbar="false">
|
||||
<view class="tab-list">
|
||||
<view
|
||||
v-for="(item, index) in tabList"
|
||||
:key="index"
|
||||
:class="item.isShow ? '' : 'hide'"
|
||||
class="tab"
|
||||
@click="changeTab(item.value)"
|
||||
>
|
||||
<view :class="activeIndex === item.value ? 'active' : ''" class="tab-item">
|
||||
{{ item.text }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-show="activeIndex === index" class="btLine"></view> -->
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view>
|
||||
<view
|
||||
@@ -315,6 +318,35 @@
|
||||
店主还没有上传内容哦~
|
||||
</view>
|
||||
</view>
|
||||
<!-- 体验店 -->
|
||||
<view v-if="activeIndex === 5" class="v12-pa-3" style="background: #F5F5F5;">
|
||||
<view class="experience-list">
|
||||
<view v-for="(item, index) in experienceStoreList" :key="index" class="experience-item" @click="goExperienceStoreDetail(item)">
|
||||
<view class="img-box">
|
||||
<image :src="item.cover" mode="aspectFill" class="cover-img"></image>
|
||||
<view class="location-tag" v-if="item.cityName">
|
||||
<u-icon :name="webUrl + '/home/icon-location.png'" size="18" color="#fff"></u-icon>
|
||||
<text class="city-name">{{ item.cityName }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-box">
|
||||
<view class="v12-font-32 v12-font-bold t-one">{{ item.name }}</view>
|
||||
<view class="v12-font-26 v12-dark1-text t-one">{{ item.intro }}</view>
|
||||
<view class="bottom-row">
|
||||
<view class="v12-font-20 v12-font-bold">
|
||||
营业时间:{{ item.serviceTime }}~{{ item.serviceEndTime }}
|
||||
</view>
|
||||
<view class="btn-check">
|
||||
查看
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="experienceStoreList.length === 0" class="tab-no-data">
|
||||
店主还没有上传内容哦~
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 分享 -->
|
||||
<u-popup
|
||||
@@ -353,7 +385,8 @@ import {
|
||||
postTravelShare,
|
||||
getJiaLouProductList,
|
||||
getJiaLouStewardList,
|
||||
getJiaLouNewsList
|
||||
getJiaLouNewsList,
|
||||
getExperienceStoreList
|
||||
} from '@/api/qianxian'
|
||||
import {getUrlParam} from '@/utils/common.js'
|
||||
import imgBox from '@/components/imageTypeSet/imagebox.vue'
|
||||
@@ -375,6 +408,7 @@ export default {
|
||||
tabList: [
|
||||
{ text: '团购', value: 3, isShow: true },
|
||||
{ text: '管家', value: 4, isShow: true },
|
||||
{ text: '体验店', value: 5, isShow: true },
|
||||
{ text: '资讯', value: 0, isShow: true },
|
||||
{ text: '文化', value: 1, isShow: true },
|
||||
{ text: '资质', value: 2, isShow: true }
|
||||
@@ -392,7 +426,9 @@ export default {
|
||||
jiaLouProductArr: [],
|
||||
// 管家列表
|
||||
jiaLouStewardArr: [
|
||||
]
|
||||
],
|
||||
// 体验店列表
|
||||
experienceStoreList: []
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
@@ -423,6 +459,9 @@ export default {
|
||||
if (newVal === 4) {
|
||||
this.getJiaLouStewardList()
|
||||
}
|
||||
if (newVal === 5) {
|
||||
this.getExperienceStoreList()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -443,7 +482,14 @@ export default {
|
||||
videoEnd() {
|
||||
this.swiperAutoplay = true;
|
||||
},
|
||||
// 跳转管家详情
|
||||
goExperienceStoreDetail(item) {
|
||||
const query = []
|
||||
const id = item.merId || item.id || ''
|
||||
query.push('experienceMerchantId=' + encodeURIComponent(id))
|
||||
uni.navigateTo({
|
||||
url: '/pkg_product/views/experienceProjectDetail?' + query.join('&')
|
||||
})
|
||||
},
|
||||
goHousekeeperDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pkg_product/views/housekeeperDetail?id=' + item.id
|
||||
@@ -467,6 +513,23 @@ export default {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
getExperienceStoreList() {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
const params = {
|
||||
travelMerchantId: this.store.id,
|
||||
// experienceStoreCategoryId: null // Optional if category filtering is needed
|
||||
}
|
||||
getExperienceStoreList(params).then(res => {
|
||||
if (res.status === 200) {
|
||||
this.experienceStoreList = res.data.records || []
|
||||
}
|
||||
}).finally(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
getJiaLouProductList() {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
@@ -855,7 +918,8 @@ export default {
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
border-top: 1px solid #f1f1f1;
|
||||
font-size: 16px;
|
||||
font-size: 22rpxl;
|
||||
font-weight: bold;
|
||||
.time {
|
||||
flex: 1;
|
||||
color: #333;
|
||||
@@ -1018,24 +1082,128 @@ export default {
|
||||
color:#A6AAB3;
|
||||
font-size:28rpx;
|
||||
}
|
||||
.experience-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
|
||||
.experience-item {
|
||||
width: 335rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 20rpx;
|
||||
box-shadow: 0 2rpx 10rpx rgba(0,0,0,0.05);
|
||||
|
||||
.img-box {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 335rpx;
|
||||
|
||||
.cover-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.location-tag {
|
||||
position: absolute;
|
||||
bottom: 10rpx;
|
||||
left: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// background: rgba(0,0,0,0.5);
|
||||
// padding: 4rpx 10rpx;
|
||||
// border-radius: 20rpx;
|
||||
|
||||
.city-name {
|
||||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info-box {
|
||||
padding: 16rpx;
|
||||
|
||||
.name {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 8rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.intro {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
margin-bottom: 16rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bottom-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.time {
|
||||
font-size: 20rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.btn-check {
|
||||
background: #C52733;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.top-tab {
|
||||
padding-bottom: 30rpx;
|
||||
padding-top: 30rpx;
|
||||
background: #fff;
|
||||
|
||||
.tab-scroll {
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
|
||||
.tab-list {
|
||||
display: inline-flex;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.tab {
|
||||
display: inline-block;
|
||||
width: fit-content;
|
||||
margin-right: 20rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
height: 52rpx;
|
||||
padding: 0 30rpx;
|
||||
border-radius: 26rpx 0 0 26rpx;
|
||||
border-radius: 26rpx;
|
||||
font-size: 32rpx;
|
||||
line-height: 52rpx;
|
||||
font-weight: bold;
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
background: linear-gradient(90deg, #C52733 0%, rgba(211,92,101,0.91) 54%, rgba(255,255,255,0.62) 100%);
|
||||
}
|
||||
}
|
||||
|
||||
&.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user