Commit 7ed38cb8 by 李伟康

修改主题色

1 parent c6a2622a
...@@ -327,8 +327,6 @@ module.exports = { ...@@ -327,8 +327,6 @@ module.exports = {
// 注入 `sass` 的 `mixin` `variables` 到全局, $cdn可以配置图片cdn // 注入 `sass` 的 `mixin` `variables` 到全局, $cdn可以配置图片cdn
// 详情: https://cli.vuejs.org/guide/css.html#passing-options-to-pre-processor-loaders // 详情: https://cli.vuejs.org/guide/css.html#passing-options-to-pre-processor-loaders
prependData: ` prependData: `
@import "assets/css/mixin.scss";
@import "assets/css/variables.scss";
$cdn: "${defaultSettings.$cdn}"; $cdn: "${defaultSettings.$cdn}";
` `
} }
......
/** -------slide-left begin**/
.slide-left-enter {
opacity: 0;
-webkit-transform: translate($translateLength, 0);
transform: translate($translateLength, 0);
}
.slide-left-leave-to {
opacity: 0;
-webkit-transform: translate(-$translateLength, 0);
transform: translate(-$translateLength, 0);
}
.slide-left-enter-active {
transition: all $animateDuration ease;
}
.slide-left-leave-active {
transition: all $animateDuration ease;
}
/** -------slide-left end**/
/** -------slide-right begin**/
.slide-right-enter {
opacity: 0;
-webkit-transform: translate(-$translateLength, 0);
transform: translate(-$translateLength, 0);
}
.slide-right-leave-to {
opacity: 0;
-webkit-transform: translate($translateLength, 0);
transform: translate($translateLength, 0);
}
.slide-right-enter-active {
transition: all $animateDuration ease;
}
.slide-right-leave-active {
transition: all 0.1s ease;
}
/** -------slide-right end**/
.flip-list-move {
transition: transform $animateDuration;
}
// 路由淡入淡出
.fade-enter-active,
.fade-leave-active {
transition-property: opacity;
transition-duration: .3s;
}
.fade-enter-active {
transition-delay: .3s;
}
.fade-enter,
.fade-leave-active {
opacity: 0;
}
\ No newline at end of file \ No newline at end of file
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
position: absolute; position: absolute;
top: 6px; top: 6px;
left: 0; left: 0;
background: #5850ff; background: var(--themeColor);
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 100%; border-radius: 100%;
......
@font-face {
font-family: "iconfont"; /* Project id 2609988 */
src: url('//at.alicdn.com/t/font_2609988_3co86ufyx32.woff2?t=1623641587741') format('woff2'),
url('//at.alicdn.com/t/font_2609988_3co86ufyx32.woff?t=1623641587741') format('woff'),
url('//at.alicdn.com/t/font_2609988_3co86ufyx32.ttf?t=1623641587741') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-refresh:before {
content: "\e620";
}
.icon-people:before {
content: "\e6b4";
}
.icon-arrowdown:before {
content: "\e62b";
}
.icon-radio:before {
content: "\e600";
}
.icon-people1:before {
content: "\e82d";
}
.icon-dian:before {
content: "\ec1e";
}
@import './normalize.scss'; @import './normalize.scss';
@import './variables.scss';
@import './mixin.scss';
@import './animate.scss';
@import './iconfont.scss';
@import './vant.scss';
@import './sprite.scss'; @import './sprite.scss';
html, html,
body .app { body .app {
color: #333333; color: #333333;
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif; font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
background-color: $background-color; background-color: #FFF;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
height: 100%; height: 100%;
// overflow: hidden; // overflow: hidden;
--themeColor: #3975C6;
} }
img { img {
...@@ -71,7 +68,7 @@ img { ...@@ -71,7 +68,7 @@ img {
.btn { .btn {
padding: 0 12px; padding: 0 12px;
height: 24px; height: 24px;
background: #5850ff; background: var(--themeColor);
border-radius: 12px; border-radius: 12px;
color: #ffffff; color: #ffffff;
margin-left: auto; margin-left: auto;
......
// mixin
// 清除浮动
@mixin clearfix {
&:after {
content: '';
display: table;
clear: both;
}
}
// 多行隐藏
@mixin textoverflow($clamp: 1) {
display: block;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: $clamp;
/*! autoprefixer: ignore next */
-webkit-box-orient: vertical;
}
//flex box
@mixin flexbox($jc: space-between, $ai: center, $fd: row, $fw: nowrap) {
display: flex;
display: -webkit-flex;
flex: 1;
justify-content: $jc;
-webkit-justify-content: $jc;
align-items: $ai;
-webkit-align-items: $ai;
flex-direction: $fd;
-webkit-flex-direction: $fd;
flex-wrap: $fw;
-webkit-flex-wrap: $fw;
}
@mixin cell($fs: 14px, $fw: 400, $margin: 8px 0, $bgc: #fff) {
background-color: $bgc;
margin: $margin;
font-size: $fs;
font-weight: $fw;
color: #323233;
padding: 0 16px;
}
@mixin font($fs: 14px, $fw: 400, $c:#3975c6){
font-size: $fs;
font-weight: $fw;
color: $c;
}
@mixin mainfont($fs: 14px, $fw: 400) {
@include font($fs,$fw,#3975c6)
}
@mixin darkfont($fs: 14px, $fw: 400, $c: #323233) {
@include font($fs,$fw,$c)
}
@mixin tit {
font-size: 18px;
font-weight: 600;
padding: 14px 0;
display: block;
color: #414143;
}
@mixin textarea{
.content {
display: flex;
flex-direction: column;
.van-cell {
&__title {
flex: 1;
}
&__value {
flex: 0 0 84px;
margin-top: 12px;
background: #f7f8fa;
border-radius: 8px;
}
}
}
}
@mixin recell($mt:8px){
/deep/.van-cell {
margin-top: $mt;
&__title {
margin-right: 8px;
flex: 0 0 70px;
}
&.l{
.van-cell__title {
flex: 0 0 92px;
}
}
&.m{
.van-cell__title {
margin-right: 0;
flex: 0 0 63px;
}
}
}
}
@mixin cellradio {
@include recell();
.radio {
/deep/.van-radio,.van-checkbox {
flex: 1 1 50%;
margin: 14px 0 0;
&:nth-child(1),
&:nth-child(2) {
margin-top: 0;
}
}
}
@include textarea()
}
@mixin btnMain{
flex: 1;
height: 40px;
background-color: $main-color;
border-radius: 100px;
@include font(14px,400,#fff);
}
@mixin card{
display: flex;
height: 142px;
background: #fff;
box-shadow: 0px 2px 12px 0px rgba(100, 101, 102, 0.12);
border-radius: 4px;
padding: 16px;
margin-bottom: 8px;
}
@mixin mt($t:5px){
margin-top: $t;
}
@mixin flexcenter{
display: flex;
justify-content: center;
align-items: center;
}
.van-radio,
.van-checkbox {
&__icon {
&--checked {
.van-icon {
background-color: $main-color !important;
border-color: $main-color !important;
}
}
}
}
// variables
$background-color: #fff;
//animate.scss
$animateDuration: 0.2s;
$translateLength: 30px;
$main-color:#3975C6;
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,16 @@ ...@@ -11,7 +11,16 @@
replace replace
:to="`/${i.name}`" :to="`/${i.name}`"
:name="i.name" :name="i.name"
>{{i.title}}</van-tabbar-item> >
<div class="item flex">
{{i.title}}
<template v-if="i.activeIcon && i.icon">
<div class="icon">
<img :src="value == i.name ? i.activeIcon :i.icon" />
</div>
</template>
</div>
</van-tabbar-item>
</template> </template>
</van-tabbar> </van-tabbar>
</template> </template>
...@@ -19,7 +28,10 @@ ...@@ -19,7 +28,10 @@
export default { export default {
name: 'TabBar', name: 'TabBar',
props: { props: {
routerName: String, routerName: {
type: String,
default: 'home'
},
parent: String, parent: String,
data: { data: {
type: Array, type: Array,
...@@ -28,13 +40,13 @@ export default { ...@@ -28,13 +40,13 @@ export default {
} }
} }
}, },
data () { data() {
return { return {
value: this.routerName value: this.routerName
} }
}, },
methods: { methods: {
change (value) { change(value) {
this.$emit('change', value) this.$emit('change', value)
} }
} }
...@@ -59,10 +71,17 @@ export default { ...@@ -59,10 +71,17 @@ export default {
content: ''; content: '';
} }
.van-tabbar-item--active { .van-tabbar-item--active {
color: #5850ff; color: var(--themeColor);
} }
.van-tabbar-item { .van-tabbar-item {
font-size: 16px; font-size: 16px;
} }
.item {
.icon {
width: 20px;
height: 20px;
margin-left: 4px;
}
}
} }
</style> </style>
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
.polo { .polo {
width: 100%; width: 100%;
height: 100%; height: 100%;
border: 1px solid #5850ff; border: 1px solid var(--themeColor);
overflow: hidden; overflow: hidden;
border-radius: 100%; border-radius: 100%;
.polo-box { .polo-box {
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
.number { .number {
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
color: #5850ff; color: var(--themeColor);
z-index: 2; z-index: 2;
span { span {
font-size: 7px; font-size: 7px;
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
} }
.white { .white {
color: #fff; color: #fff;
text-shadow: 1px 1px #5850ff; text-shadow: 1px 1px var(--themeColor);
} }
.one, .one,
.two, .two,
...@@ -81,21 +81,21 @@ export default { ...@@ -81,21 +81,21 @@ export default {
} }
.one { .one {
border-radius: 40% 50% 40% 60%; border-radius: 40% 50% 40% 60%;
background-color: #5850ff; background-color: var(--themeColor);
left: -25%; left: -25%;
// left: -50%; // left: -50%;
animation: ball-move linear infinite 5s; animation: ball-move linear infinite 5s;
} }
.two { .two {
border-radius: 45% 35% 50% 60%; border-radius: 45% 35% 50% 60%;
background-color: rgb(194, 191, 255); background-color: rgb(197, 215, 239);
left: -25%; left: -25%;
// left: -50%; // left: -50%;
animation: ball-move linear infinite 7.5s; animation: ball-move linear infinite 7.5s;
} }
.three { .three {
border-radius: 40% 60% 50% 40%; border-radius: 40% 60% 50% 40%;
background-color: rgb(238, 237, 255); background-color: rgb(235, 241, 249);
left: -10%; left: -10%;
// left: -20%; // left: -20%;
animation: ball-move linear infinite 10s; animation: ball-move linear infinite 10s;
......
...@@ -179,10 +179,10 @@ export default { ...@@ -179,10 +179,10 @@ export default {
wwbenchApi.updateTasks({ id }).then(res => { wwbenchApi.updateTasks({ id }).then(res => {
if (taskType == 3 || taskType == 4) { if (taskType == 3 || taskType == 4) {
Dialog.alert({ Dialog.alert({
message: '请去企业微信“消息”列表-“群发助手”中进行转发', message: '请去企业微信“消息”列表-“客户联系”中进行转发',
theme: 'round-button', theme: 'round-button',
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
confirmButtonColor: '#5850ff' confirmButtonColor: 'var(--themeColor)'
}) })
} else { } else {
let sessionId = this.getSessionId() let sessionId = this.getSessionId()
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
left: -11px; left: -11px;
width: 6px; width: 6px;
height: 6px; height: 6px;
background: #5850ff; background: var(--themeColor);
border-radius: 100%; border-radius: 100%;
content: ''; content: '';
} }
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
display: inline-flex !important; display: inline-flex !important;
width: 34px; width: 34px;
height: 14px; height: 14px;
border: 1px solid #5850ff; border: 1px solid var(--themeColor);
border-radius: 4px; border-radius: 4px;
font-size: 10px; font-size: 10px;
color: #837aff; color: #837aff;
......
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
<div class="item column"> <div class="item column">
<div class="title">联系电话</div> <div class="title">联系电话</div>
<div class="phone"> <div class="phone">
嘀加SCRM - 16875411234 嘀加SCRM - 18824231191
<div <div
class="icon" class="icon"
@click="makePhoneCall(16875411234)" @click="makePhoneCall(18824231191)"
> >
<img src="@/assets/images/icon/phone.png"> <img src="@/assets/images/icon/phone.png">
</div> </div>
......
...@@ -24,10 +24,14 @@ export default { ...@@ -24,10 +24,14 @@ export default {
{ {
title: '我的待办', title: '我的待办',
name: 'home', name: 'home',
icon: require('@/assets/images/icon/home.png'),
activeIcon: require('@/assets/images/icon/home-active.png')
}, },
{ {
title: '工作台', title: '工作台',
name: 'workbench', name: 'workbench',
icon: require('@/assets/images/icon/workbench.png'),
activeIcon: require('@/assets/images/icon/workbench-active.png')
} }
], ],
showWindow: false, showWindow: false,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="merchant"> <div class="merchant">
<template v-if="accountList.length"> <template v-if="accountList.length">
<van-dropdown-menu <van-dropdown-menu
active-color="#5850ff" active-color="#3975C6"
class="merchant" class="merchant"
> >
<van-dropdown-item <van-dropdown-item
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<div class="drop-down-box flex"> <div class="drop-down-box flex">
<div class="item flex"> <div class="item flex">
<div class="label">状态</div> <div class="label">状态</div>
<van-dropdown-menu active-color="#5850ff"> <van-dropdown-menu active-color="#3975C6">
<van-dropdown-item <van-dropdown-item
v-model="status" v-model="status"
:options="statusOption" :options="statusOption"
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
<div class="item flex"> <div class="item flex">
<div class="label">类型</div> <div class="label">类型</div>
<van-dropdown-menu active-color="#5850ff"> <van-dropdown-menu active-color="#3975C6">
<van-dropdown-item <van-dropdown-item
v-model="taskType" v-model="taskType"
:options="taskTypeOption" :options="taskTypeOption"
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
type="range" type="range"
@confirm="onConfirmCalendar" @confirm="onConfirmCalendar"
allow-same-day allow-same-day
color="#5850FF" color="#3975C6"
:min-date="minDate" :min-date="minDate"
:max-date="maxDate" :max-date="maxDate"
:default-date="default_Date" :default-date="default_Date"
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
left: 0; left: 0;
width: 100%; width: 100%;
height: 162px; height: 162px;
background: linear-gradient(180deg, #3975c6 0%, #4459e5 100%); background: var(--themeColor);
border-radius: 0px 0px 16px 16px; border-radius: 0px 0px 16px 16px;
content: ''; content: '';
z-index: -1; z-index: -1;
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
background: #d8d8d8; background: #d8d8d8;
} }
.info{ .info{
max-width: calc(100% - 120px); max-width: calc(100% - 130px);
} }
.name { .name {
font-size: 16px; font-size: 16px;
...@@ -366,6 +366,7 @@ export default { ...@@ -366,6 +366,7 @@ export default {
/deep/.van-dropdown-menu__bar { /deep/.van-dropdown-menu__bar {
background-color: transparent !important; background-color: transparent !important;
box-shadow: none; box-shadow: none;
height: auto;
} }
} }
</style> </style>
......
...@@ -86,8 +86,6 @@ module.exports = { ...@@ -86,8 +86,6 @@ module.exports = {
// 向全局sass样式传入共享的全局变量, $src可以配置图片cdn前缀 // 向全局sass样式传入共享的全局变量, $src可以配置图片cdn前缀
// 详情: https://cli.vuejs.org/guide/css.html#passing-options-to-pre-processor-loaders // 详情: https://cli.vuejs.org/guide/css.html#passing-options-to-pre-processor-loaders
prependData: ` prependData: `
@import "assets/css/mixin.scss";
@import "assets/css/variables.scss";
$cdn: "${defaultSettings.cdn}"; $cdn: "${defaultSettings.cdn}";
` `
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!