修复已知问题
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 {
|
||||
|
||||
@@ -163,19 +163,23 @@ text-transform: none;`
|
||||
<view class="top-bg-img">
|
||||
<image
|
||||
:src="userInfo?.avatar"
|
||||
lazy-load
|
||||
mode="aspectFill"
|
||||
class="img"
|
||||
@click="onImage([userInfo?.avatar])"
|
||||
></image>
|
||||
<!-- 用户信息 -->
|
||||
<view class="user-info">
|
||||
<text>{{ userInfo?.userName }}</text>
|
||||
<text class="name">{{ userInfo?.userName }}</text>
|
||||
<image
|
||||
v-if="userInfo?.avatar"
|
||||
:src="userInfo?.avatar"
|
||||
lazy-load
|
||||
mode="aspectFill"
|
||||
class="avatar"
|
||||
@click="onImage([userInfo?.avatar])"
|
||||
></image>
|
||||
<uni-icons v-else type="contact-filled" size="160rpx"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -184,6 +188,7 @@ text-transform: none;`
|
||||
<view v-for="item in dataList" :key="item.id" class="list">
|
||||
<image
|
||||
:src="item.avatar"
|
||||
lazy-load
|
||||
mode="aspectFill"
|
||||
class="avatar"
|
||||
></image>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<!-- <view class="home-footer">
|
||||
<view class="create-btn" @click="goAnchorPage()">
|
||||
<image style="width: 36rpx; height: 36rpx; margin-right: 10rpx;" src="/static/images/create-live.png" />
|
||||
<text class="btn-text">开2直播</text>
|
||||
<text class="btn-text">开直播</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
width: 100%;
|
||||
height: 544rpx;
|
||||
position: relative;
|
||||
background: #87d8ff;
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -12,7 +13,7 @@
|
||||
bottom: -60rpx;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
text {
|
||||
.name {
|
||||
margin-top: 30rpx;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 600;
|
||||
|
||||
Reference in New Issue
Block a user