修复已知问题
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user