Commit 7092f5a8 by cen

fix: 活动中心报错

1 parent fd3aa7c7
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="activity-left"> <view class="activity-left">
<view class="title">荣誉墙</view> <view class="title">荣誉墙</view>
<u-list @scrolltolower="scrolltolower" class="activity-list" height="100%" v-if="activityRewardList.length > 0"> <u-list @scrolltolower="scrolltolower" class="activity-list" height="100%" v-if="activityRewardList.length > 0">
<u-list-item v-for="item in activityRewardList" :key="item" class="activity-list-item"> <u-list-item v-for="item in activityRewardList" :key="item.id" class="activity-list-item">
<view class="activity-name">{{ item.name }}</view> <view class="activity-name">{{ item.name }}</view>
<view class="activity-time">{{ dayjs(item.startTime).format('YYYY-MM-DD HH:mm') }} 至 {{ dayjs(item.endTime).format('YYYY-MM-DD HH:mm') }}</view> <view class="activity-time">{{ dayjs(item.startTime).format('YYYY-MM-DD HH:mm') }} 至 {{ dayjs(item.endTime).format('YYYY-MM-DD HH:mm') }}</view>
<view class="activity-cycle" v-if="item.cycleName">周期:{{ item.cycleName }}</view> <view class="activity-cycle" v-if="item.cycleName">周期:{{ item.cycleName }}</view>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<scroll-view scroll-y ref="scrollViewRef" @scrolltolower="pageonReachBottom" class="activity-list-box" v-if="cardList.length"> <scroll-view scroll-y ref="scrollViewRef" @scrolltolower="pageonReachBottom" class="activity-list-box" v-if="cardList.length">
<template> <template>
<view class="card-list"> <view class="card-list">
<Card v-for="item in cardList" :key="item" :item="item" :tabIndex="firstIndex" @handleAvtivityItemClick="handleAvtivityItemClick(item)" @rulesShow="rulesShow" /> <Card v-for="item in cardList" :key="item.id" :item="item" :tabIndex="firstIndex" @handleAvtivityItemClick="handleAvtivityItemClick(item)" @rulesShow="rulesShow" />
</view> </view>
</template> </template>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</view> </view>
<template v-if="currentItem.activityCycleResponses && currentItem.activityCycleResponses.length > 0"> <template v-if="currentItem.activityCycleResponses && currentItem.activityCycleResponses.length > 0">
<u-scroll-list class="activity-tab-box" :indicator="false" v-if="currentItem.activityCycleResponses"> <u-scroll-list class="activity-tab-box" :indicator="false" v-if="currentItem.activityCycleResponses">
<view v-for="(activityCycleResponsesItem, index) in currentItem.activityCycleResponses" :key="index" class="tab-item-box" @click="changeDetailsTab(index)"> <view v-for="(activityCycleResponsesItem, index) in currentItem.activityCycleResponses" :key="activityCycleResponsesItem.id" class="tab-item-box" @click="changeDetailsTab(index)">
<view class="tab-item" :class="{ active: activeIndex === index }"> <view class="tab-item" :class="{ active: activeIndex === index }">
{{ activityCycleResponsesItem.cycleName }} {{ activityCycleResponsesItem.cycleName }}
</view> </view>
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
</u-scroll-list> </u-scroll-list>
<scroll-view class="activity-detailslist-box" scroll-y="true" v-if="currentItem.activityCycleResponses"> <scroll-view class="activity-detailslist-box" scroll-y="true" v-if="currentItem.activityCycleResponses">
<template v-if="currentItem.activityCycleResponses[activeIndex].activityAwardWinnerResponses.length > 0"> <template v-if="currentItem.activityCycleResponses[activeIndex].activityAwardWinnerResponses.length > 0">
<view v-for="(i, index) in currentItem.activityCycleResponses[activeIndex].activityAwardWinnerResponses" :key="index" class="tab-detailslist flex" :class="{ active: userInfo.phone === i.phone }" @click="changeDetailsTab(index)"> <view v-for="(i, index) in currentItem.activityCycleResponses[activeIndex].activityAwardWinnerResponses" :key="i.id" class="tab-detailslist flex" :class="{ active: userInfo.phone === i.phone }" @click="changeDetailsTab(index)">
<view class="sprite-icon icon-icon-gold"></view> <view class="sprite-icon icon-icon-gold"></view>
<view class="flex-1"> <view class="flex-1">
<view class="flex align-center justify-between mb-12"> <view class="flex align-center justify-between mb-12">
...@@ -136,9 +136,9 @@ ...@@ -136,9 +136,9 @@
</view> </view>
</view> </view>
<Popup ref="activityRulePopup" popupClass="activityRule" title="活动规则" type="center" size="medium" :isShowFooter="false" :showClose="true" @confirm="confirmAddSignAgreement" :autoClose="false"> <Popup ref="activityRulePopup" popupClass="activityRule" title="活动规则" type="center" size="medium" :isShowFooter="false" :showClose="true" :autoClose="false">
<template #content> <template #content>
<view class="activityRuleContent"> <view class="activityRuleContent" v-if="currentItem">
<view class="activityRuleContent-box"> <view class="activityRuleContent-box">
<div v-html="currentItem.selectionRule"></div> <div v-html="currentItem.selectionRule"></div>
<!-- <editor id="editor" class="ql-container" placeholder="开始输入..." show-img-size show-img-toolbar show-img-resize @statuschange="onStatusChange" :read-only="true" @ready="onEditorReady"></editor> --> <!-- <editor id="editor" class="ql-container" placeholder="开始输入..." show-img-size show-img-toolbar show-img-resize @statuschange="onStatusChange" :read-only="true" @ready="onEditorReady"></editor> -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!