Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2f982f20
authored
Oct 14, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交喜报
1 parent
970e5fb6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
12 deletions
src/assets/styles/goodNews.scss
src/router/routes.ts
src/utils/config.ts
src/views/crowdfunding/goodNews.vue
src/assets/styles/goodNews.scss
View file @
2f982f2
...
@@ -2,31 +2,36 @@ $good-color: #ffd2b2;
...
@@ -2,31 +2,36 @@ $good-color: #ffd2b2;
.product-box
{
.product-box
{
top
:
395px
;
top
:
395px
;
display
:
inline-block
;
display
:
inline-block
;
// box-shadow: 0px 4px 12px 0px rgba(50, 0, 0, 0.5);
background
:
url("@/assets/images/goodNews/line-bg.png")
;
padding
:
0
43px
;
background-repeat
:
repeat-x
;
background-size
:
4px
57px
;
// margin: 0 43px;
font-size
:
30px
;
font-size
:
30px
;
color
:
$good-color
;
color
:
$good-color
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.product-name
{
.product-name
{
position
:
relative
;
position
:
relative
;
padding
:
10px
0
;
padding
:
14px
0
;
border-top
:
3px
solid
$good-color
;
// border-top: 3px solid $good-color;
border-bottom
:
3px
solid
$good-color
;
// border-bottom: 3px solid $good-color;
background
:
linear-gradient
(
0deg
,
#850005
0%
,
#9a1316
100%
);
// background: linear-gradient(0deg, #850005 0%, #9a1316 100%);
height
:
100%
;
// height: 100%;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.product-icon
{
.product-icon
{
position
:
absolute
;
position
:
absolute
;
width
:
52px
;
height
:
57px
;
}
}
.icon-left
{
.icon-left
{
left
:
-50px
;
left
:
-50px
;
top
:
-2px
;
top
:
0
;
}
}
.icon-right
{
.icon-right
{
right
:
-50px
;
right
:
-50px
;
top
:
-2px
;
top
:
0
;
}
}
.store-name
{
.store-name
{
top
:
466px
;
top
:
466px
;
...
...
src/router/routes.ts
View file @
2f982f2
...
@@ -10,6 +10,14 @@ const staticRoutes = Object.freeze([
...
@@ -10,6 +10,14 @@ const staticRoutes = Object.freeze([
}
}
},
},
{
{
path
:
'/goodNews'
,
component
:
()
=>
import
(
'views/crowdfunding/goodNews.vue'
),
meta
:
{
title
:
'喜报'
,
backgroundColor
:
'#F8F6F5'
}
},
{
path
:
'/activiting'
,
path
:
'/activiting'
,
component
:
()
=>
import
(
'views/crowdfunding/activiting.vue'
),
component
:
()
=>
import
(
'views/crowdfunding/activiting.vue'
),
meta
:
{
meta
:
{
...
...
src/utils/config.ts
View file @
2f982f2
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2022-10-14 16:45:59
*/
const
fetchConfig
=
function
(
isEnv
=
true
)
{
const
fetchConfig
=
function
(
isEnv
=
true
)
{
return
window
.
fetch
(
'https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/
integral
-config'
,
{}).
then
(
res
=>
res
.
json
())
return
window
.
fetch
(
'https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/
h5
-config'
,
{}).
then
(
res
=>
res
.
json
())
}
}
// const $mockConfig = await fetchConfig()
// const $mockConfig = await fetchConfig()
export
default
fetchConfig
export
default
fetchConfig
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/goodNews.vue
View file @
2f982f2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-10-1
3 15:54:59
* @LastEditTime: 2022-10-1
4 17:58:50
-->
-->
<
template
>
<
template
>
<img
class=
"bg"
src=
"@/assets/images/goodNews/bg.png"
alt=
""
/>
<img
class=
"bg"
src=
"@/assets/images/goodNews/bg.png"
alt=
""
/>
...
@@ -84,7 +84,16 @@
...
@@ -84,7 +84,16 @@
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
reactive
}
from
"vue"
;
import
{
reactive
,
onMounted
}
from
"vue"
;
import
req
from
"../../utils/request"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
const
route
=
useRoute
();
interface
params
{
channel
?:
string
;
id
?:
number
|
string
;
}
let
query
:
params
=
{};
const
data
=
reactive
({
const
data
=
reactive
({
tableData
:
[
tableData
:
[
{
{
...
@@ -151,6 +160,18 @@ const data = reactive({
...
@@ -151,6 +160,18 @@ const data = reactive({
],
],
medals
:
[
"first"
,
"second"
,
"third"
],
medals
:
[
"first"
,
"second"
,
"third"
],
});
});
const
getInfo
=
async
()
=>
{
const
res
=
await
req
(
"scrm.api.renewal.h5.integral.get"
);
console
.
log
(
query
);
};
onMounted
(()
=>
{
if
(
route
.
query
)
{
query
=
route
.
query
;
getInfo
();
}
});
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
"src/assets/styles/goodNews.scss"
;
@import
"src/assets/styles/goodNews.scss"
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment