Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
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
panyongping
uni-pdtravel
Commits
0a6553e9
Commit
0a6553e9
authored
Dec 19, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班次bug处理
parent
8adcbbaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
18 deletions
+31
-18
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+11
-9
times.vue
pages/scenic/scenicComponents/times.vue
+12
-7
scenicOrder.vue
pages/scenic/scenicOrder/scenicOrder.vue
+8
-2
No files found.
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
0a6553e9
...
...
@@ -89,7 +89,13 @@
<view
class=
"title-text"
>
场次
</view>
<view
class=
"list-timelist"
>
<scroll-view
class=
"time-content"
scroll-x=
"true"
:scroll-left=
"item.timeScroll"
v-if=
"item.timeList&&item.timeList.length> 0"
>
<view
class=
"time-list"
v-for=
"(item2,index2) of item.timeList"
@
click=
"chooseTime(item,item2,index2)"
:class=
"
{ on:item.timeActive == index2 }" :key="index2">
<view
class=
"time-list"
:style=
"
{color:item2.copyLast=='售罄'?'#ff0000':''}"
v-for="(item2,index2) of item.timeList"
@click="chooseTime(item,item2,index2)"
:class="{ on:item.timeActive == index2 }"
:key="index2"
>
<view>
{{
item2
.
startPlanTime
?
item2
.
startPlanTime
.
substr
(
0
,
5
)
:
''
}}
<text
v-if=
"!item2.saleOnlyShowFromDate"
>
...
...
@@ -260,11 +266,11 @@
<u-icon
name=
"arrow-down"
></u-icon>
</view>
<view
class=
"bottom-btn"
:style=
"{ background: payBackground }"
>
<view
class=
"bottom-btn"
>
<text
v-if=
"orderStatus == 1"
>
已下架
</text>
<
template
v-else
>
<text
v-if=
"parseInt(maxBookNum)
<1
"
>
暂无库存
</text>
<text
v-if=
"parseInt(maxBookNum)>0"
@
click=
"goPay()"
>
去支付
</text>
<text
v-if=
"parseInt(maxBookNum)>0"
@
click=
"goPay()"
style=
"background:#3688FF;"
>
去支付
</text>
</
template
>
</view>
</view>
...
...
@@ -371,7 +377,6 @@ export default {
timeFlag
:
''
,
//setTimeout函数
productDepositTotal
:
0
,
//产品总押金
docQuery
:
''
,
//元素变量
payBackground
:
''
,
//支付按钮背景颜色
timeScroll
:
''
,
//时间滚动值
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
//openid
couponData
:[],
//所有劵数据
...
...
@@ -433,7 +438,6 @@ export default {
item
.
contactNum
=
1
//需要选择几位联系人数量
if
(
item
.
status
==
1
){
//任何一个产品下架,该组合票为下架状态
this
.
orderStatus
=
1
this
.
payBackground
=
'#C0C0C0'
return
}
if
(
item
.
productType
!=
3
){
//不为班次票时,开始时间为当前时间,结束时间为23:59:59
...
...
@@ -498,7 +502,6 @@ export default {
})
if
(
item
.
priceStockList
.
length
==
0
){
uni
.
showToast
({
title
:
'没有库存'
,
icon
:
'none'
})
this
.
payBackground
=
'#C0C0C0'
this
.
maxBookNum
=
0
return
}
...
...
@@ -534,7 +537,6 @@ export default {
}
}
else
{
uni
.
showToast
({
title
:
'没有库存'
,
icon
:
'none'
})
this
.
payBackground
=
'#C0C0C0'
this
.
maxBookNum
=
0
return
}
...
...
@@ -1581,8 +1583,6 @@ export default {
line-height
:
80rpx
;
font-size
:
32rpx
;
font-weight
:
bolder
;
border-radius
:
24rpx
;
background
:
$red
;
text-align
:
center
;
}
.bottom-btn
text
{
...
...
@@ -1593,6 +1593,8 @@ export default {
left
:
0
;
color
:
#ffffff
;
top
:
0
;
background
:
#C0C0C0
;
border-radius
:
24rpx
;
}
.sortPoptext
{
font-size
:
30rpx
;
...
...
pages/scenic/scenicComponents/times.vue
View file @
0a6553e9
...
...
@@ -8,11 +8,13 @@
<view
class=
"time-content"
v-if=
"chooseTimeList&&chooseTimeList.length>0"
>
<!--库存大于零并且当前时间小于班次的开始时间才显示-->
<view
class=
'time-list'
:style=
"
{color:item.copyLast=='售罄'?'#ff0000':''}"
v-for="(item,index) of chooseTimeList"
:class="{on:active==index}"
@click="chooseTime(index)"
:key="index" v-if="item.last>0">
<view>
:key="index"
>
<view
>
{{
item
.
startPlanTime
?
item
.
startPlanTime
.
substr
(
0
,
5
):
""
}}
<text
v-if=
"!item.saleOnlyShowFromDate"
>
-
{{
item
.
endPlanTime
?
item
.
endPlanTime
.
substr
(
0
,
5
):
""
}}
...
...
@@ -59,8 +61,10 @@ export default {
},
methods
:
{
//---时间选择
chooseTime
(
i
)
{
this
.
active
=
i
chooseTime
(
index
)
{
if
(
this
.
chooseTimeList
[
index
].
copyLast
!=
'售罄'
){
this
.
active
=
index
}
},
//---时间确认事件
confirm
()
{
...
...
@@ -91,12 +95,16 @@ export default {
display
:
flex
;
flex-wrap
:
wrap
;
}
.time-content
view
:nth-child
(
3n
)
{
margin-right
:
0
;
}
.time-list
{
width
:
30%
;
height
:
90rpx
;
line-height
:
30rpx
;
text-align
:
center
;
margin-right
:
5%
;
margin-top
:
30rpx
;
border-radius
:
15rpx
;
display
:
inline-block
;
background
:
#f2f2f2
;
...
...
@@ -106,9 +114,6 @@ export default {
.time-list
view
{
margin-top
:
10rpx
;
}
.time-content
view
:nth-child
(
3n
)
{
margin-right
:
0
;
}
.time-list.on
{
border
:
1px
solid
$theme
;
background
:
#DAE6F6
;
...
...
pages/scenic/scenicOrder/scenicOrder.vue
View file @
0a6553e9
...
...
@@ -88,8 +88,14 @@
<view
class=
"title-text"
>
场次
</view>
<view
class=
"middle-timelist"
>
<scroll-view
class=
"time-content"
scroll-x=
"true"
:scroll-left=
"timeScroll"
v-if=
"timeList.length> 0"
>
<view
class=
"time-list"
v-for=
"(item, index) of timeList"
@
click=
"chooseTime(index)"
:class=
"
{ on: timeActive == index }" :key="index">
<view>
<view
class=
"time-list"
:style=
"
{color:item.copyLast=='售罄'?'#ff0000':''}"
v-for="(item, index) of timeList"
@click="chooseTime(index)"
:class="{ on: timeActive == index }"
:key="index"
>
<view
>
{{
item
.
startPlanTime
?
item
.
startPlanTime
.
substr
(
0
,
5
)
:
''
}}
<text
v-if=
"!item.saleOnlyShowFromDate"
>
-
{{
item
.
endPlanTime
?
item
.
endPlanTime
.
substr
(
0
,
5
)
:
''
}}
...
...
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