diff --git a/pages/home/home.vue b/pages/home/home.vue
index b571ec1..568a0e4 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -44,7 +44,7 @@
},
onLoad(options) {
console.log(options)
- this.studentId=options.studentId
+ this.studentId = options.studentId
this.getStudentScore()
},
@@ -89,7 +89,7 @@
align-items: center;
background-color: #ffffff;
min-height: 100vh;
- background-image: linear-gradient(#55C5E3,#fff);
+ background-image: linear-gradient(#55C5E3, #fff);
}
/* 测试成绩 */
@@ -116,6 +116,7 @@
margin-bottom: 40rpx;
border-radius: 20rpx;
}
+
.itemName {
height: 100rpx;
width: 50%;
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 8147708..b21048b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -134,7 +134,8 @@
-
-
- -->
\ No newline at end of file
diff --git a/pages/phone/phone.vue b/pages/phone/phone.vue
index 6bea9f6..721e3a7 100644
--- a/pages/phone/phone.vue
+++ b/pages/phone/phone.vue
@@ -1,4 +1,3 @@
-
@@ -6,7 +5,7 @@
- 家长姓名:
+ 家长姓名:
学生身份证:
@@ -44,23 +43,34 @@
cardNo: "",
parentName: "",
phone: "",
+ openId: '',
},
}
},
methods: {
bindParent() {
+ uni.removeStorage({
+ key: 'phone',
+ success: function(res) {
+ console.log(res);
+ }
+ });
bindParent(this.data).then(res => {
console.log((res))
if (res.code == 200) {
+ uni.setStorage({
+ key: 'phone',
+ data: res.msg
+ });
uni.navigateTo({
url: '/pages/index/index'
})
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // });
+ uni.showToast({
+ title: '添加成功',
+ icon: 'none',
+ duration: 2000
+ });
} else if (res.code == 500) {
uni.showToast({
title: res.msg,
@@ -78,6 +88,11 @@
})
},
+ },
+ onLoad(options) {
+ console.log(options)
+ this.data.openId = options.openId
+ console.log(this.data.openId)
}
}