This commit is contained in:
shijingjing
2023-03-22 10:54:20 +08:00
parent 6d4f30f737
commit 0fe811958d
3 changed files with 23 additions and 15 deletions

View File

@@ -21,10 +21,10 @@
</div> </div>
<div class="card"> <div class="card">
<img class="card-left" src="https://cdn.cunwuyun.cn/fengdu/img-fengshouyinhang.png" @click="$linkTo('/mods/AppNewFarmerBank/AppNewFarmerBank')" alt=""> <img class="card-left" src="https://cdn.cunwuyun.cn/fengdu/yinhang.svg" @click="$linkTo('/mods/AppNewFarmerBank/AppNewFarmerBank')" alt="">
<div class="card-right"> <div class="card-right">
<img src="https://cdn.cunwuyun.cn/fengdu/img-fengduxinnongren.png" alt="" @click="$linkTo('/mods/AppNewFarmer/AppNewFarmer')"> <img src="https://cdn.cunwuyun.cn/fengdu/xinnongren.png" alt="" @click="$linkTo('/mods/AppNewFarmer/AppNewFarmer')">
<img src="https://cdn.cunwuyun.cn/fengdu/ic-jiaoyuhuzhu.png" alt="" @click="$linkTo('/mods/AppHelpEachOther/AppHelpEachOther')"> <img src="https://cdn.cunwuyun.cn/fengdu/jiaoyuhuzhu.png" alt="" @click="$linkTo('/mods/AppHelpEachOther/AppHelpEachOther')">
</div> </div>
</div> </div>
<AiLogin ref="login"/> <AiLogin ref="login"/>

View File

@@ -7,14 +7,15 @@
<u-icon name="arrow-down" color="#666" size="24" style="margin-left: 4px"></u-icon> <u-icon name="arrow-down" color="#666" size="24" style="margin-left: 4px"></u-icon>
</AiSelect> </AiSelect>
<div class="qrcode-content"> <div class="qrcode-content">
<AiImage :src="picUrl" class="qrcode-img" v-if="picUrl" preview/> <!-- <AiImage :src="picUrl" class="qrcode-img" v-if="picUrl" preview/> -->
<web-view :webview-styles="webviewStyles" class="qrcode-img" v-if="picUrl" :src="picUrl"></web-view>
<div v-else class="tips"> <div v-else class="tips">
<AiEmpty :description="`暂未选择群聊`" class="emptyWrap"/> <AiEmpty :description="`暂未选择群聊`" class="emptyWrap"/>
</div> </div>
</div> </div>
<div class="jionGroup"> <div class="jionGroup">
长按识别二维码或扫码加入群聊 长按保存图片或扫码加入群聊
<!-- 通过扫一扫加入与通过插件加入只能选一种 --> <!-- 通过扫一扫加入与通过插件加入只能选一种 -->
<!-- <cell class="group" @startmessage="startmessage" @completemessage="completemessage" <!-- <cell class="group" @startmessage="startmessage" @completemessage="completemessage"
url='picUrl' v-if="picUrl"></cell> --> url='picUrl' v-if="picUrl"></cell> -->
@@ -42,6 +43,10 @@ export default {
list: [], list: [],
picUrl: '', picUrl: '',
idName: '', idName: '',
webviewStyles: {
width: '400px',
height: '400px',
}
} }
}, },
onShow() { onShow() {

View File

@@ -7,7 +7,6 @@
<p class="all_test">全部考试</p> <p class="all_test">全部考试</p>
<div class="card_list" v-if="testList.length"> <div class="card_list" v-if="testList.length">
<!-- @scrolltolower="scrolltLower" -->
<scroll-view :style="{height: height + 'px'}" scroll-y> <scroll-view :style="{height: height + 'px'}" scroll-y>
<div class="card" v-for="item in testList" :key="item.id"> <div class="card" v-for="item in testList" :key="item.id">
<div class="card_top"> <div class="card_top">
@@ -19,10 +18,10 @@
<span>{{ item.passNumber }}</span>人通过/<span>{{ item.examinationNumber }}</span>人参与 <span>{{ item.passNumber }}</span>人通过/<span>{{ item.examinationNumber }}</span>人参与
</div> </div>
<div class="result" v-if="item.myRecord"> <div class="result" v-if="item.myRecord">
<img class="result-img" v-show="item.myRecord.assessmentType == 0" src="https://cdn.cunwuyun.cn/qujing/youxiu.png" alt=""> <img class="result-img" v-show="item.myRecord.assessmentType == 0" src="https://cdn.cunwuyun.cn/qujing/xuefuwuche.png" alt="">
<img class="result-img" v-show="item.myRecord.assessmentType == 1" src="https://cdn.cunwuyun.cn/qujing/lianghao.png" alt=""> <img class="result-img" v-show="item.myRecord.assessmentType == 1" src="https://cdn.cunwuyun.cn/qujing/caigaobadou.png" alt="">
<img class="result-img" v-show="item.myRecord.assessmentType == 2" src="https://cdn.cunwuyun.cn/qujing/jige.png" alt=""> <img class="result-img" v-show="item.myRecord.assessmentType == 2" src="https://cdn.cunwuyun.cn/qujing/hege.png" alt="">
<img class="result-img" v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/bujige.png" alt=""> <img class="result-img" v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/buhege.png" alt="">
</div> </div>
<div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div> <div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
</div> </div>
@@ -83,6 +82,7 @@ export default {
current: 1, current: 1,
testList: [], testList: [],
testId: '', testId: '',
studyDuration: '',
} }
}, },
computed: { computed: {
@@ -98,7 +98,6 @@ export default {
} }
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
// this.testList = this.current==1? res.data.records: [...this.testList,...res.data.records]
this.testList = res.data.records this.testList = res.data.records
} }
}) })
@@ -118,6 +117,14 @@ export default {
this.$emit('toTest',id) this.$emit('toTest',id)
} }
}, },
// 查看累计时长
getStudyDuration() {
this.$instance.post(`/app/appwechatuserqujing/queryStudyDuration`).then(res => {
if (res?.data) {
this.studyDuration = res.data.studyDuration
}
})
},
comfirm() { comfirm() {
if(this.flag) return if(this.flag) return
@@ -156,10 +163,6 @@ export default {
this.$u.toast(err.msg) this.$u.toast(err.msg)
}) })
}, },
// scrolltLower() {
// this.current++
// this.getList()
// }
}, },
} }
</script> </script>