2024-12-13 16:34:19 +08:00
|
|
|
<template>
|
2024-12-13 17:18:34 +08:00
|
|
|
<view @click="close" class="">
|
|
|
|
<view style="width: 100%;height: 200px;" @click="close">
|
|
|
|
内容
|
|
|
|
</view>
|
2024-12-13 16:34:19 +08:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-12-13 17:18:34 +08:00
|
|
|
// #ifdef APP-PLUS
|
|
|
|
const animation = weex.requireModule('animation');
|
|
|
|
// #endif
|
2024-12-13 16:34:19 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
ijs: getApp().ijs, // 首页公共js
|
|
|
|
}
|
|
|
|
},
|
2024-12-13 17:18:34 +08:00
|
|
|
onReady() {
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
// 添加动画,避免弹窗闪烁问题
|
|
|
|
animation.transition(this.$refs.landRef, {
|
|
|
|
styles: {
|
|
|
|
opacity: 1,
|
|
|
|
},
|
|
|
|
duration: 100,
|
|
|
|
timingFunction: 'ease-in'
|
|
|
|
});
|
|
|
|
// #endif
|
|
|
|
},
|
|
|
|
onLoad(par) {},
|
2024-12-13 16:34:19 +08:00
|
|
|
onShow() {
|
2024-12-13 17:18:34 +08:00
|
|
|
console.error("onShow")
|
2024-12-13 16:34:19 +08:00
|
|
|
},
|
|
|
|
methods: {
|
2024-12-13 17:18:34 +08:00
|
|
|
close(e) {
|
2024-12-13 16:34:19 +08:00
|
|
|
uni.navigateBack()
|
2024-12-13 17:18:34 +08:00
|
|
|
e.stopPropagation()
|
2024-12-13 16:34:19 +08:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
page {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mask {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
/* #ifndef APP-NVUE */
|
|
|
|
display: flex;
|
|
|
|
/* #endif */
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
/* #ifndef APP-NVUE */
|
|
|
|
display: block;
|
|
|
|
/* #endif */
|
|
|
|
line-height: 200px;
|
|
|
|
text-align: center;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
</style>
|