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
4cd335da
Commit
4cd335da
authored
Nov 02, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化功能
parent
6e385ba6
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
136 additions
and
50 deletions
+136
-50
cleanRoom.js
api/cleanRoom.js
+22
-0
f-navbar.vue
components/module/f-navbar/f-navbar.vue
+1
-0
toolBox.vue
components/toolBox/toolBox.vue
+4
-0
index.config.js
config/index.config.js
+2
-2
pages.json
pages.json
+21
-28
cleanManage.vue
pages/cleanManage/cleanManage.vue
+8
-1
cleanOrderInfo.vue
pages/cleanOrderInfo/cleanOrderInfo.vue
+12
-1
index.vue
pages/index/index.vue
+44
-18
storeList.vue
pages/storeList/storeList.vue
+22
-0
No files found.
api/cleanRoom.js
0 → 100644
View file @
4cd335da
import
http
from
"@/common/vmeitime-http/index.js"
// 获取用户负责的保洁门店和房间
export
const
getListStore
=
()
=>
{
let
url
=
`/store/listVoByCleaner`
return
http
.
get
(
url
)
}
export
const
getInfoByRoomId
=
(
roomId
)
=>
{
let
url
=
`/cleanRecords/getByRoomId/
${
roomId
}
`
return
http
.
get
(
url
)
}
export
const
startClean
=
(
data
)
=>
{
let
url
=
`cleanRecords/startClean`
return
http
.
post
(
url
,
data
)
}
export
const
endClean
=
(
data
)
=>
{
let
url
=
`cleanRecords/endClean`
return
http
.
post
(
url
,
data
)
}
components/module/f-navbar/f-navbar.vue
View file @
4cd335da
...
@@ -188,6 +188,7 @@ export default {
...
@@ -188,6 +188,7 @@ export default {
}
}
},
},
scrollTop
(
val
)
{
scrollTop
(
val
)
{
console
.
log
(
val
,
909090
)
this
.
pageScroll
({
this
.
pageScroll
({
scrollTop
:
val
scrollTop
:
val
});
});
...
...
components/toolBox/toolBox.vue
View file @
4cd335da
...
@@ -31,6 +31,10 @@
...
@@ -31,6 +31,10 @@
{
{
name
:
"验券"
,
name
:
"验券"
,
sortName
:
"验"
sortName
:
"验"
},
{
name
:
"客服"
,
sortName
:
"客"
}
}
],
],
timer
:
null
timer
:
null
...
...
config/index.config.js
View file @
4cd335da
...
@@ -2,10 +2,10 @@ const CONFIG = {
...
@@ -2,10 +2,10 @@ const CONFIG = {
// 开发环境配置
// 开发环境配置
development
:
{
development
:
{
assetsPath
:
'/static'
,
// 静态资源路径
assetsPath
:
'/static'
,
// 静态资源路径
// baseUrl: 'http://192.168.137.48:8883/front', // 后台接口请求地址
// hostUrl: 'http://192.168.137.48:8882', // H5地址(前端运行地址)
baseUrl
:
'http://10.106.30.136:8883/front'
,
// 后台接口请求地址
baseUrl
:
'http://10.106.30.136:8883/front'
,
// 后台接口请求地址
hostUrl
:
'http://10.106.30.136:8882'
,
// H5地址(前端运行地址)
hostUrl
:
'http://10.106.30.136:8882'
,
// H5地址(前端运行地址)
// baseUrl: 'http://192.168.43.242:8883/front', // 后台接口请求地址
// hostUrl: 'http://192.168.43.242:8882', // H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
websocketUrl
:
''
,
// websocket服务端地址
weixinAppId
:
''
,
// 微信公众号appid
weixinAppId
:
''
,
// 微信公众号appid
codeHeadUrl
:
""
,
codeHeadUrl
:
""
,
...
...
pages.json
View file @
4cd335da
{
{
"pages"
:
[
"pages"
:
[
{
{
"path"
:
"pages/
storeList/storeList
"
,
"path"
:
"pages/
index/index
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
选择门店
"
,
"navigationBarTitleText"
:
"
首页
"
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
{
"path"
:
"pages/
index/index
"
,
"path"
:
"pages/
storeList/storeList
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
首页
"
,
"navigationBarTitleText"
:
"
选择门店
"
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
...
@@ -57,52 +57,46 @@
...
@@ -57,52 +57,46 @@
}
}
},
},
{
{
"path"
:
"pages/article/article"
,
"path"
:
"pages/article/article"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"详情"
,
"navigationBarTitleText"
:
"详情"
,
"navigationStyle"
:
"default"
"navigationStyle"
:
"default"
}
}
},
},
{
{
"path"
:
"pages/couponList/index"
,
"path"
:
"pages/couponList/index"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"我的优惠券"
,
"navigationBarTitleText"
:
"我的优惠券"
,
"navigationStyle"
:
"default"
"navigationStyle"
:
"default"
}
}
},
},
{
{
"path"
:
"pages/useCoupon/index"
,
"path"
:
"pages/useCoupon/index"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"选择优惠券"
,
"navigationBarTitleText"
:
"选择优惠券"
,
"navigationStyle"
:
"default"
"navigationStyle"
:
"default"
}
}
},
},
{
{
"path"
:
"pages/cleanManage/cleanManage"
,
"path"
:
"pages/cleanManage/cleanManage"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"保洁管理"
,
"navigationBarTitleText"
:
"保洁管理"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
},
,{
"path"
:
"pages/cleanOrderInfo/cleanOrderInfo"
,
"style"
:
{
{
"path"
:
"pages/cleanOrderInfo/cleanOrderInfo"
,
"style"
:
{
"navigationBarTitleText"
:
"保洁订单"
,
"navigationBarTitleText"
:
"保洁订单"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
},
,{
"path"
:
"pages/orderResult/orderResult"
,
"style"
:
{
{
"path"
:
"pages/orderResult/orderResult"
,
"style"
:
{
"navigationBarTitleText"
:
"下单完成"
,
"navigationBarTitleText"
:
"下单完成"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
...
@@ -121,18 +115,17 @@
...
@@ -121,18 +115,17 @@
"selectedColor"
:
"#E40583"
,
"selectedColor"
:
"#E40583"
,
"borderStyle"
:
"black"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#FFFFFF"
,
"list"
:
[
"list"
:
[{
{
"pagePath"
:
"pages/index/index"
,
"pagePath"
:
"pages/index/index"
,
"iconPath"
:
"static/tab-bar-img/home.png"
,
"iconPath"
:
"static/tab-bar-img/home.png"
,
"selectedIconPath"
:
"static/tab-bar-img/home_selected.png"
,
"selectedIconPath"
:
"static/tab-bar-img/home_selected.png"
,
"text"
:
"首页"
"text"
:
"首页"
},
},
{
{
"pagePath"
:
"pages/
roomList/roomList
"
,
"pagePath"
:
"pages/
orderRecord/orderRecord
"
,
"iconPath"
:
"static/tab-bar-img/order.png"
,
"iconPath"
:
"static/tab-bar-img/order.png"
,
"selectedIconPath"
:
"static/tab-bar-img/order_selected.png"
,
"selectedIconPath"
:
"static/tab-bar-img/order_selected.png"
,
"text"
:
"
预约
"
"text"
:
"
订单
"
},
},
{
{
"pagePath"
:
"pages/my/myInfo"
,
"pagePath"
:
"pages/my/myInfo"
,
...
...
pages/cleanManage/cleanManage.vue
View file @
4cd335da
...
@@ -63,6 +63,8 @@
...
@@ -63,6 +63,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getListStore
}
from
"@/api/cleanRoom.js"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -184,9 +186,14 @@
...
@@ -184,9 +186,14 @@
};
};
},
},
onLoad
()
{
onLoad
()
{
this
.
onLoading
()
},
},
methods
:{
methods
:{
onLoading
(){
getListStore
().
then
(
res
=>
{
console
.
log
(
res
)
})
},
onNavToInfo
(){
onNavToInfo
(){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/cleanOrderInfo/cleanOrderInfo"
url
:
"/pages/cleanOrderInfo/cleanOrderInfo"
...
...
pages/cleanOrderInfo/cleanOrderInfo.vue
View file @
4cd335da
...
@@ -70,16 +70,27 @@
...
@@ -70,16 +70,27 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getInfoByRoomId
}
from
"@/api/cleanRoom.js"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
imgList
:[],
imgList
:[],
orderInfo
:{},
};
};
},
},
onLoad
()
{
onLoad
()
{
this
.
onLoading
();
},
},
methods
:{
methods
:{
onLoading
(){
getInfoByRoomId
(
this
.
roomId
).
then
(
res
=>
{
console
.
log
(
res
,
90909090
)
if
(
res
.
data
.
code
===
200
){
this
.
orderInfo
=
res
.
data
.
data
;
}
})
},
onChooseImage
()
{
onChooseImage
()
{
uni
.
chooseImage
({
uni
.
chooseImage
({
count
:
4
,
//默认9
count
:
4
,
//默认9
...
...
pages/index/index.vue
View file @
4cd335da
<
template
>
<
template
>
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchmove=
"onTouchMove"
@
touchend=
"onTouchEnd"
>
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchmove=
"onTouchMove"
@
touchend=
"onTouchEnd"
>
<view
class=
"header-content"
:style=
"
{height: statusBarHeight + 210+'px',paddingTop:statusBarHeight+'px' }">
<f-navbar
title=
"凑角"
:isShowTransparentTitle=
"false"
:isShowLeft=
"false"
fontColor=
"#ffffff"
bgColor=
"#e40583"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
@
scroll=
"onScroll"
>
<view
class=
"content-box"
>
<view
class=
"header-content"
:style=
"
{height: statusBarHeight + 210+'px',paddingTop:statusBarHeight+'px' }">
<image
src=
"../../static/banner.png"
mode=
"widthFix"
></image>
<image
src=
"../../static/banner.png"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"store-nav"
>
<view
class=
"store-nav"
>
...
@@ -10,7 +15,8 @@
...
@@ -10,7 +15,8 @@
<view
class=
"flex-col content"
>
<view
class=
"flex-col content"
>
<view
class=
"flex-row title-content "
>
<view
class=
"flex-row title-content "
>
<text>
凑角共享棋牌室
</text>
<text>
凑角共享棋牌室
</text>
<button
class=
"cu-btn round line-pink"
@
tap=
"onNavToChangeStore"
>
切换门店
</button>
<button
class=
"cu-btn round bg-pink text-bold text-xl"
@
tap=
"onNavToChangeStore"
>
切换门店
</button>
</view>
</view>
<view
class=
"flex-1 tips-content"
>
<view
class=
"flex-1 tips-content"
>
<image
class=
"bg-img"
src=
"../../static/44@2x.png"
mode=
"scaleToFill"
></image>
<image
class=
"bg-img"
src=
"../../static/44@2x.png"
mode=
"scaleToFill"
></image>
...
@@ -26,13 +32,14 @@
...
@@ -26,13 +32,14 @@
</view>
</view>
<view
class=
"flex-row part-right"
>
<view
class=
"flex-row part-right"
>
<image
src=
"../../static/map_icon.png"
mode=
"widthFix"
@
tap=
"onNavToMap"
></image>
<image
src=
"../../static/map_icon.png"
mode=
"widthFix"
@
tap=
"onNavToMap"
></image>
<image
src=
"../../static/phone_icon.png"
mode=
"widthFix"
@
tap=
"onOpenTelphone"
></image>
<image
src=
"../../static/phone_icon.png"
mode=
"widthFix"
@
tap=
"onOpenTelphone"
>
</image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!--
<view
class=
"flex-row fun-list"
>
<!--
<view
class=
"flex-row fun-list"
>
<view
class=
"flex-1"
>
<view
class=
"flex-1"
>
<image
src=
"../../static/open_door.png"
mode=
"widthFix"
></image>
<image
src=
"../../static/open_door.png"
mode=
"widthFix"
></image>
</view>
</view>
...
@@ -56,7 +63,8 @@
...
@@ -56,7 +63,8 @@
<view
class=
"absolute part-top-content"
>
<view
class=
"absolute part-top-content"
>
<view
class=
"flex-between"
>
<view
class=
"flex-between"
>
<view></view>
<view></view>
<image
src=
"../../static/nav_to_icon.png"
mode=
"widthFix"
@
tap=
"onNavToInfo(item)"
></image>
<image
src=
"../../static/nav_to_icon.png"
mode=
"widthFix"
@
tap=
"onNavToInfo(item)"
>
</image>
</view>
</view>
<view
class=
"tip-list-box"
>
<view
class=
"tip-list-box"
>
<view
v-for=
"(item,index) in iconList"
:key=
"index"
class=
"tip-item"
>
<view
v-for=
"(item,index) in iconList"
:key=
"index"
class=
"tip-item"
>
...
@@ -88,11 +96,15 @@
...
@@ -88,11 +96,15 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
<ToolBox
v-model=
"show"
/>
<ToolBox
v-model=
"show"
/>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
fNavbar
from
'@/components/module/f-navbar/f-navbar'
;
import
{
import
{
login
login
}
from
"@/api/index.js"
;
}
from
"@/api/index.js"
;
...
@@ -103,17 +115,19 @@
...
@@ -103,17 +115,19 @@
import
ToolBox
from
"@/components/toolBox/toolBox"
import
ToolBox
from
"@/components/toolBox/toolBox"
export
default
{
export
default
{
components
:{
components
:
{
fNavbar
,
ToolBox
ToolBox
},
},
data
()
{
data
()
{
return
{
return
{
scrollTop
:
0
,
storeId
:
''
,
storeId
:
''
,
storeInfo
:
{},
storeInfo
:
{},
statusBarHeight
:
this
.
statusBarHeight
,
statusBarHeight
:
this
.
statusBarHeight
,
hostUrl
:
config
.
hostUrl
,
hostUrl
:
config
.
hostUrl
,
latitude
:
uni
.
getStorageSync
(
"latitude"
)
||
""
,
latitude
:
uni
.
getStorageSync
(
"latitude"
)
||
""
,
longitude
:
uni
.
getStorageSync
(
"longitude"
)
||
""
,
longitude
:
uni
.
getStorageSync
(
"longitude"
)
||
""
,
queryParams
:
{
queryParams
:
{
nowLatitude
:
""
,
nowLatitude
:
""
,
nowLongitude
:
""
,
nowLongitude
:
""
,
...
@@ -151,8 +165,8 @@
...
@@ -151,8 +165,8 @@
label
:
"8小时"
label
:
"8小时"
}
}
],
],
show
:
true
,
show
:
true
,
timer
:
null
timer
:
null
}
}
},
},
onShow
()
{
onShow
()
{
...
@@ -176,8 +190,12 @@
...
@@ -176,8 +190,12 @@
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
console
.
log
(
option
,
909090
)
console
.
log
(
option
,
909090
)
},
},
methods
:
{
methods
:
{
onScroll
(
e
){
console
.
log
(
e
,
90909090
)
},
onLoading
()
{
onLoading
()
{
this
.
onGetListStore
()
this
.
onGetListStore
()
},
},
...
@@ -251,22 +269,22 @@
...
@@ -251,22 +269,22 @@
}
}
})
})
},
},
onTouchStart
(){
onTouchStart
()
{
this
.
timer
=
null
;
this
.
timer
=
null
;
this
.
show
=
true
;
this
.
show
=
true
;
},
},
onTouchMove
(){
onTouchMove
()
{
if
(
!
this
.
timer
)
{
if
(
!
this
.
timer
)
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
show
=
false
;
this
.
show
=
false
;
},
200
)
},
200
)
}
}
},
},
onTouchEnd
(){
onTouchEnd
()
{
if
(
this
.
timer
)
{
if
(
this
.
timer
)
{
clearTimeout
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
}
}
if
(
!
this
.
show
)
{
if
(
!
this
.
show
)
{
this
.
show
=
true
this
.
show
=
true
}
}
...
@@ -303,6 +321,14 @@
...
@@ -303,6 +321,14 @@
}
}
}
}
.scroll-view
{
width
:
100vw
;
.content-box{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
}
}
.store-nav
{
.store-nav
{
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
...
...
pages/storeList/storeList.vue
View file @
4cd335da
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
<text
class=
"text-lg text-white text-bold"
>
选择门店
</text>
<text
class=
"text-lg text-white text-bold"
>
选择门店
</text>
</view>
</view>
<view
class=
"cu-bar search"
>
<view
class=
"cu-bar search"
>
<view
class=
"city-box"
>
<text
class=
"icon cuIcon-location"
></text>
<text>
武汉
</text>
</view>
<view
class=
"search-form round"
>
<view
class=
"search-form round"
>
<text
class=
"cuIcon-search"
></text>
<text
class=
"cuIcon-search"
></text>
<input
type=
"text"
placeholder=
"请输入门店关键词"
confirm-type=
"search"
></input>
<input
type=
"text"
placeholder=
"请输入门店关键词"
confirm-type=
"search"
></input>
...
@@ -234,4 +238,21 @@
...
@@ -234,4 +238,21 @@
align-items
:
center
;
align-items
:
center
;
min-height
:
400
upx
;
min-height
:
400
upx
;
}
}
.city-box
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
color
:
#f8f8f8
;
font-weight
:
bold
;
margin-left
:
20
upx
;
.icon{
margin-top
:
5
upx
;
}
text
{
font-size
:
14px
;
letter-spacing
:
4
upx
;
}
}
</
style
>
</
style
>
\ No newline at end of file
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