FinishReceptionDialog.vue
1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<template>
<MessageBox :popupW="704" ref="finish" :content="content" :isFooter="false">
<view class="footer">
<view class="footer-btn confirm flex" @click="handleConfirm">
完成接待
<text>(推荐)</text>
</view>
<view class="footer-btn cancel flex" @click="handleCancel">
仍要退出
<text>(不推荐)</text>
</view>
</view>
</MessageBox>
</template>
<script>
export default {
data() {
return {
content: '当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
}
},
methods: {
open() {
this.$refs.finish.open()
},
close() {
this.$refs.finish.close()
},
handleConfirm() {
this.$emit('confirm')
},
handleCancel() {
this.$emit('cancel')
}
}
}
</script>
<style scoped lang="scss">
.footer {
border-top: toRpx(2) solid #eff0f2;
font-weight: 600;
font-size: toRpx(32);
margin-top: toRpx(48);
.footer-btn {
justify-content: center;
margin: toRpx(16) auto 0;
}
.confirm {
width: toRpx(608);
height: toRpx(80);
background: #2c66f7;
border-radius: toRpx(40);
color: #fff;
}
.cancel {
width: toRpx(608);
height: toRpx(80);
background: #f5f6fa;
border-radius: toRpx(40);
color: #5b6b8c;
}
}
</style>