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
216e41df
Commit
216e41df
authored
Aug 28, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel
into develop
parents
7d237041
93f7c9ce
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
346 additions
and
178 deletions
+346
-178
albumIndex.vue
pages/album/albumIndex.vue
+323
-163
chooseFavorite.vue
pages/album/chooseFavorite.vue
+1
-2
getPortrait.vue
pages/album/getPortrait.vue
+5
-3
myPhotoAlbum.vue
pages/album/myPhotoAlbum/myPhotoAlbum.vue
+14
-9
vlogface.vue
pages/vlog/vlogface/vlogface.vue
+3
-1
coupon.png
static/img/my/coupon.png
+0
-0
No files found.
pages/album/albumIndex.vue
View file @
216e41df
This diff is collapsed.
Click to expand it.
pages/album/chooseFavorite.vue
View file @
216e41df
...
...
@@ -60,7 +60,6 @@ export default {
openid
:
uni
.
getStorageSync
(
'openid'
),
//openid
templateIds
//模板Id
}
uni
.
setStorageSync
(
'merchantId'
,
data
.
merchantId
)
this
.
$request
(
'wechatUser/pdAlbum/saveVisitorSurvey'
,
data
).
then
(
res
=>
{
if
(
res
.
code
===
'00'
)
{
uni
.
showToast
({
...
...
@@ -68,7 +67,7 @@ export default {
icon
:
'success'
})
uni
.
navigateTo
({
url
:
'./albumIndex?tip=true'
url
:
`./albumIndex?tip=true&merchantId=
${
data
.
merchantId
}
`
})
}
else
{
uni
.
showToast
({
...
...
pages/album/getPortrait.vue
View file @
216e41df
<
template
>
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}">
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}"
v-if="statusBarHeight"
>
<view
class=
"nav-bar"
:style=
"
{'height': navHeight + 'px'}">
</view>
<text
class=
"title"
>
扫脸获取您的照片
</text>
<view
class=
"scan"
>
...
...
@@ -57,6 +57,7 @@ export default {
maskCount
:
3
,
//弹窗倒计时
queryData
:
{},
//查询参数
defaultBrightness
:
0.5
,
//屏幕亮度
options
:
{},
//路由传参
}
},
methods
:
{
...
...
@@ -135,7 +136,7 @@ export default {
})
},
getQueryField
()
{
//---获取查询参数
const
merchantId
=
uni
.
getStorageSync
(
'merchantId'
)
const
merchantId
=
this
.
options
.
merchantId
this
.
$request
(
'scenic/albumConfig/getAlbumConfig'
,{
merchantId
}).
then
(
res
=>
{
//创建任务
if
(
res
.
code
===
'00'
)
{
...
...
@@ -228,7 +229,8 @@ export default {
})
},
},
onLoad
()
{
onLoad
(
options
)
{
this
.
options
=
options
this
.
recordDeviceInfo
()
uni
.
getScreenBrightness
({
//获取屏幕亮度
success
(
res
)
{
...
...
pages/album/myPhotoAlbum/myPhotoAlbum.vue
View file @
216e41df
...
...
@@ -9,10 +9,12 @@
<image
src=
"../static/album/myPhoto01.png"
></image>
</view>
<u-picker
mode=
"selector"
v-model=
"orderShow"
:default-selector=
"[orderType]"
:range=
"option"
range-key=
"areaName"
@
confirm=
"industrysTypeConfirm($event)"
@
cancel=
"cancel"
></u-picker>
<view
v-for=
"(item,index) in merchantList"
:key=
"index"
class=
"left-project"
:class=
"[projectCheck==0?'left-projectDe':'']"
@
click=
"projectClick(index,item.id)"
>
{{
item
.
name
}}
<i>
{{
previewData
.
length
}}
</i>
</view>
<template
v-for=
"(item,index) in merchantList"
>
<view
:key=
"index"
v-if=
"index
<2
"
class=
"left-project"
:class=
"[projectCheck==0?'left-projectDe':'']"
@
click=
"projectClick(index,item.id)"
>
{{
item
.
name
}}
<i>
{{
previewData
.
length
}}
</i>
</view>
</
template
>
</view>
<view
class=
"address-right"
@
click=
"projectMoreFun()"
v-if=
"merchantList.length>2"
>
<u-icon
name=
"more-dot-fill"
></u-icon>
...
...
@@ -175,7 +177,7 @@ export default {
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
this
.
faceIds
=
JSON
.
parse
(
option
.
faceIds
)
this
.
location
=
JSON
.
parse
(
uni
.
getStorageSync
(
'location'
))
this
.
merchantId
=
uni
.
getStorageSync
(
'merchantId'
)
// 'z0015605022691a5945bbe463141668c'
this
.
merchantId
=
option
.
merchantId
||
''
// 'z0015605022691a5945bbe463141668c'
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
this
.
getPhotos
()
//照片列表
...
...
@@ -330,10 +332,11 @@ export default {
tickets
:
1
,
productId
:
this
.
merchantMessage
[
0
].
merchantExtendProjectId
,
orderSource
:
11
,
//指定为相册优惠券
merchantType
:
11
,
//指定为相册
}
this
.
$request
(
'wechatUser/myPage/usableCouponList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
masterSlaveCouponList
!=
undefined
){
if
(
res
.
data
.
masterSlaveCouponList
.
length
>
0
){
res
.
data
.
masterSlaveCouponList
.
forEach
(
item
=>
{
item
[
'couponPrice'
]
=
item
.
deductPrice
})
...
...
@@ -387,9 +390,9 @@ export default {
orderImgList
:[],
////订单图片
couponList
:[],
//券信息
}
if
(
this
.
masterSlaveCouponList
.
length
>
0
){
orderProductListData
.
couponList
.
push
(
this
.
masterSlaveCouponList
[
0
])
}
if
(
this
.
masterSlaveCouponList
.
length
>
0
){
orderProductListData
.
couponList
.
push
(
this
.
masterSlaveCouponList
[
0
])
}
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -463,6 +466,7 @@ export default {
overflow-x
:
auto
;
.left-name
{
flex-shrink
:
0
;
font-size
:
32rpx
;
color
:
#999999
;
line-height
:
76rpx
;
...
...
@@ -470,6 +474,7 @@ export default {
}
.left-picker
{
flex-shrink
:
0
;
display
:
flex
;
font-size
:
32rpx
;
color
:
#333333
;
...
...
pages/vlog/vlogface/vlogface.vue
View file @
216e41df
...
...
@@ -3,7 +3,8 @@
<view
class=
"bg"
>
<image
src=
"../static/vlog/icon/camera.png"
></image>
</view>
<camera
class=
"camera"
device-position=
"front"
flash=
"off"
@
error=
"error"
@
initdone=
"initdone"
></camera>
<camera
class=
"camera"
device-position=
"front"
flash=
"off"
@
error=
"error"
></camera>
<!--
<camera
class=
"camera"
device-position=
"front"
flash=
"off"
@
error=
"error"
@
initdone=
"initdone"
></camera>
-->
<view
class=
"surface"
v-show=
"show"
>
<view>
请正对镜头
</view>
<text>
{{
text
}}
</text>
...
...
@@ -47,6 +48,7 @@ export default {
}
},
onLoad
()
{
//代替 vue 里面的 created
this
.
initdone
()
},
onReady
()
{
//代替 vue 里面的 mounted
},
...
...
static/img/my/coupon.png
View replaced file @
7d237041
View file @
216e41df
11.2 KB
|
W:
|
H:
9.02 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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