|
@@ -87,7 +87,7 @@
|
|
|
type: String,
|
|
type: String,
|
|
|
default: 'rgba(0, 0, 0, 0.4)'
|
|
default: 'rgba(0, 0, 0, 0.4)'
|
|
|
},
|
|
},
|
|
|
- borderRadius:{
|
|
|
|
|
|
|
+ borderRadius: {
|
|
|
type: String,
|
|
type: String,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -247,11 +247,11 @@
|
|
|
},
|
|
},
|
|
|
// #endif
|
|
// #endif
|
|
|
activated() {
|
|
activated() {
|
|
|
- this.setH5Visible(!this.showPopup);
|
|
|
|
|
- },
|
|
|
|
|
- deactivated() {
|
|
|
|
|
- this.setH5Visible(true);
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ this.setH5Visible(!this.showPopup);
|
|
|
|
|
+ },
|
|
|
|
|
+ deactivated() {
|
|
|
|
|
+ this.setH5Visible(true);
|
|
|
|
|
+ },
|
|
|
created() {
|
|
created() {
|
|
|
// this.mkclick = this.isMaskClick || this.maskClick
|
|
// this.mkclick = this.isMaskClick || this.maskClick
|
|
|
if (this.isMaskClick === null && this.maskClick === null) {
|
|
if (this.isMaskClick === null && this.maskClick === null) {
|
|
@@ -274,7 +274,7 @@
|
|
|
setH5Visible(visible = true) {
|
|
setH5Visible(visible = true) {
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
// fix by mehaotian 处理 h5 滚动穿透的问题
|
|
// fix by mehaotian 处理 h5 滚动穿透的问题
|
|
|
- document.getElementsByTagName('body')[0].style.overflow = visible ? "visible" : "hidden";
|
|
|
|
|
|
|
+ document.getElementsByTagName('body')[0].style.overflow = visible ? "visible" : "hidden";
|
|
|
// #endif
|
|
// #endif
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -355,7 +355,7 @@
|
|
|
left: 0,
|
|
left: 0,
|
|
|
right: 0,
|
|
right: 0,
|
|
|
backgroundColor: this.bg,
|
|
backgroundColor: this.bg,
|
|
|
- borderRadius:this.borderRadius || "0"
|
|
|
|
|
|
|
+ borderRadius: this.borderRadius || "0"
|
|
|
}
|
|
}
|
|
|
// TODO 兼容 type 属性 ,后续会废弃
|
|
// TODO 兼容 type 属性 ,后续会废弃
|
|
|
if (type) return
|
|
if (type) return
|
|
@@ -381,7 +381,7 @@
|
|
|
bottom: 0,
|
|
bottom: 0,
|
|
|
paddingBottom: this.safeAreaInsets + 'px',
|
|
paddingBottom: this.safeAreaInsets + 'px',
|
|
|
backgroundColor: this.bg,
|
|
backgroundColor: this.bg,
|
|
|
- borderRadius:this.borderRadius || "0",
|
|
|
|
|
|
|
+ borderRadius: this.borderRadius || "0",
|
|
|
}
|
|
}
|
|
|
// TODO 兼容 type 属性 ,后续会废弃
|
|
// TODO 兼容 type 属性 ,后续会废弃
|
|
|
if (type) return
|
|
if (type) return
|
|
@@ -394,10 +394,10 @@
|
|
|
this.popupstyle = 'center'
|
|
this.popupstyle = 'center'
|
|
|
//微信小程序下,组合动画会出现文字向上闪动问题,再此做特殊处理
|
|
//微信小程序下,组合动画会出现文字向上闪动问题,再此做特殊处理
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
- this.ani = ['fade']
|
|
|
|
|
|
|
+ this.ani = ['fade']
|
|
|
// #endif
|
|
// #endif
|
|
|
// #ifndef MP-WEIXIN
|
|
// #ifndef MP-WEIXIN
|
|
|
- this.ani = ['zoom-out', 'fade']
|
|
|
|
|
|
|
+ this.ani = ['zoom-out', 'fade']
|
|
|
// #endif
|
|
// #endif
|
|
|
this.transClass = {
|
|
this.transClass = {
|
|
|
position: 'fixed',
|
|
position: 'fixed',
|
|
@@ -411,7 +411,7 @@
|
|
|
top: 0,
|
|
top: 0,
|
|
|
justifyContent: 'center',
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center',
|
|
alignItems: 'center',
|
|
|
- borderRadius:this.borderRadius || "0"
|
|
|
|
|
|
|
+ borderRadius: this.borderRadius || "0"
|
|
|
}
|
|
}
|
|
|
// TODO 兼容 type 属性 ,后续会废弃
|
|
// TODO 兼容 type 属性 ,后续会废弃
|
|
|
if (type) return
|
|
if (type) return
|
|
@@ -426,7 +426,7 @@
|
|
|
bottom: 0,
|
|
bottom: 0,
|
|
|
top: 0,
|
|
top: 0,
|
|
|
backgroundColor: this.bg,
|
|
backgroundColor: this.bg,
|
|
|
- borderRadius:this.borderRadius || "0",
|
|
|
|
|
|
|
+ borderRadius: this.borderRadius || "0",
|
|
|
/* #ifndef APP-NVUE */
|
|
/* #ifndef APP-NVUE */
|
|
|
display: 'flex',
|
|
display: 'flex',
|
|
|
flexDirection: 'column'
|
|
flexDirection: 'column'
|
|
@@ -445,7 +445,7 @@
|
|
|
right: 0,
|
|
right: 0,
|
|
|
top: 0,
|
|
top: 0,
|
|
|
backgroundColor: this.bg,
|
|
backgroundColor: this.bg,
|
|
|
- borderRadius:this.borderRadius || "0",
|
|
|
|
|
|
|
+ borderRadius: this.borderRadius || "0",
|
|
|
/* #ifndef APP-NVUE */
|
|
/* #ifndef APP-NVUE */
|
|
|
display: 'flex',
|
|
display: 'flex',
|
|
|
flexDirection: 'column'
|
|
flexDirection: 'column'
|
|
@@ -455,8 +455,8 @@
|
|
|
if (type) return
|
|
if (type) return
|
|
|
this.showPoptrans()
|
|
this.showPoptrans()
|
|
|
},
|
|
},
|
|
|
- showPoptrans(){
|
|
|
|
|
- this.$nextTick(()=>{
|
|
|
|
|
|
|
+ showPoptrans() {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
this.showPopup = true
|
|
this.showPopup = true
|
|
|
this.showTrans = true
|
|
this.showTrans = true
|
|
|
})
|
|
})
|
|
@@ -515,4 +515,4 @@
|
|
|
.fixforpc-top {
|
|
.fixforpc-top {
|
|
|
top: 0;
|
|
top: 0;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|