|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="content-card">
|
|
|
<span class="j-icon icon-pc-close" @click="closeIconClick" />
|
|
|
- <ContractCard v-if="config.props.type === '1'" @contactMeEvent="contactMeEvent" />
|
|
|
- <ContractCardQrcode v-else class="qrcode-module" />
|
|
|
- <LeaveCommon :class="{ 'samll-footer': config.props.type === '2' }" />
|
|
|
+ <ContractCard v-if="type === '1'" @contactMeEvent="contactMeEvent" />
|
|
|
+ <ContractCardQrcode v-else :show-text="showText" class="qrcode-module" />
|
|
|
+ <LeaveCommon :class="{ 'samll-footer': type === '2' }" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -14,6 +14,7 @@ import ContractCardQrcode from './contract-card-qrcode.vue'
|
|
|
import LeaveCommon from './footer'
|
|
|
|
|
|
export default {
|
|
|
+ el: '.pc-content-card',
|
|
|
name: 'ContentCard',
|
|
|
components: {
|
|
|
ContractCard,
|
|
@@ -25,10 +26,14 @@ export default {
|
|
|
type: Object,
|
|
|
default: () => ({})
|
|
|
},
|
|
|
- // type: {
|
|
|
- // type: String,
|
|
|
- // default: '2'
|
|
|
- // },
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ default: '2'
|
|
|
+ },
|
|
|
+ showText: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ },
|
|
|
// source: {
|
|
|
// type: String,
|
|
|
// default: ''
|
|
@@ -42,12 +47,6 @@ export default {
|
|
|
// default: '联系专属客服,申请免费体验'
|
|
|
// }
|
|
|
},
|
|
|
-
|
|
|
- data() {
|
|
|
- return {
|
|
|
- confirmPhoneDialog: {}
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
contactMeEvent(phone) {
|
|
|
this.$emit('contactMeEvent', phone)
|