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
61742545
Commit
61742545
authored
Aug 03, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单接口
parent
924a9d2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
9 deletions
+40
-9
myPhotoAlbum.vue
pages/album/myPhotoAlbum/myPhotoAlbum.vue
+35
-2
purchasedPhotoAlbum.vue
pages/album/purchasedPhotoAlbum/purchasedPhotoAlbum.vue
+5
-7
No files found.
pages/album/myPhotoAlbum/myPhotoAlbum.vue
View file @
61742545
...
@@ -161,7 +161,7 @@ export default {
...
@@ -161,7 +161,7 @@ export default {
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
this
.
faceIds
=
JSON
.
parse
(
option
.
faceIds
)
this
.
faceIds
=
JSON
.
parse
(
option
.
faceIds
)
this
.
location
=
JSON
.
parse
(
uni
.
getStorageSync
(
'location'
))
this
.
location
=
JSON
.
parse
(
uni
.
getStorageSync
(
'location'
))
this
.
merchantId
=
'z0015605022691a5945bbe463141668c'
//uni.getStorageSync('merchantId')
this
.
merchantId
=
uni
.
getStorageSync
(
'merchantId'
)
// 'z0015605022691a5945bbe463141668c'
this
.
obtainProvince
()
//获取省市区
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
this
.
inquireMerchant
()
//查询所有商户
this
.
getPhotos
()
//照片列表
this
.
getPhotos
()
//照片列表
...
@@ -357,7 +357,40 @@ export default {
...
@@ -357,7 +357,40 @@ export default {
}
}
},
},
upLoad
(){
//下单
upLoad
(){
//下单
var
data
=
{
orderMoney
:
this
.
sellingPrices
,
//订单总价
orderProductVo
:{},
//下单信息
}
var
orderProductVo
=
{
buyNum
:
this
.
priceNum
,
//购买数量
orderImgList
:[],
//订单图片
orderType
:
1
,
//订单类型(0其他,1景区,2酒店,3餐饮,4特产,5运营车,10组合订单)
postage
:
0
,
//邮费
couponList
:[],
//产品券信息 游客使用券信息后传
unitPrice
:
this
.
sellingPrice
,
//产品单价
}
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
checkType
==
true
){
var
imgList
=
{
imgUrl
:
item
.
faceSourceUrl
||
item
.
faceAiUrl
}
orderProductVo
.
orderImgList
.
push
(
imgList
)
}
})
data
.
orderProductVo
=
orderProductVo
this
.
$request
(
'orderc/photo/photoCreateOrder'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
$refs
.
uToast
.
show
({
title
:
'下单成功'
,
type
:
'success'
,
})
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
res
.
message
,
type
:
'error'
,
})
}
})
},
},
}
}
}
}
...
...
pages/album/purchasedPhotoAlbum/purchasedPhotoAlbum.vue
View file @
61742545
...
@@ -52,12 +52,13 @@ export default {
...
@@ -52,12 +52,13 @@ export default {
openid
:
''
,
openid
:
''
,
orderShow
:
false
,
//头部城市选择
orderShow
:
false
,
//头部城市选择
option
:
[],
//城市
option
:
[],
//城市
cityName
:
'
重庆
'
,
cityName
:
'
全部
'
,
areaId
:
'
100500000
'
,
//城市ID
areaId
:
''
,
//城市ID
merchantId
:
''
,
//商户ID
merchantId
:
''
,
//商户ID
location
:
{},
//位置信息
location
:
{},
//位置信息
projectCheck
:
0
,
//当前选择的产品
projectCheck
:
0
,
//当前选择的产品
merchantList
:[],
//头部列表
merchantList
:[],
//商户列表
merchantName
:
'全部'
,
//商户名称
projectMoreType
:
false
,
//是否显示更多产品
projectMoreType
:
false
,
//是否显示更多产品
checkProjectAll
:
false
,
//所有产品全选
checkProjectAll
:
false
,
//所有产品全选
maskDetail
:
false
,
maskDetail
:
false
,
...
@@ -91,8 +92,7 @@ export default {
...
@@ -91,8 +92,7 @@ export default {
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
this
.
location
=
JSON
.
parse
(
uni
.
getStorageSync
(
'location'
))
//this.merchantId = 'z0015605022691a5945bbe463141668c'//uni.getStorageSync('merchantId')
this
.
merchantId
=
'z0015605022691a5945bbe463141668c'
//uni.getStorageSync('merchantId')
this
.
obtainProvince
()
//获取省市区
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
this
.
inquireMerchant
()
//查询所有商户
this
.
getPhotos
()
//照片列表
this
.
getPhotos
()
//照片列表
...
@@ -118,8 +118,6 @@ export default {
...
@@ -118,8 +118,6 @@ export default {
id
:
this
.
merchantId
,
//商户ID
id
:
this
.
merchantId
,
//商户ID
province
:
this
.
areaId
,
//省市ID
province
:
this
.
areaId
,
//省市ID
areaCode
:
this
.
areaId
,
//省市ID
areaCode
:
this
.
areaId
,
//省市ID
userlatitude
:
this
.
location
.
latitude
,
//纬度
userlongitude
:
this
.
location
.
longitude
,
//经度
merchantType
:
1
,
//
merchantType
:
1
,
//
}
}
this
.
$request
(
'scenic/newMerchant/findAllMerchant'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'scenic/newMerchant/findAllMerchant'
,
data
).
then
((
res
)
=>
{
...
...
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