Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
61372954
authored
Sep 21, 2020
by
zqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
MM - 订单列表 logo显示
parent
6bfb7ddf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
pages/mine/home/home.js
pages/mine/home/home.wxml
pages/mine/order/order.js
pages/mine/home/home.js
View file @
61372954
...
...
@@ -60,6 +60,12 @@ Page({
shopConfig
:
App
.
globalData
.
shopId
,
isYearCard
:
true
,
isMonthCard
:
false
,
goodTypeCountData
:
{}
},
goQuestion
:
function
()
{
wx
.
navigateTo
({
url
:
'/pages/mine/question/question'
,
})
},
// 跳转订单详情
onOrderDetail
:
function
(
event
)
{
...
...
@@ -197,7 +203,7 @@ Page({
},
success
:
function
(
res
)
{
let
list
=
res
.
data
.
map
(
item
=>
{
let
shopFilter
=
that
.
data
.
shopConfig
.
filter
(
k
=>
{
...
...
@@ -225,6 +231,25 @@ Page({
}
})
},
//获取分类统计
getCountByGoodType
()
{
let
that
=
this
App
.
wxRequest
({
url
:
'/api/v1/order/getCountByGoodType'
,
data
:
{
status
:
""
,
//0已过期1待使用2已使用(""全部)
pageNo
:
1
,
pageSize
:
-
1
},
success
:
function
(
res
)
{
console
.
log
(
res
,
'获取分类统计'
);
let
data
=
res
.
data
?
res
.
data
:
{}
that
.
setData
({
goodTypeCountData
:
data
})
}
})
},
setUserInfo
:
function
()
{
let
funcUserInfo
=
wx
.
getStorageSync
(
'userInfo'
)
...
...
@@ -265,6 +290,8 @@ Page({
this
.
getWillUseOrders
()
this
.
getPermissions
()
this
.
getIntegral
()
this
.
getList
()
this
.
getCountByGoodType
()
},
})
}
else
{
...
...
@@ -418,7 +445,6 @@ Page({
id
:
item
.
id
,
mobile
:
item
.
mobile
,
name
:
item
.
name
,
}
tmpArr
.
push
(
obj
)
})
...
...
pages/mine/home/home.wxml
View file @
61372954
This diff is collapsed.
Click to expand it.
pages/mine/order/order.js
View file @
61372954
...
...
@@ -132,7 +132,7 @@ Page({
// 映射门店信息
for
(
let
i
=
0
,
l
=
App
.
globalData
.
shopId
.
length
;
i
<
l
;
i
++
)
{
if
(
funcItem
.
shopName
===
App
.
globalData
.
shopId
[
i
].
name
)
{
if
(
funcItem
.
shopName
.
toLowerCase
()
===
App
.
globalData
.
shopId
[
i
].
name
.
toLowerCase
()
)
{
funcItem
.
shopId
=
App
.
globalData
.
shopId
[
i
].
id
funcItem
.
shopAppId
=
App
.
globalData
.
shopId
[
i
].
appId
funcItem
.
shopLogo
=
App
.
globalData
.
shopId
[
i
].
logo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment