simpleConfirm.vue
1.2 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
69
70
71
72
<template>
<view class="simpleConfirmWrap">
<view class="simpleAlert">
<view class="alertInfo">
{{alertTxt}}
</view>
<view class="btn" @click="$emit('close')">
<view class="btnItem">
取消
</view>
<view class="btnItem active" @click="$emit('close')">
确认
</view>
</view>
</view>
</view>
</template>
<script>
export default{
data(){
return{
}
},
props:{
alertTxt:{
type:String
}
}
}
</script>
<style lang="scss" scoped>
.simpleConfirmWrap{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
background: $uni-bg-color-mask;
display: flex;
justify-content: center;
align-items: center;
.simpleAlert{
width: 622rpx;
background: $uni-bg-bai-color;
border-radius: 32rpx;
font-size: $uni-font-size-32;
.alertInfo{
padding: 48rpx;
text-align: center;
border-bottom: 1rpx solid #ebedf0;
}
.btn{
height: 96rpx;
display: flex;
.btnItem{
flex: 1;
font-size: $uni-font-size-32;
text-align: center;
line-height: 96rpx;
}
.btnItem.active{
color: $uni-bg-main-color;
border-left: 1rpx solid #ebedf0;
}
}
}
}
</style>