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