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
c0de9f41
authored
Sep 24, 2020
by
zqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
MM - 订单列表分类 名称自定义
parent
5ffe5416
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
pages/mine/order/order.js
pages/mine/order/order.wxml
pages/mine/order/order.js
View file @
c0de9f41
...
...
@@ -177,12 +177,35 @@ Page({
'name'
:
'全部分类'
}]
for
(
let
i
=
0
,
l
=
funcResponse
.
length
;
i
<
l
;
i
++
)
{
let
funcItem
=
{
let
funcItem
=
{
'value'
:
funcResponse
[
i
].
value
,
'name'
:
funcResponse
[
i
].
label
,
}
if
(
funcResponse
[
i
].
value
==
3
){
//门票
funcItem
.
name
=
"门票"
funcList
.
push
(
funcItem
)
}
else
if
(
funcResponse
[
i
].
value
==
5
){
// 餐饮
funcItem
.
name
=
"餐饮"
funcList
.
push
(
funcItem
)
}
else
if
(
funcResponse
[
i
].
value
==-
2
){
// 影票
funcItem
.
name
=
"影票"
funcList
.
push
(
funcItem
)
}
else
if
(
funcResponse
[
i
].
value
==
2
){
// SPA
funcItem
.
name
=
"SPA"
funcList
.
push
(
funcItem
)
}
else
if
(
funcResponse
[
i
].
value
==
4
){
// 文创
funcItem
.
name
=
"文创"
funcList
.
push
(
funcItem
)
}
}
let
typeTitle
=
'全部分类'
//
let
orderTypeActive
=
0
//
let
aVal
=
''
...
...
pages/mine/order/order.wxml
View file @
c0de9f41
...
...
@@ -29,7 +29,7 @@
</view>
</block>
</view>
<view class="order-type-row row con-b align-c">
<
!-- <
view class="order-type-row row con-b align-c">
<block wx:for="{{orderType}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view wx:if="{{6 <= index && index < 9}}"
class="order-type-item row con-c align-c {{orderTypeActive === index ? 'order-type-item-active' : ''}}"
...
...
@@ -37,7 +37,7 @@
<text>{{item.name}}</text>
</view>
</block>
</view>
</view>
-->
</view>
</view>
...
...
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