瀏覽代碼

修改首页轮播图

zs 1 年之前
父節點
當前提交
e7c8c6f7f0
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 1 1
      pages/home/index.vue
  2. 3 5
      unpackage/dist/dev/mp-weixin/pages/home/index.js

+ 1 - 1
pages/home/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
 		<view class="one">
-			<u-swiper :list="config.file" height="240px" previousMargin="30" nextMargin="30" circular radius="5" bgColor="#ffffff"></u-swiper>
+			<u-swiper :list="config.file" height="240px" indicator indicatorMode="dot" circular></u-swiper>
 		</view>
 	</view>
 </template>

+ 3 - 5
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -35,11 +35,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         a: common_vendor.p({
           list: config.value.file,
           height: "240px",
-          previousMargin: "30",
-          nextMargin: "30",
-          circular: true,
-          radius: "5",
-          bgColor: "#ffffff"
+          indicator: true,
+          indicatorMode: "dot",
+          circular: true
         })
       };
     };