维护
This commit is contained in:
parent
173be2e785
commit
669e845324
@ -1,4 +1,4 @@
|
|||||||
var baseurl = "http://192.168.16.81:8080";
|
var baseurl = "http://192.168.43.146:8080";
|
||||||
|
|
||||||
|
|
||||||
export default baseurl
|
export default baseurl
|
||||||
@ -1,6 +1,6 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
|
||||||
export function getPreOrderById(data,data2) {
|
export function getPreOrderById(data, data2) {
|
||||||
return request({
|
return request({
|
||||||
url: `/kindergarten/applet/appletLogin?loginCode=${data}&phoneCode=${data2}`,
|
url: `/kindergarten/applet/appletLogin?loginCode=${data}&phoneCode=${data2}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
@ -11,7 +11,7 @@ export function getStudentScore(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: `/kindergarten/applet/getStudentScoreInfo?studentId=${data}`,
|
url: `/kindergarten/applet/getStudentScoreInfo?studentId=${data}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//绑定家长手机号
|
//绑定家长手机号
|
||||||
export function bindParent(data) {
|
export function bindParent(data) {
|
||||||
@ -28,10 +28,18 @@ export function getInfoByPhone(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: `/kindergarten/applet/getInfoByPhone?phone=${data}`,
|
url: `/kindergarten/applet/getInfoByPhone?phone=${data}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function getReportDownAddress(studentId, batchCode) {
|
||||||
|
return request({
|
||||||
|
url: `/kindergarten/applet/getReportDownAddress?studentId=${studentId}&batchCode=${batchCode}`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// export function addConfirmOrder(data) {
|
// export function addConfirmOrder(data) {
|
||||||
// return request({
|
// return request({
|
||||||
// url: ``,
|
// url: ``,
|
||||||
|
|||||||
@ -62,7 +62,9 @@
|
|||||||
},
|
},
|
||||||
"uniStatistics" : {
|
"uniStatistics" : {
|
||||||
"enable" : false
|
"enable" : false
|
||||||
}
|
},
|
||||||
|
"lazyCodeLoading" : "requiredComponents",
|
||||||
|
"permission" : {}
|
||||||
},
|
},
|
||||||
"mp-alipay" : {
|
"mp-alipay" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
|
||||||
<view class="test">幼儿体质检测记录</view>
|
<view class="test">幼儿体质检测记录</view>
|
||||||
<view class="score" v-for="item in StudentScore">
|
<view class="score" v-for="item in StudentScore">
|
||||||
<view class="">
|
<view class="">
|
||||||
@ -8,34 +7,65 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="th">
|
<view class="th">
|
||||||
<view class="overallScore">综合得分:{{item.totalFraction}}</view>
|
<view class="overallScore">综合得分:{{item.totalFraction}}</view>
|
||||||
<view class="time">时间:{{item.createTime}}</view>
|
<view class="time">时间:{{item.createTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="report">查看报告</view>
|
<view class="report" v-show="item.existFlag==false">查看报告</view>
|
||||||
|
<view class="report" style="color: #4486e8;" @tap='lookbook(item)' v-show="item.existFlag">查看报告</view>
|
||||||
|
<u-loading-page :loading="loading" loading-text="正在打开报告" loading-mode="semicircle"></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getStudentScore
|
getStudentScore,
|
||||||
|
getReportDownAddress
|
||||||
} from '@/api/index/index.js'
|
} from '@/api/index/index.js'
|
||||||
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
show: false,
|
||||||
|
loading: false,
|
||||||
yonghuwx: [],
|
yonghuwx: [],
|
||||||
studentId: '',
|
studentId: '',
|
||||||
StudentScore: [],
|
StudentScore: [],
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(options)
|
console.log(options)
|
||||||
this.studentId = options.studentId
|
this.studentId = options.studentId
|
||||||
this.getStudentScore()
|
this.getStudentScore()
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
lookbook(item) {
|
||||||
|
console.log(item)
|
||||||
|
this.loading = true
|
||||||
|
var that = this
|
||||||
|
uni.downloadFile({
|
||||||
|
url: baseurl + item.downloadAddress,
|
||||||
|
success: function(res) {
|
||||||
|
var filePath = res.tempFilePath;
|
||||||
|
uni.openDocument({
|
||||||
|
filePath: filePath,
|
||||||
|
showMenu: true,
|
||||||
|
success: function(res) {
|
||||||
|
that.loading = false
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
that.loading = false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// getReportDownAddress(this.studentId, item.batchCode).then(res => {
|
||||||
|
// console.log(res)
|
||||||
|
// if (res.data.downloadAddress != null) {
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
},
|
||||||
getStudentScore() {
|
getStudentScore() {
|
||||||
getStudentScore(this.studentId).then(res => {
|
getStudentScore(this.studentId).then(res => {
|
||||||
console.log((res))
|
console.log((res))
|
||||||
@ -63,7 +93,6 @@
|
|||||||
//失败则返回home页面
|
//失败则返回home页面
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -127,8 +156,9 @@
|
|||||||
border-bottom: lightsteelblue 2rpx solid;
|
border-bottom: lightsteelblue 2rpx solid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-left: 40rpx;
|
padding-left: 40rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
@ -139,6 +169,7 @@
|
|||||||
/* background-color: #4486e8; */
|
/* background-color: #4486e8; */
|
||||||
/* float: left; */
|
/* float: left; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.report {
|
.report {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
/* width: 50%; */
|
/* width: 50%; */
|
||||||
@ -147,7 +178,7 @@
|
|||||||
/* border-bottom: lightsteelblue 2rpx solid; */
|
/* border-bottom: lightsteelblue 2rpx solid; */
|
||||||
/* margin-top: 100rpx; */
|
/* margin-top: 100rpx; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.th {
|
.th {
|
||||||
|
|||||||
@ -5,12 +5,15 @@
|
|||||||
<view class="nicheng" v-if="login">
|
<view class="nicheng" v-if="login">
|
||||||
<view class="tx-w">
|
<view class="tx-w">
|
||||||
<view class="tx">
|
<view class="tx">
|
||||||
<image class="tx-img" :src="yonghuwx.avatarUrl"></image>
|
<image class="tx-img" src="/static/dl.png" v-if="yonghuwx.avatarUrl==''"></image>
|
||||||
|
<image class="tx-img" :src="yonghuwx.avatarUrl" v-else></image>
|
||||||
<view class="zx"></view>
|
<view class="zx"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="infos">
|
<view class="infos">
|
||||||
<view class="studentName">姓名:{{parentList.parentName}}</view>
|
<view class="studentName" v-if="parentList.parentName==''">姓名:{{yonghuwx.nickName}}</view>
|
||||||
<view class="name">昵称:{{yonghuwx.nickName}} </view>
|
<view class="studentName" v-else>姓名:{{parentList.parentName}}</view>
|
||||||
|
<view class="name" v-if="yonghuwx.nickName==''">昵称:{{parentList.parentName}} </view>
|
||||||
|
<view class="name" v-else>昵称:{{yonghuwx.nickName}} </view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -40,7 +43,6 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="th">
|
<view class="th">
|
||||||
|
|
||||||
<view class="stname">姓名</view>
|
<view class="stname">姓名</view>
|
||||||
<view class="sex">性别</view>
|
<view class="sex">性别</view>
|
||||||
<view class="age">年龄</view>
|
<view class="age">年龄</view>
|
||||||
@ -51,7 +53,7 @@
|
|||||||
<view class="tr" v-for="item in studentList">
|
<view class="tr" v-for="item in studentList">
|
||||||
<view class="stname">{{item.studentName}}</view>
|
<view class="stname">{{item.studentName}}</view>
|
||||||
<view class="sex">{{item.studentSex | formatSex}} </view>
|
<view class="sex">{{item.studentSex | formatSex}} </view>
|
||||||
<view class="age">{{item.studentAge}}</view>
|
<view class="age">{{item.studentAge}}岁</view>
|
||||||
<view class="class">{{item.className}}</view>
|
<view class="class">{{item.className}}</view>
|
||||||
<view class="read">
|
<view class="read">
|
||||||
<navigator :url="`/pages/home/home?studentId=${item.studentId}`
|
<navigator :url="`/pages/home/home?studentId=${item.studentId}`
|
||||||
@ -63,16 +65,16 @@
|
|||||||
<view class="stinfo">
|
<view class="stinfo">
|
||||||
<img src="/static/children.png" alt="" sizes="" srcset="">
|
<img src="/static/children.png" alt="" sizes="" srcset="">
|
||||||
<text>幼儿园信息</text>
|
<text>幼儿园信息</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="th">
|
<view class="th">
|
||||||
<view class="kinderclass">幼儿园</view>
|
<view class="kinderclass" style="line-height: 100rpx;height: 100rpx;">幼儿园</view>
|
||||||
<view class="teacher">班主任</view>
|
<view class="teacher" style="line-height: 100rpx;height: 100rpx;">班主任</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tr" v-for="item in classList">
|
<view class="tr" v-for="item in classList">
|
||||||
<view class="kinderclass">{{item.kindergartenName}}</view>
|
<view class="kinderclass">{{item.kindergartenName}}</view>
|
||||||
<view class="teacher">{{item.classTeacher}}</view>
|
<view class="teacher">
|
||||||
|
<span class='teachername'> {{item.classTeacher}}</span>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
@ -106,8 +108,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="masks" style="" v-if="mask2">
|
<view class="masks" style="" v-if="mask2">
|
||||||
<view class="mask2">
|
<view class="mask2">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
@ -117,7 +117,6 @@
|
|||||||
<!-- <img src="/static/sq.png" alt="" sizes="" srcset=""> -->
|
<!-- <img src="/static/sq.png" alt="" sizes="" srcset=""> -->
|
||||||
<img src="/static/sq1.png" alt="" sizes="" srcset="">
|
<img src="/static/sq1.png" alt="" sizes="" srcset="">
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="text">
|
<view class="text">
|
||||||
授权绑定您的手机号码
|
授权绑定您的手机号码
|
||||||
</view>
|
</view>
|
||||||
@ -183,7 +182,7 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/phone/phone?openId=${openid}`
|
url: `/pages/phone/phone?openId=${openid}`
|
||||||
})
|
})
|
||||||
this.mask=false;
|
this.mask = false;
|
||||||
},
|
},
|
||||||
getPreOrderById() {
|
getPreOrderById() {
|
||||||
getPreOrderById(this.logincode, this.phonecode).then(res => {
|
getPreOrderById(this.logincode, this.phonecode).then(res => {
|
||||||
@ -209,7 +208,6 @@
|
|||||||
this.top = false
|
this.top = false
|
||||||
this.mask2 = false;
|
this.mask2 = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -251,7 +249,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getInfoByPhoneinfo() {
|
getInfoByPhoneinfo() {
|
||||||
|
|
||||||
getInfoByPhone(this.phone).then(res => {
|
getInfoByPhone(this.phone).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
@ -274,31 +271,47 @@
|
|||||||
return sexEnum[str];
|
return sexEnum[str];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow() {},
|
||||||
},
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
let that = this;
|
let that = this;
|
||||||
uni.getStorage({
|
|
||||||
key: 'phone',
|
|
||||||
success: function(res) {
|
|
||||||
that.phone = res.data
|
|
||||||
// that.mask = true
|
|
||||||
that.getInfoByPhoneinfo();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: 'user',
|
key: 'user',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
that.yonghuwx = res.data
|
that.yonghuwx = res.data
|
||||||
console.log(that.yonghuwx);
|
|
||||||
that.login = true
|
that.login = true
|
||||||
that.stuinfos = true
|
that.stuinfos = true
|
||||||
that.tip = false
|
that.tip = false
|
||||||
that.top2 = true
|
that.top2 = true
|
||||||
that.top = false
|
that.top = false
|
||||||
// that.mask = true
|
// that.mask = true
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
console.log('1', (err))
|
||||||
|
that.login = false
|
||||||
|
that.stuinfos = false
|
||||||
|
that.tip = true
|
||||||
|
that.top2 = false
|
||||||
|
that.top = true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
uni.getStorage({
|
||||||
|
key: 'phone',
|
||||||
|
success: function(res) {
|
||||||
|
console.log((res))
|
||||||
|
that.phone = res.data
|
||||||
|
// that.mask = true
|
||||||
|
that.getInfoByPhoneinfo();
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
console.log('1', (err))
|
||||||
|
that.login = false
|
||||||
|
that.stuinfos = false
|
||||||
|
that.tip = true
|
||||||
|
that.top2 = false
|
||||||
|
that.top = true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -656,23 +669,34 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.kinderclass {
|
.kinderclass {
|
||||||
width: 340rpx;
|
padding-left: 10rpx;
|
||||||
height: 100rpx;
|
width: 400rpx;
|
||||||
line-height: 100rpx;
|
/* height: 100rpx; */
|
||||||
|
line-height: 50rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/* background-color: red; */
|
/* background-color: red; */
|
||||||
border-bottom: lightsteelblue 1px solid;
|
border-bottom: lightsteelblue 1px solid;
|
||||||
|
/* overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.teachername {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.teacher {
|
.teacher {
|
||||||
width: 360rpx;
|
width: 360rpx;
|
||||||
height: 100rpx;
|
/* height: 100rpx; */
|
||||||
line-height: 100rpx;
|
/* line-height: 100rpx; */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/* background-color: red; */
|
/* background-color: red; */
|
||||||
border-bottom: lightsteelblue 2rpx solid;
|
border-bottom: lightsteelblue 2rpx solid;
|
||||||
/* padding-left: 50px; */
|
/* padding-left: 50px; */
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
static/sq1.png
Normal file
BIN
static/sq1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
Loading…
Reference in New Issue
Block a user