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 68abd243
authored
Mar 01, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huyue_v3.5.0' into 'v3.5.0-0301'
修改saas+喜报入参 See merge request
!11
2 parents
611f5129
d3502a1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
src/views/dj/goodNews.vue
src/views/dj/interface.ts
src/views/dj/goodNews.vue
View file @
68abd24
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-02-07 16:36:16
* @LastEditors: huyue
* @LastEditTime: 2023-0
2-15 14:20:50
* @LastEditTime: 2023-0
3-01 18:17:43
-->
<
template
>
<div
class=
"wrapper-box"
>
...
...
@@ -26,7 +26,7 @@
</div>
<div
class=
"content-item"
>
订单收款
<div
class=
"price"
>
¥
{{
data
.
reportInfo
!
.
todayOrderPrice
}}
</div>
<div
class=
"price"
>
¥
{{
data
.
query
?.
orderMoney
}}
</div>
</div>
</div>
<div
class=
"content-list"
>
...
...
@@ -55,16 +55,19 @@
import
{
reactive
,
onMounted
,
inject
}
from
"vue"
;
import
{
djReq
}
from
"../../utils/request"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
DataInfo
,
Params
}
from
"./interface"
;
import
{
DataInfo
}
from
"./interface"
;
const
route
=
useRoute
();
// 获取全局对象
const
global
:
any
=
inject
(
"global"
);
let
query
:
Params
=
{};
const
data
=
reactive
<
Partial
<
DataInfo
>>
({
reportInfo
:
{},
query
:
{},
});
const
getInfo
=
async
()
=>
{
const
query
=
{
merchantId
:
data
.
query
?.
merchantId
,
};
data
.
reportInfo
=
await
djReq
(
"dj.api.smartcarlife.orderReport.stat.byGoodsNews"
,
query
...
...
@@ -76,7 +79,7 @@ const getImageUrl = (name: any, path = "dj") => {
};
onMounted
(()
=>
{
if
(
route
.
query
)
{
query
=
route
.
query
;
data
.
query
=
route
.
query
;
getInfo
();
}
});
...
...
src/views/dj/interface.ts
View file @
68abd24
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-11-16 18:18:59
* @LastEditors: huyue
* @LastEditTime: 2023-0
2-14 16:07:5
2
* @LastEditTime: 2023-0
3-01 15:56:0
2
*/
export
interface
ReportInfo
{
time
?:
string
;
...
...
@@ -14,9 +14,11 @@ export interface ReportInfo {
}
export
interface
DataInfo
{
reportInfo
:
ReportInfo
;
query
:
Params
}
export
interface
Params
{
merchantId
?:
number
|
string
;
orderMoney
?:
string
;
}
export
interface
WarParams
{
yqMerchantId
?:
number
|
string
;
...
...
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