Browse Source

按钮样式集成、头部背景修改

pull/27/head
zq 1 week ago
parent
commit
718dd6d64f
  1. 9281
      package-lock.json
  2. 1
      package.json
  3. 26
      src/App.vue
  4. 2
      src/assets/header-drop.svg
  5. BIN
      src/assets/header-logo.png
  6. BIN
      src/assets/headerBg1.mp4
  7. 1
      src/assets/loadingPrimary.svg
  8. 1
      src/assets/upLoad_active.svg
  9. 1
      src/assets/upLoad_grey.svg
  10. 14
      src/components/GuipButton.vue
  11. 2
      src/components/GuipDialog.vue
  12. 47
      src/components/Header.vue
  13. 161
      src/components/HoverButton.vue
  14. 171
      src/style/theme/common.scss
  15. 119
      src/views/elementGroups.vue

9281
package-lock.json

File diff suppressed because it is too large

1
package.json

@ -11,6 +11,7 @@
"axios": "^1.8.3",
"core-js": "^3.40.0",
"element-ui": "^2.15.14",
"lottie-web": "^5.12.2",
"regenerator-runtime": "^0.14.1",
"vue": "^2.6.14",
"vue-clickaway": "^2.2.2",

26
src/App.vue

@ -9,6 +9,9 @@
<el-container>
<el-header style="height: 62px;" v-if="showHeader">
<Header></Header>
<video class="top_viedo" width="100%" src="./assets/headerBg1.mp4" autoplay loop muted
poster="review.jpg"></video>
<div class="bg"></div>
</el-header>
<el-container :class="(showHeader ? 'short-container' : '')">
<SliderMenu v-if="showSidebar"></SliderMenu>
@ -108,12 +111,33 @@ export default {
// padding: 12px;
}
.bg {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background: rgba(255, 255, 255, 0.61);
z-index: 2;
}
::v-deep .el-header {
height: 62px;
padding: 8px 32px;
overflow: hidden;
position: relative;
box-sizing: border-box;
background: linear-gradient(270deg, #4EA4F3 0%, #3D85EA 100%);
}
.top_viedo {
width: 100%;
height: 100%;
position: absolute;
object-fit: cover;
left: 0;
top: 0;
}
nav {
padding: 30px;

2
src/assets/header-drop.svg

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g><path d="M2.41612,5.500656L8,10.15389L13.5838,5.500686L13.5839,5.500656Q13.6715,5.427647,13.7787,5.388823Q13.886,5.35,14,5.35Q14.064,5.35,14.1268,5.36249Q14.1896,5.374979,14.2487,5.399478Q14.3079,5.423978,14.3611,5.459545Q14.4143,5.495112,14.4596,5.540381Q14.5049,5.585649,14.5405,5.638879Q14.576,5.69211,14.6005,5.751256Q14.625,5.810402,14.6375,5.873191Q14.65,5.9359806,14.65,6Q14.65,6.14468,14.5886,6.275701Q14.5273,6.406721,14.4161,6.499343L8.41612,11.49934Q8.37265,11.53557,8.32357,11.56374Q8.27449,11.59191,8.22128,11.611180000000001Q8.16807,11.63044,8.11233,11.64022Q8.05659,11.65,8,11.65Q7.94341,11.65,7.88767,11.64022Q7.83193,11.63044,7.77872,11.611180000000001Q7.72551,11.59191,7.67643,11.56374Q7.62735,11.53557,7.58388,11.49934L1.58388,6.499344Q1.472734,6.406722,1.411367,6.275701Q1.35,6.14468,1.35,6Q1.35,5.9359806,1.36249,5.873191Q1.374979,5.810402,1.399478,5.751256Q1.423978,5.69211,1.4595449999999999,5.638879Q1.495112,5.585649,1.540381,5.540381Q1.585649,5.495112,1.638879,5.459545Q1.69211,5.423978,1.751256,5.399478Q1.810402,5.374979,1.873191,5.36249Q1.9359806,5.35,2,5.35Q2.114044,5.35,2.221276,5.388824Q2.328509,5.427647,2.41612,5.500656Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g><path d="M2.41612,5.500656L8,10.15389L13.5838,5.500686L13.5839,5.500656Q13.6715,5.427647,13.7787,5.388823Q13.886,5.35,14,5.35Q14.064,5.35,14.1268,5.36249Q14.1896,5.374979,14.2487,5.399478Q14.3079,5.423978,14.3611,5.459545Q14.4143,5.495112,14.4596,5.540381Q14.5049,5.585649,14.5405,5.638879Q14.576,5.69211,14.6005,5.751256Q14.625,5.810402,14.6375,5.873191Q14.65,5.9359806,14.65,6Q14.65,6.14468,14.5886,6.275701Q14.5273,6.406721,14.4161,6.499343L8.41612,11.49934Q8.37265,11.53557,8.32357,11.56374Q8.27449,11.59191,8.22128,11.611180000000001Q8.16807,11.63044,8.11233,11.64022Q8.05659,11.65,8,11.65Q7.94341,11.65,7.88767,11.64022Q7.83193,11.63044,7.77872,11.611180000000001Q7.72551,11.59191,7.67643,11.56374Q7.62735,11.53557,7.58388,11.49934L1.58388,6.499344Q1.472734,6.406722,1.411367,6.275701Q1.35,6.14468,1.35,6Q1.35,5.9359806,1.36249,5.873191Q1.374979,5.810402,1.399478,5.751256Q1.423978,5.69211,1.4595449999999999,5.638879Q1.495112,5.585649,1.540381,5.540381Q1.585649,5.495112,1.638879,5.459545Q1.69211,5.423978,1.751256,5.399478Q1.810402,5.374979,1.873191,5.36249Q1.9359806,5.35,2,5.35Q2.114044,5.35,2.221276,5.388824Q2.328509,5.427647,2.41612,5.500656Z" fill-rule="evenodd" fill="#1E2226" fill-opacity="1"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/assets/header-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 56 KiB

BIN
src/assets/headerBg1.mp4

Binary file not shown.

1
src/assets/loadingPrimary.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB

1
src/assets/upLoad_active.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="20" height="16" viewBox="0 0 20 16"><defs><clipPath id="master_svg0_417_005206"><rect x="0" y="0" width="20" height="16" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_417_005206)"><g transform="matrix(1,0,0,-1,0,30.6875)"><g><path d="M4.5,15.34375Q2.59375,15.40625,1.3125,16.65625Q0.0625,17.9375,0,19.84375Q0.03125,21.34375,0.84375,22.46875Q1.65625,23.59375,3,24.09375Q3,24.21875,3,24.34375Q3.0625,26.46875,4.46875,27.87495Q5.875,29.28125,8,29.34375Q9.40625,29.31255,10.5312,28.65625Q11.6562,27.96875,12.3438,26.84375Q13.0625,27.34375,14,27.34375Q15.2812,27.31255,16.125,26.46875Q16.9688,25.62495,17,24.34375Q17,23.78125,16.8125,23.25Q18.1875,22.96875,19.0938,21.875Q19.9688,20.8125,20,19.34375Q19.9688,17.65625,18.8438,16.5Q17.6875,15.375,16,15.34375L4.5,15.34375ZM6.96875,22.125Q6.53125,21.59375,6.96875,21.0625Q7.5,20.625,8.03125,21.0625L9.25,22.28125L9.25,18.09375Q9.3125,17.40625,10,17.34375Q10.6875,17.40625,10.75,18.09375L10.75,22.28125L11.9688,21.0625Q12.5,20.625,13.0312,21.0625Q13.4688,21.59375,13.0312,22.125L10.5312,24.625Q10,25.0625,9.46875,24.625L6.96875,22.125Z" fill="#006AFF" fill-opacity="1"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

1
src/assets/upLoad_grey.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="20" height="16" viewBox="0 0 20 16"><defs><clipPath id="master_svg0_417_003390"><rect x="0" y="0" width="20" height="16" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_417_003390)"><g transform="matrix(1,0,0,-1,0,30.6875)"><g><path d="M4.5,15.34375Q2.59375,15.40625,1.3125,16.65625Q0.0625,17.9375,0,19.84375Q0.03125,21.34375,0.84375,22.46875Q1.65625,23.59375,3,24.09375Q3,24.21875,3,24.34375Q3.0625,26.46875,4.46875,27.87495Q5.875,29.28125,8,29.34375Q9.40625,29.31255,10.5312,28.65625Q11.6562,27.96875,12.3438,26.84375Q13.0625,27.34375,14,27.34375Q15.2812,27.31255,16.125,26.46875Q16.9688,25.62495,17,24.34375Q17,23.78125,16.8125,23.25Q18.1875,22.96875,19.0938,21.875Q19.9688,20.8125,20,19.34375Q19.9688,17.65625,18.8438,16.5Q17.6875,15.375,16,15.34375L4.5,15.34375ZM6.96875,22.125Q6.53125,21.59375,6.96875,21.0625Q7.5,20.625,8.03125,21.0625L9.25,22.28125L9.25,18.09375Q9.3125,17.40625,10,17.34375Q10.6875,17.40625,10.75,18.09375L10.75,22.28125L11.9688,21.0625Q12.5,20.625,13.0312,21.0625Q13.4688,21.59375,13.0312,22.125L10.5312,24.625Q10,25.0625,9.46875,24.625L6.96875,22.125Z" fill="#626573" fill-opacity="1"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

14
src/components/GuipButton.vue

@ -18,7 +18,7 @@ export default {
props:{
type:{
type:String,
default:''
default:'primary'
},
size:{
type:String,
@ -54,5 +54,17 @@ button span{
display: flex;
align-items: center;
}
.rotating-svg {
animation: rotate 2s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>

2
src/components/GuipDialog.vue

@ -11,7 +11,7 @@
<slot></slot>
<!-- 底部按钮 -->
<span slot="footer" :class="[type == 'center' ? 'dialog-footer-center' : 'dialog-footer-normal', 'flex']" style="justify-content: space-between;">
<GuipButton v-if="showCancelButton" @click="handleCancel" type="mild" >{{ cancelText }}</GuipButton>
<GuipButton v-if="showCancelButton" @click="handleCancel" type="ignore" >{{ cancelText }}</GuipButton>
<GuipButton type="primary" @click="handleConfirm">{{ confirmText }}</GuipButton>
</span>
</el-dialog>

47
src/components/Header.vue

@ -6,39 +6,56 @@
<div class="header-right flex">
<div class="right-item">权限设置</div>
<div class="right-item">岗位设置</div>
<div class="right-item flex">
<img class="right-item-icon" src="../assets/header-icon.png" alt="">
<span>学术论文出版</span>
<img src="../assets/header-drop.svg" alt="">
</div>
<el-dropdown trigger="click">
<div class="right-item flex el-dropdown-link">
<img class="right-item-icon" src="../assets/header-icon.png" alt="">
<span>学术论文出版</span>
<img src="../assets/header-drop.svg" alt="">
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item icon="el-icon-plus">黄金糕</el-dropdown-item>
<el-dropdown-item icon="el-icon-circle-plus">狮子头</el-dropdown-item>
<el-dropdown-item icon="el-icon-circle-plus-outline">螺蛳粉</el-dropdown-item>
<el-dropdown-item icon="el-icon-check">双皮奶</el-dropdown-item>
<el-dropdown-item icon="el-icon-circle-check">蚵仔煎</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
</template>
<style lang="scss" scoped>
.flex{
.flex {
display: flex;
}
.header-wrap{
color: #FFFFFF;
.header-wrap {
color: #1E2226;
display: flex;
justify-content: space-between;
width: 100%;
width: calc(100% - 64px);
height: 100%;
.header-logo{
img{
align-items: center;
position: absolute;
z-index: 9;
.header-logo {
img {
height: 46px;
}
}
.header-right{
.header-right {
width: 362px;
justify-content: space-between;
.el-dropdown-link {
cursor: pointer;
}
.right-item-icon{
.right-item-icon {
width: 36px;
height: 36px;
}
.right-item-icon +span{
.right-item-icon+span {
display: inline-block;
margin: 0 6px 0 12px;
}

161
src/components/HoverButton.vue

@ -0,0 +1,161 @@
<template>
<button
class="hover-button"
:class="{ 'hover-effect': hoverEffect }"
@mouseenter="isHovered = true"
@mouseleave="isHovered = false"
@click="$emit('click')"
>
<!-- 图片/图标部分 -->
<div class="button-icon">
<slot name="icon">
<img
v-if="defaultIcon || hoverIcon"
:src="isHovered && hoverIcon ? hoverIcon : defaultIcon"
:alt="iconAlt"
/>
<span v-else class="default-icon-placeholder"></span>
</slot>
</div>
<!-- 文字部分 -->
<span
class="button-text"
:style="{
color: isHovered && hoverTextColor ? hoverTextColor : defaultTextColor
}"
>
<slot>{{ buttonText }}</slot>
</span>
</button>
</template>
<script>
export default {
name: 'HoverButton',
props: {
//
buttonText: {
type: String,
default: '按钮'
},
//
defaultIcon: {
type: String,
default: ''
},
//
hoverIcon: {
type: String,
default: ''
},
// alt
iconAlt: {
type: String,
default: '按钮图标'
},
//
defaultTextColor: {
type: String,
default: '#333333'
},
//
hoverTextColor: {
type: String,
default: '#007bff'
},
//
hoverEffect: {
type: Boolean,
default: true
},
// (primary, danger, success)
type: {
type: String,
default: 'default',
validator: value => ['default', 'primary', 'danger', 'success', 'warning'].includes(value)
}
},
data() {
return {
isHovered: false
}
}
}
</script>
<style scoped>
.hover-button {
font-family: Microsoft YaHei UI;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
outline: none;
background: #F2F3F5;
border: 1px solid #BABDC2;
}
.hover-button.hover-effect:hover {
background: #F2F7FF;
border-color: #006AFF;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 按钮类型样式 */
.hover-button.primary {
background-color: #007bff;
border-color: #007bff;
color: white;
}
.hover-button.danger {
background-color: #dc3545;
border-color: #dc3545;
color: white;
}
.hover-button.success {
background-color: #28a745;
border-color: #28a745;
color: white;
}
.hover-button.warning {
background-color: #ffc107;
border-color: #ffc107;
color: #212529;
}
/* 图标样式 */
.button-icon {
display: inline-flex;
align-items: center;
margin-right: 8px;
}
.button-icon img {
width: 20px;
height: 20px;
transition: opacity 0.3s ease;
}
.default-icon-placeholder {
display: inline-block;
width: 20px;
height: 20px;
background-color: #ddd;
border-radius: 50%;
}
/* 文字样式 */
.button-text {
transition: color 0.3s ease;
}
</style>

171
src/style/theme/common.scss

@ -224,8 +224,9 @@ body {
/* button==== start */
.el-button {
width: 144px;
height: 46px;
border-radius: 2px;
width: 96px;
height: 38px;
font-family: Microsoft YaHei UI;
font-size: 14px;
letter-spacing: 0.08em;
@ -233,6 +234,8 @@ body {
align-items: center;
justify-content: center;
transition: all .3s;
background: #006AFF;
color: #fff;
span{
display: flex;
align-items: center;
@ -241,77 +244,127 @@ body {
margin-right: 6px;
}
}
.el-button--normal {
color: #626573;
.el-button--superBig{
width: 388px;
height: 46px;
border-radius: 4px;
}
.el-button--mild {
background: #FFFFFF;
.el-button--big{
width: 247px;
height: 46px;
border-radius: 4px;
}
.el-button--page{
width: 144px;
height: 46px;
border-radius: 2px;
}
.el-button--table{
width: 90px;
height: 32px;
border-radius: 2px;
}
.el-button--form{
width: 88px;
height: 33px;
border-radius: 2px;
}
.el-button--primary,.el-button--normal{
background: #006AFF;
border: 1px solid #006AFF;
color: #006AFF;
}
.el-button--primary,
.el-button--success,
.el-button--info,
.el-button--warning,
.el-button--danger {
color: #fff !important;
.el-button--system {
color: #006AFF;
background: #FFFFFF;
border: 1px solid #DFE2E6;
&:hover{
background: #F2F7FF;
border: 1px solid #006AFF;
}
}
.el-button--ignore{
color: #626573;
background: #FFFFFF;
border: 1px solid #DFE2E6;
&:hover{
background: #FFFFFF;
border: 1px solid #006AFF;
}
}
.el-button--medium.is-disabled .el-button--ignore.is-disabled{
background: #F2F3F5;
border: 1px solid #F2F3F5;
color: #626573;
}
.el-button--medium {
//中等按钮
width: 97px;
height: 33px;
font-size: 14px;
line-height: 14px;
span {
height: 14px;
}
// .el-button--mild {
// background: #FFFFFF;
// border: 1px solid #006AFF;
// color: #006AFF;
// }
}
// .el-button--primary,
// .el-button--success,
// .el-button--info,
// .el-button--warning,
// .el-button--danger {
// color: #fff !important;
// }
.el-button--small {
//小的按钮
width: 80px;
height: 32px;
font-size: 12px;
}
// .el-button--medium {
// //中等按钮
// width: 97px;
// height: 33px;
// font-size: 14px;
// line-height: 14px;
.el-button--mini {
//迷你按钮
width: 80px;
height: 28px;
font-size: 12px;
}
// span {
// height: 14px;
// }
.el-button--reverseMild {
background: #E8F0FE;
color: #006AFF;
border: none;
}
// }
.el-button--reverseMild:hover {
border-color: #F2F7FF !important;
background-color: #F2F7FF !important;
}
// .el-button--small {
// //小的按钮
// width: 80px;
// height: 32px;
// font-size: 12px;
// }
.el-button--reverseMild.is-disabled,
.el-button--reverseMild.is-disabled:hover {
color: #006AFF;
border-color: #E8F0FE;
background-color: #E8F0FE;
opacity: .7;
}
// .el-button--mini {
// //迷你按钮
// width: 80px;
// height: 28px;
// font-size: 12px;
// }
.el-button--mild.is-disabled,
.el-button--mild.is-disabled:hover {
color: #006AFF;
opacity: .7;
border-color: #006AFF;
}
// .el-button--reverseMild {
// background: #E8F0FE;
// color: #006AFF;
// border: none;
// }
// .el-button--reverseMild:hover {
// border-color: #F2F7FF !important;
// background-color: #F2F7FF !important;
// }
// .el-button--reverseMild.is-disabled,
// .el-button--reverseMild.is-disabled:hover {
// color: #006AFF;
// border-color: #E8F0FE;
// background-color: #E8F0FE;
// opacity: .7;
// }
// .el-button--mild.is-disabled,
// .el-button--mild.is-disabled:hover {
// color: #006AFF;
// opacity: .7;
// border-color: #006AFF;
// }
/* button==== end */

119
src/views/elementGroups.vue

@ -153,6 +153,45 @@
</el-radio-group>
</div>
<div class="ele-item">
<label for="">按钮尺寸</label>
<GuipButton size="superBig">加盟并进入后台</GuipButton>
<GuipButton size="big">准备完毕验证自有域名</GuipButton>
<GuipButton size="page">下一步</GuipButton>
<GuipButton size="primary">保存</GuipButton>
<GuipButton size="table">新增站点</GuipButton>
<GuipButton size="form">前往添加</GuipButton>
</div>
<div class="ele-item">
<label for="">强按钮</label>
<!-- 默认 type= primary normal 样式 -->
<GuipButton>默认</GuipButton>
<GuipButton loading>按钮</GuipButton>
<GuipButton disabled>按钮</GuipButton>
</div>
<div class="ele-item">
<label for="">弱按钮</label>
<GuipButton type="ignore">按钮</GuipButton>
<GuipButton type="ignore" loading>按钮</GuipButton>
<GuipButton type="ignore" disabled>按钮</GuipButton>
</div>
<div class="ele-item">
<label for="">中按钮</label>
<GuipButton type="system">按钮</GuipButton>
<GuipButton type="system" loading>按钮</GuipButton>
<GuipButton type="system" disabled>按钮</GuipButton>
</div>
<div class="ele-item">
<label for="">独特按钮</label>
<hover-button button-text="上传文件" :default-icon="require('../assets/upLoad_grey.svg')"
:hover-icon="require('../assets/upLoad_active.svg')" default-text-color="#23242B"
hover-text-color="#006AFF" @click="btnClick" />
</div>
<div class="ele-item">
<label for="">独特按钮单独写样式</label>
<div class="btn1">创建首个网站</div>
</div>
<!-- <div class="ele-item">
<label for="">常规按钮</label>
<GuipButton>默认按钮</GuipButton>
<GuipButton type="mild" size="medium">轻度按钮</GuipButton>
@ -168,7 +207,6 @@
<label for="">禁用按钮</label>
<GuipButton disabled>默认按钮</GuipButton>
<GuipButton type="mild" disabled size="medium">轻度按钮</GuipButton>
<GuipButton type="reverseMild" disabled>按钮</GuipButton>
<GuipButton type="primary" size="medium" disabled>按钮</GuipButton>
<GuipButton type="success" disabled>按钮</GuipButton>
@ -182,11 +220,10 @@
<GuipButton type="primary" size="medium">中等按钮</GuipButton>
<GuipButton type="primary" size="small">小的按钮</GuipButton>
<GuipButton type="primary" size="mini">迷你按钮</GuipButton>
</div>
</div> -->
<div class="ele-item">
<label for="">自定义宽高按钮</label>
<GuipButton type="primary" :btnstyle="btnstyleObj">超长啊扭测试长的长的</GuipButton>
<GuipButton type="primary" :btnstyle="btnstyleObj1">随便写的</GuipButton>
<GuipButton type="primary" :btnstyle="btnstyleObj">宽高自定义</GuipButton>
</div>
<div style="width: 600px;">
@ -202,24 +239,12 @@
prop="age" placeholder="这是自定义默认提示语" />
</div>
<div style="width: 600px;height: 150px;">
<h3>获取手机验证码(布局也可更改使用插槽自定义展示内容)</h3>
<GuipFormItem column="column" addClass="w388">
<!-- 这个 form-top-icon 类名已经有样式除此布局外需要自定义添加样式 -->
<div slot="formLeft" class="form-top-icon">
<img src="../assets/franchise1/phone-fill.svg" alt="">
<span>手机号码</span>
</div>
<PhoneCode slot="formDom"></PhoneCode>
</GuipFormItem>
</div>
<div class="ele-item">
<label for="">开关L</label>
<GuipSwitch v-model="switchValue" activeText="开启" inactiveText="关闭" @change="onSwitchChange">
</GuipSwitch>
</div>
<el-button type="primary" @click="submitForm">表单Submit</el-button>
<el-button type="primary" @click="submitForm">Submit</el-button>
</el-form>
<div style="width: 100%;margin: 20px 0;height: 20px;background-color: antiquewhite;">
@ -261,14 +286,6 @@
<p>这是一个自定义内容的弹框</p>
</div>
</GuipDialog>
<!-- <el-switch v-model="switchValue1" active-text="按月付费" inactive-text="按年付费">
</el-switch>
<el-switch style="display: block" v-model="switchValue2" active-color="#13ce66"
active-text="按月付费" inactive-text="按年付费">
</el-switch> -->
</div>
</template>
@ -277,42 +294,33 @@
import { rules } from "../assets/vabForm";
// @ is an alias to /src
import GuipSwitch from '@/components/GuipSwitch.vue';
import GuipFormItem from '@/components/GuipFormItem.vue';
import GuipDialog from '@/components/GuipDialog.vue';
import GuipRadio from '@/components/GuipRadio.vue';
// import GuipForm from '@/components/GuipForm.vue';
import PhoneCode from '@/components/PhoneCode.vue';
import GuipButton from '@/components/GuipButton.vue';
// import GuipConfirm from '@/components/GuipConfirm.vue';
import GuipInput from '@/components/GuipInput.vue';
// import GuipModal from '@/components/GuipModal.vue';
import GuipSelect from '@/components/GuipSelect.vue';
import GuipTable from '@/components/GuipTable.vue';
import GuipTextarea from '@/components/GuipTextarea.vue'
import HoverButton from '@/components/HoverButton.vue'
export default {
name: 'HomeView',
components: {
GuipTextarea,
GuipTable,
GuipSwitch,
// GuipForm,
GuipDialog,
GuipRadio,
GuipFormItem,
PhoneCode,
GuipButton,
// GuipConfirm,
GuipInput,
// GuipModal,
GuipSelect
GuipSelect,
HoverButton
},
data() {
return {
date1: '',
switchValue: true,
dialogVisible: true,//
dialogVisible: false,//
showCancelButton: true, //
showCloseButton: true, //
form: {
@ -471,17 +479,15 @@ export default {
radio: 3,
radio1: 5,
btnstyleObj: {
width: '247px',
height: '44px',
background: '#F2F7FF',
borderRadius: '2px',
fontSize: '14px',
letterSpacing: '0.08em',
color: '#006AFF !important'
width: '388px',
height: '46px',
borderRadius: '4px',
background: '#006AFF',
},
btnstyleObj1: {
width: '180px',
height: '40px',
width: '247px',
height: '46px',
borderRadius: '4px',
},
styleObject: {
width: '200px',
@ -695,4 +701,23 @@ export default {
text-align: right;
justify-content: center;
}
.btn1 {
cursor: pointer;
width: 114px;
height: 40px;
/* 自动布局 */
display: flex;
align-items: center;
padding: 11px 12px;
box-sizing: border-box;
color: #FFFFFF;
border-radius: 4px;
transition: all .3s;
background: linear-gradient(290deg, #FF4143 4%, #FF768B 92%);
&:hover{
opacity: 0.7;
background: linear-gradient(290deg, #FF4143 4%, #FF768B 92%);
}
}
</style>
Loading…
Cancel
Save