From 4e30a699a4166f201d3d73d4c6602afefb6a0e3f Mon Sep 17 00:00:00 2001
From: shikong <919411476@qq.com>
Date: Wed, 16 Oct 2024 15:05:49 +0800
Subject: [PATCH] =?UTF-8?q?banner=20=E8=BD=AE=E6=92=AD=20=E5=92=8C=20?=
=?UTF-8?q?=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/codeStyles/codeStyleConfig.xml | 5 ++++
pages/index/index.vue | 38 +++++++++++++++++++++++++---
2 files changed, 39 insertions(+), 4 deletions(-)
create mode 100644 .idea/codeStyles/codeStyleConfig.xml
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..a55e7a1
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index bdac2c5..44ab071 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,4 +1,10 @@
+
+
+
+
+
+
@@ -11,19 +17,43 @@
export default {
data() {
return {
- title: 'Hello 12345'
+ title: 'Hello 12345',
+ pic: {
+ list: [
+ {
+ id: 1,
+ url: "https://www.httpbin.org/image/png",
+ },
+ {
+ id: 2,
+ url: "https://www.httpbin.org/image/jpeg",
+ },
+ ]
+ }
}
},
onLoad() {
},
methods: {
-
+ previewImage(item) {
+ uni.previewImage({
+ current: item.url,
+ urls: this.pic.list.map(item => item.url),
+ indicator: 'default',
+ loop: true
+ })
+ }
}
}
-
+
\ No newline at end of file