123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <template>
- <div class="contract-card-container">
- <div class="contract-card-title">
- <span class="title">联系专属客服,申请免费体验</span>
- <span class="subtitle">(以下三种方式任选)</span>
- </div>
- <div class="contract-card-content">
- <CallPhone class="call-phone" :phone="phone" @handle="handle" />
- <QrCode :wxer="wxer" type="1" @handle="handle" />
- <ContractMine :user-phone="userPhone" class="contract-mine" @contactMeEvent="contactMeEvent" />
- </div>
- </div>
- </template>
- <script>
- import CallPhone from './CallPhone.vue'
- import ContractMine from './ContractMine.vue'
- import QrCode from './QrCode.vue'
- export default {
- name: 'ContractCard',
- components: {
- CallPhone,
- ContractMine,
- QrCode
- },
- props: {
- wxer: {
- type: String,
- default: ''
- },
- phone: {
- type: String,
- default: ''
- },
- userPhone: {
- type: String,
- default: ''
- }
- },
- methods: {
- handle() {
- this.$emit('handle')
- },
- contactMeEvent(phone) {
- this.$emit('contactMeEvent', phone)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .contract-card-container {
- padding: 32px 32px;
- .contract-card-title {
- display: flex;
- flex-direction: column;
- align-items: center;
- .title {
- font-size: 18px;
- line-height: 28px;
- color: #1D1D1D;
- }
- .subtitle {
- margin-top: 4px;
- font-size: 16px;
- line-height: 24px;
- color: #686868;
- }
- }
- .contract-card-content {
- display: flex;
- justify-content: flex-start;
- margin-top: 24px;
- height: 154px;
- // .contract-mine {
- // flex: 1;
- // }
- }
- }
- </style>
|