修复已知问题

This commit is contained in:
bobobobo
2026-01-22 01:23:57 +08:00
parent 2b26bfed69
commit 5f2fab9335
18 changed files with 414 additions and 61 deletions

View File

@@ -59,34 +59,61 @@
return
}
}
const onScan = () => {
uni.scanCode({
onlyFromCamera: false,
scanType: ['qrCode'],
success: res => {
navigateTo(res.result)
}
})
}
</script>
<template>
<view class="discover-box">
<view
v-for="(item, index) in btnList"
:key="index"
class="card-box"
@click="onGo(item.icon)"
>
<view class="left-box">
<view>
<nav-bar :showBack="false" isTopBg isPlaceholder title="发现">
<template #right>
<!-- #ifdef APP-PLUS -->
<image
:src="`/static/images/discover/${item.icon}.png`"
src="/TUIKit/assets/icon/scan.svg"
mode="heightFix"
class="icon"
class="scan-icon"
@click="onScan"
></image>
<!-- #endif -->
</template>
</nav-bar>
<view class="discover-box">
<view
v-for="(item, index) in btnList"
:key="index"
class="card-box"
@click="onGo(item.icon)"
>
<view class="left-box">
<image
:src="`/static/images/discover/${item.icon}.png`"
mode="heightFix"
class="icon"
></image>
<text>{{ item.name }}</text>
</view>
<image
src="/static/images/public/right-arrow.png"
mode="heightFix"
class="right-box"
></image>
<text>{{ item.name }}</text>
</view>
<image
src="/static/images/public/right-arrow.png"
mode="heightFix"
class="right-box"
></image>
</view>
</view>
</template>
<style lang="scss" scoped>
.scan-icon {
height: 34rpx;
}
.discover-box {
padding: 32rpx 24rpx;
.card-box {