| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- <template>
- <div class="achievement-report-page" :style="{ height: `calc(100vh - ${tabBarHeight}px)` }">
- <!-- 天气遮罩 -->
- <div class="weather-mask" v-show="isExpanded" @click="handleMaskClick"></div>
- <!-- 组件:天气 -->
- <weather-info ref="weatherInfoRef" class="weather-info" @weatherExpanded="weatherExpanded"
- @changeGarden="changeGarden" :isGarden="true"></weather-info>
- <div class="report-content-wrap" v-if="hasReport" v-loading="loading">
- <swipe class="my-swipe" :loop="false" indicator-color="white" @change="handleSwipeChange">
- <swipe-item v-for="(item, index) in regionsData" :key="index">
- <div class="report-content has-report">
- <!-- <img src="@/assets/img/home/qrcode.png" alt="" class="code-icon" /> -->
- <img class="header-img" src="@/assets/img/home/report.png" alt="" />
- <div class="report-header">
- <!-- <img class="header-book" src="@/assets/img/home/book.png" alt="" /> -->
- <div class="time-tag">{{ workItem?.reportDate }}</div>
- <div class="report-title">长势报告</div>
- <div class="report-info">
- <div class="info-item">
- <img class="info-icon" src="@/assets/img/home/farm.png" alt="" />
- <span class="info-text">{{ workItem?.orchardName }}</span>
- </div>
- </div>
- <!-- 左滑查看更多 -->
- <div class="swipe-more-tag">
- 左滑查看更多分区
- </div>
- </div>
- <div class="report-box">
- <div class="box-title warning">今日巡园重点</div>
- <div class="box-text w-100">
- <div class="row">
- <div v-for="(card, cardI) in todayPatrolFocus" :key="cardI" class="status-card" :class="card.type"
- >
- <badge class="status-badge" dot
- :offset="[80, -10]">
- </badge>
- <div class="status-title">
- {{ card.typeName }}
- </div>
- <div class="status-sub" v-if="card.source === 'NEXT_PHENOLOGY'">
- 预计{{card.daysUntilNext}}天后进入
- </div>
- <div class="status-sub" v-else>
- {{ card.description }}
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="report-box">
- <div class="box-title warning">待执行农事</div>
- <div class="box-text w-100">
- <div class="row">
- <div v-for="(card, cardI) in pendingFarmWork" :key="cardI" class="status-card" :class="card.type"
- >
- <badge class="status-badge" dot
- :offset="[80, -10]">
- </badge>
- <div class="status-title">
- {{ card.name }}
- </div>
- <div class="status-sub">
- {{ card.status }}
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="report-box">
- <div class="box-title">物候与长势</div>
- <div class="box-text">
- <div class="box-bg">
- <span class="box-subtitle">背景描述:</span>
- <div v-html="workItem?.phenologyBackground"></div>
- </div>
- <div class="box-advice">
- <span class="box-subtitle">对策建议:</span>
- <div v-html="workItem?.phenologySuggestion"></div>
- </div>
- <div class="box-sum" v-html="workItem?.phenologySummary"></div>
- </div>
- </div>
- <div class="report-box">
- <div class="box-title">病虫害问题</div>
- <div class="box-text">
- <div class="box-bg">
- <span class="box-subtitle">背景描述:</span>
- <div v-html="workItem?.pestBackground"></div>
- </div>
- <div class="box-advice">
- <span class="box-subtitle">对策建议:</span>
- <div v-html="workItem?.pestSuggestion"></div>
- </div>
- <div class="box-sum">
- <div v-html="workItem?.pestSummary"></div>
- </div>
- </div>
- </div>
- <div class="report-box">
- <div class="box-title">今日巡园重点</div>
- <div class="box-text">
- {{ workItem?.summaryAgricultural || "--" }}
- </div>
- </div>
- <div class="report-box">
- <div class="box-title">未来预测</div>
- <div class="box-text">
- <div class="box-bg">
- <span class="box-subtitle">背景描述:</span>
- <div v-html="workItem?.forecastBackground"></div>
- </div>
- <div class="box-advice">
- <span class="box-subtitle">对策建议:</span>
- <div v-html="workItem?.forecastSuggestion"></div>
- </div>
- </div>
- </div>
- <div class="report-box">
- <div class="box-text next-info">
- <div class="box-bg">
- <span class="box-subtitle">下一次农情互动预告:</span>
- <div v-html="workItem?.nextInteractionPreview"></div>
- </div>
- </div>
- </div>
- </div>
- </swipe-item>
- </swipe>
- </div>
- <div v-else class="fake-report-wrap report-content-wrap">
- <div class="report-content">
- <img class="header-img" src="@/assets/img/home/report.png" alt="" />
- <div class="report-header">
- <!-- <img class="header-book" src="@/assets/img/home/book.png" alt="" /> -->
- <div class="time-tag">{{ workItem?.reportDate }}</div>
- <div class="report-title">作物长势报告</div>
- <div class="report-info pb-4">
- <div class="info-item">
- <img class="info-icon" src="@/assets/img/home/farm.png" alt="" />
- <span class="info-text">{{ workItem?.orchardName }}</span>
- </div>
- </div>
- </div>
- <div class="fake-img">
- <img src="@/assets/img/home/fake.png" alt="" class="fake-img-item" />
- </div>
- <div class="lock-img" @click="handleLockClick">
- <img src="@/assets/img/home/lock-blue.png" alt="" class="lock-img-item" />
- <div class="lock-text">解锁某某某某某,解锁某某某某某</div>
- </div>
- </div>
- </div>
- <!-- 首次进入页面的左滑查看提示遮罩 -->
- <div class="swipe-guide-mask" v-if="showSwipeGuide" @click="closeSwipeGuide">
- <div class="swipe-guide-content">
- <img class="swipe-guide-icon" src="@/assets/img/home/point.png" alt="swipe" />
- <div class="swipe-guide-text">左滑查看其它品种报告</div>
- </div>
- </div>
- <tip-popup v-model:show="showBindSuccess" type="success" text="您的农场已绑定成功" />
- </div>
- </template>
- <script setup>
- import wx from "weixin-js-sdk";
- import weatherInfo from "@/components/weatherInfo.vue";
- import { ref, onActivated, onDeactivated, onUnmounted, computed } from "vue";
- import { useRoute, useRouter } from "vue-router";
- import { useStore } from "vuex";
- import { Swipe, SwipeItem, Badge } from 'vant';
- import tipPopup from "@/components/popup/tipPopup.vue";
- const store = useStore();
- const tabBarHeight = computed(() => store.state.home.tabBarHeight);
- const route = useRoute();
- const router = useRouter();
- const loading = ref(false);
- const hasReport = ref(false);
- const workItem = ref({
- reportDate: new Date().toISOString().split('T')[0],
- executeDate: new Date().toISOString().split('T')[0],
- orchardName: '示范农场',
- farmName: '荔枝博览园',
- resultInfo: '近7天时间地点,当下农情指标(物候期指标等等),面临的风险和出现的问题。',
- growthInfo: {
- description: '当前处于蒂蛀虫高发期,请及时采集。处于蒂蛀虫高发期',
- advice: '根据问题写一下需要注意的事项有哪些;简单描述农事该怎么做(可以链接详细的操作贴);更加详细的意见,等待专家进一步确认。如果都没有问题,那么这个时期高发什么风险,需要密切关注。',
- },
- futureInfo: {
- description: '为什么这个气象风险很重要,对产量有什么影响;',
- advice: '如果需要做农事,就建议农事,如果暂时不需要做农事,就提醒密切关注长势动态。',
- },
- nextInfo: {
- advice: '时间和主题,主要是为了什么互动,说明其重要性。',
- },
- });
- function formatArea(val) {
- const num = typeof val === "number" ? val : parseFloat(val);
- if (Number.isNaN(num)) return val;
- return Number.isInteger(num) ? num : num.toFixed(2) + "亩";
- }
- const todayRows = ref([
- {
- label: "农情",
- cards: [
- {
- id: 1,
- title: "新梢萌动",
- sub: "预计3天后进入",
- type: "risk-strong",
- },
- {
- id: 2,
- title: "冲梢异常",
- sub: "占比3%",
- type: "normal",
- badge: true,
- },
- {
- id: 3,
- title: "病虫风险",
- sub: "一级风险",
- type: "danger",
- },
- ],
- },
- ]);
- const todoRows = ref([
- {
- label: "农事",
- cards: [
- {
- id: 4,
- title: "第一段防治",
- sub: "待完成",
- type: "risk-strong",
- },
- {
- id: 5,
- title: "控梢",
- sub: "待触发",
- type: "normal",
- },
- {
- id: 6,
- title: "无",
- sub: "",
- type: "disabled",
- },
- ],
- },
- ]);
- const paramsPage = ref({});
- const showBindSuccess = ref(false);
- // 天气组件相关
- const isExpanded = ref(false);
- const weatherInfoRef = ref(null);
- // 首次进入页面的左滑提示遮罩
- const showSwipeGuide = ref(false);
- const weatherExpanded = (isExpandedValue) => {
- isExpanded.value = isExpandedValue;
- };
- // 点击遮罩时收起天气
- const handleMaskClick = () => {
- if (weatherInfoRef.value && weatherInfoRef.value.toggleExpand) {
- weatherInfoRef.value.toggleExpand();
- }
- };
- // 切换农场时,更新报告数据
- const changeGarden = ({ id }) => {
- if (!id) return;
- paramsPage.value = {
- ...(paramsPage.value || {}),
- farmId: id,
- };
- getRegions();
- const guideKey = "GROWTH_REPORT_SWIPE_GUIDE_SHOWN";
- if (!localStorage.getItem(guideKey)) {
- showSwipeGuide.value = true;
- localStorage.setItem(guideKey, "1");
- }
- };
- onActivated(() => {
- window.scrollTo(0, 0);
- // 如果路由中带有 miniJson,并且其中有 showBind,则展示绑定成功弹窗
- const { miniJson } = route.query || {};
- if (miniJson) {
- try {
- const parsed = typeof miniJson === "string" ? JSON.parse(miniJson) : miniJson;
- if (parsed && parsed.showBind) {
- showBindSuccess.value = true;
- // 处理完后清空路由中的 miniJson 参数,避免重复弹出
- const newQuery = { ...(route.query || {}) };
- delete newQuery.miniJson;
- router.replace({ path: route.path, query: newQuery });
- }
- } catch (e) {
- // miniJson 解析失败时忽略,不影响正常流程
- }
- }
- // getResultReport();
- });
- // 关闭左滑提示遮罩
- const closeSwipeGuide = () => {
- showSwipeGuide.value = false;
- };
- const handleLockClick = () => {
- wx.miniProgram.navigateTo({
- url: '/pages/subPages/phone_auth/index',
- });
- // wx.miniProgram.navigateTo({
- // url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
- // });
- }
- const setReadStatus = (id) => {
- VE_API.farm.readReportByFarm({ id, isRead: 1 }).then(({ data }) => {
- console.log(data);
- });
- }
- const todayPatrolFocus = ref([]);
- const pendingFarmWork = ref([]);
- const getTodayPatrolFocus = () => {
- VE_API.report.todayPatrolFocus({ farmId: paramsPage.value.regionId }).then(({ data }) => {
- todayPatrolFocus.value = data || [];
- });
- }
- const getPendingFarmWork = () => {
- VE_API.report.pendingFarmWork({ farmId: paramsPage.value.regionId }).then(({ data }) => {
- pendingFarmWork.value = data || [];
- });
- }
- const handleSwipeChange = (index) => {
- if (paramsPage.value.regionId !== regionsData.value[index].farmId) {
- paramsPage.value = {
- ...(paramsPage.value || {}),
- regionId: regionsData.value[index].farmId,
- };
- getTodayPatrolFocus();
- getPendingFarmWork();
- getDetail();
- }
- }
- const getDetail = () => {
- if (!paramsPage.value.farmId) return;
- loading.value = true;
- VE_API.farm
- .growthReportBySubject({ subjectId: paramsPage.value.farmId, limit: 20 })
- .then(({ data }) => {
- console.log('data', data);
- workItem.value = data?.[0] || {};
- data?.[0]?.id && setReadStatus(data[0]?.id);
- })
- .finally(() => {
- loading.value = false;
- });
- };
- const regionsData = ref([]);
- const getRegions = async () => {
- VE_API.monitor.listRegionsBySubjectId({
- subjectId: paramsPage.value.farmId,
- }).then(({ data }) => {
- console.log('getRegions', data);
- regionsData.value = data || [];
- if(regionsData.value.length > 0) {
- hasReport.value = true;
- paramsPage.value = {
- ...(paramsPage.value || {}),
- regionId: regionsData.value[0].farmId,
- };
- getTodayPatrolFocus();
- getPendingFarmWork();
- getDetail();
- } else {
- hasReport.value = false;
- }
- });
- }
- // 清理数据的函数
- const clearData = () => {
- workItem.value = {};
- paramsPage.value = {};
- loading.value = false;
- };
- onDeactivated(() => {
- clearData();
- });
- onUnmounted(() => {
- clearData();
- });
- </script>
- <style lang="scss" scoped>
- .achievement-report-page {
- width: 100%;
- height: 100vh;
- background: linear-gradient(195.35deg, #d4e4ff 16.34%, rgba(93, 189, 255, 0) 50.3%),
- linear-gradient(156.64deg, rgba(255, 255, 255, 0.16) 27.7%, rgba(255, 255, 255, 0) 72.82%);
- .weather-mask {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.52);
- z-index: 11;
- }
- .weather-info {
- width: calc(100% - 20px);
- position: absolute;
- z-index: 12;
- left: 10px;
- top: 12px;
- }
- .fake-report-wrap {
- width: 100%;
- .no-report-img {
- width: 100%;
- }
- .fake-img {
- position: relative;
- .fake-img-item {
- width: 100%;
- }
- }
- }
- .report-content-wrap {
- height: 100%;
- // padding-bottom: 60px;
- overflow: auto;
- box-sizing: border-box;
- position: relative;
- .bottom-btn {
- z-index: 2;
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- background: #fff;
- height: 60px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 12px;
- box-sizing: border-box;
- box-shadow: 2px 2px 4.5px 0px rgba(0, 0, 0, 0.4);
- .btn-item {
- height: 40px;
- line-height: 40px;
- padding: 0 24px;
- border-radius: 20px;
- font-size: 14px;
- &.second {
- color: #666666;
- border: 1px solid rgba(153, 153, 153, 0.5);
- }
- &.primay {
- padding: 0 34px;
- background: linear-gradient(180deg, #76c3ff, #2199f8);
- color: #fff;
- }
- }
- }
- }
- // 首次进入页面左滑提示遮罩
- .swipe-guide-mask {
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.6);
- z-index: 99999;
- display: flex;
- align-items: center;
- justify-content: center;
- .swipe-guide-content {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- color: #ffffff;
- text-align: center;
- }
- .swipe-guide-icon {
- width: 71px;
- height: 79px;
- object-fit: contain;
- margin-bottom: 23px;
- }
- .swipe-guide-text {
- font-size: 20px;
- }
- }
- .code-icon {
- position: absolute;
- right: 10px;
- top: 12px;
- width: 48px;
- }
- .report-content {
- // background: url("@/assets/img/home/report_bg.png") no-repeat center center;
- // background: linear-gradient(0deg, #9BCCFF, #9BCCFF),
- // linear-gradient(160deg, rgba(255, 255, 255, 0.16) 30%, rgba(255, 255, 255, 0) 72%);
- background: #abd4ff;
- background-size: 100% auto;
- background-position: top center;
- padding: 0 16px 26px 16px;
- box-sizing: border-box;
- position: relative;
- &.has-report {
- min-height: 100%;
- background: linear-gradient(0deg, #9BCCFF, #9BCCFF),
- linear-gradient(156.64deg, rgba(255, 255, 255, 0.16) 27.7%, rgba(255, 255, 255, 0) 72.82%);
- }
- .lock-img {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -20%);
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- gap: 16px;
- .lock-img-item {
- width: 57px;
- }
- .lock-text {
- font-size: 16px;
- color: #000;
- padding: 0 24px;
- height: 34px;
- line-height: 34px;
- background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%);
- }
- }
- .header-img {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- }
- .report-header {
- position: relative;
- padding-top: 112px;
- .header-book {
- position: absolute;
- right: 0;
- bottom: -6px;
- height: 88px;
- z-index: 10;
- }
- .time-tag {
- background: #2199F8;
- border-radius: 5px 0 5px 0;
- height: 23px;
- line-height: 23px;
- font-size: 13px;
- font-weight: 500;
- color: #fff;
- padding: 0 9px;
- width: fit-content;
- margin-bottom: 2px;
- }
- .report-title {
- font-family: "PangMenZhengDao";
- font-size: 34px;
- line-height: 38px;
- color: #000000;
- }
- .report-info {
- padding: 12px 0 28px 0;
- &.pb-4 {
- padding-bottom: 4px;
- }
- .info-item {
- width: fit-content;
- display: flex;
- height: 33px;
- align-items: center;
- padding: 0 18px 0 6px;
- background: linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.0696) 100%);
- border-radius: 20px;
- border: 0.5px solid rgba(33, 153, 248, 0.35);
- gap: 6px;
- .info-icon {
- width: 26px;
- height: 26px;
- object-fit: cover;
- border-radius: 50%;
- }
- .info-text {
- font-size: 14px;
- color: #000;
- }
- }
- .info-item+.info-item {
- margin-top: 5px;
- }
- }
- // 左滑查看更多标签
- .swipe-more-tag {
- position: absolute;
- bottom: 10px;
- right: -16px;
- box-sizing: border-box;
- width: 36px;
- height: 134px;
- padding: 0px 10px 2px 0;
- background: rgba(0, 0, 0, 0.7);
- border-radius: 10px 0 0 10px;
- letter-spacing: 2px;
- color: #ffffff;
- font-size: 12px;
- text-align: center;
- line-height: 20px;
- writing-mode: vertical-rl;
- text-orientation: mixed;
- }
- }
- .report-box {
- display: flex;
- align-items: center;
- padding: 8px;
- background: linear-gradient(0deg, #ffffff 86.32%, #2199f8 136.87%);
- border: 1px solid #ffffff;
- border-radius: 8px;
- gap: 5px;
- position: relative;
- .report-box-item {
- flex: 1;
- background: rgba(33, 153, 248, 0.1);
- border-radius: 8px;
- min-height: 62px;
- box-sizing: border-box;
- padding: 2px 4px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- .item-content {
- color: #2199f8;
- font-size: 14px;
- text-align: center;
- }
- .item-title {
- color: #000000;
- font-size: 10px;
- text-align: center;
- padding-top: 5px;
- }
- }
- .box-title {
- position: absolute;
- top: -8px;
- left: -1px;
- height: 32px;
- line-height: 26px;
- font-family: "PangMenZhengDao";
- font-size: 14px;
- padding: 0 10px;
- color: #ffffff;
- background: url("@/assets/img/home/title-bg.png") no-repeat center center / 100% 100%;
- &.warning {
- background: url("@/assets/img/home/title-bg-warning.png") no-repeat center center / 100% 100%;
- }
- }
- .w-100 {
- width: 100%;
- }
- .box-text {
- padding: 22px 0 8px 0;
- font-weight: 350;
- line-height: 21px;
- .box-subtitle {
- color: #000;
- }
- .box-bg {
- font-weight: 400;
- color: rgba(0, 0, 0, 0.5);
- }
- .box-advice {
- color: rgba(0, 0, 0, 0.5);
- padding-top: 10px;
- }
- .box-sum {
- margin-top: 10px;
- background: rgba(33, 153, 248, 0.1);
- border-radius: 5px;
- padding: 10px;
- line-height: 20px;
- color: #2199F8;
- }
- &.next-info {
- padding: 8px 0 8px 0;
- }
- }
- .row {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 6px;
- .status-card {
- border-radius: 2px;
- padding: 7px 0;
- background: #ffffff;
- border: 0.5px solid #e5e6eb;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .status-badge {
- // position: absolute;
- // top: 0;
- // right: 0;
- }
- .status-title {
- font-size: 16px;
- }
- .status-sub {
- font-size: 10px;
- color: rgba(32, 32, 32, 0.4);
- }
- &.risk-strong {
- background: #FF6A6A;
- border-color: #FF6A6A;
- .status-title,
- .status-sub {
- color: #ffffff;
- }
- }
- &.danger {
- background: #FFE9E9;
- border-color: #ff8e8e;
- .status-sub {
- color: #FF6A6A;
- }
- }
- }
- }
- }
- .report-box+.report-box {
- margin-top: 20px;
- }
- .report-excute {
- position: relative;
- margin-top: 12px;
- .tag-label {
- position: absolute;
- top: 0;
- left: 0;
- padding: 4px 10px;
- background: rgba(54, 52, 52, 0.8);
- color: #fff;
- font-size: 12px;
- border-radius: 8px 0 8px 0;
- z-index: 1;
- }
- ::v-deep {
- .carousel-container .carousel-wrapper .carousel-img {
- min-width: calc(100vw - 32px);
- width: calc(100vw - 32px);
- }
- }
- }
- }
- .download-btn {
- position: fixed;
- bottom: 20px;
- left: 50%;
- // background: #fff;
- // box-shadow: 2px 2px 4.5px 0px #00000066;
- // width: 100%;
- transform: translateX(-50%);
- }
- .review-hide-box {
- position: absolute;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: -1;
- bottom: 0;
- }
- .review-image {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- margin: 12px;
- background: #fff;
- border-radius: 8px;
- .review-mask {
- z-index: 1;
- pointer-events: none;
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- border-radius: 8px;
- background: linear-gradient(360deg,
- rgba(0, 0, 0, 0.78) 0%,
- rgba(0, 0, 0, 0.437208) 19.87%,
- rgba(0, 0, 0, 0) 33.99%);
- display: flex;
- flex-direction: column;
- align-items: baseline;
- justify-content: end;
- padding: 12px;
- box-sizing: border-box;
- color: #fff;
- .review-text {
- font-family: "PangMenZhengDao";
- font-size: 16px;
- margin-bottom: 1px;
- }
- .review-content {
- font-size: 10px;
- line-height: 15px;
- }
- }
- .vs-wrap {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- width: 40px;
- height: 40px;
- z-index: 10;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- }
- .review-image-item {
- position: relative;
- flex: 1;
- .review-image-item-title {
- position: absolute;
- top: 0;
- left: 0;
- background: rgba(54, 52, 52, 0.6);
- padding: 4px 10px;
- border-radius: 8px 0 8px 0;
- backdrop-filter: 4px;
- font-size: 12px;
- color: #fff;
- }
- // .review-image-item-img {
- // width: 100%;
- // height: 250px;
- // object-fit: cover;
- // }
- .review-image-item-img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- object-position: center;
- }
- .left-img {
- border-radius: 8px 0 0 8px;
- }
- .right-img {
- border-radius: 0 8px 8px 0;
- }
- }
- }
- }
- .cavans-popup {
- width: 100%;
- max-width: 100%;
- max-height: 92vh;
- background: none;
- border-radius: 12px;
- overflow: auto;
- display: flex;
- flex-direction: column;
- backdrop-filter: 4px;
- .cavans-content {
- text-align: center;
- padding: 0 12px;
- height: fit-content;
- overflow: auto;
- .current-img {
- width: 100%;
- }
- }
- // 底部操作按钮
- .bottom-actions {
- flex-shrink: 0;
- .action-buttons {
- padding: 12px 0 4px 0;
- display: flex;
- justify-content: space-around;
- .action-btn {
- display: flex;
- flex-direction: column;
- align-items: center;
- cursor: pointer;
- &.text-btn {
- font-size: 12px;
- color: rgba(255, 255, 255, 0.7);
- }
- .icon-circle {
- width: 48px;
- height: 48px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- margin-bottom: 4px;
- .el-icon {
- color: #fff;
- }
- img {
- width: 50px;
- }
- }
- &.blue-btn .icon-circle {
- background: #2199f8;
- }
- &.green-btn .icon-circle {
- background: #07c160;
- }
- &.orange-btn .icon-circle {
- background: #ff790b;
- }
- .btn-label {
- font-size: 12px;
- color: #fff;
- }
- }
- }
- .cancel-btn {
- text-align: center;
- font-size: 18px;
- color: #fff;
- cursor: pointer;
- }
- }
- }
- </style>
|