维护
This commit is contained in:
parent
5c750c5ab8
commit
bdd2ba7934
@ -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
|
||||
@ -9,10 +9,17 @@
|
||||
<view class="overallScore">综合得分:{{item.totalFraction}}</view>
|
||||
<view class="time">时间:{{item.createTime}}</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>
|
||||
<u-loading-page :loading="loading" loading-text="正在打开报告" loading-mode="semicircle"></u-loading-page>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
<u-cell-group title-bg-color="rgb(243, 244, 246)">
|
||||
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -30,6 +37,13 @@
|
||||
yonghuwx: [],
|
||||
studentId: '',
|
||||
StudentScore: [],
|
||||
show: false,
|
||||
list: [{
|
||||
type: 'error',
|
||||
icon: false,
|
||||
title: '查看报告',
|
||||
message: "暂无报告",
|
||||
}],
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -38,6 +52,12 @@
|
||||
this.getStudentScore()
|
||||
},
|
||||
methods: {
|
||||
showToast(params) {
|
||||
this.$refs.uToast.show({
|
||||
...params
|
||||
})
|
||||
},
|
||||
|
||||
lookbook(item) {
|
||||
console.log(item)
|
||||
this.loading = true
|
||||
@ -98,7 +118,30 @@
|
||||
}
|
||||
</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 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@ -261,8 +261,8 @@
|
||||
// 格式化性别
|
||||
formatSex(str) {
|
||||
const sexEnum = {
|
||||
"FAMELE": "女",
|
||||
"MALE": "男",
|
||||
"FEMALE": "女",
|
||||
"MALE": "男"
|
||||
}
|
||||
return sexEnum[str];
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user