wangfumin 3 ay önce
ebeveyn
işleme
de155f68aa
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 2 2
      components/card-carousel/index.js
  2. 2 2
      pages/index/index.wxss

+ 2 - 2
components/card-carousel/index.js

@@ -114,14 +114,14 @@ Component({
       list.forEach((item, index) => {
         if (item.image && !this.data.preloadedImages[item.image]) {
           // 创建图片对象进行预加载
-          const img = wx.createOffscreenCanvas().getContext('2d');
+          // const img = wx.createOffscreenCanvas().getContext('2d');
           preloadedImages[item.image] = true;
         }
       });
       
       // 同时预加载在线观展图标
       if (this.data.onlineIcon && !this.data.preloadedImages[this.data.onlineIcon]) {
-        const img = wx.createOffscreenCanvas().getContext('2d');
+        // const img = wx.createOffscreenCanvas().getContext('2d');
         preloadedImages[this.data.onlineIcon] = true;
       }
       

+ 2 - 2
pages/index/index.wxss

@@ -38,9 +38,9 @@
   width: 100%;
   height: 100%;
 }
-.carousel-swiper .wx-swiper-dot {
+.carousel-swiper .wx-swiper-dots {
   position: absolute;
-  bottom: 20rpx;
+  bottom: 40rpx;
 }
 /* 功能区域 */
 .function-section {