|
@@ -0,0 +1,157 @@
|
|
|
+<template>
|
|
|
+ <van-popup
|
|
|
+ :value="value"
|
|
|
+ class="vip-back-tip-wrapper"
|
|
|
+ get-container="body"
|
|
|
+ position="center"
|
|
|
+ @click-overlay="onClose"
|
|
|
+ @closeable="onClose"
|
|
|
+ >
|
|
|
+ <div class="popupBox">
|
|
|
+ <div class="header">
|
|
|
+ 真的要放弃<span class="large">27</span>项超值权益了吗?
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="text-item" v-for="item in textlist" :key="item">
|
|
|
+ <div class="text-ic"></div>
|
|
|
+ <div class="text-desc" v-html="item"></div>
|
|
|
+ </div>
|
|
|
+ <div class="desc-pack" @click="descClick">
|
|
|
+ 如只需增加订阅省份1项特权,可前往<span class="heightlight"
|
|
|
+ >购买“省份订阅包”</span
|
|
|
+ >,低至19.9元 >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="footer">
|
|
|
+ <div class="left-btn" @click="onCancel">暂时离开</div>
|
|
|
+ <div class="right-btn" @click="onConfirm">成为会员,获取商机</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-popup>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import { Popup, Icon } from 'vant'
|
|
|
+export default {
|
|
|
+ name: 'vipBackTip',
|
|
|
+ components: {
|
|
|
+ [Icon.name]: Icon,
|
|
|
+ [Popup.name]: Popup
|
|
|
+ },
|
|
|
+ model: {
|
|
|
+ prop: 'value',
|
|
|
+ event: 'close'
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ value: Boolean,
|
|
|
+ descShow: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ textlist: [
|
|
|
+ '全国商机<span style="color:#B1700E ">实时推送</span>',
|
|
|
+ '获取采购单位<span style="color:#B1700E ">联系人</span>电话',
|
|
|
+ '实时监控所有<span style="color:#B1700E ">潜在商机</span>',
|
|
|
+ '帮你提升中标率<span style="color:#B1700E ">中标率</span>'
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ descClick() {
|
|
|
+ this.$emit('descClick')
|
|
|
+ },
|
|
|
+ onCancel() {
|
|
|
+ this.onClose()
|
|
|
+ this.$emit('onCancel')
|
|
|
+ },
|
|
|
+ onConfirm() {
|
|
|
+ this.$emit('onConfirm')
|
|
|
+ },
|
|
|
+ onClose() {
|
|
|
+ this.$emit('close', false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.vip-back-tip-wrapper {
|
|
|
+ background-color: transparent;
|
|
|
+
|
|
|
+ .popupBox {
|
|
|
+ width: 303px;
|
|
|
+ background-image: url('@/assets/image/vip-subscribe/popup-bg.png');
|
|
|
+ background-size: cover;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ border-radius: 12px;
|
|
|
+ .header {
|
|
|
+ height: 64px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: #9f6001;
|
|
|
+ font-size: 18px;
|
|
|
+ .large {
|
|
|
+ font-size: 22px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ padding: 24px 19px 16px 19px;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 12px 12px 0 0;
|
|
|
+ .text-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ .text-ic {
|
|
|
+ width: 16px;
|
|
|
+ height: 18px;
|
|
|
+ background-image: url('@/assets/image/vip-subscribe/box-yellow.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
+ margin-right: 16px;
|
|
|
+ }
|
|
|
+ .text-desc {
|
|
|
+ font-size: 15px;
|
|
|
+ line-height: 22px;
|
|
|
+ color: #171826;
|
|
|
+ }
|
|
|
+ .cr-yellow {
|
|
|
+ color: #b1700e;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .desc-pack {
|
|
|
+ font-size: 13px;
|
|
|
+ line-height: 22px;
|
|
|
+ color: #9b9ca3;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .footer {
|
|
|
+ display: flex;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 0 0 12px 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ .left-btn {
|
|
|
+ padding: 10px 14px;
|
|
|
+ border-right: 0.5px solid #0000001a;
|
|
|
+ border-top: 0.5px solid #0000001a;
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 26px;
|
|
|
+ color: #171826;
|
|
|
+ }
|
|
|
+ .right-btn {
|
|
|
+ border-top: 0.5px solid #0000001a;
|
|
|
+ padding: 10px 19px;
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 26px;
|
|
|
+ color: #b1700e;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .heightlight {
|
|
|
+ color: #2abed1;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|