master
parent
e8c39446f6
commit
474169c3bb
@ -0,0 +1,92 @@
|
|||||||
|
<template>
|
||||||
|
<uni-popup ref="verifyPopup" :isMaskClick="false">
|
||||||
|
<view class="custom-modal">
|
||||||
|
<view class="modal-title">温馨提示</view>
|
||||||
|
|
||||||
|
<view class="modal-content">
|
||||||
|
<image src="@/trace/static/warning.png" mode="aspectFill" class="modal-img"></image>
|
||||||
|
<text class="modal-text">{{msg}}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<button class="modal-btn" @click="close">确定</button>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
props:{
|
||||||
|
msg:{
|
||||||
|
type: String,
|
||||||
|
default:'防伪码验证失败,谨防假冒!'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
open(){
|
||||||
|
this.$refs.verifyPopup.open()
|
||||||
|
},
|
||||||
|
close() {
|
||||||
|
this.$refs.verifyPopup.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.custom-modal {
|
||||||
|
width: 500rpx;
|
||||||
|
/* 弹窗宽度 */
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 28rpx;
|
||||||
|
padding: 40rpx 0 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-title {
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 60rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 60rpx;
|
||||||
|
@include flexBox(center,center);
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 46rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-img {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-text {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666;
|
||||||
|
word-break: break-all;
|
||||||
|
line-height: 40rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 100rpx;
|
||||||
|
color: #007aff;
|
||||||
|
font-size: 34rpx;
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: #fff;
|
||||||
|
@include flexBox();
|
||||||
|
border-radius: 0 0 28rpx 28rpx;
|
||||||
|
}
|
||||||
|
</style>
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 486 KiB |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in new issue