Commit 32294fa2 by cen

feat: 新增详情页

1 parent a6770ee2
...@@ -158,6 +158,9 @@ ...@@ -158,6 +158,9 @@
.mt-20 { .mt-20 {
margin-top: toRpx(20); margin-top: toRpx(20);
} }
.mb-6 {
margin-bottom: toRpx(6);
}
.mb-12 { .mb-12 {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
} }
......
...@@ -143,6 +143,8 @@ ...@@ -143,6 +143,8 @@
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4083546462063086);} 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); .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);} 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); .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);} 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); .icon-icon-navigation { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -196,7 +198,7 @@ ...@@ -196,7 +198,7 @@
.icon-medal { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .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);} 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); .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); .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);} 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); .icon-my-store { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
...@@ -403,5 +405,3 @@ ...@@ -403,5 +405,3 @@
background-position: calc(100vmin * (1173 / 768) * -0.5221653878942881) calc(100vmin * (1173 / 768) * -0.45865302642796246);} 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); .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);} background-position: calc(100vmin * (1173 / 768) * -0.6986359761295823) calc(100vmin * (1173 / 768) * -0.5609548167092924);}
\ No newline at end of file \ No newline at end of file
.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 \ 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 @@ ...@@ -45,7 +45,7 @@
<view class="card-item-label">活动时间</view> <view class="card-item-label">活动时间</view>
<view class="card-item-value">2025.09.01 00:00 - 2025.09.30 23:59</view> <view class="card-item-value">2025.09.01 00:00 - 2025.09.30 23:59</view>
</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-label">评选规则</view>
<view class="card-item-value blueValue">查看</view> <view class="card-item-value blueValue">查看</view>
</view> </view>
...@@ -75,6 +75,9 @@ export default { ...@@ -75,6 +75,9 @@ export default {
methods: { methods: {
handleAvtivityItemClick() { handleAvtivityItemClick() {
this.$emit('handleAvtivityItemClick') this.$emit('handleAvtivityItemClick')
},
rulesShow() {
this.$emit('rulesShow')
} }
} }
} }
......
...@@ -180,6 +180,7 @@ export default { ...@@ -180,6 +180,7 @@ export default {
::v-deep .customPopup.center.medium .uni-popup__wrapper { ::v-deep .customPopup.center.medium .uni-popup__wrapper {
width: 60vw; width: 60vw;
max-height: 80vh; max-height: 80vh;
min-height: 68vh;
border-radius: toRpx(32); border-radius: toRpx(32);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%); background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
overflow: hidden; overflow: hidden;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<scroll-view scroll-y ref="scrollViewRef" :scroll-top="scrollTop" @scrolltolower="pageonReachBottom" class="activity-list-box"> <scroll-view scroll-y ref="scrollViewRef" :scroll-top="scrollTop" @scrolltolower="pageonReachBottom" class="activity-list-box">
<template v-if="cardList.length"> <template v-if="cardList.length">
<view class="card-list"> <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> </view>
</template> </template>
<template v-else> <template v-else>
...@@ -81,24 +81,42 @@ ...@@ -81,24 +81,42 @@
</view> </view>
</scroll-view> </scroll-view>
<scroll-view class="activity-detailslist-box" scroll-y="true"> <scroll-view class="activity-detailslist-box" scroll-y="true">
<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 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="sprite-icon icon-icon-gold"></view>
<view class="flex-1"> <view class="flex-1">
<view class="flex align-center justify-between"> <view class="flex align-center justify-between mb-12">
<text>约为</text> <text class="name">约为</text>
<text>¥1000奖金</text> <text class="priceValue">¥1000奖金</text>
</view> </view>
<view class="flex align-center justify-between"> <view class="flex align-center justify-between">
<text>深圳低价</text> <text class="grayName">深圳低价</text>
<text>一等奖</text> <text class="grayName">一等奖</text>
</view> </view>
</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> </scroll-view>
</view> </view>
</view> </view>
</template> </template>
</Popup> </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> </view>
</template> </template>
...@@ -131,7 +149,8 @@ export default { ...@@ -131,7 +149,8 @@ export default {
isBeisen: false, // 是否是有北森权限,true 有,false无 isBeisen: false, // 是否是有北森权限,true 有,false无
isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务 isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务
isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行 isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行
isYb: false // 当前驻店人员所关联的门店是否是延保业务 isYb: false, // 当前驻店人员所关联的门店是否是延保业务
editorCtx: null
} }
}, },
created() { created() {
...@@ -204,6 +223,22 @@ export default { ...@@ -204,6 +223,22 @@ export default {
}, },
changeDetailsTab(index) { changeDetailsTab(index) {
this.activeIndex = 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 { ...@@ -420,7 +455,8 @@ export default {
height: calc(100% - #{toRpx(100)}); height: calc(100% - #{toRpx(100)});
.activity-list-box { .activity-list-box {
margin-top: toRpx(24); margin-top: toRpx(24);
height: calc(100% - #{toRpx(210)}); height: calc(100% - #{toRpx(120)});
// height: 100%;
} }
} }
.card-list { .card-list {
...@@ -446,13 +482,23 @@ export default { ...@@ -446,13 +482,23 @@ export default {
} }
} }
::v-deep .activityDetails {
.content {
height: calc(100% - #{toRpx(112)});
}
}
.activity-details-content { .activity-details-content {
padding: toRpx(64); padding: toRpx(24) toRpx(64) toRpx(64);
box-sizing: border-box; box-sizing: border-box;
height: 100%;
&-box { &-box {
border-radius: toRpx(24); border-radius: toRpx(24);
background: #ffffff; background: #ffffff;
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
display: flex;
flex-direction: column;
height: 100%;
.top-box { .top-box {
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
box-sizing: border-box; box-sizing: border-box;
...@@ -562,16 +608,68 @@ export default { ...@@ -562,16 +608,68 @@ export default {
} }
} }
.activity-detailslist-box { .activity-detailslist-box {
padding: 0 toRpx(32); flex: 1;
min-height: 0;
padding: 0 toRpx(32) toRpx(24);
.tab-detailslist { .tab-detailslist {
width: 100%; width: 100%;
height: toRpx(120); 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); margin-bottom: toRpx(16);
&:last-child { &:last-child {
border-bottom: none; 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;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!