Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
60755f0c
Commit
60755f0c
authored
Mar 06, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
ae7d46f5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
index.vue
pages/couponList/index.vue
+2
-1
order.vue
pages/order/order.vue
+0
-0
index.vue
pages/useCoupon/index.vue
+26
-6
No files found.
pages/couponList/index.vue
View file @
60755f0c
...
...
@@ -66,10 +66,11 @@
<
script
>
import
{
dictList
}
from
"@/api/index.js"
;
import
{
getDictItem
}
from
"@/utils/tools.js"
import
indexConfig
from
"@/config/index.config"
;
import
FixedHeader
from
"@/components/fixedHeader/index"
;
import
{
getCouponList
}
from
"@/api/coupon"
import
{
getDictItem
}
from
"@/utils/tools.js"
export
default
{
data
()
{
...
...
pages/order/order.vue
View file @
60755f0c
This diff is collapsed.
Click to expand it.
pages/useCoupon/index.vue
View file @
60755f0c
...
...
@@ -25,11 +25,11 @@
<text
class=
"text-black"
>
可用时段:
</text>
<text
class=
"text-black"
>
{{
item
.
couponTimeStart
}}
-
{{
item
.
couponTimeEnd
}}
</text>
</view>
<text>
{{
item
.
platformType
==
2
?
'美团核销'
:
''
}}
</text>
<text>
{{
platformEnum
[
item
.
platformType
]
}}
</text>
</view>
<view
v-else
class=
"des margin-top"
>
<text
class=
""
>
全天通用
</text>
<text>
{{
item
.
platformType
==
2
?
'美团核销'
:
''
}}
</text>
<text>
{{
platformEnum
[
item
.
platformType
]
}}
</text>
</view>
</view>
...
...
@@ -62,12 +62,12 @@
</
template
>
<
script
>
import
{
dictList
}
from
"@/api/index.js"
;
import
{
getDictItem
}
from
"@/utils/tools.js"
import
config
from
"@/config/index.config"
import
indexConfig
from
"@/config/index.config"
;
import
FixedHeader
from
"@/components/fixedHeader/index"
;
import
{
getUseCoupon
}
from
"@/api/coupon"
import
{
getUseCoupon
}
from
"@/api/coupon"
export
default
{
data
()
{
...
...
@@ -90,13 +90,15 @@
tipText
:
""
,
show
:
false
,
eventChannel
:
null
,
selectId
:
''
selectId
:
''
,
platformEnum
:{}
};
},
components
:
{
'fixed-header'
:
FixedHeader
},
onLoad
()
{
this
.
onGetDicts
();
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
// eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'});
...
...
@@ -106,6 +108,24 @@
})
},
methods
:
{
onGetDicts
()
{
let
dicts
=
[]
let
dictStr
=
uni
.
getStorageSync
(
'dicts'
)
if
(
dictStr
)
{
let
dicts
=
JSON
.
parse
(
dictStr
)
this
.
platformEnum
=
getDictItem
(
dicts
,
"consumer_coupon_platform_type"
);
this
.
couponSourceEnum
=
getDictItem
(
dicts
,
"consumer_coupon_source_type"
);
this
.
$forceUpdate
()
}
dictList
().
then
(
res
=>
{
dicts
=
res
.
data
.
data
;
uni
.
setStorageSync
(
'dicts'
,
JSON
.
stringify
(
res
.
data
.
data
))
this
.
platformEnum
=
getDictItem
(
dicts
,
"consumer_coupon_platform_type"
);
this
.
couponSourceEnum
=
getDictItem
(
dicts
,
"consumer_coupon_source_type"
);
this
.
$forceUpdate
()
})
},
onLoading
(
d
)
{
getUseCoupon
(
d
).
then
(
res
=>
{
if
(
res
.
statusCode
==
200
)
{
...
...
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