mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +08:00
提交弹窗
This commit is contained in:
@@ -263,8 +263,6 @@
|
|||||||
apiIndex.scorelist(10,1).then(res=>{
|
apiIndex.scorelist(10,1).then(res=>{
|
||||||
if(res.status == 200){
|
if(res.status == 200){
|
||||||
this.courseRankingList = res.result;
|
this.courseRankingList = res.result;
|
||||||
console.log(res,'qqq')
|
|
||||||
console.log(this.courseRankingList)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,14 +11,7 @@
|
|||||||
<u-icon class="top-bar-icon" :size="26" name="bell"></u-icon>
|
<u-icon class="top-bar-icon" :size="26" name="bell"></u-icon>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="top-bar-center">
|
<view class="top-bar-center">
|
||||||
<u-search
|
<u-search placeholder="搜索" :clearabled="true" :showAction="false" :height="36" @focus="toSearch()" bgColor="#F7F7F7"></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(1)" :class="{'active':tabIndex==1}">最热</view>
|
||||||
<view class="top-bar-tab" @click="clicktab(0)" :class="{'active':tabIndex==0}">最新</view> -->
|
<view class="top-bar-tab" @click="clicktab(0)" :class="{'active':tabIndex==0}">最新</view> -->
|
||||||
</view>
|
</view>
|
||||||
@@ -164,8 +157,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-overlay :show="signInShow">
|
<u-overlay :show="signInShow">
|
||||||
<view style="padding-top: 180upx;">
|
<view style="padding-top: 180upx;">
|
||||||
<view style="margin-top: 180upx;width:624upx;margin: 0px auto;position: relative;">
|
<view style="margin-top: 180upx;width:586upx;margin: 0px auto;position: relative;text-align: center;">
|
||||||
<img @click="signInShow=false" :src="`${context}/static/images/dlg202212.png`" style="width:624upx;height: 684upx;">
|
<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>
|
||||||
</view>
|
</view>
|
||||||
</u-overlay>
|
</u-overlay>
|
||||||
@@ -183,6 +179,7 @@
|
|||||||
import apiMessage from '@/api/system/message.js'
|
import apiMessage from '@/api/system/message.js'
|
||||||
import {toScore} from '@/utils/tools.js'
|
import {toScore} from '@/utils/tools.js'
|
||||||
import apiBoeCourse from '@/api/boe/course.js'
|
import apiBoeCourse from '@/api/boe/course.js'
|
||||||
|
import apiYearMedal from '@/api/phase2/yearMedal.js'
|
||||||
import { mapGetters,mapActions} from 'vuex';
|
import { mapGetters,mapActions} from 'vuex';
|
||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
@@ -258,49 +255,27 @@
|
|||||||
this.countNoReadMsg();
|
this.countNoReadMsg();
|
||||||
},
|
},
|
||||||
components:{
|
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() {
|
mounted() {
|
||||||
//控制弹出窗口的代码
|
//控制弹出窗口的代码
|
||||||
let now = new Date() //当前时间
|
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()){
|
if(now.getTime() < end.getTime()){
|
||||||
let times = uni.getStorageSync(this.signLocalTimesKey);
|
apiYearMedal.has2023().then(rs=>{
|
||||||
if(!times){
|
if(rs.status==200){
|
||||||
this.signInShow = true;//显示
|
if(!rs.result){
|
||||||
uni.setStorageSync(this.signLocalTimesKey,1);
|
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.getSysTypeTree();
|
||||||
this.findCourseData();
|
this.findCourseData();
|
||||||
|
|||||||
Reference in New Issue
Block a user