Merge remote-tracking branch 'origin/jihan_0413_运动处方和视频功能开发分支' into jihan_0413_运动处方和视频功能开发分支

This commit is contained in:
闫晓茹 2023-04-20 11:10:47 +08:00
commit bf534368af
3 changed files with 53 additions and 63 deletions

View File

@ -351,7 +351,7 @@
background: #fff; background: #fff;
box-shadow: 0px 3px 18px 0px rgba(182, 218, 213, 0.43); box-shadow: 0px 3px 18px 0px rgba(182, 218, 213, 0.43);
width: 90%; width: 90%;
margin: 0 auto; // text-align: center; margin: 0 auto 20rpx; // text-align: center;
height: 268rpx; height: 268rpx;
border-radius: 10rpx; border-radius: 10rpx;
position: relative; position: relative;

View File

@ -44,12 +44,11 @@
data() { data() {
return { return {
StudentScore: [], StudentScore: [],
studentId: "",
// studentIdList:{},
} }
}, },
onShow() { onShow() {
const value = uni.getStorageSync('phone'); const value = uni.getStorageSync('phone');
if (value) {
getInfoByPhone(value).then(res => { getInfoByPhone(value).then(res => {
if (res.code == 200) { if (res.code == 200) {
var obj = { var obj = {
@ -63,6 +62,11 @@
}) })
} else {} } else {}
}) })
} else {
uni.navigateTo({
url: '/pages/index/index'
})
}
}, },
methods: { methods: {
lookbook(item) { lookbook(item) {
@ -102,25 +106,6 @@
}); });
} }
}, },
getPhoneNumberp(val) {
wx.login({
provider: 'weixin',
success: function(loginRes) {}
});
},
wxGetUserInfo() {
let that = this;
uni.getUserProfile({
desc: "获取用户信息",
lang: "zh_CN",
success(res) {
that.yonghuwx = res.userInfo
},
fail(res) {
//home
},
});
},
} }
} }
</script> </script>

View File

@ -143,7 +143,6 @@
studentInfoList: [], studentInfoList: [],
studentIditem: [], studentIditem: [],
getchildlist: [], getchildlist: [],
studentId: "",
batchCode: "", batchCode: "",
phone: "", phone: "",
studentList: [], studentList: [],
@ -152,6 +151,7 @@
onShow() { onShow() {
let that = this; let that = this;
this.phone = uni.getStorageSync('phone'); this.phone = uni.getStorageSync('phone');
if (this.phone) {
getInfoByPhone(this.phone).then(res => { getInfoByPhone(this.phone).then(res => {
if (res.code == 200) { if (res.code == 200) {
var obj = { var obj = {
@ -181,6 +181,11 @@
}) })
} else {} } else {}
}) })
} else {
uni.navigateTo({
url: '/pages/index/index'
})
}
}, },
methods: { methods: {
look(uitem) { look(uitem) {