-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:change lusunlesson page content
- Loading branch information
1 parent
e324a52
commit 9c28ca3
Showing
5 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div class="button-container" @click="openCustomerService"> | ||
<span class="button-text">联系客服</span> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { defineProps } from 'vue'; | ||
const props = defineProps({ | ||
url: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
const openCustomerService = () => { | ||
window.open(props.url, '_blank'); | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.button-container { | ||
display: inline-flex; | ||
align-items: center; | ||
padding: 4px 15px; | ||
font-size: 16px; | ||
color: #fff; | ||
background-color: #4CAF50; | ||
border: none; | ||
border-radius: 8px; /* 圆角 */ | ||
cursor: pointer; | ||
text-decoration: none; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 添加阴影 */ | ||
} | ||
.button-text { | ||
vertical-align: middle; | ||
font-weight: bold; /* 加粗文字 */ | ||
} | ||
.button-container:hover { | ||
background-color: #45a049; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.