feat: 在视频日志组件中添加点击事件以跳转到网页
This commit is contained in:
parent
6f9fb8b2df
commit
adae5c917a
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="m-4" v-if="info">
|
||||
<swiper indicator-dots autoplay circular class="h-195">
|
||||
<swiper indicator-dots autoplay circular class="h-195" @click="toWebview">
|
||||
<swiper-item>
|
||||
<image
|
||||
mode="widthFix"
|
||||
@ -135,6 +135,15 @@
|
||||
}
|
||||
})
|
||||
|
||||
const toWebview = () => {
|
||||
$basic.routeJump({
|
||||
name: 'webview',
|
||||
params: {
|
||||
url: encodeURIComponent('https://www.baidu.com')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const resetLog = async () => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user