123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <template name="alert">
- <view class="alert spec" :class="specClass">
- <view class="model-warp">
- <view class="model-alert">
- <view class="model-content">
- <view class="sm"><text>{{alertText}}</text></view>
- </view>
- <view class="alert-btn">
- <view class="btn btn-cancel" @click="hideConfirm">取消</view>
- <view class="btn btn-confirm" @click="btnConfirm(alertType)">确定</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- name:'alert',
- props:['isShowDelModal','alertText','alertType'],
- data() {
- return{
- }
- },
- created() {
-
- },
- onLoad(){
-
- },
- methods:{
- hideConfirm(){
- this.$parent.isShowDelModal = false
- },
- //点击事件
- btnConfirm(type){
- this.$emit('btnConfirm',type)
- }
- },
- onShow(){
-
- }
- }
- </script>
- <style lang="scss">
- /*弹窗*/
- .model-warp.none{
- display: none;
- }
- .model-warp.show{
- display: block;
- }
- .model-warp{
- width: 100%;
- height: 100%;
- background: rgba(0,0,0,.5);
- position: fixed;
- top: 0;
- left: 0;
- z-index: 8888;
- transition: all 0.4s;
- &.none{
- display: none;
- }
- &.show{
- display: block;
- }
- .model-alert{
- width: 518rpx;
- height: 316rpx;
- position: absolute;
- background: $bg-color;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- margin: auto;
- .alert-content{
- width: 466rpx;
- height: 152rpx;
- padding: 40rpx 26rpx;
- .t-h1,.t-p{
- font-size: $font-size-28;
- line-height: 40rpx;
- color: #333333;
- text-align:justify;
- padding: 10rpx;
- }
- .t-h1{
- border-bottom: 1px solid $border-color;
- }
- }
- .model-content{
- width: 466rpx;
- height: 152rpx;
- padding: 40rpx 26rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- .sm{
- display: flex;
- flex: 1;
- line-height: 152rpx;
- flex-direction: column;
- align-items: center;
- text-align: center;
- font-size: $font-size-28;
- color: #333333;
- }
- }
- .alert-btn{
- width: 100%;
- height: 88rpx;
- display: flex;
- .btn{
- flex: 1;
- line-height: 88rpx;
- font-size: $font-size-28;
- text-align: center;
- color: #FFFFFF;
- border-radius: 0;
- padding: 0;
- &.btn-cancel{
- background: $btn-cancel;
- }
- &.btn-confirm{
- background: $btn-confirm;
- }
- }
- }
- }
- }
- </style>
|