| | |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .uGridSelected { |
| | | background: #f4f4f4 !important; |
| | | } |
| | | |
| | | /*每个页面公共css */ |
| | | </style> |
| | |
| | | this.$store.state.questionList = [] |
| | | |
| | | var that = this |
| | | console.log(this.$store.state.UserData) |
| | | // 理论考试 |
| | | uni.request({ |
| | | url: "http://z4042833u6.wicp.vip/simulateExamRecord/beginExam", |
| | | method: 'POST', |
| | | data: { |
| | | idCardNo: option.id |
| | | idCardNo: this.$store.state.UserData.cardid |
| | | }, |
| | | success: (res) => { |
| | | var examObj = res.data.data.simulateExamRecord |
| | |
| | | enterExam() { |
| | | |
| | | uni.navigateTo({ |
| | | url: '/pages/exam/examTextPage?examType=exam&id=' + this.examItem.id |
| | | url: '/pages/exam/examTextPage' |
| | | }) |
| | | |
| | | }, |
| | |
| | | onLoad(options) { |
| | | // 页面跳转 传递对象 传对象 |
| | | options = { |
| | | id: '360198198812130014', |
| | | name: '保安员模拟考试', |
| | | examScore: 100, |
| | | examTime: 60, |
| | |
| | | <view class="title"></view> |
| | | <view class="list"> |
| | | <u-grid :col="3" :border="false"> |
| | | <u-grid-item bg-color="transparent" v-for="(item, index) in dataOne" :key="index"> |
| | | <u-grid-item bg-color="transparent" :class="{'uGridSelected': itemSelectFlag && index == 3}" |
| | | v-for="(item, index) in dataOne" :key="index"> |
| | | <navigator hover-class="none" class="nav-item" @click="goOnePage(item.url,index)"> |
| | | <image :src="item.img" mode="widthFix" class="nav-item-img"></image> |
| | | <u-badge :count="item.cout" :offset="[20, 20]"></u-badge> |
| | |
| | | return { |
| | | tabbar: this.$store.state.tabbar, |
| | | bashow: false, |
| | | itemSelectFlag: false, |
| | | dataOne: [{ |
| | | title: '治安巡查', |
| | | img: '/static/workbench/task2.png', |
| | |
| | | title: '电子证件', |
| | | img: '/static/workbench/task9.png', |
| | | url: '' |
| | | }, { |
| | | title: '模拟考试', |
| | | img: '/static/workbench/task5.png', |
| | | url: '' |
| | | } |
| | | // ,{ |
| | | // title:'模拟考试', |
| | |
| | | this.getNum(); |
| | | }, |
| | | onLoad() { |
| | | |
| | | if (this.$store.state.billFlag == true) { |
| | | this.dataTwo.push({ |
| | | title: '模拟考试', |
| | | img: '/static/workbench/task5.png', |
| | | url: '/pages/exam/startexam' |
| | | }) |
| | | } |
| | | }, |
| | | onBackPress(e) { |
| | | console.log("监听返回按钮事件2", e); |
| | |
| | | }, |
| | | //页面跳转 |
| | | goOnePage(url, index) { |
| | | |
| | | if (index == "3") { |
| | | this.bashow = !this.bashow; |
| | | |
| | | this.itemSelectFlag = !this.itemSelectFlag; |
| | | } |
| | | uni.navigateTo({ |
| | | url: url |
| | |
| | | }, |
| | | goTwoPage(url, index) { |
| | | if (index == "1") { |
| | | this.$refs.uToast.show({ |
| | | title: '功能研发中', |
| | | type: 'warning', |
| | | uni.navigateTo({ |
| | | url |
| | | }); |
| | | return; |
| | | } else { |