Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-02 22:10:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7941d2aa78222dfa29b96657d93c80b8051dc0f6
7941d2aa
1 parent
00534532
🌈 style: 主基调颜色调整
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
122 additions
and
74 deletions
src/App.vue
src/assets/styles/base.less
src/components/BVideoCard/index.vue
src/components/BookCard/index.vue
src/components/CommentBox/index.vue
src/components/DonateBar/index.vue
src/components/DonateFlower/agreement.js
src/components/DonateFlower/index.vue
src/components/LoginBox/index.vue
src/components/MyButton/index.vue
src/constant.js
src/settings/designSetting.js
src/views/business/auditVideo.vue
src/views/business/login.vue
src/views/business/me.vue
src/views/client/bookDetail.vue
src/views/client/personIndex.vue
src/views/client/videoDetailComment.vue
src/views/me/donateList.vue
src/views/me/handleUser.vue
src/views/me/index.vue
src/views/me/verifyUser.vue
src/App.vue
View file @
7941d2a
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-0
1 17:39:4
8
* @LastEditTime: 2022-06-0
2 21:31:2
8
* @FilePath: /tswj/src/App.vue
* @Description:
-->
...
...
@@ -54,10 +54,10 @@ body {
body {
position: relative;
/
*
--van-white: #fff;
--van-blue: #1989fa;
--van-button-primary-color: var(--van-white);
--van-button-primary-background: var(--van-primary-color); */
/
/
--van-white: #fff;
//
--van-blue: #1989fa;
//
--van-button-primary-color: var(--van-white);
// --van-button-primary-background: var(--van-primary-color);
/* 全局修改主色调 */
// --van-blue: #F9D95C;
...
...
src/assets/styles/base.less
View file @
7941d2a
...
...
@@ -3,4 +3,6 @@
/*
============
颜色
============
*/
//
主色调
@base
-color:
#F9EA57;
@base
-color:
#11D2B1;
//
文字颜色
@base
-font-color:
#FFFFFF;
...
...
src/components/BVideoCard/index.vue
View file @
7941d2a
...
...
@@ -41,15 +41,15 @@
</div>
</div>
</div>
<div v-if="status === 'PENDING'" class="van-hairline--top
" style="padding: 0 1rem;
">
<div v-if="status === 'PENDING'" class="van-hairline--top
book-handle
">
<van-row>
<van-col offset="3" style="padding: 1rem;" @click="onRefuse()">
<div
style="background: #B4B4B3; border-radius: 15px; color: #FFFFFF; padding: 0.25rem 0.8rem;
">
<div
class="disagree-btn
">
<van-icon name="close" /> 不通过
</div>
</van-col>
<van-col style="padding: 1rem;" @click="onPass()">
<div
style="background: #F9D95C; border-radius: 15px; color: #713610; padding: 0.25rem 1.5rem;
">
<div
class="agree-btn" style="
">
<van-icon name="passed" /> 通过
</div>
</van-col>
...
...
@@ -78,7 +78,7 @@
</div>
</van-overlay>
<van-dialog v-model:show="show" title="温馨提示" show-cancel-button
confirmButtonColor="#F9D95C
" @confirm="handleAudit('enable')" @cancel="onCancel">
<van-dialog v-model:show="show" title="温馨提示" show-cancel-button
:confirmButtonColor="styleColor.baseColor
" @confirm="handleAudit('enable')" @cancel="onCancel">
<div style="padding: 1rem; text-align: center;">是否确认审核通过该视频 ?</div>
</van-dialog>
</template>
...
...
@@ -98,6 +98,7 @@ import MuiPlayer from 'mui-player'
import axios from '@/utils/axios';
import _ from 'lodash';
import tools from '@/common/tool'
import { styleColor } from '@/constant.js';
import { useRoute, useRouter } from 'vue-router'
import { Toast } from 'vant';
...
...
@@ -259,6 +260,21 @@ export default {
font-size: 1rem;
}
}
.book-handle {
padding: 0 1rem;
.disagree-btn {
background: #B4B4B3;
border-radius: 15px;
color: #FFFFFF;
padding: 0.25rem 0.8rem;
}
.agree-btn {
background: @base-color;
border-radius: 15px;
color: @base-font-color;
padding: 0.25rem 1.5rem;
}
}
}
.wrapper {
...
...
src/components/BookCard/index.vue
View file @
7941d2a
...
...
@@ -107,7 +107,7 @@ export default {
}
.upload {
color:
#713610
;
color:
@base-font-color
;
background-color: @base-color;
border-radius: 15px;
width: 4rem;
...
...
src/components/CommentBox/index.vue
View file @
7941d2a
...
...
@@ -131,7 +131,7 @@ export default {
background: @base-color;
border-radius: 24px;
border: 1px solid @base-color;
color:
#713610
;
color:
@base-font-color
;
font-weight: bold;
margin-left: 1rem;
margin-bottom: 1rem;
...
...
src/components/DonateBar/index.vue
View file @
7941d2a
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-31 18:32:38
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-0
1 19:17:16
* @LastEditTime: 2022-06-0
2 21:15:28
* @FilePath: /tswj/src/components/DonateBar/index.vue
* @Description: 爱心助力底部固定栏
-->
...
...
@@ -81,7 +81,7 @@ const closeDonate = (v) => {
font-weight: bold;
border-radius: 24px;
// border: 1px solid F7F7F7;
color:
#713610
;
color:
@base-font-color
;
background-color: @base-color;
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06);
}
...
...
src/components/DonateFlower/agreement.js
View file @
7941d2a
...
...
@@ -2,13 +2,13 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-06-02 11:23:16
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-02 2
0:02:30
* @LastEditTime: 2022-06-02 2
1:41:36
* @FilePath: /tswj/src/components/DonateFlower/agreement.js
* @Description:
*/
const
str
=
'上海XX益基金会'
const
html
=
`
<div style="text-align: center; font-weight: bold; margin-bottom: 1rem; font-size: 1.25rem; color: #
713610
;">
<div style="text-align: center; font-weight: bold; margin-bottom: 1rem; font-size: 1.25rem; color: #
11D2B1
;">
捐赠协议
</div>
<div style="text-align: justify; color: #231815; font-size: 1.05rem;">
...
...
src/components/DonateFlower/index.vue
View file @
7941d2a
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-31 22:09:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-02 2
0:04:23
* @LastEditTime: 2022-06-02 2
1:40:50
* @FilePath: /tswj/src/components/DonateFlower/index.vue
* @Description: 捐花组件
-->
...
...
@@ -56,14 +56,14 @@
</van-col>
</van-row>
</div>
<van-row
style="margin: 1rem 0;
">
<van-row
class="agree-wrapper
">
<van-col span="12" offset="8">
<div
style="display: flex;align-items: center; box-sizing: content-box;
">
<div
style="display: flex; flex-direction: column; justify-content: center;
">
<div
class="agree-content
">
<div
class="btn
">
<van-checkbox v-model="agreed" checked-color="#ee0a24">同意 </van-checkbox>
</div>
<div
style="display: flex; flex-direction: column; justify-content: center;
">
<span
style="text-decoration: underline; color: #713610;"
@click="handleDA">捐赠协议</span>
<div
class="text
">
<span @click="handleDA">捐赠协议</span>
</div>
</div>
</van-col>
...
...
@@ -219,20 +219,21 @@ const closeDA = () => {
.base-item {
text-align: center;
color: #713610;
padding: 0.5rem 0;
}
.checked-item {
background: #F9EA57;
color: @base-font-color;
background: @base-color;
border-radius: 3px;
border: 1px solid
#F9EA57
;
border: 1px solid
@base-color
;
}
.uncheck-item {
background: #FFFFFF;
color: @base-color;
background: @base-font-color;
border-radius: 3px;
border: 1px solid
#713610
;
border: 1px solid
@base-color
;
}
}
...
...
@@ -253,6 +254,21 @@ const closeDA = () => {
margin-left: 1rem;
}
}
.agree-wrapper {
margin: 1rem 0;
.agree-content {
display: flex;align-items: center; box-sizing: content-box;
.btn {
display: flex; flex-direction: column; justify-content: center;
}
.text {
display: flex; flex-direction: column; justify-content: center;
span {
text-decoration: underline; color: #11D2B1;
}
}
}
}
.donate-number {
padding: 1rem;
...
...
@@ -296,7 +312,7 @@ const closeDA = () => {
font-weight: bold;
border-radius: 24px;
// border: 1px solid F7F7F7;
color:
#713610
;
color:
@base-font-color
;
background-color: @base-color;
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06);
}
...
...
src/components/LoginBox/index.vue
View file @
7941d2a
...
...
@@ -39,6 +39,7 @@ import { ref, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useCountDown } from '@vant/use';
import { wxInfo } from '@/utils/tools';
import { styleColor } from '@/constant.js';
import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@/utils/generatePackage.js'
//import { } from '@/utils/generateModules.js'
...
...
@@ -71,9 +72,9 @@ defineExpose({
})
const themeVars = {
buttonPrimaryBackground:
'#F9D95C'
,
buttonPrimaryBorderColor:
'#F9D95C'
,
buttonPrimaryColor:
'#713610'
,
buttonPrimaryBackground:
styleColor.baseColor
,
buttonPrimaryBorderColor:
styleColor.baseColor
,
buttonPrimaryColor:
styleColor.baseFontColor
,
CellVerticalPadding: '14px'
};
...
...
src/components/MyButton/index.vue
View file @
7941d2a
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-04-21 10:04:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-0
1 17:07:58
* @LastEditTime: 2022-06-0
2 21:18:10
* @FilePath: /tswj/src/components/MyButton/index.vue
* @Description:
-->
...
...
@@ -64,7 +64,7 @@ export default {
background: @base-color;
border-radius: 24px;
border: 1px solid @base-color;
color:
#713610
;
color:
@base-font-color
;
font-weight: bold;
}
.button-plain {
...
...
@@ -74,10 +74,10 @@ export default {
padding: 0.6rem;
margin: 0.5rem;
font-size: 1rem;
background:
#FFFFFF
;
background:
@base-font-color
;
border-radius: 24px;
border: 1px solid
#713610
;
color:
#713610
;
border: 1px solid
@base-color
;
color:
@base-color
;
font-weight: bold;
}
.button-custom {
...
...
src/constant.js
View file @
7941d2a
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-25 18:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-0
5-31 14:28:40
* @LastEditTime: 2022-0
6-02 21:14:14
* @FilePath: /tswj/src/constant.js
* @Description:
*/
...
...
@@ -14,5 +14,6 @@ export const JSJ_FORM_B = 'https://jsj.onwall.cn/f/g7D0MT';
// 颜色变量
export
const
styleColor
=
{
baseColor
:
'#F9EA57'
baseColor
:
'#11D2B1'
,
baseFontColor
:
'#FFFFFF'
}
...
...
src/settings/designSetting.js
View file @
7941d2a
...
...
@@ -2,45 +2,51 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 10:08:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-0
5-31 14:28:12
* @LastEditTime: 2022-0
6-02 21:50:17
* @FilePath: /tswj/src/settings/designSetting.js
* @Description:
这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description:
*/
import
{
ref
}
from
'vue'
;
import
{
styleColor
}
from
'@/constant.js'
;
export
const
styleObject1
=
ref
({
backgroundColor
:
'#FFFFFF'
,
color
:
'#0B3A72'
,
borderColor
:
'#0B3A72'
backgroundColor
:
styleColor
.
baseFontColor
,
color
:
styleColor
.
baseColor
,
borderColor
:
styleColor
.
baseColor
})
export
const
styleObject2
=
ref
({
backgroundColor
:
styleColor
.
baseColor
,
color
:
'#0B3A72'
,
color
:
styleColor
.
baseFontColor
,
borderColor
:
styleColor
.
baseColor
})
export
const
styleObject3
=
ref
({
backgroundColor
:
'#F4675A'
,
color
:
'#FFFFFF'
,
color
:
styleColor
.
baseFontColor
,
borderColor
:
'#F4675A'
})
export
const
styleObject4
=
ref
({
backgroundColor
:
'#FFFFFF'
,
backgroundColor
:
styleColor
.
baseFontColor
,
color
:
'#713610'
,
borderColor
:
'#713610'
})
export
const
styleObject5
=
ref
({
backgroundColor
:
'#FFFFFF'
,
backgroundColor
:
styleColor
.
baseFontColor
,
color
:
'#FDD347'
,
borderColor
:
'#FDD347'
})
export
const
styleObject6
=
ref
({
backgroundColor
:
'#FFFFFF'
,
backgroundColor
:
styleColor
.
baseFontColor
,
color
:
'#777777'
,
borderColor
:
'#777777'
})
export
const
styleObject7
=
ref
({
backgroundColor
:
styleColor
.
baseFontColor
,
color
:
'#0B3A72'
,
borderColor
:
'#0B3A72'
})
...
...
src/views/business/auditVideo.vue
View file @
7941d2a
<template>
<div class="">
<van-tabs v-model:active="active" sticky @click-tab="onClickTab"
color="#F9D95C
" background="#F7F7F7"
<van-tabs v-model:active="active" sticky @click-tab="onClickTab"
:color="styleColor.baseColor
" background="#F7F7F7"
title-active-color="#222222" title-inactive-color="#777777">
<van-tab title="待审核" :badge="prod_num" :title-style="titleStyle">
<template v-if="!active">
...
...
@@ -38,6 +38,7 @@ import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import _ from 'lodash'
import { Toast } from 'vant';
import { styleColor } from '@/constant.js';
const titleStyle = {
fontSize: '1rem'
...
...
src/views/business/login.vue
View file @
7941d2a
...
...
@@ -53,6 +53,7 @@
<script setup>
import Cookies from 'js-cookie'
import ImageSliderVerify from '@/components/ImageSliderVerify/index.vue'
import { styleColor } from '@/constant.js';
import { ref, onMounted } from 'vue';
import { Toast } from 'vant'
...
...
@@ -227,9 +228,9 @@ const onSubmit = (values) => {
};
const themeVars = {
buttonPrimaryBackground:
'#F9D95C'
,
buttonPrimaryBorderColor:
'#F9D95C'
,
buttonPrimaryColor:
'#713610'
,
buttonPrimaryBackground:
styleColor.baseColor
,
buttonPrimaryBorderColor:
styleColor.baseColor
,
buttonPrimaryColor:
styleColor.baseFontColor
,
CellVerticalPadding: '14px'
};
...
...
@@ -274,7 +275,7 @@ body {
margin: 16px;
background-color: @base-color;
text-align: center;
color:
#713610
;
color:
@base-font-color
;
font-size: 2.25vh;
padding: 1.5vh;
border-radius: 5px;
...
...
src/views/business/me.vue
View file @
7941d2a
<template>
<div style="background:
linear-gradient(310deg, #FDD347 0%, #FFED6D 100%)
; padding: 1rem; text-align: center;">
<div style="background:
#CFF
; padding: 1rem; text-align: center;">
<van-image v-if="myKgInfo.logo" round width="4rem" height="4rem" :src="myKgInfo.logo" />
<van-image v-else round width="4rem" height="4rem" :src="icon_avatar" />
<p style="margin-top: 1rem; font-size: 1.05rem; font-weight: bold;">{{ myKgInfo.name }}</p>
...
...
src/views/client/bookDetail.vue
View file @
7941d2a
...
...
@@ -26,7 +26,6 @@
<van-row>
<van-col span="12">
<span class="bg-gradient">作品演绎</span>
<!-- <div style="background-color: #F9D95C; width: 70px; height: 4px;"></div> -->
</van-col>
<van-col span="12">
<div style="font-size: 1rem; color: #999999; text-align: right;">
...
...
@@ -377,7 +376,7 @@ const goToDetail = (v) => { // 跳转作品详情页
border-radius: 15px;
padding: 0.5rem;
text-align: center;
color:
#222222
;
color:
@base-font-color
;
margin: 0 0.25rem;
}
...
...
src/views/client/personIndex.vue
View file @
7941d2a
...
...
@@ -161,7 +161,8 @@ onBeforeRouteLeave(() => {
.person-index-page {
.header-wrapper {
// background: linear-gradient(310deg, #FDD347 0%, #FFED6D 100%);
background: @base-color;
// background: @base-color;
background: #CFF;
.info {
padding: 2rem;
...
...
@@ -180,10 +181,10 @@ onBeforeRouteLeave(() => {
.toggle-user {
float: right;
font-size: 0.8rem;
background-color:
white
;
background-color:
@base-font-color
;
border-radius: 15px;
padding: 5px 10px;
color:
#713610
;
color:
@base-color
;
}
}
...
...
src/views/client/videoDetailComment.vue
View file @
7941d2a
...
...
@@ -317,7 +317,7 @@ onMounted(() => {
font-weight: bold;
border-radius: 24px;
// border: 1px solid F7F7F7;
color:
#713610
;
color:
@base-font-color
;
background-color: @base-color;
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06);
}
...
...
src/views/me/donateList.vue
View file @
7941d2a
...
...
@@ -116,7 +116,8 @@ watch(show, (v) => {
<style lang="less" scoped>
.donate-list-page {
.donate-header {
background: linear-gradient(310deg, #FDD347 0%, #FFED6D 100%);
// background: linear-gradient(310deg, #FDD347 0%, #FFED6D 100%);
background: #CFF;
padding: 1rem;
text-align: center;
color: #713610;
...
...
src/views/me/handleUser.vue
View file @
7941d2a
...
...
@@ -43,6 +43,7 @@ import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import { Toast } from 'vant';
import _ from 'lodash'
import { styleColor } from '@/constant.js';
const { lock_btn, fileList, upload_image, metaId, afterRead, beforeDelete } = useUpload(); // 上传图片模块
...
...
@@ -51,9 +52,9 @@ const $router = useRouter();
// 自定义修改组件样式
const themeVars = {
buttonPrimaryBackground:
'#F9D95C'
,
buttonPrimaryBorderColor:
'#F9D95C'
,
buttonPrimaryColor:
'#713610'
,
buttonPrimaryBackground:
styleColor.baseColor
,
buttonPrimaryBorderColor:
styleColor.baseColor
,
buttonPrimaryColor:
styleColor.baseFontColor
,
};
// 编辑状态
...
...
@@ -174,7 +175,7 @@ export default {
.add-user-page {
padding: 1rem;
.title {
color:
#713610
;
color:
@base-color
;
font-size: 1.25rem;
padding: 1rem;
text-align: center;
...
...
src/views/me/index.vue
View file @
7941d2a
...
...
@@ -53,7 +53,7 @@
<my-button v-else type="custom" :custom-style="styleObject5">已认证</my-button>
</div>
<div>
<my-button v-if="userInfo.status === 'enable'" type="custom" :custom-style="styleObject
1
"
<my-button v-if="userInfo.status === 'enable'" type="custom" :custom-style="styleObject
7
"
@on-click="handleUser('ADD')">新增儿童</my-button>
<my-button v-else type="custom" :custom-style="styleObject6" @on-click="showNotice = true">新增儿童</my-button>
</div>
...
...
@@ -95,7 +95,7 @@ import { icon_avatar } from '@/utils/generateIcons.js'
import { changePerformerAPI, myInfoAPI, myPerformerAPI } from '@/api/C/me.js'
import meRoute from '@/router/routes/modules/me'
// 自定义按钮颜色样式
import { styleObject
1
, styleObject4, styleObject5, styleObject6 } from '@/settings/designSetting.js'
import { styleObject
7
, styleObject4, styleObject5, styleObject6 } from '@/settings/designSetting.js'
import { useGo } from '@/hooks/useGo'
import { killPages } from '@/hooks/useKeepAlive'
...
...
@@ -192,7 +192,8 @@ const handleUser = (type) => {
<style lang="less" scoped>
.me-index-page {
.header-wrapper {
background: linear-gradient(310deg, #FDD347 0%, #FFED6D 100%);
// background: linear-gradient(310deg, #FDD347 0%, #FFED6D 100%);
background: #CFF;
.info {
padding: 2rem;
...
...
@@ -211,10 +212,10 @@ const handleUser = (type) => {
.toggle-user {
float: right;
font-size: 0.8rem;
background-color:
white
;
background-color:
@base-font-color
;
border-radius: 15px;
padding: 5px 10px;
color:
#713610
;
color:
@base-color
;
}
}
...
...
src/views/me/verifyUser.vue
View file @
7941d2a
...
...
@@ -47,13 +47,14 @@ import { ref, onMounted, nextTick } from 'vue'
import { useRouter } from 'vue-router'
import axios from '@/utils/axios';
import { Toast } from 'vant';
import { styleColor } from '@/constant.js';
const $router = useRouter();
const themeVars = {
buttonPrimaryBackground:
'#F9D95C'
,
buttonPrimaryBorderColor:
'#F9D95C'
,
buttonPrimaryColor:
'#713610'
,
buttonPrimaryBackground:
styleColor.baseColor
,
buttonPrimaryBorderColor:
styleColor.baseColor
,
buttonPrimaryColor:
styleColor.baseFontColor
,
};
/******************** 输入框控件 START ********************/
...
...
@@ -218,7 +219,7 @@ export default {
.verify-user-page {
padding: 1rem;
.title {
color:
#713610
;
color:
@base-color
;
font-size: 1.25rem;
padding: 1rem;
text-align: center;
...
...
Please
register
or
login
to post a comment