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