Skip to content

Commit 74a2d05

Browse files
committed
add themes
1 parent 4c51082 commit 74a2d05

19 files changed

Lines changed: 325 additions & 216 deletions

‎public/static/img/theme1.jpg‎

109 KB
Loading

‎public/static/img/theme2.jpg‎

202 KB
Loading

‎public/static/img/theme3.jpg‎

94.1 KB
Loading

‎src/assets/css/themes.scss‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
$t1-base-color: #409EFF;
2+
$t2-base-color: #fe7c01;
3+
$t3-base-color: #6e7786;
4+
5+
.theme1 {
6+
box-shadow: 0px 1px 10px 1px $t1-base-color;
7+
width: 94%;
8+
background: #fff;
9+
border-radius: 8px;
10+
margin: 0 20px 3% 20px;
11+
padding-bottom: 20px;
12+
overflow: hidden;
13+
}
14+
15+
.theme2 {
16+
box-shadow: 0px 1px 10px 1px $t2-base-color;
17+
width: 94%;
18+
background: #fff;
19+
border-radius: 8px;
20+
margin: 0 20px 3% 20px;
21+
padding-bottom: 20px;
22+
overflow: hidden;
23+
}
24+
25+
.theme3 {
26+
box-shadow: 0px 1px 10px 1px #6e7786;
27+
width: 94%;
28+
background: #fff;
29+
border-radius: 8px;
30+
margin: 0 20px 3% 20px;
31+
padding-bottom: 20px;
32+
overflow: hidden;
33+
}

‎src/assets/css/widget.scss‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$primary-color: #409EFF;
2-
$primary-background-color: #ecf5ff;
2+
$primary-background-color: #d8e8fa;
33

44
.widget-form-wrapper {
55
position: absolute;
@@ -11,13 +11,17 @@ $primary-background-color: #ecf5ff;
1111
.widget-form-container {
1212
min-height: calc(100% - 40px);
1313
box-shadow: 0 2px 5px 1px rgba(124, 124, 124, .2);
14-
margin: 20px;
15-
background: #fff;
14+
margin: 20px;
15+
background: #fff;
16+
17+
img {
18+
vertical-align: top
19+
}
1620
}
1721

1822
.widget-form-list {
19-
min-height: 360px;
20-
padding-bottom: 200px;
23+
min-height: 360px;
24+
padding-bottom: 25px;
2125

2226
.ghost {
2327
background: #fff;
@@ -65,15 +69,16 @@ $primary-background-color: #ecf5ff;
6569

6670
.widget-view.widget-view-imgshow {
6771
padding: 0;
68-
background: #f1f1f1;
72+
.img-placeholder {
73+
background: #f1f1f1;
74+
}
6975
}
7076

7177
.widget-view {
7278
margin: 0;
7379
padding: 10px;
7480
// background: #fff;
75-
position: relative;
76-
border: 1px solid transparent;
81+
position: relative;
7782

7883
&:after {
7984
content: "";
@@ -93,12 +98,11 @@ $primary-background-color: #ecf5ff;
9398

9499

95100
&:hover {
96-
border: 1px dashed #8cb8e4;
101+
background: #ecf5ff;
97102
}
98103

99104
&.active {
100-
background: $primary-background-color;
101-
border: 1px dashed #8cb8e4;
105+
background: $primary-background-color;
102106
// box-shadow: 0px 1px 10px 1px #90c7ff;
103107
z-index: 1111;
104108
}

‎src/assets/js/api.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
}
99
},
1010
vue: new Vue(),
11+
previewUrl: "http://192.168.218.113:3000",
1112
env() {
1213
if (process.env.NODE_ENV === "development") return "development";
1314
if (window.location.href.includes("192.168")) return "test";
@@ -250,5 +251,5 @@ export default {
250251
}
251252
}
252253
return result;
253-
}
254+
}
254255
};

‎src/assets/json/field-types.json‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,27 @@
4747
}, {
4848
"value": "accFund",
4949
"label": "是否有本地公积金"
50-
}],
50+
}],
5151

52-
"dateTypes": [{
52+
"dateTypes": [{
5353
"value": "birthday",
5454
"label": "生日"
55+
}],
56+
57+
"themes": [{
58+
"value": "theme1",
59+
"name": "主题1",
60+
"banner": "static/img/theme1.jpg",
61+
"background": "#4a9bed"
62+
}, {
63+
"value": "theme2",
64+
"name": "主题2",
65+
"banner": "static/img/theme2.jpg",
66+
"background": "#fe7c01"
67+
}, {
68+
"value": "theme3",
69+
"name": "主题3",
70+
"banner": "static/img/theme3.jpg",
71+
"background": "#707988"
5572
}]
5673
}

‎src/assets/json/page-config.json‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"title": "骏伯网络",
3-
"themes":[{
4-
"type": "theme1",
5-
"name": "主题1",
6-
"list":[]
7-
}]
2+
"title": "骏伯网络",
3+
"background": "#fff",
4+
"theme": null
85
}

‎src/assets/json/widget.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"apiKey": "phone",
1111
"codeValue": "",
1212
"codeKey": "verifyCode",
13-
"showCode": true,
13+
"showCode": true,
1414
"style": {
1515
"margin": "0px 0px 0px 0px",
1616
"btnStyle": {

0 commit comments

Comments
 (0)