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
c7ad9196
Commit
c7ad9196
authored
Jan 02, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多余请求代码删除
parent
e941f91c
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
48 additions
and
77 deletions
+48
-77
request.js
common/request.js
+9
-2
pages.json
pages.json
+9
-9
albumOrderdetail.vue
pages/album/albumOrderdetail/albumOrderdetail.vue
+0
-1
distributionCombiChoose.vue
...ation/distributionCombiChoose/distributionCombiChoose.vue
+0
-4
merchantListIndex.vue
pages/indexs/merchantListIndex/merchantListIndex.vue
+0
-3
numberIndex.vue
pages/my/takeNumber/numberIndex/numberIndex.vue
+0
-3
rowNumber.vue
pages/my/takeNumber/rowNumber/rowNumber.vue
+0
-9
ourPayment.vue
pages/payment/ourPayment/ourPayment.vue
+0
-2
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+0
-20
scenicSingleOrder.vue
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
+0
-20
vlogface.vue
pages/vlog/vlogface/vlogface.vue
+30
-4
No files found.
common/request.js
View file @
c7ad9196
...
@@ -6,11 +6,18 @@ if(process.env.NODE_ENV === 'development'){//开发环境
...
@@ -6,11 +6,18 @@ if(process.env.NODE_ENV === 'development'){//开发环境
baseUrl
=
'https://manager.pangdly.com/'
baseUrl
=
'https://manager.pangdly.com/'
}
}
const
request
=
(
url
=
''
,
data
=
{},
type
=
'POST'
)
=>
{
const
request
=
(
url
=
''
,
data
=
{},
showLoad
)
=>
{
data
.
reqId
=
new
Date
().
getTime
()
//获取时间戳
data
.
reqId
=
new
Date
().
getTime
()
//获取时间戳
let
show
=
showLoad
||
true
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
show
){
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
}
uni
.
request
({
uni
.
request
({
method
:
type
,
method
:
'POST'
,
url
:
baseUrl
+
url
+
'?token='
+
uni
.
getStorageSync
(
'token'
),
url
:
baseUrl
+
url
+
'?token='
+
uni
.
getStorageSync
(
'token'
),
data
:
data
,
data
:
data
,
dataType
:
'json'
,
dataType
:
'json'
,
...
...
pages.json
View file @
c7ad9196
...
@@ -325,7 +325,7 @@
...
@@ -325,7 +325,7 @@
{
{
"path"
:
"vlogface/vlogface"
,
"path"
:
"vlogface/vlogface"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
扫脸获取视频
"
,
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
...
@@ -452,14 +452,14 @@
...
@@ -452,14 +452,14 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
//
{
"path"
:
"getPortrait"
,
//
"path"
:
"getPortrait"
,
"style"
:
{
//
"style"
:
{
"navigationBarTitleText"
:
"获取人像
"
,
//
"navigationBarTitleText"
:
"
"
,
"enablePullDownRefresh"
:
false
,
//
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
//
"navigationStyle"
:
"custom"
}
//
}
},
//
},
{
{
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"style"
:
{
"style"
:
{
...
...
pages/album/albumOrderdetail/albumOrderdetail.vue
View file @
c7ad9196
...
@@ -250,7 +250,6 @@ export default {
...
@@ -250,7 +250,6 @@ export default {
},
},
//---下载方法
//---下载方法
downloadFun
(
imgUrl
)
{
downloadFun
(
imgUrl
)
{
console
.
log
(
imgUrl
)
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'下载中'
,
title
:
'下载中'
,
mask
:
true
mask
:
true
...
...
pages/combination/distributionCombiChoose/distributionCombiChoose.vue
View file @
c7ad9196
...
@@ -359,10 +359,6 @@ export default {
...
@@ -359,10 +359,6 @@ export default {
latitude
,
latitude
,
longitude
longitude
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
scenicList
=
[]
this
.
scenicList
=
[]
this
.
$request
(
'/scenic/groupGood/findGroupGoodProductList'
,
data
).
then
(
res
=>
{
this
.
$request
(
'/scenic/groupGood/findGroupGoodProductList'
,
data
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
...
pages/indexs/merchantListIndex/merchantListIndex.vue
View file @
c7ad9196
...
@@ -231,9 +231,6 @@ export default {
...
@@ -231,9 +231,6 @@ export default {
//如果是点击进行搜索
//如果是点击进行搜索
data
.
search
=
this
.
searchData
data
.
search
=
this
.
searchData
}
}
uni
.
showLoading
({
title
:
'加载中'
})
this
.
$request
(
'scenic/user/merchant/findMerchantList'
,
data
).
then
(
res
=>
{
this
.
$request
(
'scenic/user/merchant/findMerchantList'
,
data
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
...
...
pages/my/takeNumber/numberIndex/numberIndex.vue
View file @
c7ad9196
...
@@ -59,9 +59,6 @@ export default {
...
@@ -59,9 +59,6 @@ export default {
startPlayDate
:
new
Date
().
Format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
//开始日期
startPlayDate
:
new
Date
().
Format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
//开始日期
endPlayDate
:
new
Date
().
Format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
//结束日期
endPlayDate
:
new
Date
().
Format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
//结束日期
}
}
uni
.
showLoading
({
title
:
'加载中'
})
this
.
$request
(
'order/userOrder/findOrderPageListByCode'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'order/userOrder/findOrderPageListByCode'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
let
list
=
res
.
data
||
[]
let
list
=
res
.
data
||
[]
...
...
pages/my/takeNumber/rowNumber/rowNumber.vue
View file @
c7ad9196
...
@@ -100,9 +100,6 @@ export default {
...
@@ -100,9 +100,6 @@ export default {
let
data
=
{
let
data
=
{
search
:
this
.
orderId
search
:
this
.
orderId
}
}
uni
.
showLoading
({
title
:
'加载中'
})
this
.
$request
(
'order/userOrder/findOrderPageListByCode'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'order/userOrder/findOrderPageListByCode'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
let
list
=
res
.
data
||
[]
let
list
=
res
.
data
||
[]
...
@@ -125,9 +122,6 @@ export default {
...
@@ -125,9 +122,6 @@ export default {
let
data
=
{
let
data
=
{
merchantCode
:
this
.
merchantCode
,
//商户code
merchantCode
:
this
.
merchantCode
,
//商户code
}
}
uni
.
showLoading
({
title
:
'加载中'
})
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
let
main
=
res
.
data
.
main
||
null
let
main
=
res
.
data
.
main
||
null
...
@@ -161,9 +155,6 @@ export default {
...
@@ -161,9 +155,6 @@ export default {
ticketPhone
:
this
.
ticketPhone
,
//电话号码
ticketPhone
:
this
.
ticketPhone
,
//电话号码
orderId
:
this
.
orderId
,
//订单Id
orderId
:
this
.
orderId
,
//订单Id
}
}
uni
.
showLoading
({
title
:
'加载中'
})
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
pages/payment/ourPayment/ourPayment.vue
View file @
c7ad9196
...
@@ -372,7 +372,6 @@ export default {
...
@@ -372,7 +372,6 @@ export default {
merchantId
:
this
.
merchantId
,
merchantId
:
this
.
merchantId
,
companyId
:
this
.
companyId
companyId
:
this
.
companyId
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'scenic/order/findCodePayInfo'
,
data
).
then
(
res
=>
{
this
.
$request
(
'scenic/order/findCodePayInfo'
,
data
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
...
@@ -393,7 +392,6 @@ export default {
...
@@ -393,7 +392,6 @@ export default {
id
:
this
.
companyId
,
//公司Id
id
:
this
.
companyId
,
//公司Id
tollPoint
:
this
.
extendInfo
,
//扩展信息
tollPoint
:
this
.
extendInfo
,
//扩展信息
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'user/newCompany/findCompanyById'
,
data
).
then
(
res
=>
{
this
.
$request
(
'user/newCompany/findCompanyById'
,
data
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
...
...
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
c7ad9196
...
@@ -413,10 +413,6 @@ export default {
...
@@ -413,10 +413,6 @@ export default {
let
data
=
{
let
data
=
{
productList
:
this
.
productIdList
,
//产品id列表
productList
:
this
.
productIdList
,
//产品id列表
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'scenic/groupGood/loadProductList'
,
data
).
then
(
res
=>
{
this
.
$request
(
'scenic/groupGood/loadProductList'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
this
.
productList
=
res
.
data
||
[]
this
.
productList
=
res
.
data
||
[]
...
@@ -547,10 +543,6 @@ export default {
...
@@ -547,10 +543,6 @@ export default {
let
data
=
{
let
data
=
{
merchantCode
:
item
.
merchantVo
.
code
//商户code
merchantCode
:
item
.
merchantVo
.
code
//商户code
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
this
.
sortArr
=
res
.
data
.
data
||
[]
this
.
sortArr
=
res
.
data
.
data
||
[]
...
@@ -603,10 +595,6 @@ export default {
...
@@ -603,10 +595,6 @@ export default {
merchantCode
:
item
.
merchantVo
.
code
,
//商户code
merchantCode
:
item
.
merchantVo
.
code
,
//商户code
productCode
:
item
.
code
//产品code
productCode
:
item
.
code
//产品code
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'distribution/distribution/getTimeStock'
,
data
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/getTimeStock'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
item
.
timeList
=
res
.
data
||
[]
item
.
timeList
=
res
.
data
||
[]
...
@@ -699,10 +687,6 @@ export default {
...
@@ -699,10 +687,6 @@ export default {
let
data
=
{
let
data
=
{
merchantCode
//商户code
merchantCode
//商户code
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
this
.
sortInforPop
=
true
this
.
sortInforPop
=
true
...
@@ -1171,10 +1155,6 @@ export default {
...
@@ -1171,10 +1155,6 @@ export default {
orderSource
:
this
.
orderSource
||
1
,
//订单来源 1公众号平台、2公众号组合页面1、3公众号组合页面2、4胖丁伙伴app、5第三方自助机、6第三方票房窗口
orderSource
:
this
.
orderSource
||
1
,
//订单来源 1公众号平台、2公众号组合页面1、3公众号组合页面2、4胖丁伙伴app、5第三方自助机、6第三方票房窗口
orderProductList
,
//额外服务不为空,联票购买不为空,带有儿童票,组合购买不为空,单品购买为空
orderProductList
,
//额外服务不为空,联票购买不为空,带有儿童票,组合购买不为空,单品购买为空
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'orderc/order/createOrder'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'orderc/order/createOrder'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
data
.
id
)
{
if
(
res
.
data
.
id
)
{
...
...
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
View file @
c7ad9196
...
@@ -524,10 +524,6 @@ export default {
...
@@ -524,10 +524,6 @@ export default {
let
data
=
{
let
data
=
{
id
:
this
.
productId
//产品id
id
:
this
.
productId
//产品id
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'scenic/groupGood/loadProduct'
,
data
).
then
(
res
=>
{
this
.
$request
(
'scenic/groupGood/loadProduct'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
this
.
productIfo
=
res
.
data
this
.
productIfo
=
res
.
data
...
@@ -646,10 +642,6 @@ export default {
...
@@ -646,10 +642,6 @@ export default {
let
data
=
{
let
data
=
{
merchantCode
:
this
.
merchantCode
//商户code
merchantCode
:
this
.
merchantCode
//商户code
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
this
.
sortArr
=
res
.
data
.
data
this
.
sortArr
=
res
.
data
.
data
...
@@ -697,10 +689,6 @@ export default {
...
@@ -697,10 +689,6 @@ export default {
merchantCode
:
this
.
merchantCode
,
//商户code
merchantCode
:
this
.
merchantCode
,
//商户code
productCode
:
this
.
productIfo
.
code
//产品code
productCode
:
this
.
productIfo
.
code
//产品code
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'distribution/distribution/getTimeStock'
,
data
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/getTimeStock'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
this
.
timeList
=
res
.
data
||
[]
this
.
timeList
=
res
.
data
||
[]
...
@@ -731,10 +719,6 @@ export default {
...
@@ -731,10 +719,6 @@ export default {
areaCode
:
this
.
areaObj
.
areaCode
,
areaCode
:
this
.
areaObj
.
areaCode
,
merchantCode
:
this
.
merchantCode
//商户code
merchantCode
:
this
.
merchantCode
//商户code
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
this
.
$request
(
'distribution/distribution/findNewFetchInfoFromSceinc'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
this
.
sortInforPop
=
true
this
.
sortInforPop
=
true
...
@@ -1306,10 +1290,6 @@ export default {
...
@@ -1306,10 +1290,6 @@ export default {
couponList
,
//券列表
couponList
,
//券列表
}
}
}
}
uni
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
this
.
$request
(
'orderc/order/createOrder'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'orderc/order/createOrder'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
code
==
'00'
)
{
if
(
res
.
data
.
id
)
{
if
(
res
.
data
.
id
)
{
...
...
pages/vlog/vlogface/vlogface.vue
View file @
c7ad9196
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
v-if=
"showBody"
>
<view
class=
"bg"
>
<view
class=
"bg"
>
<image
src=
"../static/vlog/icon/camera.png"
></image>
<image
src=
"../static/vlog/icon/camera.png"
></image>
</view>
</view>
...
@@ -35,6 +35,9 @@
...
@@ -35,6 +35,9 @@
</view>
</view>
<!--
<u-button
type=
"success"
size=
"medium"
@
click=
"takePhoto"
>
开始识别
</u-button>
-->
<!--
<u-button
type=
"success"
size=
"medium"
@
click=
"takePhoto"
>
开始识别
</u-button>
-->
</view>
</view>
<view
v-else
style=
"padding: 100rpx;text-align: center;font-size: 36rpx;"
>
升级中...
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -45,14 +48,37 @@ export default {
...
@@ -45,14 +48,37 @@ export default {
text
:
3
,
//倒计时
text
:
3
,
//倒计时
show
:
false
,
//摄像头倒计时文本
show
:
false
,
//摄像头倒计时文本
base64
:
''
,
//照片base64
base64
:
''
,
//照片base64
showBody
:
false
}
}
},
},
onLoad
()
{
//代替 vue 里面的 created
//
onLoad() { //代替 vue 里面的 created
this
.
initdone
()
//
this.initdone()
},
//
},
onReady
()
{
//代替 vue 里面的 mounted
onReady
()
{
//代替 vue 里面的 mounted
this
.
loadIcon
()
},
},
methods
:
{
methods
:
{
//---加载图标
loadIcon
(){
let
data
=
{
merchantType
:
0
,
//商户类型,其他
}
this
.
$request
(
'scenic/merchantExtendProject/loadList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
let
iconList
=
res
.
data
||
[]
let
list
=
[]
iconList
.
forEach
(
item
=>
{
if
(
item
.
projectStatus
==
0
){
list
.
push
(
item
)
}
})
if
(
list
.
length
>
6
){
this
.
showBody
=
true
this
.
initdone
()
}
}
})
},
query
()
{
//人脸查询
query
()
{
//人脸查询
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'人脸识别中'
title
:
'人脸识别中'
...
...
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