This commit is contained in:
曹辉 2022-10-14 17:47:45 +08:00
parent 5c750c5ab8
commit bdd2ba7934
3 changed files with 49 additions and 5 deletions

View File

@ -1,4 +1,5 @@
var baseurl = "http://192.168.43.146:8080"; var baseurl = "https://kindergarten.xinelu.cn";
// var baseurl = "http://192.168.16.62:8080";
export default baseurl export default baseurl

View File

@ -9,10 +9,17 @@
<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" v-show="item.existFlag==false">查看报告</view> <!-- <view class="report" v-show="item.existFlag==false" @tap='showToast'>查看报告</view> -->
<u-cell class='report' v-if="item.existFlag==false" :title="aitem.title" v-for="(aitem, index) in list" :key="index"
:icon="aitem.iconUrl" @click="showToast(aitem)">
</u-cell>
<view class="report" style="color: #4486e8;" @tap='lookbook(item)' v-show="item.existFlag">查看报告</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> <u-loading-page :loading="loading" loading-text="正在打开报告" loading-mode="semicircle"></u-loading-page>
</view> </view>
<u-toast ref="uToast"></u-toast>
<u-cell-group title-bg-color="rgb(243, 244, 246)">
</u-cell-group>
</view> </view>
</template> </template>
@ -30,6 +37,13 @@
yonghuwx: [], yonghuwx: [],
studentId: '', studentId: '',
StudentScore: [], StudentScore: [],
show: false,
list: [{
type: 'error',
icon: false,
title: '查看报告',
message: "暂无报告",
}],
} }
}, },
onLoad(options) { onLoad(options) {
@ -38,6 +52,12 @@
this.getStudentScore() this.getStudentScore()
}, },
methods: { methods: {
showToast(params) {
this.$refs.uToast.show({
...params
})
},
lookbook(item) { lookbook(item) {
console.log(item) console.log(item)
this.loading = true this.loading = true
@ -98,7 +118,30 @@
} }
</script> </script>
<style> <style lang="scss">
.u-page {
padding: 0;
}
.u-cell-group__title__text {
font-weight: bold;
height: 100rpx;
/* width: 50%; */
line-height: 100rpx;
text-align: center;
font-size: 36rpx;
}
::v-deep .u-cell__title-text {
text-align: center;
}
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -261,8 +261,8 @@
// //
formatSex(str) { formatSex(str) {
const sexEnum = { const sexEnum = {
"FAMELE": "女", "FEMALE": "女",
"MALE": "男", "MALE": "男"
} }
return sexEnum[str]; return sexEnum[str];
}, },