维护
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
|
||||
@ -1,6 +1,6 @@
|
||||
import request from "../request.js"
|
||||
|
||||
export function getPreOrderById(data,data2) {
|
||||
export function getPreOrderById(data, data2) {
|
||||
return request({
|
||||
url: `/kindergarten/applet/appletLogin?loginCode=${data}&phoneCode=${data2}`,
|
||||
method: 'GET'
|
||||
@ -11,7 +11,7 @@ export function getStudentScore(data) {
|
||||
return request({
|
||||
url: `/kindergarten/applet/getStudentScoreInfo?studentId=${data}`,
|
||||
method: 'GET'
|
||||
})
|
||||
})
|
||||
}
|
||||
//绑定家长手机号
|
||||
export function bindParent(data) {
|
||||
@ -28,10 +28,18 @@ export function getInfoByPhone(data) {
|
||||
return request({
|
||||
url: `/kindergarten/applet/getInfoByPhone?phone=${data}`,
|
||||
method: 'GET'
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function getReportDownAddress(studentId, batchCode) {
|
||||
return request({
|
||||
url: `/kindergarten/applet/getReportDownAddress?studentId=${studentId}&batchCode=${batchCode}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// export function addConfirmOrder(data) {
|
||||
// return request({
|
||||
// url: ``,
|
||||
|
||||
@ -62,7 +62,9 @@
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"lazyCodeLoading" : "requiredComponents",
|
||||
"permission" : {}
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
|
||||
<view class="test">幼儿体质检测记录</view>
|
||||
<view class="score" v-for="item in StudentScore">
|
||||
<view class="">
|
||||
@ -8,34 +7,65 @@
|
||||
</view>
|
||||
<view class="th">
|
||||
<view class="overallScore">综合得分:{{item.totalFraction}}</view>
|
||||
<view class="time">时间:{{item.createTime}}</view>
|
||||
<view class="time">时间:{{item.createTime}}</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>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getStudentScore
|
||||
getStudentScore,
|
||||
getReportDownAddress
|
||||
} from '@/api/index/index.js'
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
loading: false,
|
||||
yonghuwx: [],
|
||||
studentId: '',
|
||||
StudentScore: [],
|
||||
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
this.studentId = options.studentId
|
||||
this.getStudentScore()
|
||||
|
||||
},
|
||||
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(this.studentId).then(res => {
|
||||
console.log((res))
|
||||
@ -63,7 +93,6 @@
|
||||
//失败则返回home页面
|
||||
},
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -127,8 +156,9 @@
|
||||
border-bottom: lightsteelblue 2rpx solid;
|
||||
text-align: center;
|
||||
padding-left: 40rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.time {
|
||||
height: 100rpx;
|
||||
width: 50%;
|
||||
@ -139,6 +169,7 @@
|
||||
/* background-color: #4486e8; */
|
||||
/* float: left; */
|
||||
}
|
||||
|
||||
.report {
|
||||
height: 100rpx;
|
||||
/* width: 50%; */
|
||||
@ -147,7 +178,7 @@
|
||||
/* border-bottom: lightsteelblue 2rpx solid; */
|
||||
/* margin-top: 100rpx; */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.th {
|
||||
|
||||
@ -5,12 +5,15 @@
|
||||
<view class="nicheng" v-if="login">
|
||||
<view class="tx-w">
|
||||
<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>
|
||||
<view class="infos">
|
||||
<view class="studentName">姓名:{{parentList.parentName}}</view>
|
||||
<view class="name">昵称:{{yonghuwx.nickName}} </view>
|
||||
<view class="studentName" v-if="parentList.parentName==''">姓名:{{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>
|
||||
@ -40,7 +43,6 @@
|
||||
|
||||
</view>
|
||||
<view class="th">
|
||||
|
||||
<view class="stname">姓名</view>
|
||||
<view class="sex">性别</view>
|
||||
<view class="age">年龄</view>
|
||||
@ -51,7 +53,7 @@
|
||||
<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="age">{{item.studentAge}}岁</view>
|
||||
<view class="class">{{item.className}}</view>
|
||||
<view class="read">
|
||||
<navigator :url="`/pages/home/home?studentId=${item.studentId}`
|
||||
@ -63,16 +65,16 @@
|
||||
<view class="stinfo">
|
||||
<img src="/static/children.png" alt="" sizes="" srcset="">
|
||||
<text>幼儿园信息</text>
|
||||
|
||||
</view>
|
||||
<view class="th">
|
||||
<view class="kinderclass">幼儿园</view>
|
||||
<view class="teacher">班主任</view>
|
||||
<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">{{item.classTeacher}}</view>
|
||||
|
||||
<view class="teacher">
|
||||
<span class='teachername'> {{item.classTeacher}}</span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@ -106,8 +108,6 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="masks" style="" v-if="mask2">
|
||||
<view class="mask2">
|
||||
<view class="title">
|
||||
@ -117,7 +117,6 @@
|
||||
<!-- <img src="/static/sq.png" alt="" sizes="" srcset=""> -->
|
||||
<img src="/static/sq1.png" alt="" sizes="" srcset="">
|
||||
</view>
|
||||
|
||||
<view class="text">
|
||||
授权绑定您的手机号码
|
||||
</view>
|
||||
@ -183,7 +182,7 @@
|
||||
uni.navigateTo({
|
||||
url: `/pages/phone/phone?openId=${openid}`
|
||||
})
|
||||
this.mask=false;
|
||||
this.mask = false;
|
||||
},
|
||||
getPreOrderById() {
|
||||
getPreOrderById(this.logincode, this.phonecode).then(res => {
|
||||
@ -209,7 +208,6 @@
|
||||
this.top = false
|
||||
this.mask2 = false;
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -251,7 +249,6 @@
|
||||
},
|
||||
|
||||
getInfoByPhoneinfo() {
|
||||
|
||||
getInfoByPhone(this.phone).then(res => {
|
||||
if (res.code == 200) {
|
||||
console.log(res)
|
||||
@ -274,31 +271,47 @@
|
||||
return sexEnum[str];
|
||||
},
|
||||
},
|
||||
onShow(){
|
||||
},
|
||||
onShow() {},
|
||||
onLoad(options) {
|
||||
let that = this;
|
||||
uni.getStorage({
|
||||
key: 'phone',
|
||||
success: function(res) {
|
||||
that.phone = res.data
|
||||
// that.mask = true
|
||||
that.getInfoByPhoneinfo();
|
||||
}
|
||||
});
|
||||
uni.getStorage({
|
||||
key: 'user',
|
||||
success: function(res) {
|
||||
that.yonghuwx = res.data
|
||||
console.log(that.yonghuwx);
|
||||
that.login = true
|
||||
that.stuinfos = true
|
||||
that.tip = false
|
||||
that.top2 = true
|
||||
that.top = false
|
||||
// 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 {
|
||||
width: 340rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
padding-left: 10rpx;
|
||||
width: 400rpx;
|
||||
/* height: 100rpx; */
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
/* background-color: red; */
|
||||
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 {
|
||||
width: 360rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
/* height: 100rpx; */
|
||||
/* line-height: 100rpx; */
|
||||
text-align: center;
|
||||
/* background-color: red; */
|
||||
border-bottom: lightsteelblue 2rpx solid;
|
||||
/* 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