1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <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 subNVue = uni.getSubNVueById('ApopLog1')
- subNVue.hide()
-
- },
- confirm() {
- this.close()
- uni.$emit('ApopLog1', {
- content: 'comfirm'
- });
- },
- }
- }
- </script>
- <style scoped>
-
- </style>
|