<template>
<view>
<u-button @click="moon" text="月落"></u-button>
</view>
</template>
<script>
export default {
data() {
return {
listarr: [],
load: true
};
},
onLoad() {
},
methods: {
moon() {
uni.showModal({
title: '标题提示',
content: '具体内容提示',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}}
})
}
}
}
</script>
<style lang="scss">
</style>
uniapp uni.showModal交互按钮,避免误触窗口,再确定提示窗口
最新推荐文章于 2024-04-15 13:22:33 发布