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
fa1045ae
Commit
fa1045ae
authored
Jul 22, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
11667d02
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
8 deletions
+39
-8
store.js
api/store.js
+5
-0
order.vue
pages/order/order.vue
+9
-0
index.vue
setting/recharge/index.vue
+25
-8
No files found.
api/store.js
View file @
fa1045ae
...
...
@@ -41,3 +41,8 @@ export const getListByIds=(data)=>{
let
url
=
`/store/queryByStoreIds`
return
http
.
post
(
url
,
data
)
}
export
const
getStoreActivity
=
(
data
)
=>
{
let
url
=
`/activity/query`
return
http
.
get
(
url
,
data
)
}
pages/order/order.vue
View file @
fa1045ae
...
...
@@ -413,6 +413,7 @@
getDictItem
}
from
"@/utils/tools.js"
import
{
getStoreActivity
,
listSortDistance
,
roomInfo
}
from
"@/api/store.js"
;
...
...
@@ -1074,6 +1075,13 @@
}
})
},
onGetStoreActivity
(){
getStoreActivity
({
storeId
:
this
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
})
},
// 获取房间信息相关
onLoading
()
{
roomInfo
({
...
...
@@ -1100,6 +1108,7 @@
if
(
this
.
roomInfo
.
roomLabelList
&&
this
.
roomInfo
.
roomLabelList
.
length
)
{
this
.
roomLabelList
=
this
.
roomInfo
.
roomLabelList
}
this
.
onGetStoreActivity
()
this
.
onGetSortDistance
()
}
})
...
...
setting/recharge/index.vue
View file @
fa1045ae
...
...
@@ -4,17 +4,29 @@
<view
class=
"list-content"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
class=
"list-item"
@
tap=
"onNavToOrderInfo(item)"
>
<view
class=
"flex-between part-1"
>
<view
class=
""
>
<text
class=
"text-title"
>
{{
item
.
name
}}
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-bold text-xl"
:class=
"item.sign=='income'?'text-red':'text-black'"
>
{{
item
.
price
!==
0
?
payStatus
[
item
.
sign
||
'expenditure'
]:
''
}}
</text>
<text
class=
"text-black text-bold text-lg"
>
{{
item
.
price
}}
元
</text>
<text
class=
"text-title text-gray text-lg"
>
充值金额
</text>
<text
class=
"text-bold text-black"
>
¥
{{
item
.
rechargeAmount
}}
</text>
</view>
<view
class=
"flex-col"
>
<view
v-if=
"item.giveType.includes(1)"
class=
"flex-row"
>
<text>
赠送金额
</text>
<text
class=
"text-pink text-bold text-lg"
>
¥
{{
item
.
giveAmount
}}
</text>
</view>
<view
v-if=
"item.giveType.includes(2)"
class=
"flex-row"
>
<text>
赠送时长
</text>
<text
class=
"text-pink text-bold text-lg"
>
{{
item
.
duration
}}
小时
</text>
</view>
<view
v-if=
"item.giveType.includes(3)"
class=
"flex-row"
>
<text>
赠送优惠券
</text>
<text
class=
"text-pink text-bold text-lg"
>
{{
item
.
consumerCouponIds
||
''
}}
1张
</text>
</view>
</view>
</view>
<view
class=
"flex-between part-1"
>
<text>
{{
item
.
createTim
e
}}
</text>
<text>
{{
item
.
payType
}}
</text>
<text>
{{
item
.
rechargeDat
e
}}
</text>
<text>
{{
payTypeEnum
[
item
.
payType
]
}}
</text>
</view>
</view>
</view>
...
...
@@ -132,7 +144,12 @@ import NoLogin from "@/components/noLogin/noLogin"
uni
.
hideLoading
()
if
(
res
.
data
.
code
==
200
)
{
if
(
this
.
queryParams
.
pageNum
==
1
){
this
.
list
=
res
.
data
.
rows
this
.
list
=
res
.
data
.
rows
.
map
(
item
=>
{
return
{
...
item
,
giveType
:
item
.
giveType
.
split
(
','
).
map
(
v
=>
Number
(
v
))
}
})
}
else
{
this
.
list
=
[...
this
.
list
,...
res
.
data
.
rows
]
}
...
...
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