fix:跳转新增
This commit is contained in:
parent
bc5d21fc76
commit
b1a906f176
@ -96,9 +96,9 @@
|
||||
<div class="box_12 flex-row justify-between">
|
||||
<span class="text_34">需消耗20智点</span>
|
||||
<div class="group_19 flex-row">
|
||||
<div class="image-text_15 flex-row justify-between">
|
||||
<div class="image-text_15 flex-row justify-between" @click="goToExperience(0)">
|
||||
<img class="thumbnail_20" referrerpolicy="no-referrer" src="/images/ai/33.jpg" />
|
||||
<span class="text-group_20">立即体验</span>
|
||||
<span class="text-group_20 " >立即体验</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -113,7 +113,7 @@
|
||||
<div class="box_14 flex-row justify-between">
|
||||
<span class="text_37">还剩3次体验机会</span>
|
||||
<div class="box_15 flex-row">
|
||||
<div class="image-text_16 flex-row justify-between">
|
||||
<div class="image-text_16 flex-row justify-between" @click="goToExperience(1)">
|
||||
<img class="thumbnail_21" referrerpolicy="no-referrer"
|
||||
src="https://lanhu-oss-proxy.lanhuapp.com/SketchPng8c408105a9fd19d2ed517d26c3972819e5802316449362c24f8fa8609583f1cf" />
|
||||
<span class="text-group_22">立即体验</span>
|
||||
@ -158,7 +158,7 @@
|
||||
<span class="text-group_27">积分不足,需消耗29智点</span>
|
||||
</div>
|
||||
<div class="group_24 flex-row">
|
||||
<div class="image-text_21 flex-row justify-between">
|
||||
<div class="image-text_21 flex-row justify-between" @click="goToExperience(2)">
|
||||
<img class="thumbnail_26" referrerpolicy="no-referrer"
|
||||
src="https://lanhu-oss-proxy.lanhuapp.com/SketchPng8c408105a9fd19d2ed517d26c3972819e5802316449362c24f8fa8609583f1cf" />
|
||||
<span class="text-group_28">立即体验</span>
|
||||
@ -301,6 +301,18 @@ const ICON_MAP: Record<string, string> = {
|
||||
|
||||
const selectedTitle = ref<string>('')
|
||||
|
||||
// 立即体验按钮跳转函数
|
||||
const goToExperience = (index: number) => {
|
||||
const urls = [
|
||||
'http://103.40.14.23:25534',
|
||||
'http://103.40.14.23:25535',
|
||||
'http://103.40.14.23:25536'
|
||||
]
|
||||
|
||||
if (index >= 0 && index < urls.length) {
|
||||
window.location.href = urls[index]
|
||||
}
|
||||
}
|
||||
function normalizeTitle(text?: string) {
|
||||
if (!text) return '体验详情'
|
||||
const t = String(text).replace(/\s+/g, ' ').trim()
|
||||
|
Loading…
x
Reference in New Issue
Block a user