Browse Source

fix: 修正锁标志判断和图片路径字段

将锁标志判断条件从!test.lockFlag改为test.lockFlag,确保正确显示锁定状态
同时将动画路径字段从animationJavascriptPath改为animationImagePath
whj 3 ngày trước cách đây
mục cha
commit
4efea3817c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pages/test/index.uvue

+ 2 - 2
pages/test/index.uvue

@@ -90,13 +90,13 @@ async function onScroll(e: any) {
         @scroll="onScroll">
         <view class="scroll-view-item_H bg-[white]" v-for="test in testList || []" :class="`category-${test.catalogId}`"
           :key="test.id" @tap="handleDetail(test)" ref="categoryRefs">
-          <cl-image :src="test.animationJavascriptPath" mode="heightFix"
+          <cl-image :src="test.animationImagePath" mode="heightFix"
             class="!w-full !h-[26vh] mb-[2px] rounded-xl"></cl-image>
           <text class="text-[16px] font-bold">{{
             test.name }}</text>
           <text class="text-[14px] text-[#666]">{{
             test.remark }}</text>
-          <Lock v-if="!test.lockFlag" :record="test" />
+          <Lock v-if="test.lockFlag" :record="test" />
         </view>
       </scroll-view>
     </view>