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 1d0f8c92
authored
Oct 17, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
喜报联调
1 parent
d256e7ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
16 deletions
postcss.config.js
src/utils/request.ts
src/views/crowdfunding/goodNews.vue
postcss.config.js
View file @
1d0f8c9
...
...
@@ -8,7 +8,7 @@
module
.
exports
=
{
"plugins"
:
{
"postcss-pxtorem"
:
{
rootValue
:
7
5
,
// 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
rootValue
:
37.
5
,
// 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
unitPrecision
:
6
,
// 计算结果保留 6 位小数
selectorBlackList
:
[
'.no-rem'
,
'no-rem'
],
// 要忽略的选择器并保留为px
propList
:
[
'*'
],
// 可以从 px 更改为 rem 的属性 感叹号开头的不转化
...
...
src/utils/request.ts
View file @
1d0f8c9
import
http
from
'./http'
import
{
useUserStore
}
from
'../store/user'
const
PATH
=
'rop-scrm-
renewa
l/router'
const
PATH
=
'rop-scrm-
shopmal
l/router'
const
req
:
any
=
(
url
:
string
,
data
:
any
=
{},
returnAll
=
false
,
method
=
'POST'
,
)
=>
{
let
sessionId
=
useUserStore
().
getSession
// let sessionId = '2dfdf8ff-fe50-4b07-bfd4-bdaec96ad717'
if
(
sessionId
)
data
.
loginSessionId
=
sessionId
//
if (sessionId) data.loginSessionId = sessionId
data
.
method
=
url
const
options
=
{
url
:
PATH
,
...
...
src/views/crowdfunding/goodNews.vue
View file @
1d0f8c9
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditTime: 2022-10-1
4 17:58:50
* @LastEditTime: 2022-10-1
7 15:09:33
-->
<
template
>
<img
class=
"bg"
src=
"@/assets/images/goodNews/bg.png"
alt=
""
/>
...
...
@@ -14,7 +14,7 @@
src=
"@/assets/images/goodNews/icon-left.png"
alt=
""
/>
360全景影像系统
{{
data
.
storeInfo
.
goodsName
}}
<img
class=
"icon-right product-icon"
src=
"@/assets/images/goodNews/icon-right.png"
...
...
@@ -22,7 +22,7 @@
/>
</div>
</div>
<div
class=
"store-name x-center"
>
深圳鹏峰本田
</div>
<div
class=
"store-name x-center"
>
{{
data
.
storeInfo
.
merchantName
}}
</div>
<img
class=
"employee-avatar x-center"
src=
"https://tse3-mm.cn.bing.net/th/id/OIP-C.B6pZ8N_dG3MNAYppM-zX0AHaEo?pid=ImgDet&rs=1"
...
...
@@ -32,15 +32,15 @@
<div
class=
"ribbon-content"
>
<img
src=
"@/assets/images/goodNews/ribbon.png"
alt=
""
/>
<div
class=
"ribbon-text x-center"
>
<span>
销售部
</span>
<span
class=
"ribbon-name"
>
增香积
</span>
<span>
{{
data
.
storeInfo
.
department
}}
</span>
<span
class=
"ribbon-name"
>
第三方的
</span>
<span>
为团队助力
</span>
</div>
</div>
</div>
<div
class=
"sales x-center"
>
<span>
第
</span>
<span
class=
"number"
>
61
</span>
<span
class=
"number"
>
{{
data
.
storeInfo
.
orderCount
}}
</span>
<span>
单
</span>
</div>
<div
class=
"table-box ranking x-center"
>
...
...
@@ -54,7 +54,7 @@
<div
class=
"table-body"
>
<div
class=
"table-item"
v-for=
"(item, index) in data.
tableData
"
v-for=
"(item, index) in data.
storeInfo.orderRankList
"
:key=
"index"
>
<template
v-if=
"index
< 3
"
>
...
...
@@ -73,11 +73,11 @@
</div>
</
template
>
<div
class=
"table-td"
>
<img
class=
"table-avatar"
:src=
"item.avat
a
r"
alt=
""
/>
<img
class=
"table-avatar"
:src=
"item.avat
o
r"
alt=
""
/>
</div>
<div
class=
"table-td"
>
{{ item.depart
e
ment }}
</div>
<div
class=
"table-td"
>
{{ item.department }}
</div>
<div
class=
"table-td"
>
{{ item.name }}
</div>
<div
class=
"table-td sales-number"
>
{{ item.
salesNumber
}}
</div>
<div
class=
"table-td sales-number"
>
{{ item.
orderCount
}}
</div>
</div>
</div>
</div>
...
...
@@ -86,13 +86,19 @@
<
script
lang=
"ts"
setup
>
import
{
reactive
,
onMounted
}
from
"vue"
;
import
req
from
"../../utils/request"
;
import
{
useRoute
r
,
useRoute
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
const
route
=
useRoute
();
interface
params
{
channel
?:
string
;
id
?:
number
|
string
;
}
type
listStyle
=
{
avator
?:
string
;
department
?:
string
;
name
?:
string
;
orderCount
?:
number
;
};
let
query
:
params
=
{};
const
data
=
reactive
({
tableData
:
[
...
...
@@ -159,11 +165,21 @@ const data = reactive({
},
],
medals
:
[
"first"
,
"second"
,
"third"
],
storeInfo
:
{
merchantName
:
"深圳鹏峰本田"
,
goodsName
:
""
,
orderCount
:
""
,
name
:
""
,
orderRankList
:
[],
department
:
""
,
},
});
const
getInfo
=
async
()
=>
{
const
res
=
await
req
(
"scrm.api.renewal.h5.integral.get"
);
console
.
log
(
query
);
data
.
storeInfo
=
await
req
(
"scrm.api.shopmall.activity.good.report.param"
,
query
);
};
onMounted
(()
=>
{
...
...
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