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
87fd8829
Commit
87fd8829
authored
Jun 16, 2025
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化产品页面和品牌页面的按钮显示逻辑,调整视频组件的样式和尺寸
parent
a911cbc5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
8 deletions
+37
-8
.DS_Store
.DS_Store
+0
-0
product.vue
pages/product/product.vue
+18
-4
btnsharebig.png
static/brandpage/btnsharebig.png
+0
-0
Brand.vue
views/Brand.vue
+19
-4
No files found.
.DS_Store
View file @
87fd8829
No preview for this file type
pages/product/product.vue
View file @
87fd8829
...
...
@@ -2,12 +2,18 @@
<view
class=
"container"
>
<image
:key=
"index"
v-for=
"(item, index) in imgList"
mode=
"widthFix"
class=
"productimg"
:src=
"item.imgUrl"
>
</image>
<view
class=
"btnbox"
>
<image
v-if=
"productId&&skuId"
@
tap=
"buyHandler"
class=
"btnbuy"
:src=
"$baseUrl + 'brandpage/btnbuy.png'"
></image>
<view
class=
"btnbox"
v-if=
"productId && skuId"
>
<image
@
tap=
"buyHandler"
class=
"btnbuy"
:src=
"$baseUrl + 'brandpage/btnbuy.png'"
></image>
<button
class=
"btnshare"
open-type=
"share"
style=
"background: none; border: none; padding: 0;"
>
<image
class=
"btnshare"
:src=
"$baseUrl + 'brandpage/btnshare.png'"
></image>
</button>
</view>
<view
class=
"btnbox"
v-else
>
<button
class=
"btnshare2"
open-type=
"share"
style=
"background: none; border: none; padding: 0;"
>
<image
class=
"btnshare2"
:src=
"$baseUrl + 'brandpage/btnsharebig.png'"
></image>
</button>
</view>
</view>
</
template
>
...
...
@@ -37,9 +43,9 @@ export default {
this
.
contentImg
=
contentImg
;
this
.
contentImgLen
=
contentImgLen
;
this
.
shareTitle
=
shareTitle
;
this
.
shareImg
=
this
.
$baseUrl
+
shareImg
;
this
.
shareImg
=
this
.
$baseUrl
+
shareImg
;
// this.shareImg = "https://yun.duiba.com//fh/"+shareImg;
console
.
log
(
"this.shareImg:"
,
this
.
shareImg
);
...
...
@@ -112,6 +118,14 @@ export default {
width: 350rpx;
height: 75rpx;
}
button.btnshare2::after {
border: none !important;
}
.btnshare2 {
width: 718rpx;
height: 75rpx;
}
}
}
</
style
>
static/brandpage/btnsharebig.png
0 → 100644
View file @
87fd8829
11 KB
views/Brand.vue
View file @
87fd8829
...
...
@@ -121,7 +121,13 @@
</uni-popup>
</view>
<view
v-if=
"showVideo"
class=
"video-popup"
>
<video
:src=
"currentVideoUrl"
controls
autoplay
style=
"width: 100vw; height: 56vw;"
></video>
<video
:src=
"currentVideoUrl"
controls
autoplay
:style=
"
{ width: videoWidth + 'px', height: videoHeight + 'px' }"
@loadedmetadata="onVideoLoadedMeta"
>
</video>
<view
class=
"close-btn-bottom"
@
tap=
"closeVideo"
>
×
</view>
</view>
</view>
...
...
@@ -155,9 +161,9 @@ export default {
popupIndex
:
0
,
showVideo
:
false
,
testVideoUrl
:
''
,
channel
:
{}
channel
:
{}
,
videoWidth
:
375
,
videoHeight
:
210
}
},
mounted
()
{
...
...
@@ -293,6 +299,13 @@ export default {
current
:
url
// 当前显示的图片
});
},
onVideoLoadedMeta
(
e
)
{
const
{
width
,
height
}
=
e
.
detail
;
const
pageWidth
=
uni
.
upx2px
(
750
);
const
ratio
=
height
/
width
;
this
.
videoWidth
=
pageWidth
;
this
.
videoHeight
=
pageWidth
;
// pageWidth * ratio;
}
}
}
</
script
>
...
...
@@ -438,6 +451,7 @@ export default {
text-align: center;
height: 100rpx;
white-space: pre-wrap;
}
}
...
...
@@ -619,6 +633,7 @@ export default {
font-size: 24rpx;
color: black;
margin-top: 10rpx;
padding-right: 40rpx;
}
}
}
...
...
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