Commit 32294fa2 by cen

feat: 新增详情页

1 parent a6770ee2
......@@ -158,6 +158,9 @@
.mt-20 {
margin-top: toRpx(20);
}
.mb-6 {
margin-bottom: toRpx(6);
}
.mb-12 {
margin-bottom: toRpx(12);
}
......
......@@ -143,6 +143,8 @@
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4083546462063086);}
.icon-icon-copy { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6986359761295823) calc(100vmin * (1173 / 768) * -0.020034100596760442);}
.icon-icon-gold { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4454390451832907);}
.icon-icon-instructions { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6986359761295823) calc(100vmin * (1173 / 768) * -0.040068201193520885);}
.icon-icon-navigation { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
......@@ -196,7 +198,7 @@
.icon-medal { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.16837169650468883) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-medalNew { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4454390451832907);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-my-level { width: calc(100vmin * (1173 / 768) * 0.058823529411764705); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
background-position: calc(100vmin * (1173 / 768) * -0.49317988064791135) calc(100vmin * (1173 / 768) * -0.4317988064791134);}
.icon-my-store { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
......@@ -402,6 +404,4 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.5221653878942881) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6986359761295823) calc(100vmin * (1173 / 768) * -0.5609548167092924);}
.icon-icon-gold { width: calc(100vmin * (1173 / 768) * 0.030690537084398978); height: calc(100vmin * (1173 / 768) * 0.030690537084398978);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
\ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.6986359761295823) calc(100vmin * (1173 / 768) * -0.5609548167092924);}
\ No newline at end of file

2.84 MB | W: | H:

2.84 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -45,7 +45,7 @@
<view class="card-item-label">活动时间</view>
<view class="card-item-value">2025.09.01 00:00 - 2025.09.30 23:59</view>
</view>
<view class="card-item-text">
<view class="card-item-text" @click.stop="rulesShow()">
<view class="card-item-label">评选规则</view>
<view class="card-item-value blueValue">查看</view>
</view>
......@@ -75,6 +75,9 @@ export default {
methods: {
handleAvtivityItemClick() {
this.$emit('handleAvtivityItemClick')
},
rulesShow() {
this.$emit('rulesShow')
}
}
}
......
......@@ -180,6 +180,7 @@ export default {
::v-deep .customPopup.center.medium .uni-popup__wrapper {
width: 60vw;
max-height: 80vh;
min-height: 68vh;
border-radius: toRpx(32);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
overflow: hidden;
......
......@@ -32,7 +32,7 @@
<scroll-view scroll-y ref="scrollViewRef" :scroll-top="scrollTop" @scrolltolower="pageonReachBottom" class="activity-list-box">
<template v-if="cardList.length">
<view class="card-list">
<Card v-for="item in cardList" :key="item" :item="item" :tabIndex="firstIndex" @handleAvtivityItemClick="handleAvtivityItemClick" />
<Card v-for="item in cardList" :key="item" :item="item" :tabIndex="firstIndex" @handleAvtivityItemClick="handleAvtivityItemClick" @rulesShow="rulesShow" />
</view>
</template>
<template v-else>
......@@ -81,24 +81,42 @@
</view>
</scroll-view>
<scroll-view class="activity-detailslist-box" scroll-y="true">
<view v-for="(i, index) in detailsList" :key="index" class="tab-detailslist flex" :class="{ active: activeIndex === index }" @click="changeDetailsTab(index)">
<view class="sprite-icon icon-medalNew"></view>
<view class="flex-1">
<view class="flex align-center justify-between">
<text>约为</text>
<text>¥1000奖金</text>
</view>
<view class="flex align-center justify-between">
<text>深圳低价</text>
<text>一等奖</text>
<template v-if="detailsList.length > 0">
<view v-for="(i, index) in detailsList" :key="index" class="tab-detailslist flex" :class="{ active: activeIndex === index }" @click="changeDetailsTab(index)">
<view class="sprite-icon icon-icon-gold"></view>
<view class="flex-1">
<view class="flex align-center justify-between mb-12">
<text class="name">约为</text>
<text class="priceValue">¥1000奖金</text>
</view>
<view class="flex align-center justify-between">
<text class="grayName">深圳低价</text>
<text class="grayName">一等奖</text>
</view>
</view>
</view>
</view>
</template>
<template v-else>
<view class="flex noData">
<image class="icon" src="../../../assets/images/boutique/nothing.png" />
暂无数据
</view>
</template>
</scroll-view>
</view>
</view>
</template>
</Popup>
<Popup ref="activityRulePopup" popupClass="activityRule" title="活动规则" type="center" size="medium" :isShowFooter="false" :showClose="true" @confirm="confirmAddSignAgreement" :autoClose="false">
<template #content>
<view class="activityRuleContent">
<view class="activityRuleContent-box">
<editor id="editor" class="ql-container" placeholder="开始输入..." show-img-size show-img-toolbar show-img-resize @statuschange="onStatusChange" :read-only="true" @ready="onEditorReady"></editor>
</view>
</view>
</template>
</Popup>
</view>
</template>
......@@ -131,7 +149,8 @@ export default {
isBeisen: false, // 是否是有北森权限,true 有,false无
isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务
isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行
isYb: false // 当前驻店人员所关联的门店是否是延保业务
isYb: false, // 当前驻店人员所关联的门店是否是延保业务
editorCtx: null
}
},
created() {
......@@ -204,6 +223,22 @@ export default {
},
changeDetailsTab(index) {
this.activeIndex = index
this.detailsList = []
},
rulesShow() {
this.$refs.activityRulePopup.open()
},
onEditorReady() {
uni
.createSelectorQuery()
.select('#editor')
.context(res => {
this.editorCtx = res.context
this.editorCtx.setContents({
html: '<p>🎉【7 月延保爆单攻略】3 重奖励暴击来袭!📢<br/>🌟 每日必冲・延保之星双赛道<br/>✅ 时间:每天 0:00-19:00⏰<br/>✅ 赛道 1:M8/M9 车型最高客单 TOP1→50 元红包<br/>✅ 赛道 2:M5/M7 车型最高客单 TOP1→50 元红包<br/>📢 晒单姿势:订单截图 + 车型 + 金额 ,当天最晚 19 点前晒单有效!<br/><br/>🎁 周六限定・整车延保惊喜奖<br/>✅ 开奖日:每周六 0:00-19:00🎯<br/>✅ 获奖条件:<br/>1、整车延保渗透率>70% + 当天卖>3单<br/>2、渗透率 TOP3 直接拿 80 元红包<br/>⚠️ 决胜关键:同排名时,整车订单数多的伙伴优先!周六冲 3 +单整车延保,奖金稳了~<br/><br/>🏆 本月新增・套餐突破之星<br/>✅ 奖金:周 TOP3 每人 300 元现金红包💸<br/>✅ 周期:7月分 4 个自然周(次周公布)📅<br/>✅ 冲奖秘籍:<br/>当周触客≥8 人 + 套餐渗透率>25%(达标门槛)<br/>比上周套餐提升百分点越高,排名越靠前<br/>同分情况下,套餐订单数多的伙伴优先胜出<br/>ps:4个自然周1-6/7-13/14-20/21-27号<br/><br/>🚀 终极动员<br/>本月延保3重奖励「日奖 + 周奖 +周六惊喜奖」,等你来瓜分!<br/>马上行动,下一个晒单拿奖的就是你👇<br/>✅ 奖金:周 TOP3 每人 300 元现金红包💸<br/>✅ 周期:7月分 4 个自然周(次周公布)📅<br/>✅ 冲奖秘籍:<br/>当周触客≥8 人 + 套餐渗透率>25%(达标门槛)<br/>比上周套餐提升百分点越高,排名越靠前<br/>同分情况下,套餐订单数多的伙伴优先胜出<br/>ps:4个自然周1-6/7-13/14-20/21-27号<br/><br/>🚀 终极动员<br/>本月延保3重奖励「日奖 + 周奖 +周六惊喜奖」,等你来瓜分!<br/>马上行动,下一个晒单拿奖的就是你👇</p>'
})
})
.exec()
}
}
}
......@@ -420,7 +455,8 @@ export default {
height: calc(100% - #{toRpx(100)});
.activity-list-box {
margin-top: toRpx(24);
height: calc(100% - #{toRpx(210)});
height: calc(100% - #{toRpx(120)});
// height: 100%;
}
}
.card-list {
......@@ -446,13 +482,23 @@ export default {
}
}
::v-deep .activityDetails {
.content {
height: calc(100% - #{toRpx(112)});
}
}
.activity-details-content {
padding: toRpx(64);
padding: toRpx(24) toRpx(64) toRpx(64);
box-sizing: border-box;
height: 100%;
&-box {
border-radius: toRpx(24);
background: #ffffff;
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
display: flex;
flex-direction: column;
height: 100%;
.top-box {
padding: toRpx(24) toRpx(32);
box-sizing: border-box;
......@@ -562,18 +608,70 @@ export default {
}
}
.activity-detailslist-box {
padding: 0 toRpx(32);
flex: 1;
min-height: 0;
padding: 0 toRpx(32) toRpx(24);
.tab-detailslist {
width: 100%;
height: toRpx(120);
background: linear-gradient(270deg, rgba(251, 230, 194, 0.2), rgba(251, 217, 180, 0.2) 100%);
background: linear-gradient(270deg, rgba(251, 230, 194, 0) 0%, rgba(251, 217, 180, 0.2) 100%);
margin-bottom: toRpx(16);
&:last-child {
border-bottom: none;
}
.icon-icon-gold {
margin-right: toRpx(25);
}
.name {
color: #181a1f;
font-size: toRpx(28);
}
.priceValue {
color: #3b73ff;
font-size: toRpx(28);
}
.grayName {
color: #999ea8;
font-size: toRpx(24);
}
}
.noData {
width: 100%;
flex-direction: column;
font-size: toRpx(28);
color: #999999;
.icon {
width: toRpx(344);
height: toRpx(208);
margin-bottom: toRpx(24);
}
}
}
}
}
::v-deep .activityRule {
.content {
height: calc(100% - #{toRpx(112)});
}
}
.activityRuleContent {
padding: toRpx(24) toRpx(64) toRpx(64);
box-sizing: border-box;
height: 100%;
.activityRuleContent-box {
border-radius: toRpx(16);
background: #f5f7fa;
height: 100%;
.ql-container {
width: 100%;
height: 100%;
padding: toRpx(24) toRpx(32);
box-sizing: border-box;
}
}
}
}
</style>
......@@ -299,9 +299,9 @@ export default {
// uni.$storage.set('isSaleOpen', result)
if (result) {
this.hasPerson = true
this.tabs[4].hidden = false
this.tabs[4].hidden = false
}else {
this.tabs[4].hidden = false
this.tabs[4].hidden = false
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!