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
a46da194
Commit
a46da194
authored
Nov 10, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能完善
parent
e3b5b235
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
14 deletions
+83
-14
toolBox.vue
components/toolBox/toolBox.vue
+1
-1
index.config.js
config/index.config.js
+3
-3
pages.json
pages.json
+8
-0
couponCheck.vue
pages/couponCheck/couponCheck.vue
+18
-5
order.vue
pages/order/order.vue
+24
-5
useCouponIllustrate.vue
pages/useCouponIllustrate/useCouponIllustrate.vue
+29
-0
No files found.
components/toolBox/toolBox.vue
View file @
a46da194
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
{
{
name
:
"验券"
,
name
:
"验券"
,
sortName
:
"验"
,
sortName
:
"验"
,
routePath
:
"/pages/
couponCheck/couponCheck
"
routePath
:
"/pages/
useCouponIllustrate/useCouponIllustrate
"
},
},
{
{
name
:
"客服"
,
name
:
"客服"
,
...
...
config/index.config.js
View file @
a46da194
const
CONFIG
=
{
const
CONFIG
=
{
// 开发环境配置
// 开发环境配置
development
:
{
development
:
{
assetsPath
:
'http://1
0.24.5.119
:8211/static'
,
// 静态资源路径
assetsPath
:
'http://1
92.168.43.242
:8211/static'
,
// 静态资源路径
baseUrl
:
'http://1
0.106.30.135
:8883/front-api'
,
// 后台接口请求地址
baseUrl
:
'http://1
92.168.43.21
:8883/front-api'
,
// 后台接口请求地址
hostUrl
:
'http://1
0.106.30.135
:8882'
,
// H5地址(前端运行地址)
hostUrl
:
'http://1
92.168.43.21
:8882'
,
// H5地址(前端运行地址)
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
// hostUrl: 'http://192.168.1.189:8882', // H5地址(前端运行地址)
// hostUrl: 'http://192.168.1.189:8882', // H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
websocketUrl
:
''
,
// websocket服务端地址
...
...
pages.json
View file @
a46da194
...
@@ -119,6 +119,14 @@
...
@@ -119,6 +119,14 @@
"navigationBarTitleText"
:
"券码核销"
,
"navigationBarTitleText"
:
"券码核销"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
{
"path"
:
"pages/useCouponIllustrate/useCouponIllustrate"
,
"style"
:
{
"navigationBarTitleText"
:
"验券说明"
,
"enablePullDownRefresh"
:
false
}
}
}
],
],
...
...
pages/couponCheck/couponCheck.vue
View file @
a46da194
...
@@ -76,17 +76,19 @@
...
@@ -76,17 +76,19 @@
name
:
"美团"
name
:
"美团"
}
}
],
],
couponInfo
:
''
couponInfo
:
''
,
eventChannel
:
null
};
};
},
},
mounted
()
{
},
filters
:{
filters
:{
dateFormat
(
val
){
dateFormat
(
val
){
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
}
},
},
onLoad
()
{
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
},
methods
:{
methods
:{
onConfirm
(){
onConfirm
(){
if
(
!
this
.
code
){
if
(
!
this
.
code
){
...
@@ -103,7 +105,18 @@
...
@@ -103,7 +105,18 @@
console
.
log
(
res
,
909090
)
console
.
log
(
res
,
909090
)
if
(
res
.
data
.
code
===
200
){
if
(
res
.
data
.
code
===
200
){
this
.
couponInfo
=
res
.
data
.
data
this
.
couponInfo
=
res
.
data
.
data
this
.
$refs
.
popup
.
open
()
uni
.
showToast
({
icon
:
"success"
,
title
:
"核验成功"
,
success
:
()
=>
{
this
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
1000
)
}
})
// this.$refs.popup.open()
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
...
...
pages/order/order.vue
View file @
a46da194
...
@@ -459,7 +459,12 @@
...
@@ -459,7 +459,12 @@
this
.
useDateStatus
=
true
this
.
useDateStatus
=
true
console
.
log
(
this
.
dateIntervalList
,
"dateIntervalList"
)
console
.
log
(
this
.
dateIntervalList
,
"dateIntervalList"
)
let
start
=
Number
(
this
.
startTime
.
split
(
":"
)[
0
])
let
start
=
Number
(
this
.
startTime
.
split
(
":"
)[
0
])
let
startM
=
Number
(
this
.
startTime
.
split
(
":"
)[
1
])
let
end
=
Number
(
this
.
endTime
.
split
(
":"
)[
0
])
let
end
=
Number
(
this
.
endTime
.
split
(
":"
)[
0
])
let
endM
=
Number
(
this
.
endTime
.
split
(
":"
)[
1
])
console
.
log
(
start
,
end
,
"start"
)
console
.
log
(
start
,
end
,
"start"
)
if
(
end
<=
start
)
{
if
(
end
<=
start
)
{
end
+=
24
end
+=
24
...
@@ -470,8 +475,14 @@
...
@@ -470,8 +475,14 @@
...
this
.
dateIntervalList
...
this
.
dateIntervalList
]
]
console
.
log
(
moment
(
this
.
dateIntervalList
[
start
].
endHoldTime
).
format
(
"mm"
),
"获取分钟"
)
for
(
start
;
start
<=
end
;
start
++
)
{
for
(
start
;
start
<=
end
;
start
++
)
{
if
(
this
.
dateIntervalList
[
start
].
status
===
1
)
{
// 在时间小时段内,在被占用的情况下,新增订单的开始分钟时间需要占用结束时间后,结束分钟时间需在时间占用开始前
if
(
this
.
dateIntervalList
[
start
].
status
===
1
&&
startM
<
moment
(
this
.
dateIntervalList
[
start
].
endHoldTime
).
format
(
"mm"
)
&&
endM
>
moment
(
this
.
dateIntervalList
[
start
].
startHoldTime
).
format
(
"mm"
)
)
{
// 表示时间点被占用,无法选择
// 表示时间点被占用,无法选择
this
.
useDateStatus
=
false
this
.
useDateStatus
=
false
this
.
intervalList
[
start
]
=
{
this
.
intervalList
[
start
]
=
{
...
@@ -484,9 +495,7 @@
...
@@ -484,9 +495,7 @@
status
:
2
status
:
2
}
}
}
}
}
}
this
.
$forceUpdate
();
this
.
$forceUpdate
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -501,7 +510,6 @@
...
@@ -501,7 +510,6 @@
// 获取可用优惠券
// 获取可用优惠券
onGetUseCoupon
()
{
onGetUseCoupon
()
{
let
dateObj
=
this
.
onSetDateTime
(
this
.
startTime
,
this
.
endTime
);
let
dateObj
=
this
.
onSetDateTime
(
this
.
startTime
,
this
.
endTime
);
getUseCoupon
({
getUseCoupon
({
storeId
:
this
.
roomInfo
.
storeId
,
storeId
:
this
.
roomInfo
.
storeId
,
roomId
:
this
.
roomInfo
.
id
,
roomId
:
this
.
roomInfo
.
id
,
...
@@ -615,9 +623,11 @@
...
@@ -615,9 +623,11 @@
}
else
{
}
else
{
this
.
checkedDateList
=
[
Number
(
arr
[
0
])
+
1
,
0
]
this
.
checkedDateList
=
[
Number
(
arr
[
0
])
+
1
,
0
]
}
}
}
}
}
}
}
}
this
.
checkedIndex
=
this
.
checkedDateList
this
.
$refs
.
popup
.
open
()
this
.
$refs
.
popup
.
open
()
},
},
...
@@ -740,7 +750,16 @@
...
@@ -740,7 +750,16 @@
},
},
onNavToCheckedCoupon
(){
onNavToCheckedCoupon
(){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/couponCheck/couponCheck"
url
:
"/pages/couponCheck/couponCheck"
,
events
:
{
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
acceptData
(
data
){
console
.
log
(
data
)
if
(
data
.
data
){
this
.
onGetUseCoupon
()
}
}
}
})
})
},
},
// 将时间转换成完整日期
// 将时间转换成完整日期
...
...
pages/useCouponIllustrate/useCouponIllustrate.vue
0 → 100644
View file @
a46da194
<
template
>
<view
class=
"flex-col use-coupon-illustrate"
>
<view
class=
"title-box"
>
<text
class=
"text-pink text-bold text-xl"
>
优惠券使用教程
</text>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.use-coupon-illustrate
{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
.title-box{
display
:
flex
;
padding
:
30
upx
;
}
}
</
style
>
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