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 @@
...
@@ -66,10 +66,11 @@
<
script
>
<
script
>
import
{
dictList
}
from
"@/api/index.js"
;
import
{
dictList
}
from
"@/api/index.js"
;
import
{
getDictItem
}
from
"@/utils/tools.js"
import
indexConfig
from
"@/config/index.config"
;
import
indexConfig
from
"@/config/index.config"
;
import
FixedHeader
from
"@/components/fixedHeader/index"
;
import
FixedHeader
from
"@/components/fixedHeader/index"
;
import
{
getCouponList
}
from
"@/api/coupon"
import
{
getCouponList
}
from
"@/api/coupon"
import
{
getDictItem
}
from
"@/utils/tools.js"
export
default
{
export
default
{
data
()
{
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 @@
...
@@ -25,11 +25,11 @@
<text
class=
"text-black"
>
可用时段:
</text>
<text
class=
"text-black"
>
可用时段:
</text>
<text
class=
"text-black"
>
{{
item
.
couponTimeStart
}}
-
{{
item
.
couponTimeEnd
}}
</text>
<text
class=
"text-black"
>
{{
item
.
couponTimeStart
}}
-
{{
item
.
couponTimeEnd
}}
</text>
</view>
</view>
<text>
{{
item
.
platformType
==
2
?
'美团核销'
:
''
}}
</text>
<text>
{{
platformEnum
[
item
.
platformType
]
}}
</text>
</view>
</view>
<view
v-else
class=
"des margin-top"
>
<view
v-else
class=
"des margin-top"
>
<text
class=
""
>
全天通用
</text>
<text
class=
""
>
全天通用
</text>
<text>
{{
item
.
platformType
==
2
?
'美团核销'
:
''
}}
</text>
<text>
{{
platformEnum
[
item
.
platformType
]
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -62,12 +62,12 @@
...
@@ -62,12 +62,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
dictList
}
from
"@/api/index.js"
;
import
{
getDictItem
}
from
"@/utils/tools.js"
import
config
from
"@/config/index.config"
import
config
from
"@/config/index.config"
import
indexConfig
from
"@/config/index.config"
;
import
indexConfig
from
"@/config/index.config"
;
import
FixedHeader
from
"@/components/fixedHeader/index"
;
import
FixedHeader
from
"@/components/fixedHeader/index"
;
import
{
import
{
getUseCoupon
}
from
"@/api/coupon"
getUseCoupon
}
from
"@/api/coupon"
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -90,13 +90,15 @@
...
@@ -90,13 +90,15 @@
tipText
:
""
,
tipText
:
""
,
show
:
false
,
show
:
false
,
eventChannel
:
null
,
eventChannel
:
null
,
selectId
:
''
selectId
:
''
,
platformEnum
:{}
};
};
},
},
components
:
{
components
:
{
'fixed-header'
:
FixedHeader
'fixed-header'
:
FixedHeader
},
},
onLoad
()
{
onLoad
()
{
this
.
onGetDicts
();
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
// eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'});
// eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'});
...
@@ -106,6 +108,24 @@
...
@@ -106,6 +108,24 @@
})
})
},
},
methods
:
{
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
)
{
onLoading
(
d
)
{
getUseCoupon
(
d
).
then
(
res
=>
{
getUseCoupon
(
d
).
then
(
res
=>
{
if
(
res
.
statusCode
==
200
)
{
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