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 6e5d2aa7
authored
Apr 06, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
d211133d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
372 additions
and
19 deletions
src/assets/images/dj/qr-code.jpg
src/assets/styles/morning.scss
src/assets/styles/personalGoodNews.scss
src/utils/config1.ts
src/views/dj/morning.vue
src/views/dj/morningInterface.ts
src/views/dj/personalGoodNews.vue
src/views/dj/personalInterface.ts
src/assets/images/dj/qr-code.jpg
0 → 100644
View file @
6e5d2aa
45.9 KB
src/assets/styles/morning.scss
View file @
6e5d2aa
...
...
@@ -17,4 +17,193 @@
padding
:
0
16px
;
line-height
:
32px
;
}
}
.mold-box
{
position
:
relative
;
width
:
calc
(
100%
-
48px
);
text-align
:
center
;
margin
:
12px
24px
20px
;
background-image
:
linear-gradient
(
180deg
,
#FDECD2
1%
,
#FFE6C2
99%
);
box-shadow
:
0
10px
16px
4px
#e53610
99
,
inset
2px
2px
10px
0
#FFFFFF
;
border-radius
:
32px
;
.title-name
{
width
:
280px
;
height
:
56px
;
}
.mold-title
{
position
:
relative
;
width
:
100%
;
text-align
:
center
;
.merchant-img
{
width
:
584px
;
height
:
56px
;
}
.merchant-name
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
font-weight
:
500
;
font-size
:
30px
;
color
:
#944213
;
}
}
.mold-content
{
display
:
flex
;
width
:
100%
;
box-sizing
:
border-box
;
padding
:
50px
14px
0
;
&
:last-child
{
padding-bottom
:
50px
;
}
.mold-item
{
display
:
inline-block
;
width
:
calc
(
33%
-
20px
);
text-align
:
center
;
margin-right
:
30px
;
&
:nth-child
(
3
),
&
:nth-child
(
6
)
&
:nth-child
(
9
)
{
margin-right
:
0
;
}
.item-title
{
width
:
100%
;
height
:
44px
;
line-height
:
44px
;
background-image
:
linear-gradient
(
180deg
,
#FFDCB5
0%
,
#FED3BE
100%
);
border-radius
:
12px
;
font-weight
:
500
;
font-size
:
24px
;
color
:
#CD5D26
;
}
.item-value
{
display
:
inline-flex
;
align-items
:
center
;
margin-top
:
12px
;
font-weight
:
600
;
font-size
:
36px
;
color
:
#7B3D32
;
text-align
:
center
;
height
:
50px
;
}
.icon-arrow
{
width
:
28px
;
height
:
28px
;
margin-right
:
10px
;
}
.veer
{
transform
:
rotate
(
180deg
);
}
}
}
.mold-follow
{
margin
:
40px
16px
32px
;
width
:
calc
(
100%
-
72px
);
background-image
:
linear-gradient
(
180deg
,
#FFDCB5
0%
,
#FED3BE
100%
);
border-radius
:
12px
;
padding
:
20px
;
.follow-title
{
display
:
flex
;
align-items
:
center
;
text-align
:
left
;
font-weight
:
500
;
font-size
:
28px
;
color
:
#CD5D26
;
img
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
}
.follow-custome
{
margin-top
:
16px
;
background
:
#FFF8EE
;
border-radius
:
12px
;
padding
:
20px
;
text-align
:
left
;
.custome-header
{
display
:
flex
;
font-weight
:
500
;
font-size
:
24px
;
color
:
#944213
;
padding-bottom
:
6px
;
.custome-li
{
width
:
50%
;
}
}
.custome-content
{
display
:
flex
;
font-weight
:
500
;
font-size
:
28px
;
color
:
#944213
;
padding-bottom
:
6px
;
&
:last-child
{
padding-bottom
:
0
;
}
.custome-li
{
width
:
50%
;
}
}
}
}
.mold-tips
{
padding
:
0
20px
0
;
font-weight
:
500
;
font-size
:
28px
;
color
:
#CD5D26
;
text-align
:
left
;
}
.qr-code
{
width
:
300px
;
height
:
300px
;
margin
:
24px
auto
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.code-tips
{
display
:
inline-block
;
width
:
282px
;
height
:
44px
;
line-height
:
44px
;
background-image
:
linear-gradient
(
180deg
,
#FFDCB5
0%
,
#FED3BE
100%
);
border-radius
:
8px
;
font-weight
:
500
;
font-size
:
24px
;
color
:
#CD5D26
;
text-align
:
center
;
margin-bottom
:
70px
;
}
}
.wrapper-box
{
position
:
relative
;
padding-bottom
:
107px
;
}
.logo
{
position
:
absolute
;
bottom
:
66px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.morning-footer
{
position
:
absolute
;
bottom
:
33px
;
width
:
100%
;
height
:
126px
;
}
.ribbon
{
position
:
absolute
;
top
:
178px
;
left
:
0
;
width
:
100%
;
height
:
122px
;
}
.icon-ribbon
{
position
:
absolute
;
top
:
870px
;
right
:
20px
;
width
:
200px
;
height
:
116px
;
}
\ No newline at end of file
src/assets/styles/personalGoodNews.scss
View file @
6e5d2aa
...
...
@@ -169,7 +169,7 @@
width
:
100%
;
font-weight
:
500
;
font-size
:
22px
;
color
:
#FA6F4D
;
color
:
rgb
(
255
,
255
,
255
,
0
.65
)
;
letter-spacing
:
3
.66px
;
text-align
:
center
;
margin-top
:
28px
;
...
...
src/utils/config1.ts
View file @
6e5d2aa
...
...
@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-0
3-28 09:57:2
8
* @LastEditTime: 2023-0
4-06 14:20:5
8
*/
const
fetchConfig1
=
function
(
isEnv
=
true
)
{
//
return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
return
window
.
fetch
(
'https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config'
,
{}).
then
(
res
=>
res
.
json
())
return
window
.
fetch
(
'http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config'
,
{}).
then
(
res
=>
res
.
json
())
//
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export
default
fetchConfig1
\ No newline at end of file
src/views/dj/morning.vue
View file @
6e5d2aa
...
...
@@ -3,33 +3,168 @@
* @Author: huyue
* @Date: 2023-04-03 14:13:32
* @LastEditors: huyue
* @LastEditTime: 2023-04-0
3 14:45:55
* @LastEditTime: 2023-04-0
6 17:11:00
-->
<
template
>
<div
class=
"wrapper-box
war-report
"
>
<div
class=
"wrapper-box"
>
<div
class=
"morning-header"
>
<img
src=
"@/assets/images/dj/morning-header.png"
alt=
""
/>
<div
class=
"header-time"
>
数据生成时间为2022年12月29日 23:59
</div>
<img
:src=
"getImageUrl('morning-header')"
alt=
""
/>
<div
class=
"header-time"
>
数据生成时间为
{{
data
.
posterInfo
!
.
yesterdayDate
}}
</div>
</div>
<div
class=
"mold-box"
>
<div
class=
"mold-title"
>
<img
class=
"merchant-img"
:src=
"getImageUrl('merchant-name')"
alt=
""
/>
<div
class=
"merchant-name"
>
{{
data
.
posterInfo
!
.
merchantName
}}
</div>
</div>
<div
class=
"mold-content"
>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
昨日营业额/元
</div>
<div
class=
"item-value"
>
¥
{{
data
.
posterInfo
!
.
yesterdayOrderMoneyTotal
}}
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
昨日单量/单
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
yesterdayOrderNum
}}
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
日均客单价
</div>
<div
class=
"item-value"
>
¥
{{
data
.
posterInfo
!
.
dailyAveragePrice
}}
</div>
</div>
</div>
<div
class=
"mold-content"
>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
昨日转化率
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
dailyUpgradeRate
}}
%
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
月累计营业额/元
</div>
<div
class=
"item-value"
>
¥
{{
data
.
posterInfo
!
.
monthlyOrderMoneyTotal
}}
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
月累计单量/单
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
monthlyOrderNum
}}
</div>
</div>
</div>
<div
class=
"mold-content"
>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
月转化率
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
monthlyUpgradeRate
}}
%
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
月均客户价
</div>
<div
class=
"item-value"
>
¥
{{
data
.
posterInfo
!
.
monthAveragePrice
}}
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
环比上月同期产值
</div>
<div
class=
"item-value"
>
<img
class=
"icon-arrow"
:class=
"
data.posterInfo!.monthlyOrderMoneyTotalGrowth > 0 ? 'veer' : ''
"
:src=
"getImageUrl('icon-arrow')"
alt=
""
/>
{{
data
.
posterInfo
!
.
monthlyOrderMoneyTotalGrowth
}}
%
</div>
</div>
</div>
</div>
<div
class=
"mold-box"
style=
"padding-bottom: 48px"
>
<div
class=
"mold-title"
>
<img
class=
"title-name"
:src=
"getImageUrl('title-name')"
alt=
""
/>
<div
class=
"merchant-name"
>
客户跟进
</div>
</div>
<div
class=
"mold-content"
>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
昨日发券
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
yesterdayCouponNum
}}
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
昨日预约
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
yesterdayInvitationNum
}}
</div>
</div>
<div
class=
"mold-item"
>
<div
class=
"item-title"
>
尚待预约
</div>
<div
class=
"item-value"
>
{{
data
.
posterInfo
!
.
waitToInviteNum
}}
</div>
</div>
</div>
<div
class=
"mold-follow"
>
<div
class=
"follow-title"
>
<img
:src=
"getImageUrl('icon-tips')"
alt=
""
/>
昨日精品顾问预约了
{{
data
.
posterInfo
!
.
customerInvitationList
!
.
length
}}
个客户
</div>
<div
class=
"follow-custome"
>
<div
class=
"custome-header"
>
<div
class=
"custome-li"
>
预约客户:
</div>
<div
class=
"custome-li"
>
预约时间:
</div>
</div>
<div
class=
"custome-content"
v-for=
"item in data.posterInfo!.customerInvitationList"
>
<div
class=
"custome-li"
>
{{
item
.
customerName
}}
</div>
<div
class=
"custome-li"
>
{{
item
.
toShopTime
}}
</div>
</div>
</div>
</div>
<div
class=
"mold-tips"
>
截止目前待跟进预约单客户档案有
{{
data
.
posterInfo
!
.
waitToInviteNum
}}
个,请尽快处理!
</div>
</div>
<div
class=
"mold-box"
>
<div
class=
"mold-title"
>
<img
class=
"title-name"
:src=
"getImageUrl('title-name')"
alt=
""
/>
<div
class=
"merchant-name"
>
小程序二维码
</div>
</div>
<div
class=
"qr-code"
>
<img
src=
"@/assets/images/dj/qr-code.jpg"
alt=
""
/>
</div>
<img
class=
"ribbon"
:src=
"getImageUrl('ribbon')"
alt=
""
/>
<div
class=
"code-tips"
>
扫码进入小程序
</div>
</div>
<img
class=
"icon-ribbon"
:src=
"getImageUrl('icon-ribbon')"
alt=
""
/>
<img
class=
"logo"
:src=
"getImageUrl('logo')"
alt=
""
/>
<img
class=
"morning-footer"
:src=
"getImageUrl('morning-footer')"
alt=
""
/>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
onMounted
,
inject
}
from
"vue"
;
import
{
djReq
}
from
"../../utils/request"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
WarParams
,
WarDataInfo
,
OrderDetail
}
from
"./i
nterface"
;
import
{
Params
,
DataInfo
}
from
"./morningI
nterface"
;
const
route
=
useRoute
();
// 获取全局对象
const
global
:
any
=
inject
(
"global"
);
let
query
:
WarParams
=
{};
const
data
=
reactive
<
Partial
<
WarDataInfo
>>
({
reportInfo
:
{
orderDetailList
:
[],
let
query
:
Params
=
{};
const
data
=
reactive
<
Partial
<
DataInfo
>>
({
posterInfo
:
{
customerInvitationList
:
[],
monthlyOrderMoneyTotalGrowth
:
0
,
},
});
const
getInfo
=
async
()
=>
{
data
.
report
Info
=
await
djReq
(
"dj.api.smartcarlife.orderSummary.get
Yq
MerchantOrderReport"
,
data
.
poster
Info
=
await
djReq
(
"dj.api.smartcarlife.orderSummary.get
Shop
MerchantOrderReport"
,
query
);
};
...
...
@@ -41,6 +176,7 @@ onMounted(() => {
if
(
route
.
query
)
{
query
=
route
.
query
;
}
getInfo
();
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/dj/morningInterface.ts
0 → 100644
View file @
6e5d2aa
export
interface
Params
{
merchantId
?:
number
|
string
;
}
export
interface
DataInfo
{
posterInfo
:
PosterInfo
;
}
export
interface
PosterInfo
{
dailyUpgradeRate
?:
number
;
monthlyOrderMoneyTotal
?:
number
;
monthlyOrderNum
?:
number
;
dailyAveragePrice
?:
number
;
yesterdayInvitationNum
?:
number
;
monthlyOrderMoneyTotalGrowth
:
number
;
monthAveragePrice
?:
number
;
waitToInviteNum
?:
number
;
monthlyUpgradeRate
?:
number
;
yesterdayDate
?:
string
;
yesterdayOrderMoneyTotal
?:
number
;
merchantName
?:
string
;
customerInvitationList
?:
CustomerList
[];
yesterdayOrderNum
?:
number
;
yesterdayCouponNum
?:
number
;
}
export
interface
CustomerList
{
customerName
?:
string
;
toShopTime
?:
string
;
}
\ No newline at end of file
src/views/dj/personalGoodNews.vue
View file @
6e5d2aa
...
...
@@ -55,7 +55,7 @@
<
/div>
<
div
class
=
"tips-text"
>
感谢您前期的铺垫和大力支持,加油!
<
/div>
<
div
class
=
"logo"
>
<
img
class
=
"red-logo"
:
src
=
"getImageUrl('
red-
logo')"
alt
=
""
/>
<
img
class
=
"red-logo"
:
src
=
"getImageUrl('logo')"
alt
=
""
/>
<
/div>
<
img
class
=
"personal-gold"
:
src
=
"getImageUrl('personal-gold')"
alt
=
""
/>
<
img
class
=
"personal-footer"
:
src
=
"getImageUrl('personal-footer')"
alt
=
""
/>
...
...
src/views/dj/personalInterface.ts
View file @
6e5d2aa
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-03-23 10:48:13
* @LastEditors: huyue
* @LastEditTime: 2023-0
3-23 15:15:11
* @LastEditTime: 2023-0
4-06 11:13:36
*/
export
interface
Params
{
orderCode
?:
string
;
...
...
@@ -11,8 +11,7 @@ export interface Params {
export
interface
DataInfo
{
newsInfo
:
NewsInfo
;
upgradeCount
:
number
|
string
;
upgradeCount
:
number
|
string
;
}
export
interface
NewsInfo
{
...
...
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