Commit 1eda0ae7 by 李伟康

feat(boutique): 新增商户套餐推荐配置列表查询功能

新增 `getBoutiquePackageList` 方法用于查询商户套餐推荐配置列表,支持通过商户 ID 获取套餐信息,并对返回数据进行格式化处理,包括价格千分位分隔、换行符统一为 `<br>` 标签等。

fix(swiper): 优化轮播组件兼容性与自定义能力

1. 支持双图展示模式(moduleList.length == 2)时的轮播逻辑处理。
2. 增加 noDataObject 属性,支持自定义空状态图标和文案。
3. 添加 custom 插槽支持 swiper 内容自定义。
4. 增加 swiperType 属性用于控制不同展示样式。
5. 修复单张图片时不执行轮播动画的问题。
6. 优化 autoplay 判断逻辑,防止未启用自动播放时仍执行动画。
7. 修复 moduleList 为空时未重置 imagelist 和 datalist 的问题。

feat(home-frame): 支持首页框架中自定义轮播内容

在 HomeFrame 组件中增加 swiperCustom 属性,允许通过插槽传入自定义轮播组件。同时调整埋点逻辑,在 sceneType 不为 0 时不触发产品介绍点击事件。

chore(api): 更新本地开发环境 IP 地址

将 http.js 中的本地开发服务器地址从 `http://192.168.1.169:8292` 更改为 `http://192.168.1.67:8392`。

feat(boutique): 实现套餐详情弹窗组件及展示逻辑

1. 新增 PackageDetailPopup 弹窗组件,用于展示套餐详情内容。
2. 在 boutique 页面中集成套餐详情弹窗,展示富文本格式的套餐内容和介绍。
3. 新增套餐列表获取方法 `getBoutiquePackageList`,并替换原有 moduleList 使用 packageList。
4. 调整轮播组件使用方式,使用自定义插槽实现套餐信息展示。
5. 引入套餐默认图片资源 package-1.webp 和 package-2.webp。

feat(invitation): 增加流量有效性字段展示

在邀请记录列表中新增“流量有效性”字段,并根据值显示“有效客户”或“无效客户”,默认显示“-”。

style(component): 优化样式命名与结构

统一组件中的 class 命名规范,调整部分样式缩进,优化 SwiperComponent 中 type-2 类型的样式布局,提升视觉效果。
1 parent 6e85274c
...@@ -345,5 +345,15 @@ module.exports = { ...@@ -345,5 +345,15 @@ module.exports = {
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
},
/**
* 查询商户套餐推荐配置列表
*/
getBoutiquePackageList(data){
return http.post({
method: 'dj.api.smartcarlife.receptionMaterialRecommendPackageConfig.getByMerchantId',
projectName: 'boutique',
...data
})
} }
} }
...@@ -11,7 +11,7 @@ const HOST = { ...@@ -11,7 +11,7 @@ const HOST = {
scrm: domain, scrm: domain,
dj: djDomain, dj: djDomain,
merchant: merchantDomain, merchant: merchantDomain,
ip: "http://192.168.1.169:8292", ip: "http://192.168.1.67:8392",
}; };
class Request { class Request {
get (params, returnAll = false, hostType) { get (params, returnAll = false, hostType) {
......
No preview for this file type
No preview for this file type
...@@ -31,13 +31,19 @@ ...@@ -31,13 +31,19 @@
<view class="module-box box-class"> <view class="module-box box-class">
<view class="common-title">产品介绍</view> <view class="common-title">产品介绍</view>
<view class="content-box"> <view class="content-box">
<swiper-component <template v-if="swiperCustom">
:moduleList="moduleList" <slot name="swiperCustom" />
@click="swiperClick" </template>
:stopAutoPlay="previewOff" <template v-else>
:imgKey="bannerKey" <swiper-component
:loadComplete="loadComplete" :moduleList="moduleList"
></swiper-component> @click="swiperClick"
:stopAutoPlay="previewOff"
:imgKey="bannerKey"
:loadComplete="loadComplete"
>
</swiper-component>
</template>
</view> </view>
</view> </view>
<view class="tool-box box-class"> <view class="tool-box box-class">
...@@ -209,6 +215,7 @@ export default { ...@@ -209,6 +215,7 @@ export default {
}, },
bannerKey: String, bannerKey: String,
loadComplete: Boolean, loadComplete: Boolean,
swiperCustom: Boolean,
}, },
data () { data () {
return { return {
...@@ -380,9 +387,9 @@ export default { ...@@ -380,9 +387,9 @@ export default {
} }
}, },
swiperClick (e) { swiperClick (e) {
uni.$track.add({ if (this.sceneType == 0) uni.$track.add({
eventCode: 'app_product_Introduction' eventCode: 'app_product_Introduction'
}) }) //轻改场景不埋点
this.previewOff = true this.previewOff = true
this.$emit('swiperClick', e) this.$emit('swiperClick', e)
}, },
......
<template> <template>
<view class="swiper-box"> <view :class="['swiper-box',{'type-2':swiperType == 2}]">
<template v-if="loadComplete"> <template v-if="loadComplete">
<template v-if="moduleList.length"> <template v-if="moduleList.length">
<movable-area <movable-area
class="swiper-carousel" class="swiper-carousel"
...@@ -15,19 +14,28 @@ ...@@ -15,19 +14,28 @@
@click.stop="changeBlock(item)" @click.stop="changeBlock(item)"
direction="horizontal" direction="horizontal"
@change="change" @change="change"
:disabled="item.class != 'block-center'" :disabled="item.class != 'block-center' || moduleList.length == 1"
:x="item.class != 'block-center' ? 0 : viewX" :x="item.class != 'block-center' ? 0 : viewX"
:data-index="item.isIndex" :data-index="item.isIndex"
v-if="item.imgUrl"
> >
<image <template v-if="custom">
class="image-block" <slot
:src="item.imgUrl" :content="item"
@load="item.hide = true" name="swiper"
/> ></slot>
<view </template>
class="bg" <template v-else>
v-if="item.hide" <image
></view> class="image-block"
:src="item.imgUrl"
@load="item.hide = true"
/>
<view
class="bg"
v-if="item.hide"
></view>
</template>
<!-- <view :class="['error-block',{hide:item.hide}]"> <!-- <view :class="['error-block',{hide:item.hide}]">
<uni-icons <uni-icons
:type="icon" :type="icon"
...@@ -53,7 +61,14 @@ ...@@ -53,7 +61,14 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
该场景尚未配置素材,请联系总部人员 <template v-if="noDataObject.icon">
<image
:src="noDataObject.icon"
class="icon"
:style="noDataObject.style"
/>
</template>
{{noDataObject.text || '该场景尚未配置素材,请联系总部人员'}}
</view> </view>
</template> </template>
</template> </template>
...@@ -75,7 +90,6 @@ ...@@ -75,7 +90,6 @@
</template> </template>
<script> <script>
import utils from "@/utils/utils.js"; import utils from "@/utils/utils.js";
export default { export default {
name: 'SwiperComponent', name: 'SwiperComponent',
props: { props: {
...@@ -107,11 +121,21 @@ export default { ...@@ -107,11 +121,21 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
loadComplete: Boolean loadComplete: Boolean,
noDataObject: {
type: Object,
default: () => ({})
},
custom: Boolean,
swiperType: [Number, String]
}, },
watch: { watch: {
moduleList: { moduleList: {
handler (val) { handler (val) {
if (!val.length) {
this.datalist = []
this.imagelist = []
}
if (val.length && !this.imagelist.length) this.getDatalist() if (val.length && !this.imagelist.length) this.getDatalist()
}, },
deep: true deep: true
...@@ -125,7 +149,7 @@ export default { ...@@ -125,7 +149,7 @@ export default {
}, },
computed: { computed: {
moduleTitle () { moduleTitle () {
return this.moduleList[this.currentIndex]?.detailTitle return this.moduleList[this.currentIndex]?.detailTitle || ''
} }
}, },
created () { created () {
...@@ -159,6 +183,7 @@ export default { ...@@ -159,6 +183,7 @@ export default {
methods: { methods: {
getDatalist () { getDatalist () {
if (this.moduleList) { if (this.moduleList) {
this.currentIndex = 0
this.datalist = JSON.parse(JSON.stringify(this.moduleList)) this.datalist = JSON.parse(JSON.stringify(this.moduleList))
let num = 3 let num = 3
let diff = num - this.moduleList.length let diff = num - this.moduleList.length
...@@ -173,18 +198,20 @@ export default { ...@@ -173,18 +198,20 @@ export default {
} }
}, },
getImagelist () { getImagelist () {
let { datalist, autoplay } = this let { datalist, autoplay, style_object } = this
this.imagelist = JSON.parse(JSON.stringify(this.style_object)) this.imagelist = JSON.parse(JSON.stringify(style_object))
this.imagelist.forEach((item, index) => { this.imagelist.forEach((item, index) => {
const dataIndex = index - 1 < 0 ? datalist.length - 1 : index - 1 const dataIndex = index - 1 < 0 ? datalist.length - 1 : index - 1
item.isIndex = dataIndex item.isIndex = dataIndex
item.isToor = index item.isToor = index
item.imgUrl = datalist[dataIndex]?.[this.imgKey] || '' item.imgUrl = datalist[dataIndex]?.[this.imgKey] || ''
item.originalData = datalist[dataIndex]
item.x = 0 item.x = 0
}) })
if (autoplay) this.autoPlayFunction() if (autoplay) this.autoPlayFunction()
}, },
autoPlayFunction () { autoPlayFunction () {
if (!this.autoplay) return
if (this.stopAutoPlay || !this.playStatus) { if (this.stopAutoPlay || !this.playStatus) {
if (this.autoPlayTimer) { if (this.autoPlayTimer) {
clearTimeout(this.autoPlayTimer); clearTimeout(this.autoPlayTimer);
...@@ -200,42 +227,56 @@ export default { ...@@ -200,42 +227,56 @@ export default {
this.autoPlayTimer = null; this.autoPlayTimer = null;
return; return;
} }
// 执行轮播动画并递归调用自身 // 执行轮播动画并递归调用自身
this.updateCarouselPositions(); this.updateCarouselPositions();
this.autoPlayFunction(); this.autoPlayFunction();
}, this.interval); }, this.interval);
}, },
updateCarouselPositions (direction = 'left') { updateCarouselPositions (direction = 'left') {
let { imagelist, datalist } = this, let { imagelist, datalist, moduleList } = this,
len = datalist.length - 1, len = datalist.length - 1,
list = JSON.parse(JSON.stringify(this.style_object)) list = JSON.parse(JSON.stringify(this.style_object))
this.imagelist.forEach(item => { if (moduleList.length == 2) {
let toor = direction == 'left' ? this.imagelist.forEach((item, index) => {
(item.isToor - 1) < 0 ? imagelist.length - 1 : item.isToor - 1 if (index != 0) {
: (item.isToor + 1) > imagelist.length - 1 ? 0 : item.isToor + 1 let toor = item.isToor == 1 ? 2 : 1
item.isToor = toor item.isToor = toor
item.imgUrl = '' item.imgUrl = ''
item.class = list[toor].class item.class = list[toor].class
item.x = 0 item.x = 0
let isIndex = item.isIndex let isIndex = item.isIndex
item.isIndex = isIndex
if (direction == 'left' && item.class == 'block-right') { item.imgUrl = datalist[isIndex][this.imgKey] || ''
if (isIndex == len) isIndex = 2 item.index = list[toor].index
else if (isIndex == len - 1) isIndex = 1 }
else isIndex += 3 })
if (isIndex > len) isIndex = 0 } else {
} this.imagelist.forEach(item => {
if (direction == 'right' && item.class == 'block-left') { let toor = direction == 'left' ?
if (isIndex == 1) isIndex = len - 1 (item.isToor - 1) < 0 ? imagelist.length - 1 : item.isToor - 1
else if (isIndex == 0) isIndex = len - 2 : (item.isToor + 1) > imagelist.length - 1 ? 0 : item.isToor + 1
else isIndex -= 3 item.isToor = toor
if (isIndex < 0) isIndex = len item.imgUrl = ''
} item.class = list[toor].class
item.isIndex = isIndex item.x = 0
item.imgUrl = datalist[isIndex][this.imgKey] || '' let isIndex = item.isIndex
item.index = list[toor].index if (direction == 'left' && item.class == 'block-right') {
}) if (isIndex == len) isIndex = 2
else if (isIndex == len - 1) isIndex = 1
else isIndex += 3
if (isIndex > len) isIndex = 0
}
if (direction == 'right' && item.class == 'block-left') {
if (isIndex == 1) isIndex = len - 1
else if (isIndex == 0) isIndex = len - 2
else isIndex -= 3
if (isIndex < 0) isIndex = len
}
item.isIndex = isIndex
item.imgUrl = datalist[isIndex][this.imgKey] || ''
item.index = list[toor].index
})
}
let currentIndex = this.imagelist.findIndex(item => item.index == 1) let currentIndex = this.imagelist.findIndex(item => item.index == 1)
this.currentIndex = this.imagelist[currentIndex].isIndex this.currentIndex = this.imagelist[currentIndex].isIndex
}, },
...@@ -255,10 +296,12 @@ export default { ...@@ -255,10 +296,12 @@ export default {
} }
}, },
ends (e) { ends (e) {
let { moduleList } = this
if (moduleList.length == 1) return
let { blockX, ismove } = this let { blockX, ismove } = this
let pageX = e.changedTouches[0].pageX let pageX = e.changedTouches[0].pageX
let nums = ismove - pageX let nums = ismove - pageX
if(nums == 0) return if (nums == 0) return
if (!(nums > 50 || blockX < -30) || !(nums < -50 || blockX > 30)) { if (!(nums > 50 || blockX < -30) || !(nums < -50 || blockX > 30)) {
this.viewX = -10 this.viewX = -10
setTimeout(() => { setTimeout(() => {
...@@ -267,8 +310,6 @@ export default { ...@@ -267,8 +310,6 @@ export default {
} }
if (nums > 50 || blockX < -30) this.updateCarouselPositions() if (nums > 50 || blockX < -30) this.updateCarouselPositions()
if (nums < -50 || blockX > 30) this.updateCarouselPositions('right') if (nums < -50 || blockX > 30) this.updateCarouselPositions('right')
this.endTimer = setTimeout(() => { this.endTimer = setTimeout(() => {
if (!this.playStatus) { if (!this.playStatus) {
this.playStatus = true this.playStatus = true
...@@ -290,7 +331,7 @@ export default { ...@@ -290,7 +331,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
justify-content: center; justify-content: center;
.gif{ .gif {
width: toRpx(64); width: toRpx(64);
height: toRpx(64); height: toRpx(64);
} }
...@@ -351,7 +392,6 @@ export default { ...@@ -351,7 +392,6 @@ export default {
justify-content: center; justify-content: center;
z-index: 1; z-index: 1;
} }
.hide { .hide {
opacity: 0; opacity: 0;
} }
...@@ -361,7 +401,6 @@ export default { ...@@ -361,7 +401,6 @@ export default {
top: toRpx(68); top: toRpx(68);
height: toRpx(306); height: toRpx(306);
width: toRpx(468); width: toRpx(468);
transition: all 0.1s; transition: all 0.1s;
} }
.block-left { .block-left {
...@@ -410,5 +449,36 @@ export default { ...@@ -410,5 +449,36 @@ export default {
justify-content: center; justify-content: center;
color: #999; color: #999;
font-size: toRpx(20); font-size: toRpx(20);
flex-direction: column;
.icon {
width: toRpx(344);
height: toRpx(236);
}
}
.type-2 {
.swiper-carousel {
height: toRpx(460);
.block-left,
.block-right {
top: toRpx(68);
height: toRpx(306);
width: toRpx(604);
transition: all 0.1s;
}
.block-left {
left: toRpx(88);
z-index: 10;
}
.block-right {
left: toRpx(508);
z-index: 15;
}
.block-center {
left: toRpx(180);
top: toRpx(10);
width: toRpx(848);
height: toRpx(428);
}
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
<template>
<uni-popup
ref="packageDetailPopupRef"
type="center"
:is-mask-click="false"
animation
class="center-popup"
>
<view class="box">
<view class="title flex">
<view class="text">套餐详情</view>
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="20"
color="#1A1A1A"
></uni-icons>
</view>
</view>
<view class="content">
<slot />
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'PackageDetailPopup',
props: {
},
data () {
return {
}
},
mounted () {
},
methods: {
open () {
this.$refs.packageDetailPopupRef.open();
},
close () {
this.$refs.packageDetailPopupRef.close();
this.$emit('cancel')
},
}
}
</script>
<style scoped lang='scss'>
.center-popup {
z-index: 99 !important;
}
.box {
width: toRpx(1400);
max-height: 80vh;
min-height: 32vh;
background: #ffffff;
border-radius: toRpx(48);
overflow: auto;
.title {
width: 100%;
height: toRpx(160);
background-color: #fff;
background-image: url('@/assets/images/boutique/customer-type-bg.webp');
background-repeat: no-repeat;
background-size: 100% 100%;
position: sticky;
top: 0;
z-index: 2;
.text {
font-weight: 500;
font-size: toRpx(40);
color: #1a1a1a;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.icon-close-box {
height: 100%;
margin-left: auto;
padding: 0 toRpx(48);
font-weight: 700;
}
}
.content {
width: 100%;
// height: toRpx(768);
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -8,13 +8,56 @@ ...@@ -8,13 +8,56 @@
@backHome="backHome" @backHome="backHome"
finishDoneText="下一步" finishDoneText="下一步"
finishContene="当前操作是为强制退出接待,若完成客户接待请点击「下一步」。" finishContene="当前操作是为强制退出接待,若完成客户接待请点击「下一步」。"
@previewCancel="cancel"
class="container" class="container"
:moduleList="moduleList" :moduleList="packageList"
@swiperClick="toDetail" @swiperClick="toDetail"
bannerKey="bannerImg"
:loadComplete="loadComplete" :loadComplete="loadComplete"
@changeTab="changeTab"
swiperCustom
> >
<template slot="swiperCustom">
<swiper-component
:moduleList="packageList"
@click="swiperClick"
imgKey="bannerImg"
:loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"
:autoplay="false"
custom
:swiperType="2"
>
<template v-slot:swiper="{content}">
<view :class="['swiper-custom-content',{'swiper-zoom':content.class != 'block-center'}]">
<image
class="bg"
:src="packageList[content.isIndex].bannerImg"
/>
<view class="name">{{ packageList[content.isIndex].name }}</view>
<view class="swiper-content-box">
<view class="price price-1">
市场价
<view class="num flex">
<view class="unit">¥</view>
{{packageList[content.isIndex].marketPrice}}
</view>
</view>
<view class="price price-2 flex">{{packageList[content.isIndex].discountPrice || ''}}</view>
<view class="price price-3">
套餐价
<view class="num flex">
<view class="unit">¥</view>
{{packageList[content.isIndex].packagePrice || ''}}
</view>
</view>
<view class="briefIntroduction">
{{packageList[content.isIndex].briefIntroduction || ''}}
</view>
</view>
<view class="swiper-btn">查看详情</view>
</view>
</template>
</swiper-component>
</template>
<template slot="detail"> <template slot="detail">
<detail <detail
:id.sync="id" :id.sync="id"
...@@ -37,6 +80,25 @@ ...@@ -37,6 +80,25 @@
@choose="chooseCustomerType" @choose="chooseCustomerType"
title="请选择当前洽谈的客户类型" title="请选择当前洽谈的客户类型"
/> />
<package-detail-popup
ref="packageRef"
@close="close"
>
<view class="package-detail-box">
<view class="package-box">
<view class="package-name">套餐内容</view>
<view class="package-content">
<rich-text :nodes="chooseItem.content"></rich-text>
</view>
</view>
<view class="package-box package-detail">
<view class="package-name">套餐介绍</view>
<view class="package-content">
<rich-text :nodes="chooseItem.scriptIntroduction"></rich-text>
</view>
</view>
</view>
</package-detail-popup>
</template> </template>
</home-frame> </home-frame>
</template> </template>
...@@ -45,7 +107,13 @@ ...@@ -45,7 +107,13 @@
import HomeFrame from '@/components/HomeFrame/index.vue' import HomeFrame from '@/components/HomeFrame/index.vue'
import detail from './detail.vue' import detail from './detail.vue'
import CenterPopup from '@/components/CenterPopup.vue' import CenterPopup from '@/components/CenterPopup.vue'
import PackageDetailPopup from './components/PackageDetailPopup.vue'
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import SwiperComponent from '@/components/SwiperComponent.vue'
const packageType = {
1: require('@/assets/images/boutique/package-1.webp'),
2: require('@/assets/images/boutique/package-2.webp')
}
const defaultConfig = [ const defaultConfig = [
{ {
name: '套餐火爆热卖', name: '套餐火爆热卖',
...@@ -70,10 +138,15 @@ const defaultConfig = [ ...@@ -70,10 +138,15 @@ const defaultConfig = [
} }
] ]
export default { export default {
components: { HomeFrame, detail, CenterPopup }, components: { HomeFrame, detail, CenterPopup, PackageDetailPopup , SwiperComponent },
name: 'boutique', name: 'boutique',
data () { data () {
return { return {
swiperNoDataObject: Object.freeze({
icon: require('@/assets/images/common/developing.webp'),
text: '敬请期待'
}),
packageList: [],
moduleList: [], moduleList: [],
toolList: [], toolList: [],
chooseItem: {}, chooseItem: {},
...@@ -132,6 +205,7 @@ export default { ...@@ -132,6 +205,7 @@ export default {
return; return;
} }
if (this.requested && !this.id) this.$refs.home.updateApp() if (this.requested && !this.id) this.$refs.home.updateApp()
this.getBoutiquePackageList() //套餐列表
}, },
computed: { computed: {
}, },
...@@ -227,15 +301,14 @@ export default { ...@@ -227,15 +301,14 @@ export default {
this.moduleList = moduleList this.moduleList = moduleList
this.toolList = toolList this.toolList = toolList
this.defaultCarId = defaultCarId this.defaultCarId = defaultCarId
this.loadComplete = true
}, },
toDetail (index) { toDetail (index) {
let item = this.moduleList[index] let item = this.packageList[index]
this.chooseItem = item this.chooseItem = item
this.$refs.home.previewRef.open(); this.$refs.packageRef.open()
}, },
cancel () { close () {
this.$refs.home.previewRef.close(); this.chooseItem = {}
}, },
preview () { preview () {
let { id, tabId } = this.chooseItem; let { id, tabId } = this.chooseItem;
...@@ -384,6 +457,28 @@ export default { ...@@ -384,6 +457,28 @@ export default {
if (index != 0 && item.seriesId == carBannerList[index - 1].seriesId) result = false if (index != 0 && item.seriesId == carBannerList[index - 1].seriesId) result = false
return result return result
}, },
changeTab (index) {
if (index == 0) this.getBoutiquePackageList()
},
async getBoutiquePackageList () {
this.loadComplete = false
this.packageList = []
const { shopMerchantId: merchantId } = uni.$storage.get("userInfo"),
data = await uni.$api.boutiqueApi.getBoutiquePackageList({
merchantId
})
let packageList = []
if (data) data.map(e => {
e.scriptIntroduction = e.scriptIntroduction.replace(/<\/?br\s*\/?>|\\n|\n/g, '<br>')
e.content = e.content.replace(/<\/?br\s*\/?>|\\n|\n/g, '<br>')
e.bannerImg = packageType[e.type || 2]
if (e.marketPrice) e.marketPrice = Number(e.marketPrice).toLocaleString()
if (e.packagePrice) e.packagePrice = Number(e.packagePrice).toLocaleString()
packageList.push(e)
})
this.packageList = packageList
this.loadComplete = true
}
} }
} }
</script> </script>
...@@ -393,313 +488,119 @@ export default { ...@@ -393,313 +488,119 @@ export default {
&::after { &::after {
background-image: url('@/assets/images/common/home-bg-1.webp'); background-image: url('@/assets/images/common/home-bg-1.webp');
} }
} .swiper-custom-content {
.module-box { width: 100%;
position: relative; height: 100%;
width: 100%;
height: 100%;
.module-flex {
position: absolute;
top: 0;
right: 0;
padding: toRpx(46) toRpx(80) 0 0;
gap: 0 toRpx(32);
z-index: 2;
.item {
position: relative;
height: toRpx(56);
background: #ffffff66;
border: toRpx(2) solid #ffffff;
border-radius: toRpx(8);
backdrop-filter: blur(toRpx(4));
padding: 0 toRpx(20) 0 toRpx(8);
font-weight: 500;
font-size: toRpx(32);
color: #333333;
line-height: toRpx(40);
.icon {
margin-right: toRpx(4);
flex-shrink: 0;
width: toRpx(56);
height: toRpx(56);
}
.count {
width: fit-content;
position: absolute;
top: toMinusRpx(12);
right: 0;
transform: translateX(50%);
height: toRpx(24);
line-height: toRpx(24);
padding: 0 toRpx(6);
border-radius: toRpx(708);
background: #f24724;
color: #ffffff;
font-size: toRpx(20);
}
}
}
.banner-tab-scroll {
width: toRpx(1080);
position: relative; position: relative;
.banner-tab-box-content { .bg {
width: 100%;
.block {
width: toRpx(30);
height: 100%;
flex-shrink: 0;
}
.banner-tab-box {
padding: toRpx(32) 0 toRpx(20);
height: toRpx(126);
.banner-item {
position: relative;
flex-shrink: 0;
margin-right: toRpx(40);
.banner-title {
color: #333333b3;
font-size: toRpx(24);
font-weight: 400;
height: toRpx(30);
margin-bottom: toRpx(8);
opacity: 0;
width: 0;
}
}
.has-title {
padding-left: toRpx(40);
.banner-title {
opacity: 1;
width: fit-content;
}
&::after {
position: absolute;
width: toRpx(2);
height: toRpx(32);
background: #cccccc;
left: 0;
top: toRpx(42);
content: '';
}
}
.is-first {
padding-left: 0;
&::after {
display: none;
}
}
.banner-tab {
font-weight: 500;
font-size: toRpx(36);
color: #333333b3;
line-height: toRpx(44);
box-sizing: border-box;
position: relative;
text-align: left;
width: fit-content;
}
.active {
font-weight: 700;
color: #333333;
&::after {
content: '';
position: absolute;
left: 50%;
width: toRpx(8);
height: toRpx(8);
background: #333333;
border-radius: 100%;
transform: translateX(-50%);
animation: show-dot 0.15s forwards;
}
@keyframes show-dot {
0% {
bottom: toRpx(16);
}
100% {
bottom: toMinusRpx(16);
}
}
}
}
}
.banner-tab-mask {
width: toRpx(140);
height: calc(100% - #{toRpx(20)});
opacity: 1;
background: linear-gradient(270deg, #e9edfa 0%, #e9edfa00 100%);
position: absolute; position: absolute;
width: 100%;
height: 100%;
top: 0; top: 0;
right: 0; left: 0;
z-index: -1;
} }
} .name {
&::before, padding-top: 35rpx;
&::after { text-indent: 134rpx;
content: ''; color: #333333;
position: absolute; font-size: 32rpx;
top: toRpx(282); font-weight: 500;
width: toRpx(380); }
height: toRpx(640); .swiper-content-box {
background-size: 100% 100%; margin: 24rpx 32rpx 0;
z-index: 2; height: 264rpx;
pointer-events: none;
}
&::before {
left: 0;
background-image: url('@/assets/images/boutique/index/left.webp');
}
&::after {
right: toMinusRpx(4);
background-image: url('@/assets/images/boutique/index/right.webp');
}
.swiper {
position: absolute;
left: 0;
top: toRpx(230);
width: 100%;
height: toRpx(698);
z-index: 1;
&-item {
position: relative; position: relative;
padding-top: toRpx(58); .price,
.config-box { .briefIntroduction {
animation: show-config-box 1.5s forwards;
width: 100%;
height: 100%;
position: absolute; position: absolute;
left: 0;
top: 0;
}
@keyframes show-config-box {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
} }
.config-item { .price-1 {
position: absolute; color: #999999;
width: auto; font-size: 20rpx;
height: auto; left: 32rpx;
.config-dots { top: 63rpx;
width: toRpx(80); .num {
height: toRpx(80);
background: #ffffff1a;
box-shadow: inset 0 0 toRpx(8) 0 #ffffffe0;
border-radius: 100%;
position: relative;
&::after {
position: absolute;
content: '';
width: toRpx(40);
height: toRpx(40);
background: #ffffff;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 100%;
}
animation: config-dots-breathe 3s infinite;
}
.config-name {
position: relative;
height: toRpx(56);
background: #ffffff66;
border: toRpx(2) solid #ffffff;
border-radius: toRpx(8);
backdrop-filter: blur(toRpx(4));
padding: 0 toRpx(20);
font-weight: 500;
font-size: toRpx(32);
color: #333333; color: #333333;
line-height: toRpx(40); font-size: 32rpx;
.sprite-icon { font-weight: 700;
margin-right: toRpx(8); .unit {
flex-shrink: 0; margin-right: 4rpx;
}
}
@keyframes config-dots-breathe {
0%,
100% {
transform: scale(0.9);
opacity: 0.85;
}
50% {
transform: scale(1.2);
opacity: 1;
} }
} }
} }
.config-0 { .price-2 {
top: toRpx(108); left: 258rpx;
left: toRpx(962); top: 96rpx;
.config-name { width: 188rpx;
left: toRpx(20); color: #ff4747;
top: toMinusRpx(188); font-size: 36rpx;
} font-weight: 700;
justify-content: center;
} }
.config-1 { .price-3 {
top: toRpx(240); top: 54rpx;
left: toRpx(262); left: 456rpx;
.config-name { color: #999999;
left: toMinusRpx(206); font-size: 28rpx;
top: toMinusRpx(186); .num {
} color: #ff4747;
} font-size: 44rpx;
.config-2 { font-weight: 700;
top: toRpx(352); .unit {
left: toRpx(788); margin-right: 8rpx;
.config-name { }
left: toRpx(22);
top: toRpx(158);
} }
} }
.car-item { .briefIntroduction {
width: toRpx(639); left: 0;
height: toRpx(320); top: 208rpx;
transition: all 0.5s; color: #666666;
transform-origin: left center; font-size: 24rpx;
}
}
.current-item {
.car-item {
width: 100%; width: 100%;
height: 100%; text-align: center;
} }
} }
.current-item-left { .swiper-btn {
justify-content: flex-end; color: #4673ff;
} font-size: 26rpx;
.current-item-right { text-align: center;
justify-content: flex-start; margin-top: 8rpx;
} }
} }
.center-bg { .swiper-zoom {
position: absolute; zoom: 0.71;
left: 0;
top: 0;
width: toRpx(2036);
height: toRpx(1026);
background-image: url('@/assets/images/boutique/index/module-bg.webp');
background-size: 100% 100%;
pointer-events: none;
} }
.tips { .package-detail-box {
position: absolute; padding-bottom: 100rpx;
left: toRpx(32); margin: 0 64rpx;
bottom: toRpx(128); .package-box {
font-size: toRpx(24); border-radius: 40rpx;
color: #999999; background: #ffffff;
line-height: toRpx(36); box-shadow: 0 12rpx 24rpx 0 #2c66f726;
z-index: 2; margin-bottom: 32rpx;
padding-left: toRpx(16); box-sizing: border-box;
&::after { padding: 32rpx;
content: '* '; .package-name {
position: absolute; color: #333333;
top: toRpx(4); font-size: 40rpx;
left: 0; font-weight: 500;
line-height: 56rpx;
margin-bottom: 16rpx;
}
.package-content {
line-height: 44rpx;
color: #333333;
font-size: 28rpx;
}
}
.package-detail {
border: 1.6rpx solid #4673ff80;
background: #4673ff1a;
box-shadow: 0 12rpx 24rpx 0 #2c66f726;
.package-name {
color: #4673ff;
}
} }
} }
} }
......
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
> >
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view class="value">{{ <view class="value">{{
k.formatter ? k.formatter(item[k.key]):
k.format k.format
? formatTime(item[k.key], k.key) ? formatTime(item[k.key], k.key)
: item[k.key] || "-" : item[k.key] || "-"
...@@ -140,6 +141,14 @@ export default { ...@@ -140,6 +141,14 @@ export default {
{ label: '礼券名称', key: 'couponName' }, { label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate', format: true }, { label: '领券时间', key: 'receiveCouponDate', format: true },
{ label: '销售顾问', key: 'employeeName' }, { label: '销售顾问', key: 'employeeName' },
{
label: '流量有效性', key: 'trafficEffectiveness', formatter: (val) => {
return {
1: '有效客户',
2: '无效客户'
}[val] || '-'
}
},
], ],
chooseItem: {} chooseItem: {}
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!