From d1413066ac077a56d0138d3fa3989d2feb4277cd Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Wed, 18 Mar 2026 15:40:57 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E4=BD=93=E9=AA=8C=E5=BA=97?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/experienceProjectDetail.vue | 126 +++++++++++------- pkg_product/views/sojoumStore.vue | 11 +- 2 files changed, 80 insertions(+), 57 deletions(-) diff --git a/pkg_product/views/experienceProjectDetail.vue b/pkg_product/views/experienceProjectDetail.vue index 4dbee1f..f5970f3 100644 --- a/pkg_product/views/experienceProjectDetail.vue +++ b/pkg_product/views/experienceProjectDetail.vue @@ -25,12 +25,14 @@ {{ project.intro }} - - - 营业时间 - {{ project.serviceTime }}~{{ project.serviceEndTime }} + + + 营业时间 + + {{ project.serviceTime || '00:00' }}~{{ project.serviceEndTime || '24:00' }} + - 营业执照 + 营业执照 @@ -59,14 +61,20 @@ - - - - - + + + + + + + + 超值体验 + + + {{ project.detailText || '详情信息由商家提供' }} + + - - 备注 - - - {{ project.remark }} - - - - + 使用须知 - - - 有效期: {{ validFrom || '2026年1月1日' }} — {{ validTo || '2026年1月31日' }} - - - - {{ usageNotice || '无需预约,如遇消费高峰时段您可能需要排队' }} - - - - 平台温馨提醒:您在到店体验本商品/服务期间,请关注商家的安全提示内容,了解相关注意事项,做好安全防护措施,保护您的安全。 + + @@ -160,7 +159,8 @@ export default { experienceTitle: '', experienceSubTitle: '', detailText: '', - remark: '' + remark: '', + qualification: '' }, detailList: [], experienceMerchantId: '', @@ -227,6 +227,7 @@ export default { this.project.longitude = data.longitude || this.project.longitude this.project.phone = data.phone || this.project.phone this.project.wechat = data.wechat || this.project.wechat + this.project.qualification = data.qualification || this.project.qualification const project = data.project || {} this.project.experienceTitle = project.themeName || this.project.experienceTitle || this.project.name if (project.themeImage) { @@ -235,6 +236,7 @@ export default { this.project.detailText = project.detail || this.project.detailText this.project.remark = project.remark || this.project.remark this.usageNotice = project.useNotice || this.usageNotice + console.log('this.usageNotice', this.usageNotice) if (project.totalPrice != null) { this.totalPrice = project.totalPrice } @@ -284,6 +286,18 @@ export default { uni.makePhoneCall({ phoneNumber: this.project.phone }) + }, + handleViewLicense() { + if (this.project.qualification) { + uni.previewImage({ + urls: [this.project.qualification] + }) + } else { + uni.showToast({ + title: '暂无营业执照', + icon: 'none' + }) + } } } } @@ -424,34 +438,50 @@ export default { position: relative; } .experience-badge-wrap { - position: absolute; - top: -24rpx; - left: 0; z-index: 10; + margin-top: 40rpx; + margin-left: 20rpx; } .experience-badge { - display: inline-flex; + display: 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); + height: 44rpx; } -.experience-badge::after { - content: ''; - position: absolute; - left: 0; - bottom: -8rpx; - border-top: 8rpx solid #901b24; - border-left: 8rpx solid transparent; +.badge-diamond { + width: 44rpx; + height: 44rpx; + background: #ffffff; + border: 4rpx solid #C52733; + transform: rotate(45deg); + display: flex; + align-items: center; + justify-content: center; + z-index: 2; + box-sizing: border-box; + margin-left: -14rpx; +} +.badge-icon { + transform: rotate(-45deg); + display: flex; + align-items: center; + justify-content: center; +} +.badge-bg { + background: #C52733; + border-radius: 0 24rpx 24rpx 0; + height: 100%; + display: flex; + align-items: center; + padding: 0 20rpx 0 24rpx; + margin-left: -16rpx; } .badge-text { color: #ffffff; - font-size: 28rpx; + font-size: 24rpx; font-weight: bold; font-style: italic; - margin-left: 8rpx; + line-height: 1; } .experience-card { border-radius: 24rpx; diff --git a/pkg_product/views/sojoumStore.vue b/pkg_product/views/sojoumStore.vue index 6e2e1b0..fc148f1 100644 --- a/pkg_product/views/sojoumStore.vue +++ b/pkg_product/views/sojoumStore.vue @@ -42,14 +42,7 @@ {{ store.serviceTime }} - {{ store.serviceEndTime }} - - {{ value }} - - - - + @@ -331,7 +324,7 @@ {{ item.name }} - {{ item.intro }} + {{ item.intro }} 营业时间:{{ item.serviceTime }}~{{ item.serviceEndTime }}