Commit 441eb5d8 authored by 张九刚's avatar 张九刚

feat: 在品牌页面中添加频道信息,更新视频处理逻辑,优化用户跳转体验

parent fc2294c9
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": [
{
......
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": [
{
......
......@@ -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>
......
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