Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
441eb5d8
Commit
441eb5d8
authored
Jun 11, 2025
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 在品牌页面中添加频道信息,更新视频处理逻辑,优化用户跳转体验
parent
fc2294c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
brand.js
mock/brand.js
+4
-0
node_brand.js
mock/node_brand.js
+4
-0
Brand.vue
views/Brand.vue
+19
-2
No files found.
mock/brand.js
View file @
441eb5d8
export
const
brandObj
=
{
"channel"
:{
"finderUserName"
:
"sphgexisAi0pRGm"
,
"feedId"
:
"export/UzFfAgtgekIEAQAAAAAABbEMmxr36QAAAAstQy6ubaLX4KHWvLEZgBPEgaJkYSYbLr6JzNPgMJp7tTZCYcYsIpU6Z0fgSnSE"
},
"videoUrl"
:
"https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/brandpage/banner_1%E6%85%A2%E4%BA%BA%E8%8A%82x%E9%A3%9E%E9%B9%A4%2B-%2B%E5%9C%9FFINAL.mp4"
,
"swiperList"
:
[
{
...
...
mock/node_brand.js
View file @
441eb5d8
const
brandObj
=
{
"channel"
:{
"finderUserName"
:
"sphgexisAi0pRGm"
,
"feedId"
:
"export/UzFfAgtgekIEAQAAAAAABbEMmxr36QAAAAstQy6ubaLX4KHWvLEZgBPEgaJkYSYbLr6JzNPgMJp7tTZCYcYsIpU6Z0fgSnSE"
},
"videoUrl"
:
"https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/brandpage/banner_1%E6%85%A2%E4%BA%BA%E8%8A%82x%E9%A3%9E%E9%B9%A4%2B-%2B%E5%9C%9FFINAL.mp4"
,
"swiperList"
:
[
{
...
...
views/Brand.vue
View file @
441eb5d8
...
...
@@ -21,7 +21,7 @@
</view>
</view>
<view
class=
"videoposterbox"
>
<image
@
tap=
"
showVideoHandler
"
class=
"videoposter"
:src=
"$baseUrl + 'brandpage/videoposter.png'"
></image>
<image
@
tap=
"
openChannel
"
class=
"videoposter"
:src=
"$baseUrl + 'brandpage/videoposter.png'"
></image>
</view>
<view
class=
"productcontai"
>
<text
class=
"maintitle"
>
飞鹤产品家族
</text>
...
...
@@ -154,7 +154,8 @@ export default {
qrInfoList
:
[],
popupIndex
:
0
,
showVideo
:
false
,
testVideoUrl
:
''
testVideoUrl
:
''
,
channel
:{}
}
...
...
@@ -183,6 +184,7 @@ export default {
this
.
swiperIconList
=
data
.
swiperIconList
;
this
.
testVideoUrl
=
data
.
videoUrl
;
this
.
currentVideoUrl
=
data
.
videoUrl
;
this
.
channel
=
data
.
channel
;
}
},
intervalChange
(
e
)
{
...
...
@@ -263,10 +265,25 @@ export default {
this
.
currentVideoUrl
=
this
.
testVideoUrl
;
this
.
showVideo
=
true
;
},
closeVideo
()
{
this
.
showVideo
=
false
;
this
.
currentVideoUrl
=
''
;
},
openChannel
(){
const
finderUserName
=
this
.
channel
.
finderUserName
;
const
feedId
=
this
.
channel
.
feedId
;
uni
.
openChannelsActivity
({
finderUserName
,
feedId
,
success
:
res
=>
{
console
.
log
(
'跳转成功'
,
res
);
},
fail
:
err
=>
{
console
.
log
(
'跳转失败'
,
err
);
}
});
}
}
}
</
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