Commit 05f29d5b authored by Damon's avatar Damon

Merge branch 'dev-v1.0.0' of git.banshouhui.com:wuzhenzhe/study into dev-v1.0.0

parents d6943d70 0373aabd
......@@ -44,14 +44,15 @@ export default {
},
computed: {
examTypeText() {
return this.info.echoMap && this.info.echoMap.type
var str = this.info.echoMap && this.info.echoMap.type
return str || ''
},
provinceName() {
return (
var str =
this.info.echoMap &&
this.info.echoMap.provinceId &&
this.info.echoMap.provinceId.fullName
)
return str || ''
},
isAdd() {
return this.type == 'add'
......
......@@ -127,13 +127,13 @@ export default {
return this.learnData.institutionName || '模考大师'
},
maxpoint() {
return String(this.learnData.startDate).length > 0 ? this.learnData.maxPoint : ''
return this.learnData.maxPoint || ''
},
learnTime() {
return String(this.learnData.startDate).length > 0 ? this.learnData.time : ''
},
resultForTest() {
return String(this.learnData.startDate).length > 0 ? ((this.learnData.maxPoint >= 80 && '合格') || '不合格') : ''
return this.learnData.maxPoint ? ((this.learnData.maxPoint >= 80 && '合格') || '不合格') : ''
},
},
methods: {
......@@ -159,7 +159,8 @@ export default {
.begin-answer {
display: flex;
flex-direction: column;
background-color: #2953ff;
background-image: linear-gradient(to top, #22222E 0%, #444550 40%);
background-color: #22222E;
background-size: 100% 920rpx;
background-repeat: no-repeat;
height: 100vh;
......
......@@ -193,7 +193,6 @@ export default {
},
methods: {
submit(){
console.log('cert', this.certId)
if(!this.certId){
this.$u.toast('请填写证件号码!')
return
......@@ -206,9 +205,7 @@ export default {
personalCertNum: this.certId,
personalName: this.certName
}
console.log(param)
this.$u.api.getCertFromOut(param).then((res) => {
console.log('证书查询结果', res)
if(!res){
this.$u.toast('证书暂未公布')
return
......@@ -232,7 +229,6 @@ export default {
//获取国家证书数据
getCountryCert(){
this.$u.api.getCountryCertList().then((res)=>{
console.log('国家证',res)
if(!res || res.length == 0){
return
}
......@@ -259,13 +255,11 @@ export default {
}
this.logTime = logDate
this.countryCertList = JSON.parse(JSON.stringify(data))
console.log('list data', this.countryCertList)
})
},
//获取学时数据
getLearnCert(){
this.$u.api.getlearnCertList().then((res)=>{
console.log('学时证', res);
if(!res || res.length == 0){
//空显示缺醒
return
......@@ -284,15 +278,12 @@ export default {
item.key = key
data.push(item)
}
console.log('学时证处理结果', data)
this.learnCertList = JSON.parse(JSON.stringify(data))
})
},
goDetail(param){
console.log('goto param', param)
if(param[0].type == 'learn'){
param = param[0]
console.log('点击学时证,请求详情,组装参数再传过去')
this.$u.api.getlearnCertDetail(param.id).then((res)=>{
param.data = res
getApp().globalData.certItemData = param
......@@ -303,7 +294,6 @@ export default {
console.log(err)
})
}else{
console.log('点击国家证,直接参数带过去', param)
getApp().globalData.certItemData = param
this.$u.route({
url: 'pages/cert/detail',
......@@ -315,10 +305,8 @@ export default {
var oDate2 = new Date(date2)
if(oDate1.getTime() > oDate2.getTime()){
return date1
// console.log('第一个大')
} else {
return date2
// console.log('第二个大')
}
},
actionSheetCallback(index) {
......@@ -337,9 +325,7 @@ export default {
onRestore() {
this.triggered = 'restore' // 需要重置
},
onAbort() {
console.log('onAbort')
},
onAbort() {},
transition(e) {
// swiper-item左右移动,通知tabs的滑块跟随移动
let dx = e.detail.dx
......@@ -358,7 +344,6 @@ export default {
},
//tabs通知swiper切换
tabsChange(index) {
console.log('当前tabs index',index)
this.swiperCurrent = Number(index)
switch (this.swiperCurrent) {
case 1:
......@@ -519,7 +504,7 @@ page {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 30rpx;
padding: 200rpx 30rpx 30rpx 30rpx;
text-align: center;
}
</style>
......@@ -23,7 +23,7 @@
<text v-else>{{ title }}</text>
<u-icon class="icon-view" name="arrow-up-fill"></u-icon>
</view>
<view>{{ orgIdText }}</view>
<view v-if="showOrgId">{{ orgIdText }}</view>
<view v-if="noExam" class="tip-view">
<text>您还未选择题库,请先选择题库</text>
</view>
......@@ -90,7 +90,11 @@
</view>
</view>
<view class="bottom-view">
<image class="bottom-image" :src="mokaodashiImage"></image>
<image
class="bottom-image"
:src="mokaodashiImage"
@click="handleClickBlank"
></image>
<view>想要轻松考过,首选模考大师</view>
</view>
</view>
......@@ -126,6 +130,8 @@ export default {
finishCount: 0,
pass: this.$u.random(95, 99),
isAdd: false, // 题库切换
tapCount: 0, // 点击底部logo五次,显示机构id
showOrgId: false, // 显示机构id
}
},
computed: {
......@@ -566,6 +572,17 @@ export default {
},
})
},
handleClickBlank() {
this.tapCount++
if (this.tapCount >= 5) {
this.showOrgId = !this.showOrgId
this.tapCount = 0
} else if (this.tapCount == 1) {
setTimeout(() => {
this.tapCount = 0
}, 3000)
}
},
},
}
</script>
......
......@@ -21,13 +21,8 @@
:statusStyle="item.statusStyle"
></my-subject>
</view>
<view class="content" v-else>
<u-image
width="374rpx"
height="322rpx"
:src="nothing"
style="margin-top: 100rpx;"
></u-image>
<view class="content" v-else style="padding-top: 300rpx;">
<u-image width="374rpx" height="322rpx" :src="nothing"></u-image>
<text style="margin-top: 20rpx;font-size: 28rpx;color: #9EA5BB;"
>当前暂无题库内容</text
>
......@@ -162,7 +157,7 @@ page {
background-color: #f7f9fc;
background-size: 100% 920rpx;
background-repeat: no-repeat;
height: 120vh;
height: 100vh;
position: absolute;
top: 0;
width: 100%;
......@@ -172,8 +167,10 @@ page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
/* justify-content: center; */
padding: 30rpx;
height: 100%;
overflow: auto;
}
.subject-item {
......
......@@ -188,7 +188,6 @@ export default {
})
.then((res) => {
uni.hideLoading()
console.log('识别结果', res)
this.student.certificateValidityDate = res.expire
})
.catch((data) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment