123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <view class="wrapper">
- <uni-popup ref="popup" type="dialog" :maskClass="maskClass">
- <uni-popup-dialog type="info" mode="base" content="立即下发新的全面巡检任务?" :duration="2000" :before-close="true" @close="close"
- @confirm="confirm"></uni-popup-dialog>
- </uni-popup>
- </view>
- </template>
- <script>
-
- export default {
- data(){
- return {
- maskClass:{
- position: 'fixed',
- bottom: 0,
- top: 0,
- left: 0,
- right: 0,
- }
- }
- },
- mounted() {
- this.$refs.popup.open()
- },
- methods:{
- close(){
- const dsubNVue = uni.getSubNVueById('DpopLog1')
- dsubNVue.hide()
- },
- confirm() {
- const dsubNVue = uni.getSubNVueById('DpopLog1')
- uni.$emit('DpopLog1', {
- content: 'comfirm'
- });
- dsubNVue.hide()
- },
- }
- }
- </script>
- <style scoped>
-
- </style>
|