This commit is contained in:
唐明明
2022-01-14 14:46:00 +08:00
3 changed files with 262 additions and 335 deletions

View File

@@ -12,8 +12,8 @@
<!-- 搜索顶部 -->
<view class="search">
<!-- 头像 -->
<view class="user">
<u-icon name="arrow-left" color="#525252" size="22" class="downIcon" :bold="true" @click='$Router.back()'/>
<view class="user" @click="$Router.back()">
<u-icon name="arrow-left" color="#525252" size="22" class="downIcon" :bold="true" />
<!-- <u-image class="avatar" width="90rpx" height="90rpx" :src="user.avatar ? user.avatar : require('../../static/imgs/avatar.png')" :lazy-load="true" shape="circle" />
<view class="nickname">{{user.nickname}}</view> -->
<!-- <u-icon name="arrow-down-fill" color="#525252" size="10" class="downIcon" :bold="true" space="1"/> -->
@@ -144,27 +144,29 @@
</view>
</template>
<!-- 未登录 -->
<template v-else-if="!is_login">
<template v-if="!is_login">
<!-- 搜索顶部 -->
<view class="search" @click="Login">
<view class="search" >
<!-- 头像 -->
<view class="user">
<view class="user" @click="$Router.back()">
<!-- <u-image class="avatar" width="90rpx" height="90rpx" :src="require('../../static/imgs/avatar.png')" :lazy-load="true" shape="circle" />
<u-icon name="arrow-down-fill" color="#525252" size="10" class="downIcon" :bold="true" space="1" /> -->
<u-icon name="arrow-left" color="#525252" size="22" class="downIcon" :bold="true" @click='$Router.back()'/>
<u-icon name="arrow-left" color="#525252" size="22" class="downIcon" :bold="true"/>
</view>
<!-- 搜索框 -->
<u-search
placeholder="搜索食物营养和热量"
shape="round"
:show-action="false"
searchIconColor="#34ce98"
bgColor="#f8f8f8"
:clearabled="false"
:disabled="true"
placeholderColor="#777"
class="searchTem"
/>
<view style="flex:1;" @click="Login">
<u-search
placeholder="搜索食物营养和热量"
shape="round"
:show-action="false"
searchIconColor="#34ce98"
bgColor="#f8f8f8"
:clearabled="false"
:disabled="true"
placeholderColor="#777"
class="searchTem"
/>
</view>
<!-- 消息中心 -->
<view class="news">
<u-icon name="bell-fill" color="#525252" size="24" :bold="true" space="1" />
@@ -242,29 +244,31 @@
</view>
</template>
<!-- 登录 (未建立档案) -->
<template v-eles-if="is_login && !is_record">
<template v-if="is_login && !is_record">
<!-- 搜索顶部 -->
<view class="search" @click="toCreateInfo">
<view class="search" >
<!-- 头像 -->
<view class="user">
<view class="user" @click='$Router.back()'>
<!-- <u-image class="avatar" width="90rpx" height="90rpx" :src="require('../../static/imgs/avatar.png')" :lazy-load="true" shape="circle" />
<u-icon name="arrow-down-fill" color="#525252" size="10" class="downIcon" :bold="true" space="1" /> -->
<u-icon name="arrow-left" color="#525252" size="22" class="downIcon" :bold="true" @click='$Router.back()'/>
<u-icon name="arrow-left" color="#525252" size="22" class="downIcon" :bold="true"/>
</view>
<!-- 搜索框 -->
<u-search
placeholder="搜索食物营养和热量"
shape="round"
:show-action="false"
searchIconColor="#34ce98"
bgColor="#f8f8f8"
:clearabled="false"
:disabled="true"
placeholderColor="#777"
class="searchTem"
/>
<view class="flex:1;" @click="toCreateInfo">
<u-search
placeholder="搜索食物营养和热量"
shape="round"
:show-action="false"
searchIconColor="#34ce98"
bgColor="#f8f8f8"
:clearabled="false"
:disabled="true"
placeholderColor="#777"
class="searchTem"
/>
</view>
<!-- 消息中心 -->
<view class="news">
<view class="news" >
<u-icon name="bell-fill" color="#525252" size="24" :bold="true" space="1" />
<u-badge class="dian" :isDot="notifications_count > 0" bgColor="#e6576b"></u-badge>
</view>
@@ -450,6 +454,7 @@ export default {
display: flex;
flex-direction: row;
position: relative;
z-index: 1001;
.downIcon {
// margin: 0 0 0 $margin * 0.4;
}