2022-09-27 16:46:02 +08:00
|
|
|
const modelPop = {
|
|
|
|
template: `
|
2022-09-28 10:48:04 +08:00
|
|
|
<div class="mask" @touchmove.prevent @mousewheel.prevent v-if="show" style='display: flex;align-items: center;flex-direction: column;justify-content: center'>
|
|
|
|
<div style='width: 2.74rem;height: 2.66rem;background: #FFFFFF;border-radius: 0.15rem;text-align:center;'>
|
2022-10-08 10:26:09 +08:00
|
|
|
<img :src="status===1?'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/popSuccess.png':status===3?
|
|
|
|
'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/popErr.png'
|
|
|
|
:'https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/popNotes.png'" alt="" style='margin-top:-0.38rem;width:100%'>
|
2022-09-27 16:46:02 +08:00
|
|
|
<p style='font-size: 0.23rem;font-weight: bold;color: #171717;'>{{title}}</p>
|
|
|
|
<p style='font-size: 0.15rem;color: #524D4D;margin:0.1rem 0 0.2rem'>{{text}}</p>
|
|
|
|
<p style='width: 1.99rem;height: 0.46rem;
|
|
|
|
background: #FE6344;border-radius: 0.23rem;
|
2022-09-27 17:08:43 +08:00
|
|
|
font-size: 0.19rem;color:#fff;line-height: 0.45rem;margin:auto'
|
2022-09-30 11:22:40 +08:00
|
|
|
@click='colesFunction(1)'
|
|
|
|
>{{bottom_text}}</p>
|
2022-09-27 16:46:02 +08:00
|
|
|
</div>
|
2022-09-29 16:57:30 +08:00
|
|
|
<img v-if="status!==1" style="margin-top:0.6rem;width:0.26rem;"
|
2022-09-28 10:48:04 +08:00
|
|
|
src="http://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/cardpwd/img/commimgs/close.png" alt=""
|
2022-09-30 11:22:40 +08:00
|
|
|
@click="colesFunction(0)">
|
2022-09-27 16:46:02 +08:00
|
|
|
</div>
|
|
|
|
`,
|
|
|
|
props: {
|
|
|
|
/* 弹窗状态 */
|
|
|
|
show: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
default: "领取成功"
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
type: String,
|
|
|
|
default: "恭喜您,已经领取成功啦"
|
|
|
|
},
|
|
|
|
status: {
|
|
|
|
type: Number,
|
|
|
|
default: 1
|
2022-09-30 11:22:40 +08:00
|
|
|
},
|
|
|
|
bottom_text: {
|
|
|
|
type: String,
|
|
|
|
default: "我知道了"
|
2022-09-27 16:46:02 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
/* 关闭 */
|
2022-09-30 11:22:40 +08:00
|
|
|
colesFunction(type) {
|
|
|
|
/* type 关闭方式 */
|
2022-09-27 16:46:02 +08:00
|
|
|
this.$emit("update:show", false)
|
2022-09-30 11:38:30 +08:00
|
|
|
this.$emit("backfunction", type)
|
2022-09-27 16:46:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|