Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tjty-app
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
王永飞
tjty-app
Commits
dacfe24f
Commit
dacfe24f
authored
Nov 30, 2022
by
王宝峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改投票详情页点击预览的图片由一张到全部
parent
beec6061
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
tjty_vote_detail.vue
tjty-app/pages_vote/tjty_vote_detail/tjty_vote_detail.vue
+18
-11
No files found.
tjty-app/pages_vote/tjty_vote_detail/tjty_vote_detail.vue
View file @
dacfe24f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<swiper
v-if=
"opusType == '1'"
class=
"swiper-home"
indicator-dots=
"true"
autoplay=
"true"
interval=
"2000"
<swiper
v-if=
"opusType == '1'"
class=
"swiper-home"
indicator-dots=
"true"
autoplay=
"true"
interval=
"2000"
circular=
"true"
indicator-color=
"#000"
indicator-active-color=
"#FF0000"
>
circular=
"true"
indicator-color=
"#000"
indicator-active-color=
"#FF0000"
>
<swiper-item
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<swiper-item
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<image
:src=
"item.url"
:webp=
"true"
@
click=
"clickImg(i
tem.url
)"
></image>
<image
:src=
"item.url"
:webp=
"true"
@
click=
"clickImg(i
ndex
)"
></image>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
<video
v-if=
" opusType == '2'"
id=
"myVideo"
class=
"video"
show-fullscreen-btn
:src=
"bannerList[0].url"
<video
v-if=
" opusType == '2'"
id=
"myVideo"
class=
"video"
show-fullscreen-btn
:src=
"bannerList[0].url"
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
...
mapState
(
'm_user'
,
[
'userInfo'
]),
...
mapState
(
'm_user'
,
[
'userInfo'
]),
},
},
onLoad
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
onLoad
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
this
.
weChatId
=
this
.
userInfo
.
wechatId
this
.
weChatId
=
this
.
userInfo
.
wechatId
console
.
log
(
"详情页获取的信息:"
,
JSON
.
parse
(
option
.
param
))
console
.
log
(
"详情页获取的信息:"
,
JSON
.
parse
(
option
.
param
))
if
(
option
.
param
)
{
if
(
option
.
param
)
{
console
.
log
(
"详情页获取的信息:"
,
JSON
.
parse
(
option
.
param
))
console
.
log
(
"详情页获取的信息:"
,
JSON
.
parse
(
option
.
param
))
...
@@ -68,18 +68,25 @@
...
@@ -68,18 +68,25 @@
this
.
opusType
=
JSON
.
parse
(
option
.
param
).
opusType
this
.
opusType
=
JSON
.
parse
(
option
.
param
).
opusType
this
.
opusId
=
JSON
.
parse
(
option
.
param
).
productionId
this
.
opusId
=
JSON
.
parse
(
option
.
param
).
productionId
}
}
},
},
methods
:
{
methods
:
{
clickImg
(
i
mgUrl
)
{
clickImg
(
i
ndex
)
{
wx
.
previewImage
(
{
let
photoList
=
this
.
bannerList
.
map
(
item
=>
{
urls
:
[
imgUrl
],
//需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
return
item
.
url
;
current
:
''
,
// 当前显示图片的http链接,默认是第一个
});
success
:
function
(
res
)
{},
uni
.
previewImage
({
fail
:
function
(
res
)
{}
,
current
:
index
,
complete
:
function
(
res
)
{},
urls
:
photoList
})
})
// wx.previewImage({
// urls: [imgUrl], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
// current: '', // 当前显示图片的http链接,默认是第一个
// success: function(res) {},
// fail: function(res) {},
// complete: function(res) {},
// })
},
},
setVote
()
{
setVote
()
{
...
@@ -122,7 +129,7 @@
...
@@ -122,7 +129,7 @@
})
})
}
}
},
},
}
}
</
script
>
</
script
>
...
...
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