使用uni-app做一個簡單的彈窗效果


<template>
    <view class="content">
        <view class="tab color1" @click=" clickTanChuang(show)">派單</view>
        
    </view>
</template>

<script>
    export default {
        data() {
            return {
                show:true
            }
        },
        methods: {
            clickTanChuang(show) {
                if(show==true){
                    uni.showModal({
                        title: '訂單派單',
                        content: '該訂單將派給',
                    });
                }else {
                    this.show = !this.show
                }
            }
        }
    }
</script>

<style>

</style>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM