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
6f22be62
Commit
6f22be62
authored
Jan 02, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能完善
parent
d4f8883b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
31 deletions
+35
-31
index.vue
pages/index/index.vue
+24
-29
order.vue
pages/order/order.vue
+1
-0
orderRecord.vue
pages/orderRecord/orderRecord.vue
+6
-2
orderResult.vue
pages/orderResult/orderResult.vue
+4
-0
No files found.
pages/index/index.vue
View file @
6f22be62
...
...
@@ -201,10 +201,7 @@
}
},
onShow
()
{
this
.
onGetSysConfig
();
uni
.
showLoading
({
title
:
'加载中'
})
this
.
onGetSysConfig
();
this
.
onLoading
()
},
onReachBottom
()
{
...
...
@@ -220,7 +217,7 @@
// 隐藏原生的tabbar
uni
.
hideTabBar
();
this
.
$refs
.
loginPop
.
open
();
this
.
onGetDicts
()
this
.
onGetDicts
()
;
},
methods
:
{
onGetSysConfig
(){
...
...
@@ -239,9 +236,13 @@
this
.
facilitieList
=
getDictItem
(
dicts
,
"indoor_facilities"
);
this
.
roomTypeEnum
=
getDictItem
(
dicts
,
"store_room_type"
);
this
.
roomStatusEnum
=
getDictItem
(
dicts
,
"store_room_status"
);
this
.
onGetListStore
();
})
},
onLoading
()
{
uni
.
showLoading
({
title
:
'加载中'
})
uni
.
getLocation
({
type
:
"gcj02"
,
complete
:
(
res
)
=>
{
...
...
@@ -250,13 +251,11 @@
this
.
longitude
=
res
.
longitude
;
uni
.
setStorageSync
(
"latitude"
,
res
.
latitude
)
uni
.
setStorageSync
(
"longitude"
,
res
.
longitude
)
this
.
onGetListStore
()
}
else
{
this
.
$refs
.
popup
.
open
()
uni
.
hideLoading
()
}
// uni.removeStorage({
// key: 'storeId'
// })
this
.
onGetListStore
()
}
})
},
...
...
@@ -264,9 +263,10 @@
let
that
=
this
;
getListStore
({
...
this
.
queryParams
,
nowLatitude
:
this
.
latitude
||
''
,
nowLongitude
:
this
.
longitude
||
''
nowLatitude
:
this
.
latitude
,
nowLongitude
:
this
.
longitude
}).
then
(
res
=>
{
uni
.
hideLoading
()
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
this
.
storeList
=
res
.
data
.
data
;
let
obj
=
{}
...
...
@@ -274,24 +274,19 @@
obj
=
this
.
storeList
.
find
(
item
=>
item
.
id
===
uni
.
getStorageSync
(
"storeId"
))
}
else
{
obj
=
res
.
data
.
data
[
0
];
}
new
Promise
((
resolve
,
reject
)
=>
{
that
.
storeInfo
=
{
...
obj
,
distance
:
obj
.
distance
?
Number
(
obj
.
distance
.
substr
(
0
,
8
)).
toFixed
(
2
):
0
,
roomVoList
:
obj
.
roomVoList
&&
obj
.
roomVoList
.
length
?
obj
.
roomVoList
.
map
(
item
=>
{
return
{
...
item
,
facilities
:
item
.
facilities
?
item
.
facilities
.
split
(
","
)
:
[],
images
:
item
.
images
?
item
.
images
.
split
(
","
).
map
(
val
=>
this
.
hostUrl
+
val
)
:
[]
}
}):[]
}
resolve
()
}).
then
(()
=>
{
uni
.
hideLoading
()
})
}
that
.
storeInfo
=
{
...
obj
,
distance
:
obj
.
distance
?
Number
(
obj
.
distance
.
substr
(
0
,
8
)).
toFixed
(
2
):
0
,
roomVoList
:
obj
.
roomVoList
&&
obj
.
roomVoList
.
length
?
obj
.
roomVoList
.
map
(
item
=>
{
return
{
...
item
,
facilities
:
item
.
facilities
?
item
.
facilities
.
split
(
","
)
:
[],
images
:
item
.
images
?
item
.
images
.
split
(
","
).
map
(
val
=>
this
.
hostUrl
+
val
)
:
[]
}
}):[]
}
}
})
},
...
...
pages/order/order.vue
View file @
6f22be62
...
...
@@ -868,6 +868,7 @@
title
:
"选择时段有重复"
})
}
this
.
onComputePrice
();
},
onDurationChange
(
i
)
{
if
(
i
>=
this
.
distanceMode
.
length
-
1
)
{
...
...
pages/orderRecord/orderRecord.vue
View file @
6f22be62
...
...
@@ -91,6 +91,10 @@
<text
class=
"text-gray"
>
结束时间:
</text>
<text
class=
"text-title"
>
{{
item
.
endDate
}}
</text>
</view>
<view
v-if=
"item.refundReasonTime"
class=
"flex-between part-1"
>
<text
class=
"text-gray"
>
取消时间:
</text>
<text
class=
"text-title"
>
{{
item
.
refundReasonTime
}}
</text>
</view>
<!--
<view
class=
"flex-between part-1"
>
<text
class=
"text-gray"
>
订单总计:
</text>
<text
class=
"text-pink text-bold"
>
{{
item
.
totalPrice
}}
元
</text>
...
...
@@ -275,14 +279,14 @@ import NoLogin from "@/components/noLogin/noLogin"
align-items
:
center
;
.list-item{
width
:
94%
;
padding
:
30
upx
20
upx
;
padding
:
24
upx
20
upx
12
upx
;
border-radius
:
20
upx
;
background-color
:
#ffffff
;
margin-top
:
30
upx
;
.part-1{
display
:
flex
;
align-items
:
center
;
padding
:
1
0
upx
;
padding
:
0
10
upx
2
0
upx
;
.store-name{
align-items
:
center
;
}
...
...
pages/orderResult/orderResult.vue
View file @
6f22be62
...
...
@@ -79,6 +79,10 @@
<text
style=
"margin-left: 4upx;"
>
元
</text>
</view>
</view>
<view
v-if=
"orderInfo.refundReasonTime"
class=
"flex-between"
>
<text
class=
"text-gray"
>
取消时间
</text>
<text
class=
"text-title"
>
{{
orderInfo
.
refundReasonTime
}}
</text>
</view>
</view>
<view
v-if=
"orderInfo.status
<
=
1
"
class=
"part-2"
>
...
...
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