修改弹窗

This commit is contained in:
daihh
2022-06-20 20:54:35 +08:00
parent bd3e2f5be7
commit 536151d2fd
2 changed files with 13 additions and 11 deletions

View File

@@ -197,9 +197,12 @@
<uni-load-more :status="loadStatus"></uni-load-more>
</view>
<u-overlay :show="signInShow">
<view style="padding-top: 180upx;width:624upx;margin: 0px auto;">
<img usemap="#HotMap" src="/mobile/static/images/dlg.png" style="width:624upx;height: 864upx;">
<mapelement></mapelement>
<view style="padding-top: 180upx;">
<view style="margin-top: 180upx;width:624upx;margin: 0px auto;position: relative;">
<img usemap="#HotMap" src="/mobile/static/images/dlg.png" style="width:624upx;height: 864upx;">
<text @click="signInShow=false" style="position: absolute;right: 15upx;top: 0upx;color: #ffffff;font-size: 40px;">×</text>
<mapelement></mapelement>
</view>
</view>
</u-overlay>
</view>
@@ -287,24 +290,23 @@
components:{
'mapelement': {
render: function(createElement) {
let $this=this;
var pElem1 = createElement('area', {
attrs:{
shape: "circle",
coords: "280,30,30",
href:"/pages/index/index",
href:"javascript:;",
},
on: {
click: function() {
//$this.signInShow=false;
console.log("test="+$this.signInShow)
},
},
}
});
var pElem2 = createElement('area', {
attrs:{
shape: "rectangle",
coords: "100,300,400,400",
coords: "30,300,400,400",
href:"https://boehrsurvey.wjx.cn/vm/PmreuFN.aspx",
}
});
@@ -312,7 +314,7 @@
name: "HotMap",
id: "HotMap"
}},[
pElem1,pElem2 //想要添加更多area,可在数组中继续添加。如[pElem1,pElem2,…]
pElem2 //想要添加更多area,可在数组中继续添加。如[pElem1,pElem2,…]
])
},
},
@@ -323,8 +325,8 @@
let end = new Date('2022/06/29 00:00:00') //对比时间
if(now.getTime() < end.getTime()){
let times = uni.getStorageSync(this.signLocalTimesKey);
let isNewLogin=uni.getStorageSync("boe_new_login");
//let isNewLogin='1';
//let isNewLogin=uni.getStorageSync("boe_new_login");
let isNewLogin='1';
if(isNewLogin && isNewLogin=='1'){
if(!times){
this.signInShow = true;//显示

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 309 KiB