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
8adcbbaf
Commit
8adcbbaf
authored
Dec 19, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单产品下单bug处理
parent
dde8bd22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
scenicOrder.vue
pages/scenic/scenicOrder/scenicOrder.vue
+5
-9
No files found.
pages/scenic/scenicOrder/scenicOrder.vue
View file @
8adcbbaf
...
@@ -302,11 +302,11 @@
...
@@ -302,11 +302,11 @@
<u-icon
name=
"arrow-down"
></u-icon>
<u-icon
name=
"arrow-down"
></u-icon>
</view>
</view>
<view
class=
"bottom-btn"
:style=
"{ background: payBackground }"
>
<view
class=
"bottom-btn"
>
<text
v-if=
"productIfo.status == 1"
>
已下架
</text>
<text
v-if=
"productIfo.status == 1"
>
已下架
</text>
<
template
v-else
>
<
template
v-else
>
<text
v-if=
"parseInt(maxBookNum)
<1
"
>
暂无库存
</text>
<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
>
</
template
>
</view>
</view>
...
@@ -443,7 +443,6 @@ export default {
...
@@ -443,7 +443,6 @@ export default {
beforeBookDays
:
''
,
//需提前预定天数
beforeBookDays
:
''
,
//需提前预定天数
companyId
:
''
,
//公司Id
companyId
:
''
,
//公司Id
docQuery
:
''
,
//元素变量
docQuery
:
''
,
//元素变量
payBackground
:
''
,
//支付按钮背景颜色
dateScroll
:
''
,
//日期滚动值
dateScroll
:
''
,
//日期滚动值
timeScroll
:
''
,
//时间滚动值
timeScroll
:
''
,
//时间滚动值
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
//openid
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
//openid
...
@@ -533,7 +532,6 @@ export default {
...
@@ -533,7 +532,6 @@ export default {
//this.chooseService=res.data.data.loadProductResVoList//默认全部选中
//this.chooseService=res.data.data.loadProductResVoList//默认全部选中
if
(
this
.
productIfo
.
status
==
1
)
{
if
(
this
.
productIfo
.
status
==
1
)
{
//下架状态
//下架状态
this
.
payBackground
=
'#C0C0C0'
return
return
}
}
if
(
this
.
productIfo
.
productType
!=
3
)
{
if
(
this
.
productIfo
.
productType
!=
3
)
{
...
@@ -586,7 +584,6 @@ export default {
...
@@ -586,7 +584,6 @@ export default {
title
:
'没有库存'
,
title
:
'没有库存'
,
icon
:
'none'
icon
:
'none'
})
})
this
.
payBackground
=
'#C0C0C0'
this
.
maxBookNum
=
0
this
.
maxBookNum
=
0
return
return
}
}
...
@@ -617,7 +614,6 @@ export default {
...
@@ -617,7 +614,6 @@ export default {
title
:
'没有库存'
,
title
:
'没有库存'
,
icon
:
'none'
icon
:
'none'
})
})
this
.
payBackground
=
'#C0C0C0'
this
.
maxBookNum
=
0
this
.
maxBookNum
=
0
return
return
}
}
...
@@ -819,7 +815,7 @@ export default {
...
@@ -819,7 +815,7 @@ export default {
if
(
this
.
timeList
[
i
].
copyLast
!=
'售罄'
){
if
(
this
.
timeList
[
i
].
copyLast
!=
'售罄'
){
this
.
timeActive
=
i
this
.
timeActive
=
i
this
.
cruisePlanId
=
this
.
timeList
[
i
].
cruisePlanId
//获取班次Id
this
.
cruisePlanId
=
this
.
timeList
[
i
].
cruisePlanId
//获取班次Id
this
.
maxBookNum
=
Math
.
min
(
this
.
timeList
[
i
].
last
,
this
.
productIfo
.
maxBookNum
)
//获取剩余库存
this
.
maxBookNum
=
Math
.
min
(
this
.
timeList
[
i
].
last
,
this
.
maxBookNum
)
//获取剩余库存
//如果为班次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
//如果为班次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
this
.
startPlayTime
=
this
.
timeList
[
i
].
startPlanTime
this
.
startPlayTime
=
this
.
timeList
[
i
].
startPlanTime
this
.
endPlayTime
=
this
.
timeList
[
i
].
endPlanTime
||
this
.
timeList
[
i
].
startPlanTime
this
.
endPlayTime
=
this
.
timeList
[
i
].
endPlanTime
||
this
.
timeList
[
i
].
startPlanTime
...
@@ -1732,8 +1728,6 @@ export default {
...
@@ -1732,8 +1728,6 @@ export default {
line-height
:
80rpx
;
line-height
:
80rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bolder
;
font-weight
:
bolder
;
border-radius
:
24rpx
;
background
:
$red
;
text-align
:
center
;
text-align
:
center
;
}
}
.bottom-btn
text
{
.bottom-btn
text
{
...
@@ -1744,6 +1738,8 @@ export default {
...
@@ -1744,6 +1738,8 @@ export default {
left
:
0
;
left
:
0
;
color
:
#ffffff
;
color
:
#ffffff
;
top
:
0
;
top
:
0
;
background
:
#C0C0C0
;
border-radius
:
24rpx
;
}
}
.sortPoptext
{
.sortPoptext
{
font-size
:
30rpx
;
font-size
:
30rpx
;
...
...
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