diff --git a/pages/index/components/home.vue b/pages/index/components/home.vue
index fac8112..53ea566 100644
--- a/pages/index/components/home.vue
+++ b/pages/index/components/home.vue
@@ -3,8 +3,10 @@
-
-
+
+
+
+
@@ -88,12 +103,24 @@
width: 100%;
position: absolute;
top: 370rpx;
-
- .healthy-code {
+
+ .healthy-code-bg {
margin: 0 auto;
width: 230rpx;
height: 230rpx;
+ border-radius: 10px;
+ overflow: hidden;
+ background: $ghostWhite;
+
+ .healthy-code {
+ margin: 5rpx;
+ width: 220rpx;
+ height: 220rpx;
+ border-radius: 10px;
+ }
}
+
+
}
.box {
diff --git a/pages/index/components/mine.vue b/pages/index/components/mine.vue
index 8b6e12b..b267c5c 100644
--- a/pages/index/components/mine.vue
+++ b/pages/index/components/mine.vue
@@ -11,7 +11,7 @@
-
+
@@ -65,7 +65,21 @@
},
};
},
+
computed: mapState('user', ['healthCode', 'user']),
+
+ methods: {
+ //预览图片
+ getPreviewImg(image) {
+ var imgArr = [];
+ imgArr.push(image);
+ uni.previewImage({
+ urls: imgArr,
+ current: imgArr[0]
+ });
+ },
+
+ }
};