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
dc1de781
Commit
dc1de781
authored
Nov 13, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
5730b1e7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
14 deletions
+26
-14
index.vue
pages/couponList/index.vue
+17
-6
order.vue
pages/order/order.vue
+0
-0
index.vue
pages/useCoupon/index.vue
+9
-8
No files found.
pages/couponList/index.vue
View file @
dc1de781
...
...
@@ -25,17 +25,18 @@
:class=
"item.useStatus==0?'text-pink':'text-gray'"
>
{{
statusEnum
[
item
.
useStatus
]
}}
</text>
</view>
<view
class=
"flex-1 flex-row text-gray"
>
<text
class=
""
>
来源:
</text>
<text>
{{
couponSourceEnum
[
item
.
sourceType
]
}}
{{
item
.
platformType
!==
1
?
'('
+
platformEnum
[
item
.
platformType
]
+
')'
:
''
}}
</text>
<view
class=
"flex-1 flex-row-center"
>
<text
class=
"text-gray"
>
来源:
</text>
<text
class=
"text-gray"
>
{{
couponSourceEnum
[
item
.
sourceType
]
}}
{{
item
.
platformType
!==
1
?
'('
+
platformEnum
[
item
.
platformType
]
+
')'
:
''
}}
</text>
<text
class=
"text-title margin-left-sm text-sm"
>
(原价:¥
{{
item
.
originalPrice
}}
)
</text>
</view>
<view
v-if=
"
[4,5].includes(item.couponType)
"
class=
"flex-1 flex-row text-gray "
>
<view
v-if=
"
item.couponType == 3
"
class=
"flex-1 flex-row text-gray "
>
<text
class=
""
>
使用说明:
</text>
<text
>
{{
item
.
remark
||
''
}}
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
</view>
<view
v-else
class=
"flex-1 flex-row text-gray "
>
<text
class=
""
>
使用说明:
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
<text
>
{{
item
.
remark
||
''
}}
</text>
</view>
<view
v-if=
"item.couponTimeStart && item.couponTimeEnd"
class=
"flex-1 des text-gray "
>
<view
class=
"flex-row"
>
...
...
@@ -63,6 +64,7 @@
<text>
适用门店:全门店通用
</text>
</view>
<view
class=
""
>
<button
class=
"cu-btn bg-pink sm"
@
tap=
"onNavToHome(1)"
>
去使用
</button>
</view>
</view>
<view
v-else-if=
"item.useStatus===1&&item.storeName"
class=
"flex-between part-bottom-store"
>
...
...
@@ -70,6 +72,7 @@
<text>
使用门店:
{{
item
.
storeName
}}
</text>
</view>
<view
class=
""
>
<button
class=
"cu-btn bg-pink sm"
@
tap=
"onNavToHome(2)"
>
去使用
</button>
</view>
</view>
</view>
...
...
@@ -277,6 +280,14 @@
this
.
list
=
[]
this
.
onLoading
()
},
onNavToHome
(
val
)
{
if
(
val
===
2
){
uni
.
setStorageSync
(
"storeId"
,
this
.
list
[
0
].
storeId
)
}
uni
.
switchTab
({
url
:
`/pages/index/index`
})
},
}
}
</
script
>
...
...
pages/order/order.vue
View file @
dc1de781
This diff is collapsed.
Click to expand it.
pages/useCoupon/index.vue
View file @
dc1de781
...
...
@@ -8,18 +8,19 @@
<view
class=
"coupon-name"
>
<text
class=
"text-title text-lg text-bold"
>
{{
item
.
name
}}
</text>
</view>
<view
v-if=
"item.couponType ==
4
"
class=
"flex-row margin-top"
>
<view
v-if=
"item.couponType ==
2
"
class=
"flex-row margin-top"
>
<text
class=
"part-tip"
>
使用说明:
</text>
<text>
{{
item
.
remark
||
''
}}
</text>
<text>
原价:
{{
item
.
originalPrice
}}
元,
{{
item
.
storeName
}}
门店核验
</text>
</view>
<view
v-else
class=
"flex-row margin-top"
>
<view
v-else
-if=
"item.couponType == 3"
class=
"flex-row margin-top"
>
<text
class=
"part-tip"
>
使用说明:
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
</view>
<!--
<view
class=
"flex-row margin-top"
>
<text
class=
"text-black"
>
使用说明:
</text>
<text
class=
"text-black"
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
</view>
-->
<view
v-else
class=
"flex-row margin-top"
>
<text
class=
"part-tip"
>
使用说明:
</text>
<text
v-if=
"item.remark"
>
{{
item
.
remark
}}
</text>
<text
v-else
>
原价¥
{{
item
.
originalPrice
}}
,可进行抵扣
</text>
</view>
<view
v-if=
"item.couponTimeStart && item.couponTimeEnd"
class=
"des margin-top"
>
<view
class=
"flex-row"
>
<text
class=
"text-black"
>
可用时段:
</text>
...
...
@@ -206,7 +207,7 @@
padding
:
20
upx
30
upx
;
z-index
:
44
;
.part-tip{
width
:
160
upx
;
}
}
.part-bottom
{
...
...
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