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
85d25356
Commit
85d25356
authored
May 13, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段处理
parent
a6a8b735
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+12
-3
scenicSingleOrder.vue
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
+12
-3
No files found.
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
85d25356
...
@@ -406,6 +406,7 @@ export default {
...
@@ -406,6 +406,7 @@ export default {
chooseCouponObj
:
''
,
//选择产品选中的券
chooseCouponObj
:
''
,
//选择产品选中的券
chooseCredential
:
''
,
//选中的产品的需要的证件类型
chooseCredential
:
''
,
//选中的产品的需要的证件类型
timer
:
null
,
//时间函数
timer
:
null
,
//时间函数
sortStatus
:
true
,
//排号状态
}
}
},
},
onUnload
()
{
onUnload
()
{
...
@@ -562,7 +563,7 @@ export default {
...
@@ -562,7 +563,7 @@ export default {
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
,
true
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
//请求成功,默认为上架状态
//请求成功,默认为上架状态
this
.
orderStatus
=
0
this
.
sortStatus
=
true
this
.
sortArr
=
res
.
data
.
data
||
[]
this
.
sortArr
=
res
.
data
.
data
||
[]
let
data
=
res
.
data
let
data
=
res
.
data
item
.
areaObj
=
{}
item
.
areaObj
=
{}
...
@@ -602,11 +603,11 @@ export default {
...
@@ -602,11 +603,11 @@ export default {
}
else
{
}
else
{
//请求失败,默认为下架状态
//请求失败,默认为下架状态
this
.
orderStatus
=
1
this
.
sortStatus
=
false
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
//请求失败,默认为下架状态
//请求失败,默认为下架状态
this
.
orderStatus
=
1
this
.
sortStatus
=
false
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
sortUpDown
(
item
)
this
.
sortUpDown
(
item
)
},
2000
)
},
2000
)
...
@@ -1142,6 +1143,14 @@ export default {
...
@@ -1142,6 +1143,14 @@ export default {
//下架状态,点击无效
//下架状态,点击无效
return
return
}
}
if
(
!
this
.
sortStatus
)
{
//获取排号是否上下架失败时,点击无效
uni
.
showToast
({
title
:
'获取排号信息失败,请尝试退出并重新进入小程序'
,
icon
:
'none'
})
return
}
for
(
let
i
=
0
;
i
<
this
.
productList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
productList
.
length
;
i
++
){
let
item
=
this
.
productList
[
i
]
let
item
=
this
.
productList
[
i
]
//没有库存情况
//没有库存情况
...
...
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
View file @
85d25356
...
@@ -471,6 +471,7 @@ export default {
...
@@ -471,6 +471,7 @@ export default {
chooseCouponObj
:
''
,
//默认选中最优价格优惠券
chooseCouponObj
:
''
,
//默认选中最优价格优惠券
ableConpon
:
''
,
//没有可用优惠券时,达到一定条件可用,显示达到的条件
ableConpon
:
''
,
//没有可用优惠券时,达到一定条件可用,显示达到的条件
timer
:
null
,
//时间函数
timer
:
null
,
//时间函数
sortStatus
:
true
,
//排号状态
}
}
},
},
onUnload
()
{
onUnload
()
{
...
@@ -672,7 +673,7 @@ export default {
...
@@ -672,7 +673,7 @@ export default {
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
,
true
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
//请求成功,默认为上架状态
//请求成功,默认为上架状态
this
.
productIfo
.
status
=
0
this
.
sortStatus
=
true
this
.
sortArr
=
res
.
data
.
data
this
.
sortArr
=
res
.
data
.
data
let
data
=
res
.
data
let
data
=
res
.
data
let
areaList
=
this
.
productIfo
.
productAreaList
let
areaList
=
this
.
productIfo
.
productAreaList
...
@@ -707,11 +708,11 @@ export default {
...
@@ -707,11 +708,11 @@ export default {
}
}
}
else
{
}
else
{
//请求失败,默认为下架状态
//请求失败,默认为下架状态
this
.
productIfo
.
status
=
1
this
.
sortStatus
=
false
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
//请求失败,默认为下架状态
//请求失败,默认为下架状态
this
.
productIfo
.
status
=
1
this
.
sortStatus
=
false
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
sortUpDown
()
this
.
sortUpDown
()
},
2000
)
},
2000
)
...
@@ -1203,6 +1204,14 @@ export default {
...
@@ -1203,6 +1204,14 @@ export default {
//下架状态,点击无效
//下架状态,点击无效
return
return
}
}
if
(
!
this
.
sortStatus
)
{
//获取排号是否上下架失败时,点击无效
uni
.
showToast
({
title
:
'获取排号信息失败,请尝试退出并重新进入小程序'
,
icon
:
'none'
})
return
}
if
(
this
.
productIfo
.
isFetch
==
1
&&
this
.
areaUp
)
{
if
(
this
.
productIfo
.
isFetch
==
1
&&
this
.
areaUp
)
{
//需要选择站点的票种,必须选择站点
//需要选择站点的票种,必须选择站点
if
(
!
this
.
areaObj
.
areaCode
)
{
if
(
!
this
.
areaObj
.
areaCode
)
{
...
...
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