diff --git a/pages.json b/pages.json
index 3453e69..dbeb55d 100644
--- a/pages.json
+++ b/pages.json
@@ -103,6 +103,12 @@
"style": {
"navigationBarTitleText": "我的名片"
}
+ },
+ {
+ "path": "pages/mine/card/card-detail",
+ "style": {
+ "navigationBarTitleText": "编辑名片"
+ }
}
],
"subPackages": [{
diff --git a/pages/mine/card/card-detail.vue b/pages/mine/card/card-detail.vue
new file mode 100644
index 0000000..8183fd0
--- /dev/null
+++ b/pages/mine/card/card-detail.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/mine/card/my-card.vue b/pages/mine/card/my-card.vue
index a938dec..48d2130 100644
--- a/pages/mine/card/my-card.vue
+++ b/pages/mine/card/my-card.vue
@@ -1,15 +1,39 @@
-
+
+
小红书博主
-
-
+
+
编辑
+
+
+
+
+ 李林
+
+
+
+
+
+ 粉丝:1000
+
+
+ 昵称:爱是大会
+
+
+
+
+
+
+
+ 添加新的名片
@@ -22,7 +46,13 @@
}
},
methods: {
-
+ //名片编辑
+ edit() {
+ this.$tab.navigateTo('/pages/mine/card/card-detail')
+ },
+ addCard() {
+ this.$tab.navigateTo('/pages/mine/card/card-detail')
+ }
}
}
@@ -41,8 +71,25 @@
justify-content: center;
position: relative;
+ .click {
+ background-color: #FFF4F6 !important;
+ border: 2rpx solid #FC1F3E !important;
+ position: relative;
+
+ .choosed {
+ width: 80rpx;
+ height: 80rpx;
+ position: absolute;
+ right: 0;
+ bottom: -4rpx;
+ }
+ }
+
.card-dom {
width: 100%;
+ border: 2rpx solid white;
+ padding: 25rpx;
+ border-radius: 40rpx;
background-color: white;
position: relative;
z-index: 10;
@@ -51,25 +98,84 @@
flex-direction: column;
align-items: center;
justify-content: center;
+ margin-bottom: 20rpx;
.card-title {
+ width: 100%;
display: flex;
align-items: center;
justify-content: center;
image {
- width: 80rpx;
- height: 80rpx;
+ width: 40rpx;
+ height: 40rpx;
}
text {
+ padding-left: 15rpx;
flex: 1;
}
.edit-text {
- width: 100rpx;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ width: 150rpx;
}
}
+
+ .card-content {
+ margin-top: 20rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+
+ image {
+ width: 120rpx;
+ height: 120rpx;
+ border-radius: 15rpx;
+ }
+
+ .card-person-info {
+ padding-left: 20rpx;
+ flex: 1;
+ display: flex;
+ align-items: self-start;
+ justify-content: center;
+ flex-direction: column;
+
+ image {
+ margin-left: 10rpx;
+ width: 20rpx;
+ height: 20rpx;
+ }
+
+ .detail-text {
+ font-size: 20rpx;
+ padding: 5rpx 0;
+ }
+ }
+ }
+ }
+
+ .add-new-card {
+ width: 100%;
+ padding: 90rpx;
+ border-radius: 40rpx;
+ background-color: white;
+ position: relative;
+ z-index: 10;
+ font-size: 26rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ image {
+ margin-right: 20rpx;
+ width: 50rpx;
+ height: 50rpx;
+ }
}
}
\ No newline at end of file
diff --git a/static/mine/choosed.png b/static/mine/choosed.png
new file mode 100644
index 0000000..86f5b2c
Binary files /dev/null and b/static/mine/choosed.png differ
diff --git a/static/mine/edit.png b/static/mine/edit.png
new file mode 100644
index 0000000..0b6355d
Binary files /dev/null and b/static/mine/edit.png differ
diff --git a/static/mine/new.png b/static/mine/new.png
new file mode 100644
index 0000000..d098b98
Binary files /dev/null and b/static/mine/new.png differ
diff --git a/static/mine/sex_boy.png b/static/mine/sex_boy.png
new file mode 100644
index 0000000..2455899
Binary files /dev/null and b/static/mine/sex_boy.png differ
diff --git a/static/mine/sex_girl.png b/static/mine/sex_girl.png
index 9a7367b..4933f3c 100644
Binary files a/static/mine/sex_girl.png and b/static/mine/sex_girl.png differ