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
a911cbc5
Commit
a911cbc5
authored
Jun 14, 2025
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 更新品牌数据中的 productId 和 skuId 字段为空值,调整产品页面和品牌页面的图片预览功能
parent
1d73b853
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
43 deletions
+55
-43
brand.js
mock/brand.js
+18
-18
node_brand.js
mock/node_brand.js
+19
-19
product.vue
pages/product/product.vue
+1
-1
Brand.vue
views/Brand.vue
+9
-3
Home.vue
views/Home.vue
+8
-2
No files found.
mock/brand.js
View file @
a911cbc5
...
...
@@ -53,8 +53,8 @@ export const brandObj = {
"title"
:
"超凡 吸收"
,
"desc"
:
"星飞帆经典 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"0-1"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"星飞帆经典 3段"
,
...
...
@@ -65,8 +65,8 @@ export const brandObj = {
"title"
:
"顶配 脑育"
,
"desc"
:
"星飞帆卓睿 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"0-2"
,
"contentImgLen"
:
25
,
"shareTitle"
:
"星飞帆卓睿 3段"
,
...
...
@@ -77,8 +77,8 @@ export const brandObj = {
"title"
:
"亲和 自护"
,
"desc"
:
"星飞帆卓耀 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"0-3"
,
"contentImgLen"
:
28
,
"shareTitle"
:
"星飞帆卓耀 3段"
,
...
...
@@ -127,8 +127,8 @@ export const brandObj = {
"title"
:
"超凡 吸收"
,
"desc"
:
"星飞帆经典 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-1"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"星飞帆经典 3段"
,
...
...
@@ -139,8 +139,8 @@ export const brandObj = {
"title"
:
"顶配 脑育"
,
"desc"
:
"星飞帆卓睿 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-2"
,
"contentImgLen"
:
25
,
"shareTitle"
:
"星飞帆卓睿 3段"
,
...
...
@@ -151,8 +151,8 @@ export const brandObj = {
"title"
:
"亲和 自护"
,
"desc"
:
"星飞帆卓耀 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-3"
,
"contentImgLen"
:
28
,
"shareTitle"
:
"星飞帆卓耀 3段"
,
...
...
@@ -163,8 +163,8 @@ export const brandObj = {
"title"
:
"顶配 A 2"
,
"desc"
:
"星飞帆卓睿A2奶源"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-4"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"星飞帆卓睿A2奶源"
,
...
...
@@ -175,8 +175,8 @@ export const brandObj = {
"title"
:
"活性 有机"
,
"desc"
:
"臻稚卓蓓 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-5"
,
"contentImgLen"
:
28
,
"shareTitle"
:
"臻稚卓蓓 3段"
,
...
...
@@ -187,8 +187,8 @@ export const brandObj = {
"title"
:
"高端 乳铁"
,
"desc"
:
"臻爱倍护 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-6"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"臻爱倍护 3段"
,
...
...
mock/node_brand.js
View file @
a911cbc5
const
brandObj
=
{
const
brandObj
=
{
"channel"
:{
"finderUserName"
:
"sphgexisAi0pRGm"
,
"feedId"
:
"export/UzFfAgtgekIEAQAAAAAABbEMmxr36QAAAAstQy6ubaLX4KHWvLEZgBPEgaJkYSYbLr6JzNPgMJp7tTZCYcYsIpU6Z0fgSnSE"
...
...
@@ -53,8 +53,8 @@
"title"
:
"超凡 吸收"
,
"desc"
:
"星飞帆经典 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"0-1"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"星飞帆经典 3段"
,
...
...
@@ -65,8 +65,8 @@
"title"
:
"顶配 脑育"
,
"desc"
:
"星飞帆卓睿 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"0-2"
,
"contentImgLen"
:
25
,
"shareTitle"
:
"星飞帆卓睿 3段"
,
...
...
@@ -77,8 +77,8 @@
"title"
:
"亲和 自护"
,
"desc"
:
"星飞帆卓耀 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"0-3"
,
"contentImgLen"
:
28
,
"shareTitle"
:
"星飞帆卓耀 3段"
,
...
...
@@ -127,8 +127,8 @@
"title"
:
"超凡 吸收"
,
"desc"
:
"星飞帆经典 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-1"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"星飞帆经典 3段"
,
...
...
@@ -139,8 +139,8 @@
"title"
:
"顶配 脑育"
,
"desc"
:
"星飞帆卓睿 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-2"
,
"contentImgLen"
:
25
,
"shareTitle"
:
"星飞帆卓睿 3段"
,
...
...
@@ -151,8 +151,8 @@
"title"
:
"亲和 自护"
,
"desc"
:
"星飞帆卓耀 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-3"
,
"contentImgLen"
:
28
,
"shareTitle"
:
"星飞帆卓耀 3段"
,
...
...
@@ -163,8 +163,8 @@
"title"
:
"顶配 A 2"
,
"desc"
:
"星飞帆卓睿A2奶源"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-4"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"星飞帆卓睿A2奶源"
,
...
...
@@ -175,8 +175,8 @@
"title"
:
"活性 有机"
,
"desc"
:
"臻稚卓蓓 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-5"
,
"contentImgLen"
:
28
,
"shareTitle"
:
"臻稚卓蓓 3段"
,
...
...
@@ -187,8 +187,8 @@
"title"
:
"高端 乳铁"
,
"desc"
:
"臻爱倍护 3段"
,
"link"
:
"www.baidu.com"
,
"productId"
:
"
1234567890
"
,
"skuId"
:
"
1234567890
"
,
"productId"
:
""
,
"skuId"
:
""
,
"contentImg"
:
"1-6"
,
"contentImgLen"
:
20
,
"shareTitle"
:
"臻爱倍护 3段"
,
...
...
pages/product/product.vue
View file @
a911cbc5
...
...
@@ -3,7 +3,7 @@
<image
:key=
"index"
v-for=
"(item, index) in imgList"
mode=
"widthFix"
class=
"productimg"
:src=
"item.imgUrl"
>
</image>
<view
class=
"btnbox"
>
<image
@
tap=
"buyHandler"
class=
"btnbuy"
:src=
"$baseUrl + 'brandpage/btnbuy.png'"
></image>
<image
v-if=
"productId&&skuId"
@
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>
...
...
views/Brand.vue
View file @
a911cbc5
...
...
@@ -110,12 +110,12 @@
<rich-text
class=
"desc"
:nodes=
"this.qrInfoList[this.popupIndex].desc"
>
</rich-text>
<image
class=
"qrcode"
:src=
"$baseUrl + this.qrInfoList[this.popupIndex].qrUrl"
></image>
<image
@
tap=
"previewImage($baseUrl + this.qrInfoList[this.popupIndex].qrUrl)"
class=
"qrcode"
:src=
"$baseUrl + this.qrInfoList[this.popupIndex].qrUrl"
></image>
<image
@
tap=
"downloadHandler($baseUrl + this.qrInfoList[this.popupIndex].qrUrl)"
class=
"btndownload"
:src=
"$baseUrl + 'homepage/btn_download.png'"
></image>
</view>
<view
v-else
class=
"popup-content"
style=
"height: 899rpx;"
>
<image
class=
"xingmahui"
:src=
"$baseUrl + 'brandpage/hexiaofei.png'"
></image>
<image
@
tap=
"previewImage($baseUrl + 'brandpage/hexiaofei.png')"
class=
"xingmahui"
:src=
"$baseUrl + 'brandpage/hexiaofei.png'"
></image>
<image
class=
"btnclose"
@
tap=
"closePop"
:src=
"$baseUrl + 'homepage/btnclose.png'"
></image>
</view>
</uni-popup>
...
...
@@ -286,7 +286,13 @@ export default {
console
.
log
(
'跳转失败'
,
err
);
}
});
}
},
previewImage
(
url
){
uni
.
previewImage
({
urls
:
[
url
],
// 预览当前图片
current
:
url
// 当前显示的图片
});
},
}
}
</
script
>
...
...
views/Home.vue
View file @
a911cbc5
...
...
@@ -119,12 +119,12 @@
<rich-text
class=
"desc"
:nodes=
"this.qrInfoList[this.popupIndex].desc"
>
</rich-text>
<image
class=
"qrcode"
:src=
"$baseUrl + this.qrInfoList[this.popupIndex].qrUrl"
></image>
<image
@
tap=
"previewImage($baseUrl + this.qrInfoList[this.popupIndex].qrUrl)"
class=
"qrcode"
:src=
"$baseUrl + this.qrInfoList[this.popupIndex].qrUrl"
></image>
<image
@
tap=
"downloadHandler($baseUrl + this.qrInfoList[this.popupIndex].qrUrl)"
class=
"btndownload"
:src=
"$baseUrl + 'homepage/btn_download.png'"
></image>
</view>
<view
v-else
class=
"popup-content"
style=
"height: 977rpx;"
>
<image
class=
"xingmahui"
:src=
"$baseUrl + 'homepage/xingmahui.png'"
></image>
<image
@
tap=
"previewImage($baseUrl + 'homepage/xingmahui.png')"
class=
"xingmahui"
:src=
"$baseUrl + 'homepage/xingmahui.png'"
></image>
<image
class=
"btnclose"
@
tap=
"closePop"
:src=
"$baseUrl + 'homepage/btnclose.png'"
></image>
</view>
</uni-popup>
...
...
@@ -261,6 +261,12 @@ export default {
});
}
},
previewImage
(
url
){
uni
.
previewImage
({
urls
:
[
url
],
// 预览当前图片
current
:
url
// 当前显示的图片
});
},
jumpLinkWithLogin
(
link
)
{
if
(
this
.
homeStore
.
isLogin
)
{
jump
(
link
);
...
...
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