修改
This commit is contained in:
parent
a947b590e5
commit
24147b2ec1
@ -1,91 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="top" v-show="top"></view>
|
<view class="top" v-show="top"></view>
|
||||||
<!-- <view class="nicheng" @tap='wxGetUserInfo'> -->
|
|
||||||
<!-- <view class="tx-w">
|
|
||||||
<view class="tx">
|
|
||||||
<image class="tx-img" src="/static/dl.png" v-if="yonghuwx.length==0"></image>
|
|
||||||
<image class="tx-img" src="/static/dl.png" v-else-if="yonghuwx.avatarUrl==''"></image>
|
|
||||||
<image class="tx-img" :src="yonghuwx.avatarUrl" v-else></image>
|
|
||||||
<view class="zx"></view>
|
|
||||||
</view>
|
|
||||||
<view class="infos">
|
|
||||||
<view class="studentName" v-if="parentList.parentName==''">姓名:{{yonghuwx.nickName}}</view>
|
|
||||||
<view class="studentName" v-else>姓名:{{parentList.parentName}}</view>
|
|
||||||
<view class="name" v-if="yonghuwx.length==0">昵称:{{parentList.parentName}} </view>
|
|
||||||
<view class="name" v-else-if="yonghuwx.nickName==''">昵称:{{parentList.parentName}} </view>
|
|
||||||
<view class="name" v-else>昵称:{{yonghuwx.nickName}} </view>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
<!-- </view> -->
|
|
||||||
<!-- <view > -->
|
|
||||||
<view class="tucengstyle">
|
<view class="tucengstyle">
|
||||||
<image src="/static/tuceng.png"></image>
|
<image src="/static/tuceng.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="zhihui">智慧幼儿体质评估
|
<view class="zhihui">智慧幼儿体质评估
|
||||||
与促进系统
|
与促进系统
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="" @tap='wxGetUserInfo'> -->
|
|
||||||
<button class="denglu" open-type="getPhoneNumber" @getphonenumber='getPhoneNumberp'>微信一键登录</button>
|
<button class="denglu" open-type="getPhoneNumber" @getphonenumber='getPhoneNumberp'>微信一键登录</button>
|
||||||
<!-- </view> -->
|
|
||||||
<!-- </view> -->
|
|
||||||
<!-- <view class="stuinfos" v-show="stuinfos">
|
|
||||||
<view class="student">
|
|
||||||
<view class="stinfo">
|
|
||||||
<img src="/static/student.png" alt="" sizes="" srcset="">
|
|
||||||
<view class="st">学生信息</view>
|
|
||||||
</view>
|
|
||||||
<view class="th">
|
|
||||||
<view class="stname">姓名</view>
|
|
||||||
<view class="sex">性别</view>
|
|
||||||
<view class="age">年龄</view>
|
|
||||||
<view class="class">班级</view>
|
|
||||||
<view class="score">成绩</view>
|
|
||||||
</view>
|
|
||||||
<view class="tr" v-for="item in studentList">
|
|
||||||
<view class="stname">{{item.studentName}}</view>
|
|
||||||
<view class="sex">{{item.studentSex | formatSex}} </view>
|
|
||||||
<view class="age">{{item.studentAge}}岁</view>
|
|
||||||
<view class="class">{{item.className}}</view>
|
|
||||||
<view class="read">
|
|
||||||
<navigator :url="`/pages/home/home?studentId=${item.studentId}`
|
|
||||||
">查看</navigator>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="kindergarten">
|
|
||||||
<view class="stinfo">
|
|
||||||
<img src="/static/children.png" alt="" sizes="" srcset="">
|
|
||||||
<text>幼儿园信息</text>
|
|
||||||
</view>
|
|
||||||
<view class="th">
|
|
||||||
<view class="kinderclass" style="line-height: 100rpx;height: 100rpx;">幼儿园</view>
|
|
||||||
<view class="teacher" style="line-height: 100rpx;height: 100rpx;">班主任</view>
|
|
||||||
</view>
|
|
||||||
<view class="tr" v-for="item in classList">
|
|
||||||
<view class="kinderclass">{{item.kindergartenName}}</view>
|
|
||||||
<view class="teacher">
|
|
||||||
<span class='teachername'> {{item.classTeacher}}</span>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="parentinfo">
|
|
||||||
<view class="stinfo">
|
|
||||||
<img src="/static/parent.png" alt="" sizes="" srcset="">
|
|
||||||
<text>家长信息</text>
|
|
||||||
</view>
|
|
||||||
<view class="th">
|
|
||||||
<view class="parent">家长</view>
|
|
||||||
<view class="phone">电话</view>
|
|
||||||
</view>
|
|
||||||
<view class="tr">
|
|
||||||
<view class="parent">{{parentList.parentName}}</view>
|
|
||||||
<view class="phone">{{parentList.phone}}</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!-- </view> -->
|
|
||||||
<view class="masks" style="" v-if="mask">
|
<view class="masks" style="" v-if="mask">
|
||||||
<view class="mask">
|
<view class="mask">
|
||||||
<view class="imageitem">
|
<view class="imageitem">
|
||||||
@ -119,13 +41,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
top: true,
|
top: true,
|
||||||
top2: false,
|
|
||||||
login: false,
|
|
||||||
mask: false,
|
mask: false,
|
||||||
mask2: false,
|
|
||||||
before: false,
|
|
||||||
stuinfos: false,
|
|
||||||
tip: true,
|
|
||||||
yonghuwx: [],
|
yonghuwx: [],
|
||||||
DATAList: [],
|
DATAList: [],
|
||||||
logincode: '',
|
logincode: '',
|
||||||
@ -145,10 +61,6 @@
|
|||||||
key: 'user',
|
key: 'user',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
that.yonghuwx = res.data
|
that.yonghuwx = res.data
|
||||||
that.login = true
|
|
||||||
that.stuinfos = true
|
|
||||||
that.tip = false
|
|
||||||
that.top2 = true
|
|
||||||
that.top = false
|
that.top = false
|
||||||
that.getPreOrderById();
|
that.getPreOrderById();
|
||||||
// that.mask = true
|
// that.mask = true
|
||||||
@ -187,10 +99,6 @@
|
|||||||
url: '/pages/homepage/homepage'
|
url: '/pages/homepage/homepage'
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 500)
|
||||||
this.login = true
|
|
||||||
this.stuinfos = true
|
|
||||||
this.tip = false
|
|
||||||
this.top2 = true
|
|
||||||
this.top = false
|
this.top = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -202,10 +110,8 @@
|
|||||||
wx.login({
|
wx.login({
|
||||||
provider: 'weixin',
|
provider: 'weixin',
|
||||||
success: function(loginRes) {
|
success: function(loginRes) {
|
||||||
|
|
||||||
that.logincode = loginRes.code
|
that.logincode = loginRes.code
|
||||||
that.getPreOrderById();
|
that.getPreOrderById();
|
||||||
// that.mask2 = false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -220,8 +126,6 @@
|
|||||||
key: 'user',
|
key: 'user',
|
||||||
data: res.userInfo
|
data: res.userInfo
|
||||||
});
|
});
|
||||||
|
|
||||||
that.mask2 = true
|
|
||||||
},
|
},
|
||||||
fail(res) {
|
fail(res) {
|
||||||
//失败则返回home页面
|
//失败则返回home页面
|
||||||
@ -231,10 +135,7 @@
|
|||||||
info() {
|
info() {
|
||||||
const items = uni.getStorageSync("this.DATAList");
|
const items = uni.getStorageSync("this.DATAList");
|
||||||
// const items = JSON.parse(this.DATAList);
|
// const items = JSON.parse(this.DATAList);
|
||||||
console.log(items, 'list111111111111111111')
|
loginLogging(items).then(res => {})
|
||||||
loginLogging(items).then(res => {
|
|
||||||
console.log(res, '999999999999')
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getInfoByPhoneinfo() {
|
getInfoByPhoneinfo() {
|
||||||
var that = this
|
var that = this
|
||||||
@ -245,8 +146,6 @@
|
|||||||
let items = JSON.stringify(this.DATAList);
|
let items = JSON.stringify(this.DATAList);
|
||||||
uni.setStorageSync("this.DATAList", items)
|
uni.setStorageSync("this.DATAList", items)
|
||||||
this.info();
|
this.info();
|
||||||
|
|
||||||
|
|
||||||
this.studentList = res.data.studentInfoList;
|
this.studentList = res.data.studentInfoList;
|
||||||
this.classList = res.data.classInfoList;
|
this.classList = res.data.classInfoList;
|
||||||
this.parentList = res.data;
|
this.parentList = res.data;
|
||||||
@ -255,11 +154,6 @@
|
|||||||
obj.push(e.studentId)
|
obj.push(e.studentId)
|
||||||
})
|
})
|
||||||
uni.setStorageSync("studentId", obj)
|
uni.setStorageSync("studentId", obj)
|
||||||
console.log(obj, '9898989898')
|
|
||||||
// that.login = true
|
|
||||||
// that.stuinfos = true
|
|
||||||
// that.tip = false
|
|
||||||
// that.top2 = true
|
|
||||||
// that.top = false
|
// that.top = false
|
||||||
// this.mask = true;
|
// this.mask = true;
|
||||||
} else {
|
} else {
|
||||||
@ -294,10 +188,6 @@
|
|||||||
that.getInfoByPhoneinfo();
|
that.getInfoByPhoneinfo();
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
that.login = false
|
|
||||||
that.stuinfos = false
|
|
||||||
that.tip = true
|
|
||||||
that.top2 = false
|
|
||||||
that.top = true
|
that.top = true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -410,14 +300,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mask2 {
|
|
||||||
width: 70%;
|
|
||||||
height: 400rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
margin: 200rpx auto;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sq {
|
.sq {
|
||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
@ -484,14 +366,6 @@
|
|||||||
/* display:inline-block; */
|
/* display:inline-block; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.top2 {
|
|
||||||
/* background-color: #4486e8; */
|
|
||||||
background-image: linear-gradient(#55C5E3, #fff);
|
|
||||||
width: 100%;
|
|
||||||
height: 400rpx;
|
|
||||||
float: left;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
@ -582,39 +456,6 @@
|
|||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 登陆 */
|
|
||||||
.login {
|
|
||||||
width: 200rpx;
|
|
||||||
height: 200rpx;
|
|
||||||
/* background-color: red; */
|
|
||||||
margin: 0 auto;
|
|
||||||
margin-top: -100rpx;
|
|
||||||
margin-left: 40%;
|
|
||||||
font-size: 35rpx;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stuinfos {
|
|
||||||
margin-left: 3.3%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tip button {
|
|
||||||
/* background-color: #35A97A; */
|
|
||||||
/* background: linear-gradient(to right,#6ACAA3,#35A97A); */
|
|
||||||
color: #fff;
|
|
||||||
background: linear-gradient(90deg, #6ACAA3, #37A97B);
|
|
||||||
}
|
|
||||||
|
|
||||||
.tip {
|
|
||||||
/* width: 357rpx;
|
|
||||||
height: 97rpx; */
|
|
||||||
/* background-color:orchid; */
|
|
||||||
/* font-size: 38rpx;
|
|
||||||
margin: 0 auto;
|
|
||||||
color: #35A97A; */
|
|
||||||
/* margin-top: 100%; */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 学生信息 */
|
/* 学生信息 */
|
||||||
.student {
|
.student {
|
||||||
width: 700rpx;
|
width: 700rpx;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user