mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
提交弹窗
This commit is contained in:
@@ -11,14 +11,7 @@
|
||||
<u-icon class="top-bar-icon" :size="26" name="bell"></u-icon>
|
||||
</view> -->
|
||||
<view class="top-bar-center">
|
||||
<u-search
|
||||
placeholder="搜索"
|
||||
:clearabled="true"
|
||||
:showAction="false"
|
||||
:height="36"
|
||||
@focus="toSearch()"
|
||||
bgColor="#F7F7F7">
|
||||
</u-search>
|
||||
<u-search placeholder="搜索" :clearabled="true" :showAction="false" :height="36" @focus="toSearch()" bgColor="#F7F7F7"></u-search>
|
||||
<!-- <view class="top-bar-tab" @click="clicktab(1)" :class="{'active':tabIndex==1}">最热</view>
|
||||
<view class="top-bar-tab" @click="clicktab(0)" :class="{'active':tabIndex==0}">最新</view> -->
|
||||
</view>
|
||||
@@ -164,8 +157,11 @@
|
||||
</view>
|
||||
<u-overlay :show="signInShow">
|
||||
<view style="padding-top: 180upx;">
|
||||
<view style="margin-top: 180upx;width:624upx;margin: 0px auto;position: relative;">
|
||||
<img @click="signInShow=false" :src="`${context}/static/images/dlg202212.png`" style="width:624upx;height: 684upx;">
|
||||
<view style="margin-top: 180upx;width:586upx;margin: 0px auto;position: relative;text-align: center;">
|
||||
<img @click="signInShow=false" :src="`${context}/static/images/medal/medal2023.png`" style="width:586upx;height: 632upx;">
|
||||
<view style="padding-top: 20px;">
|
||||
<img @click="signInShow=false" :src="`${context}/static/images/close.png`">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-overlay>
|
||||
@@ -183,6 +179,7 @@
|
||||
import apiMessage from '@/api/system/message.js'
|
||||
import {toScore} from '@/utils/tools.js'
|
||||
import apiBoeCourse from '@/api/boe/course.js'
|
||||
import apiYearMedal from '@/api/phase2/yearMedal.js'
|
||||
import { mapGetters,mapActions} from 'vuex';
|
||||
export default {
|
||||
data(){
|
||||
@@ -258,49 +255,27 @@
|
||||
this.countNoReadMsg();
|
||||
},
|
||||
components:{
|
||||
'mapelement': {
|
||||
render: function(createElement) {
|
||||
|
||||
var pElem1 = createElement('area', {
|
||||
attrs:{
|
||||
shape: "circle",
|
||||
coords: "280,30,30",
|
||||
href:"javascript:;",
|
||||
},
|
||||
on: {
|
||||
click: function() {
|
||||
//$this.signInShow=false;
|
||||
},
|
||||
}
|
||||
});
|
||||
var pElem2 = createElement('area', {
|
||||
attrs:{
|
||||
shape: "rectangle",
|
||||
coords: "30,300,400,400",
|
||||
href:"https://boehrsurvey.wjx.cn/vm/PmreuFN.aspx",
|
||||
}
|
||||
});
|
||||
return createElement('map', {attrs: {
|
||||
name: "HotMap",
|
||||
id: "HotMap"
|
||||
}},[
|
||||
pElem2 //想要添加更多area,可在数组中继续添加。如[pElem1,pElem2,…]
|
||||
])
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
mounted() {
|
||||
//控制弹出窗口的代码
|
||||
let now = new Date() //当前时间
|
||||
let end = new Date('2022/12/29 00:00:00') //对比时间
|
||||
let end = new Date('2023/01/15 00:00:00') //对比时间
|
||||
if(now.getTime() < end.getTime()){
|
||||
let times = uni.getStorageSync(this.signLocalTimesKey);
|
||||
if(!times){
|
||||
this.signInShow = true;//显示
|
||||
uni.setStorageSync(this.signLocalTimesKey,1);
|
||||
|
||||
}
|
||||
|
||||
apiYearMedal.has2023().then(rs=>{
|
||||
if(rs.status==200){
|
||||
if(!rs.result){
|
||||
this.signInShow=true;
|
||||
apiYearMedal.save2023();
|
||||
}
|
||||
}
|
||||
})
|
||||
// let times = uni.getStorageSync(this.signLocalTimesKey);
|
||||
// if(!times){
|
||||
// this.signInShow = true;//显示
|
||||
// uni.setStorageSync(this.signLocalTimesKey,1);
|
||||
// }
|
||||
//this.signInShow = true;//显示
|
||||
}
|
||||
this.getSysTypeTree();
|
||||
this.findCourseData();
|
||||
|
||||
Reference in New Issue
Block a user