Commit 02a9f135 authored by 张九刚's avatar 张九刚

Merge branch 'feature/20250529home' into 'dev'

fix: 更新品牌数据中的 productId 和 skuId 字段为空值,调整产品页面和品牌页面的图片预览功能

See merge request sparkprojects/20250528_FHQ1!38
parents 457e1856 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段",
......
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段",
......
......@@ -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>
......
......@@ -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>
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment