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
c5d47917
Commit
c5d47917
authored
May 16, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能优化
parent
c353695d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
20 deletions
+33
-20
index.js
common/vmeitime-http/index.js
+1
-1
storeList.vue
components/storeList/storeList.vue
+1
-1
toolBox.vue
components/toolBox/toolBox.vue
+1
-1
index.config.js
config/index.config.js
+2
-2
index.vue
pages/index/index.vue
+11
-3
order.vue
pages/order/order.vue
+15
-10
storeList.vue
pages/storeList/storeList.vue
+2
-2
No files found.
common/vmeitime-http/index.js
View file @
c5d47917
...
@@ -49,7 +49,7 @@ http.interceptor.request = (config => {
...
@@ -49,7 +49,7 @@ http.interceptor.request = (config => {
return
config
;
return
config
;
})
})
http
.
interceptor
.
response
=
(
config
)
=>
{
http
.
interceptor
.
response
=
(
config
)
=>
{
uni
.
hideLoading
();
//
uni.hideLoading();
// console.log(config.data, "请求结果")
// console.log(config.data, "请求结果")
if
(
config
.
header
&&
config
.
header
[
"Access-Control-Expose-Headers"
])
{
if
(
config
.
header
&&
config
.
header
[
"Access-Control-Expose-Headers"
])
{
...
...
components/storeList/storeList.vue
View file @
c5d47917
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
box-shadow
:
0
4
upx
8
upx
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
4
upx
8
upx
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
12
upx
;
border-radius
:
12
upx
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-top
:
24
upx
;
//
margin-top
:
24
upx
;
padding
:
20
upx
0
;
padding
:
20
upx
0
;
.room-img-box
{
.room-img-box
{
...
...
components/toolBox/toolBox.vue
View file @
c5d47917
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
width
:
60px
;
width
:
60px
;
height
:
54
px
;
height
:
60
px
;
border-radius
:
12px
0
0
12px
;
border-radius
:
12px
0
0
12px
;
//
background
:
rgba
(
255
,
255
,
255
,
0.72
);
//
background
:
rgba
(
255
,
255
,
255
,
0.72
);
//
border-top
:
1px
solid
#E40583
;
//
border-top
:
1px
solid
#E40583
;
...
...
config/index.config.js
View file @
c5d47917
...
@@ -2,8 +2,8 @@ const CONFIG = {
...
@@ -2,8 +2,8 @@ const CONFIG = {
// 开发环境配置
// 开发环境配置
development
:
{
development
:
{
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
//
assetsPath: 'https://coujiao.pseer.com/wechat_static', // 静态资源路径
assetsPath
:
'https://coujiao.pseer.com/wechat_static'
,
// 静态资源路径
assetsPath
:
'http://10.24.5.167:8211/static'
,
// 静态资源路径
//
assetsPath: 'http://10.24.5.167:8211/static', // 静态资源路径
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
baseUrl
:
'https://coujiao.pseer.com/front-api'
,
// 后台接口请求地址
baseUrl
:
'https://coujiao.pseer.com/front-api'
,
// 后台接口请求地址
// baseUrl: 'http://10.24.3.185:8883/front-api',
// baseUrl: 'http://10.24.3.185:8883/front-api',
...
...
pages/index/index.vue
View file @
c5d47917
...
@@ -328,10 +328,16 @@
...
@@ -328,10 +328,16 @@
objListDate
:
[],
objListDate
:
[],
timer2
:
null
,
timer2
:
null
,
timerLocation
:
null
,
timerLocation
:
null
,
storeNavBg
:
'rgba(255, 255, 255, 1)'
storeNavBg
:
'rgba(255, 255, 255, 1)'
,
tempStoreInfo
:{},
}
}
},
},
onShow
()
{
onShow
()
{
if
(
!
this
.
storeInfo
.
id
||
this
.
storeInfo
.
id
!=
uni
.
getStorageSync
(
'storeId'
)){
uni
.
showLoading
({
title
:
"加载中..."
})
}
this
.
onGetSysConfig
();
this
.
onGetSysConfig
();
this
.
onGetListStore
();
this
.
onGetListStore
();
this
.
timerLocation
=
setInterval
(()
=>
{
this
.
timerLocation
=
setInterval
(()
=>
{
...
@@ -457,7 +463,7 @@
...
@@ -457,7 +463,7 @@
obj
=
res
.
data
.
data
[
0
];
obj
=
res
.
data
.
data
[
0
];
uni
.
setStorageSync
(
"storeId"
,
obj
.
id
);
uni
.
setStorageSync
(
"storeId"
,
obj
.
id
);
}
}
that
.
s
toreInfo
=
{
that
.
tempS
toreInfo
=
{
...
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
}
}
...
@@ -478,6 +484,7 @@
...
@@ -478,6 +484,7 @@
getRoomList
({
getRoomList
({
storeId
storeId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
let
list
=
res
.
data
.
data
.
map
(
item
=>
{
let
list
=
res
.
data
.
data
.
map
(
item
=>
{
let
sortNum
=
1
;
let
sortNum
=
1
;
...
@@ -520,6 +527,7 @@
...
@@ -520,6 +527,7 @@
})
})
list
.
sort
((
a
,
b
)
=>
a
.
sortNum
-
b
.
sortNum
);
list
.
sort
((
a
,
b
)
=>
a
.
sortNum
-
b
.
sortNum
);
this
.
storeInfo
=
this
.
tempStoreInfo
;
that
.
roomVoList
=
list
;
that
.
roomVoList
=
list
;
let
l
=
that
.
roomVoList
.
filter
(
item
=>
item
.
sortNum
===
1
)
let
l
=
that
.
roomVoList
.
filter
(
item
=>
item
.
sortNum
===
1
)
...
@@ -530,9 +538,9 @@
...
@@ -530,9 +538,9 @@
}
}
}
else
{
}
else
{
this
.
storeInfo
=
this
.
tempStoreInfo
;
that
.
roomVoList
=
[]
that
.
roomVoList
=
[]
}
}
uni
.
hideLoading
()
})
})
},
},
// 检查当前小时段是否被全部占用 true 完全占用 false 部分占用
// 检查当前小时段是否被全部占用 true 完全占用 false 部分占用
...
...
pages/order/order.vue
View file @
c5d47917
...
@@ -304,14 +304,14 @@
...
@@ -304,14 +304,14 @@
<view
class=
"flex-row time-box"
>
<view
class=
"flex-row time-box"
>
<view
class=
"part-1"
>
<view
class=
"part-1"
>
<
image
:src=
"assetsPath+'/time_bg_icon.png'"
mode=
"widthFix"
></image
>
<
!--
<image
:src=
"assetsPath+'/time_bg_icon.png'"
mode=
"widthFix"
></image>
--
>
<view
class=
"absolute"
>
<view
class=
"absolute"
>
<text>
{{
formatAllData
.
startTime
}}
</text>
<text>
{{
formatAllData
.
startTime
}}
</text>
</view>
</view>
</view>
</view>
<text>
至
</text>
<text>
至
</text>
<view
class=
"part-1"
>
<view
class=
"part-1"
>
<
image
:src=
"assetsPath+'/time_bg_icon.png'"
mode=
"widthFix"
></image
>
<
!--
<image
:src=
"assetsPath+'/time_bg_icon.png'"
mode=
"widthFix"
></image>
--
>
<view
class=
"absolute"
>
<view
class=
"absolute"
>
<text>
{{
formatAllData
.
endTime
}}
</text>
<text>
{{
formatAllData
.
endTime
}}
</text>
</view>
</view>
...
@@ -320,13 +320,13 @@
...
@@ -320,13 +320,13 @@
<view
class=
"info flex-row-center"
>
<view
class=
"info flex-row-center"
>
<text
class=
"text-black text-bold text-lg"
>
房间:
</text>
<text
class=
"text-black text-bold text-lg"
>
房间:
</text>
<text
class=
"
text-pink
margin-left text-lg "
>
{{
roomInfo
.
name
}}
(
{{
roomTypeEnum
[
roomInfo
.
roomType
]
}}
)
</text>
<text
class=
" margin-left text-lg "
>
{{
roomInfo
.
name
}}
(
{{
roomTypeEnum
[
roomInfo
.
roomType
]
}}
)
</text>
</view>
</view>
<view
class=
"info flex-row-center"
>
<view
class=
"info flex-row-center"
>
<text
class=
"text-black text-bold text-lg"
>
金额:
</text>
<text
class=
"text-black text-bold text-lg"
>
金额:
</text>
<text
class=
"margin-left text-
pink text-
lg"
>
¥
</text>
<text
class=
"margin-left text-lg"
>
¥
</text>
<text
class=
"
text-pink
text-xl "
>
{{
Number
(
computePriceInfo
.
payFee
).
toFixed
(
2
)
}}
</text>
<text
class=
" text-xl "
>
{{
Number
(
computePriceInfo
.
payFee
).
toFixed
(
2
)
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -2353,7 +2353,8 @@
...
@@ -2353,7 +2353,8 @@
.text-title{
.text-title{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
36
rpx
;
font-size
:
36
rpx
;
color
:
#E03997
;
//
color
:
#E03997
;
color
:
#333333
;
}
}
}
}
.time-box
{
.time-box
{
...
@@ -2362,15 +2363,16 @@
...
@@ -2362,15 +2363,16 @@
justify-content
:
center
;
justify-content
:
center
;
width
:
100%
;
width
:
100%
;
align-items
:
center
;
align-items
:
center
;
margin
:
2
0
upx
0
;
margin
:
3
0
upx
0
;
.part-1{
.part-1{
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
flex
:
1
;
flex
:
1
;
margin
:
0
20
upx
;
margin
:
0
24
upx
;
height
:
90
upx
;
image{
image{
width
:
100%
;
width
:
100%
;
height
:
10
4
upx
;
height
:
10
0%
;
}
}
.absolute
{
.absolute
{
position
:
absolute
;
position
:
absolute
;
...
@@ -2381,10 +2383,13 @@
...
@@ -2381,10 +2383,13 @@
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
border
:
6
upx
solid
#E03997
;
border-radius
:
47
upx
;
text{
text{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
60
upx
;
font-size
:
60
upx
;
color
:
#333333
;
//
color
:
#333333
;
color
:
#E03997
;
}
}
}
}
}
}
...
...
pages/storeList/storeList.vue
View file @
c5d47917
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
<view
class=
"VerticalBox"
:style=
"
{paddingTop:CustomBar+50+'px'}">
<view
class=
"VerticalBox"
:style=
"
{paddingTop:CustomBar+50+'px'}">
<view
class=
"banner2"
>
<view
class=
"banner2"
>
<image
:src=
"assetsPath+'/banner
2
.png'"
mode=
"widthFix"
></image>
<image
:src=
"assetsPath+'/banner
3
.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"room-content-box"
>
<view
class=
"room-content-box"
>
<!-- 展示所有房间列表 -->
<!-- 展示所有房间列表 -->
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
}
}
.banner2
{
.banner2
{
width
:
674
upx
;
width
:
674
upx
;
margin
:
-12
u
px
auto
0
;
margin
:
12
px
auto
0
;
image
{
image
{
display
:
block
;
display
:
block
;
...
...
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