2025-11-08 16:50:26 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="content">
|
|
|
|
|
|
<!-- 搜索 -->
|
2025-11-25 14:21:22 +08:00
|
|
|
|
|
2025-11-08 16:50:26 +08:00
|
|
|
|
<view class="serachBox">
|
2025-11-25 14:21:22 +08:00
|
|
|
|
<view class="type">
|
2025-12-27 15:47:56 +08:00
|
|
|
|
<picker mode="selector" @change="changeClickType" :range="foodItem" range-key="name" :value="index">
|
2025-11-25 14:21:22 +08:00
|
|
|
|
<view>
|
|
|
|
|
|
{{foodName}}
|
|
|
|
|
|
<image src="/static/arrow-down.png"></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</picker>
|
|
|
|
|
|
</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
<view class="serach-box">
|
|
|
|
|
|
<view class="searchInput">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<input :placeholder="$t('verifyRecord')" class="city-serach-input" v-model="search_value" />
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<icon v-if="search_value" class="iconfont icon-error" @click="handlecolse" size="30"></icon>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="searchBtn">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<view @click="handleSerach">{{$t("Search")}}</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<!-- 历史搜索 -->
|
|
|
|
|
|
<view class="content-box" v-if="!search_list.length">
|
|
|
|
|
|
<view v-if="history_food.length" class="search-history">
|
|
|
|
|
|
<view class="title">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<view class="quan mr-5"></view>{{$t("HistoricalSearch")}}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="button-container" @click="showAll =! showAll" v-if="history_food.length>10">
|
|
|
|
|
|
<image :src="showAll?'/static/arrow-up.png':'/static/arrow-down.png'"></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="history-list">
|
|
|
|
|
|
<view class="history-list-item"
|
|
|
|
|
|
v-for="(item,index) in showAll?history_food:history_food.slice(0, 10)"
|
|
|
|
|
|
@click="handleSearchHistory(item.keyword)">
|
|
|
|
|
|
{{item.keyword}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="popular-container">
|
|
|
|
|
|
<view class="title">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<view class="quan mr-5"></view>{{$t("wantSearch")}}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="popular-food-item" v-for="(ite,index) in popular_food" :key="index">
|
|
|
|
|
|
<view class="food-title">{{ite.title}}</view>
|
|
|
|
|
|
<view class="popular-food-inner">
|
|
|
|
|
|
<text class="popular-food-subitem" v-for="(sub_item,sub_index) in ite.list"
|
|
|
|
|
|
@click="handleSearchHistory(sub_item.name)" :key="sub_index">{{sub_item.name}}
|
|
|
|
|
|
</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<!-- 底部购物车 -->
|
|
|
|
|
|
<view class="groupbtn">
|
|
|
|
|
|
<view @click="handleisShop" class="left">
|
|
|
|
|
|
<view class="che">
|
|
|
|
|
|
<text>{{ActiveList.filter(ite => ite.meals_type == foodName).length||0}}</text>
|
|
|
|
|
|
<icon class="t-icon t-icon-canpan"></icon>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="type">
|
|
|
|
|
|
{{foodName}}
|
|
|
|
|
|
<image src="/static/arrow-down.png"></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<!-- <view class="mic-icon" @touchstart="onVoiceTouchStart" @touchend="onVoiceTouchEnd"
|
2025-12-04 15:02:07 +08:00
|
|
|
|
@touchcancel="cancelRecording">
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<uni-icons type="mic-filled" size="20" color="#fff"></uni-icons>
|
2025-12-22 09:34:09 +08:00
|
|
|
|
{{$t("VoiceSearch")}}
|
|
|
|
|
|
</view> -->
|
2025-12-03 15:34:39 +08:00
|
|
|
|
</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
<!-- 搜索列表 -->
|
|
|
|
|
|
<view class="search_list" v-if="search_list.length">
|
|
|
|
|
|
<view class="search_list_item" v-for="(ite,ind) in search_list" @click="handleDetail(ite)">
|
|
|
|
|
|
<image :src="ite.pic_url"></image>
|
|
|
|
|
|
<view>
|
|
|
|
|
|
<text>{{ite.name}}</text>
|
|
|
|
|
|
<text>100g/{{ite.kcal}}kcal</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<view class="endtext" v-if="!lastPage || page >= lastPage">—— {{$t("msgBottom")}} ——</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<!-- 购物车弹框 -->
|
2025-11-08 16:50:26 +08:00
|
|
|
|
<view class="wrapper activeList" v-if="isShop">
|
|
|
|
|
|
<view class="bg" @click='isShop=false'>
|
|
|
|
|
|
<view class="box2" @click.stop>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<!-- -->
|
|
|
|
|
|
<icon class="iconfont icon-error" @click="isShop=false"></icon>
|
|
|
|
|
|
<view class="jishiqi">
|
|
|
|
|
|
<view class="left">
|
|
|
|
|
|
<view class="chart-wrap">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<qiun-data-charts type="arcbar" :chartData="chartData" :cHeight="320" :cWidth="320" />
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<view class="center">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
{{$t("countIntake")}}
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<text>{{foodInfo[0].today_intake}}</text>
|
|
|
|
|
|
<view class="unit">Kcal</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="mubiao">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
{{$t("titleBody")}}:<text>{{foodInfo[0].suggestion}}</text>kcal
|
2025-12-03 15:34:39 +08:00
|
|
|
|
</view>
|
2025-11-25 14:21:22 +08:00
|
|
|
|
</view>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<view class="right">
|
|
|
|
|
|
<view class="item" v-for="(ite,ind) in foodInfo.slice(1)">
|
|
|
|
|
|
<view class="left-icon">
|
|
|
|
|
|
<image :src="ite.icon"></image>
|
|
|
|
|
|
<view class="val" :style="{color:ite.color}">{{ite.proportion_fp||0}}%</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="right-info">
|
|
|
|
|
|
<view class="right-info-top">
|
|
|
|
|
|
<text class="name">{{ite.name}}</text>
|
|
|
|
|
|
<text class="">
|
|
|
|
|
|
{{ite.today_intake||0}}/{{ite.suggestion||0}}g
|
|
|
|
|
|
</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="right-info-bottom">
|
|
|
|
|
|
<view class="val" :style="{ width: ite.proportion + '%',background:ite.color}">
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-11-26 17:32:18 +08:00
|
|
|
|
</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<!-- -->
|
|
|
|
|
|
<view class="box_list">
|
|
|
|
|
|
<view class="left">
|
|
|
|
|
|
<view :class="[item.name == foodName?'active':'']" v-for="(item,index) in foodItem"
|
|
|
|
|
|
@click="handleToggle(item.name)">
|
|
|
|
|
|
{{item.name}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="box_list_item" v-if="ActiveList.length">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<view class="length">{{$t("total")}}<text
|
|
|
|
|
|
class="red">{{ActiveList.filter(ite => ite.meals_type == foodName).length}}</text>{{$t("records")}}
|
2025-12-03 15:34:39 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="item" v-for="(ite,ind) in ActiveList" :key="ind"
|
|
|
|
|
|
v-if="ite.meals_type==foodName">
|
|
|
|
|
|
<view class="item-left">
|
|
|
|
|
|
<image :src="ite.pic_url"></image>
|
|
|
|
|
|
<view class="name">
|
|
|
|
|
|
<text>{{ite.name}}</text>
|
|
|
|
|
|
<text class="weight">{{ite.weight}}{{ite.unit}} / {{ite.kcal}}kcal</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<icon class="iconfont icon-ashbin" color="red" size="26" @click="handledelactive(ite)">
|
|
|
|
|
|
</icon>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view v-else class="nolist list">
|
|
|
|
|
|
<icon class="iconfont icon-wancan"></icon>
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<text>{{$t('countNoFood')}}</text>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<!-- 测量弹框 -->
|
2025-11-08 16:50:26 +08:00
|
|
|
|
<view class="wrapper" v-if="IsWeight">
|
|
|
|
|
|
<view class="bg" @click='IsWeight=false'>
|
|
|
|
|
|
<view class="box" @click.stop>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<icon class="iconfont icon-error" @click="IsWeight=false"></icon>
|
2025-11-25 14:21:22 +08:00
|
|
|
|
<scroll-view style="height: 100%;margin-top: 20rpx;" scroll-y="true">
|
2025-11-08 16:50:26 +08:00
|
|
|
|
<view class="box-info">
|
|
|
|
|
|
<view class="foodItem">
|
|
|
|
|
|
<view class="left">
|
|
|
|
|
|
<image :src="activeType.pic_url" mode="aspectFill"></image>
|
|
|
|
|
|
<view class="info">
|
|
|
|
|
|
<view class="name">{{activeType.name}}</view>
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<view class="kcal">{{activeType.kcal}}kcal/100g</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="foodInfo">
|
|
|
|
|
|
<view class="foodInfoItem" v-for="(item,index) in activeType.nutrients_four"
|
|
|
|
|
|
:key="index">
|
|
|
|
|
|
<view class="name">
|
|
|
|
|
|
<view class="color" :style="{'background-color':item.color}"
|
|
|
|
|
|
v-if="item.color != ''"></view>
|
|
|
|
|
|
<text>{{item.name}}({{unitConversion(item.unit)}})</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="value">{{ Number(activeType.weight/100 * item.value).toFixed(1) }}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<!-- 蓝牙称重 -->
|
|
|
|
|
|
<view class="blue-tooth" v-if="isBle">
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<blue-tooth @handleBle="handleBle" :weightKcal="weightKcal"
|
2025-12-22 09:34:09 +08:00
|
|
|
|
@realTimeWeight="realTimeWeight" :btnType="btnType"></blue-tooth>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<!-- 营养分析 -->
|
|
|
|
|
|
<view class="foodDetail">
|
|
|
|
|
|
<view class="foodContent">
|
|
|
|
|
|
<view class="tips">
|
2025-12-22 09:34:09 +08:00
|
|
|
|
<text>{{$t('Nutrients')}}</text>
|
|
|
|
|
|
<text>{{Math.floor(activeType.weight)}}g{{$t('Content')}}</text>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="foodDetailList">
|
|
|
|
|
|
<view class="foodDetailItem" v-for="(item,index) in activeType.nutrients_list"
|
|
|
|
|
|
:key="index">
|
|
|
|
|
|
<view class="name">{{item.name_ch}}</view>
|
|
|
|
|
|
<view class="value">
|
|
|
|
|
|
{{Number(item.value*activeType.weight/100).toFixed(2)}}{{item.unit}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-12-03 15:34:39 +08:00
|
|
|
|
<!-- 语音弹框 -->
|
|
|
|
|
|
<view class="wrapper" v-if="showAutoSearchDlg">
|
|
|
|
|
|
<view class="auto-search-dialog">
|
|
|
|
|
|
<view class="auto-search-inner">
|
|
|
|
|
|
<view class="voice-wave">
|
|
|
|
|
|
<view class="wave-bar"></view>
|
|
|
|
|
|
<view class="wave-bar"></view>
|
|
|
|
|
|
<view class="wave-bar"></view>
|
|
|
|
|
|
<view class="wave-bar"></view>
|
|
|
|
|
|
<view class="wave-bar"></view>
|
|
|
|
|
|
<view class="wave-bar"></view>
|
|
|
|
|
|
</view>
|
2025-11-26 17:32:18 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2025-11-25 14:21:22 +08:00
|
|
|
|
</view>
|
2025-11-08 16:50:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import {
|
|
|
|
|
|
mapState
|
|
|
|
|
|
} from "vuex";
|
2025-12-22 09:34:09 +08:00
|
|
|
|
// const plugin = requirePlugin("WechatSI")
|
2025-11-08 16:50:26 +08:00
|
|
|
|
import search from "../../components/search.vue"
|
|
|
|
|
|
import blueTooth from "../../components/bluetooth_food.vue"
|
2025-12-22 09:34:09 +08:00
|
|
|
|
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
|
2025-11-08 16:50:26 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-12-03 15:34:39 +08:00
|
|
|
|
chartData: {
|
|
|
|
|
|
series: [{
|
|
|
|
|
|
data: 0,
|
|
|
|
|
|
color: "#3CB383"
|
|
|
|
|
|
}]
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
2025-12-03 15:34:39 +08:00
|
|
|
|
foodInfo: [],
|
2025-11-25 14:21:22 +08:00
|
|
|
|
time: "",
|
2025-12-22 09:34:09 +08:00
|
|
|
|
btnType: 2,
|
2025-11-08 16:50:26 +08:00
|
|
|
|
page: 1,
|
2025-11-25 14:21:22 +08:00
|
|
|
|
foodName: "",
|
2025-11-08 16:50:26 +08:00
|
|
|
|
showAll: false,
|
|
|
|
|
|
IsWeight: false,
|
|
|
|
|
|
search_list: [],
|
|
|
|
|
|
isShop: false,
|
|
|
|
|
|
lastPage: "",
|
|
|
|
|
|
isBle: true,
|
2025-12-22 09:34:09 +08:00
|
|
|
|
weightKcal: 0,
|
2025-11-08 16:50:26 +08:00
|
|
|
|
search_value: '',
|
|
|
|
|
|
ActiveList: [],
|
|
|
|
|
|
activeType: {},
|
|
|
|
|
|
voiceManager: null,
|
2025-12-22 09:34:09 +08:00
|
|
|
|
showAutoSearchDlg: false,
|
|
|
|
|
|
index: 0,
|
2025-11-08 16:50:26 +08:00
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
2025-11-26 17:32:18 +08:00
|
|
|
|
...mapState(["configInfo", "user", 'bleValue', "countFoodInfo"]),
|
2025-11-08 16:50:26 +08:00
|
|
|
|
popular_food() {
|
|
|
|
|
|
return this.configInfo.search_guess.food_data
|
|
|
|
|
|
},
|
2025-11-25 14:21:22 +08:00
|
|
|
|
foodItem() {
|
|
|
|
|
|
return this.configInfo.meal_list
|
|
|
|
|
|
},
|
2025-12-03 15:34:39 +08:00
|
|
|
|
history_food() {
|
|
|
|
|
|
return this.configInfo.search_history.food
|
|
|
|
|
|
},
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
components: {
|
|
|
|
|
|
search,
|
|
|
|
|
|
blueTooth,
|
|
|
|
|
|
qiunDataCharts
|
|
|
|
|
|
},
|
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
|
let that = this
|
2025-11-25 14:21:22 +08:00
|
|
|
|
that.time = options.time
|
2025-12-22 09:34:09 +08:00
|
|
|
|
that.index = options.index
|
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
|
title: this.$t('titleCountSearch')
|
|
|
|
|
|
})
|
|
|
|
|
|
that.foodName = that.foodItem[that.index].name
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
watch: {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
bleValue: {
|
|
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
|
this.realTimeWeight(newVal.countWeight, newVal.unit)
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
deep: true
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
let that = this
|
2025-12-22 09:34:09 +08:00
|
|
|
|
// that.voiceManager = plugin.getRecordRecognitionManager()
|
|
|
|
|
|
// that.voiceManager.onStop = function(res) {
|
|
|
|
|
|
// that.search_value = res.result.replace('。', '')
|
|
|
|
|
|
// that.handleSerach()
|
|
|
|
|
|
// }
|
|
|
|
|
|
// that.voiceManager.onError = function(res) {
|
|
|
|
|
|
// console.error("error msg", res.retcode)
|
|
|
|
|
|
// }
|
|
|
|
|
|
// that.voiceManager.stop()
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
if (!this.lastPage || this.page >= this.lastPage) {
|
|
|
|
|
|
uni.showToast({
|
2025-12-22 09:34:09 +08:00
|
|
|
|
title: this.$t('noMoreData'),
|
2025-11-08 16:50:26 +08:00
|
|
|
|
icon: 'none'
|
|
|
|
|
|
})
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
this.page++
|
|
|
|
|
|
this.handleSerach()
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2025-12-03 15:34:39 +08:00
|
|
|
|
// 开始录音
|
2025-11-25 14:21:22 +08:00
|
|
|
|
onVoiceTouchStart() {
|
|
|
|
|
|
let that = this
|
2025-12-03 15:34:39 +08:00
|
|
|
|
that.showAutoSearchDlg = true
|
|
|
|
|
|
that.isShop = false
|
2025-11-25 14:21:22 +08:00
|
|
|
|
that.voiceManager.start({
|
|
|
|
|
|
duration: 60000,
|
|
|
|
|
|
lang: "zh_CN"
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2025-12-03 15:34:39 +08:00
|
|
|
|
// 停止录音
|
2025-11-25 14:21:22 +08:00
|
|
|
|
onVoiceTouchEnd() {
|
|
|
|
|
|
let that = this
|
2025-12-03 15:34:39 +08:00
|
|
|
|
that.showAutoSearchDlg = false
|
2025-11-25 14:21:22 +08:00
|
|
|
|
that.voiceManager.stop()
|
|
|
|
|
|
},
|
2025-12-03 15:34:39 +08:00
|
|
|
|
// 取消录音
|
|
|
|
|
|
cancelRecording() {
|
|
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
|
if (this.voiceManager) {
|
|
|
|
|
|
this.voiceManager.stop()
|
|
|
|
|
|
this.showAutoSearchDlg = false
|
|
|
|
|
|
}
|
|
|
|
|
|
// #endif
|
|
|
|
|
|
},
|
2025-11-26 17:32:18 +08:00
|
|
|
|
// 购物车早午晚餐切换
|
2025-11-25 14:21:22 +08:00
|
|
|
|
handleToggle(name) {
|
|
|
|
|
|
this.search_value = ""
|
|
|
|
|
|
this.search_list = []
|
|
|
|
|
|
this.foodName = name
|
2025-12-03 15:34:39 +08:00
|
|
|
|
this.handleAddEveryMealFood()
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
//实时重量
|
|
|
|
|
|
realTimeWeight(weight, unit) {
|
2025-11-29 10:02:33 +08:00
|
|
|
|
// console.log("实时重量", weight, unit)
|
2025-11-08 16:50:26 +08:00
|
|
|
|
this.activeType = Object.assign({}, this.activeType, {
|
|
|
|
|
|
weight: this.convertToGrams(weight, unit)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
unitConversion(unit) {
|
|
|
|
|
|
if (unit == 'kcal') {
|
|
|
|
|
|
return '千卡'
|
|
|
|
|
|
} else if (unit == 'g') {
|
|
|
|
|
|
return '克'
|
|
|
|
|
|
}
|
|
|
|
|
|
return unit
|
|
|
|
|
|
},
|
|
|
|
|
|
convertToGrams(value, fromUnit) {
|
|
|
|
|
|
const conversionFactors = {
|
2025-11-29 10:02:33 +08:00
|
|
|
|
'lb': 453.59, // 1磅 = 453.59237克
|
|
|
|
|
|
'oz': 28.35, // 1盎司 = 28.349523125克
|
2025-11-08 16:50:26 +08:00
|
|
|
|
'kg': 1000, // 1公斤 = 1000克
|
|
|
|
|
|
'g': 1
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (!conversionFactors.hasOwnProperty(fromUnit)) {
|
|
|
|
|
|
return ''
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return value * conversionFactors[fromUnit];
|
|
|
|
|
|
},
|
|
|
|
|
|
// 食物选择
|
|
|
|
|
|
handleDetail(ite) {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
that.isBle = true
|
|
|
|
|
|
that.isShop = false
|
|
|
|
|
|
that.IsWeight = true
|
2025-12-03 15:34:39 +08:00
|
|
|
|
that.showAutoSearchDlg = false
|
2025-11-08 16:50:26 +08:00
|
|
|
|
that.activeType = ite
|
2025-12-22 09:34:09 +08:00
|
|
|
|
that.weightKcal = Number(ite.kcal)
|
2025-11-27 15:04:25 +08:00
|
|
|
|
if (that.bleValue.serviceId != "") {
|
|
|
|
|
|
that.realTimeWeight(that.bleValue.countWeight, that.bleValue.unit)
|
|
|
|
|
|
} else {
|
|
|
|
|
|
that.$store.commit("changeBluetoothValue", {
|
|
|
|
|
|
countWeight: 100,
|
|
|
|
|
|
unit: "g"
|
2025-11-08 16:50:26 +08:00
|
|
|
|
})
|
2025-11-27 15:04:25 +08:00
|
|
|
|
that.realTimeWeight(100, "g")
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-11-26 17:32:18 +08:00
|
|
|
|
//测量返回
|
|
|
|
|
|
handleBle(weight, unit, kcal) {
|
2025-11-08 16:50:26 +08:00
|
|
|
|
let that = this
|
2025-11-26 17:32:18 +08:00
|
|
|
|
let list = []
|
|
|
|
|
|
that.activeType.unit = unit
|
|
|
|
|
|
that.activeType.kcal = kcal
|
|
|
|
|
|
that.activeType.weight = weight
|
2025-11-25 14:21:22 +08:00
|
|
|
|
that.activeType.meals_type = that.foodName
|
2025-11-26 17:32:18 +08:00
|
|
|
|
list.push(that.activeType)
|
2025-12-27 15:47:56 +08:00
|
|
|
|
console.log("保存", that.user.aud_id, list, that.time)
|
2025-11-26 17:32:18 +08:00
|
|
|
|
that.$model.getAddIntakeFood({
|
|
|
|
|
|
aud_id: that.user.aud_id,
|
|
|
|
|
|
food_list: list,
|
|
|
|
|
|
time: that.time
|
|
|
|
|
|
}).then(res => {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
console.log("33333333333", res)
|
2025-11-26 17:32:18 +08:00
|
|
|
|
if (res.code != 0) return
|
|
|
|
|
|
if (that.time == that.user.food_count.date) {
|
|
|
|
|
|
that.$store.dispatch("getUserInfo")
|
|
|
|
|
|
} else {
|
|
|
|
|
|
that.$store.dispatch("getCountFoodInfo", {
|
|
|
|
|
|
aud_id: that.user.aud_id,
|
|
|
|
|
|
time: that.time
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
that.activeType.food_id = res.data.id
|
|
|
|
|
|
if (that.ActiveList.indexOf(that.activeType) == -1) {
|
|
|
|
|
|
that.ActiveList.push(that.activeType);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
let index = that.ActiveList.indexOf(that.activeType)
|
|
|
|
|
|
that.ActiveList[index].weight = that.activeType.weight;
|
|
|
|
|
|
that.ActiveList[index].unit = that.activeType.unit;
|
|
|
|
|
|
}
|
2025-12-03 15:34:39 +08:00
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
that.handleAddEveryMealFood()
|
|
|
|
|
|
}, 100)
|
2025-11-26 17:32:18 +08:00
|
|
|
|
})
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
2025-12-03 15:34:39 +08:00
|
|
|
|
handleAddEveryMealFood() {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
let list = []
|
|
|
|
|
|
console.log("that.ActiveList", that.ActiveList)
|
|
|
|
|
|
that.ActiveList.forEach(ite => {
|
|
|
|
|
|
if (ite.meals_type == that.foodName) {
|
|
|
|
|
|
list.push(ite.food_id)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
console.log("MealFood", list)
|
|
|
|
|
|
that.$model.getAddEveryMealFood({
|
|
|
|
|
|
log_id: list,
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res.code != 0) return
|
|
|
|
|
|
that.isBle = false
|
|
|
|
|
|
that.IsWeight = false
|
|
|
|
|
|
that.isShop = true
|
|
|
|
|
|
that.foodInfo = res.data.nutrients_four
|
|
|
|
|
|
that.chartData.series[0].data = Number(res.data.nutrients_four[0].proportion) / 100
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
handleisShop() {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
if (!that.ActiveList.length) {
|
|
|
|
|
|
that.foodInfo = that.configInfo.default_count_foot.nutrients_four
|
|
|
|
|
|
that.chartData.series[0].data = Number(that.configInfo.default_count_foot.nutrients_four[0]
|
|
|
|
|
|
.proportion) / 100
|
|
|
|
|
|
}
|
|
|
|
|
|
that.isShop = true
|
|
|
|
|
|
},
|
2025-11-08 16:50:26 +08:00
|
|
|
|
// 搜索
|
|
|
|
|
|
handleSerach() {
|
|
|
|
|
|
let that = this
|
2025-12-03 15:34:39 +08:00
|
|
|
|
that.search_list = []
|
2025-11-25 14:21:22 +08:00
|
|
|
|
if (that.search_value == "") {
|
2025-12-22 09:34:09 +08:00
|
|
|
|
that.$tools.msg(this.$t('searchkeywords'))
|
2025-11-25 14:21:22 +08:00
|
|
|
|
return
|
|
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
that.$model.getFoodSearch({
|
|
|
|
|
|
page: that.page,
|
|
|
|
|
|
search_data: that.search_value
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res.code != 0) {
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
title: res.msg,
|
|
|
|
|
|
icon: 'error'
|
|
|
|
|
|
})
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
that.search_list = that.search_list.concat(res.data.content_list)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
// 取消搜索
|
|
|
|
|
|
handlecolse() {
|
|
|
|
|
|
this.search_value = ""
|
|
|
|
|
|
this.search_list = []
|
|
|
|
|
|
},
|
|
|
|
|
|
// 历史搜索
|
|
|
|
|
|
handleSearchHistory(text) {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
that.search_value = text
|
|
|
|
|
|
that.handleSerach()
|
|
|
|
|
|
},
|
2025-11-26 17:32:18 +08:00
|
|
|
|
// 早午晚餐筛选
|
2025-11-25 14:21:22 +08:00
|
|
|
|
changeClickType(e) {
|
|
|
|
|
|
this.search_value = ""
|
|
|
|
|
|
this.search_list = []
|
|
|
|
|
|
this.foodName = this.foodItem[e.target.value].name
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
//删除购物车食材
|
|
|
|
|
|
handledelactive(ite) {
|
|
|
|
|
|
let that = this
|
2025-11-26 17:32:18 +08:00
|
|
|
|
uni.showModal({
|
2025-12-22 09:34:09 +08:00
|
|
|
|
content: this.$t('WhetherTodelete') + ite.name,
|
2025-11-26 17:32:18 +08:00
|
|
|
|
success: (res) => {
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
this.$model.delCEatAction({
|
|
|
|
|
|
aud_id: that.user.aud_id,
|
|
|
|
|
|
eat_log_id: ite.food_id
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
that.ActiveList.splice(that.ActiveList.indexOf(ite), 1);
|
|
|
|
|
|
if (that.time == that.user.food_count.date) {
|
|
|
|
|
|
that.$store.dispatch("getUserInfo")
|
|
|
|
|
|
} else {
|
|
|
|
|
|
that.$store.dispatch("getCountFoodInfo", {
|
|
|
|
|
|
aud_id: that.user.aud_id,
|
|
|
|
|
|
time: that.time
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2025-12-03 15:34:39 +08:00
|
|
|
|
that.handleAddEveryMealFood()
|
2025-11-26 17:32:18 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2025-11-08 16:50:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.serachBox {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
height: 130rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
position: fixed;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding: 30rpx 20rpx;
|
2025-12-27 17:10:47 +08:00
|
|
|
|
z-index: 99;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
|
|
|
|
|
|
|
|
.type {
|
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.serach-box {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
height: 80rpx;
|
|
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.searchInput {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
right: 120rpx;
|
|
|
|
|
|
height: 80rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
icon {
|
|
|
|
|
|
position: absolute;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
right: 20rpx;
|
|
|
|
|
|
top: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
z-index: 9;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.searchBtn {
|
|
|
|
|
|
position: absolute;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
width: 120rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
right: 0px;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
height: 80rpx;
|
|
|
|
|
|
line-height: 80rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background: $maincolor;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 0 20rpx 20rpx 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
height: 80rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
padding: 0 5px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0px;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
right: 30px;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
width: 100rpx;
|
|
|
|
|
|
height: 80rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
position: absolute;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
right: 30rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-25 14:21:22 +08:00
|
|
|
|
image {
|
|
|
|
|
|
width: 15px;
|
|
|
|
|
|
height: 15px;
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-box {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx 20rpx 0 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
position: relative;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
z-index: 9;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
width: 100%;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
margin: 95px 0 270rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-history {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
uni-icons {
|
|
|
|
|
|
color: #333333;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
font-size: 60rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 13px;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
right: 30rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.history-list {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
width: calc(100% - 40rpx);
|
|
|
|
|
|
margin: 20rpx 20rpx 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
height: auto;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
justify-content: space-between;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.history-list-item {
|
|
|
|
|
|
border: 1px solid #dfdfdf;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
margin-bottom: 20rpx;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 27%;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
padding: 0 2%;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
width: 90%;
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
color: #000;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
|
margin-left: 30rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.popular-container {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.popular-food-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin: 20rpx;
|
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
border-radius: 20rpx;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
background: linear-gradient(#EDFFF4, #ffffff 100%);
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.food-title {
|
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.popular-food-inner {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
justify-content: space-between;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.popular-food-subitem {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
border: 1px solid #dfdfdf;
|
|
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
margin-bottom: 20rpx;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 27%;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
padding: 0 2%;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search_list {
|
|
|
|
|
|
display: flex;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding: 0 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
flex-wrap: wrap;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
margin: 95px 20rpx 90px;
|
|
|
|
|
|
width: calc(100% - 80rpx);
|
2025-11-08 16:50:26 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
background: #fff;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.search_list_item {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
border-bottom: 1px solid #f7f7f7;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding: 20rpx 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
image {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
width: 90rpx;
|
|
|
|
|
|
height: 90rpx;
|
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
border: 1px solid #f7f7f7;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-27 15:47:56 +08:00
|
|
|
|
view {
|
2025-12-30 13:48:36 +08:00
|
|
|
|
width: calc(100% - 130rpx);
|
2025-12-27 15:47:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-08 16:50:26 +08:00
|
|
|
|
text {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:nth-child(2) text {
|
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.activeList {
|
|
|
|
|
|
z-index: 12;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
bottom: 100rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
margin: 5px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list {
|
|
|
|
|
|
padding-bottom: 55px;
|
|
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.auto-search-dialog {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
width: 100%;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
bottom: 75px;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
z-index: 999;
|
|
|
|
|
|
|
|
|
|
|
|
.auto-search-inner {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
position: relative;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
width: 50%;
|
|
|
|
|
|
padding: 60rpx 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
box-shadow: 0 0 20rpx #ccc;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.footBtn {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
bottom: 0;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding-top: 30rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background: #fff;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
width: auto;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding: 5px 40rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background: $maincolor;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
margin-bottom: 30rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.groupbtn {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
position: fixed;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
bottom: 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
left: 0;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
height: 120rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
z-index: 15;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
box-shadow: 0px 1px 5px 2px #dfe2e1fc;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 100%;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.subbtn {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
width: 40%;
|
|
|
|
|
|
text-align: center;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
height: 35px;
|
|
|
|
|
|
line-height: 35px;
|
|
|
|
|
|
background-color: #f0ae43;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-25 14:21:22 +08:00
|
|
|
|
.left {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 100%;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
2025-11-26 17:32:18 +08:00
|
|
|
|
.che {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 120rpx;
|
|
|
|
|
|
height: 120rpx;
|
|
|
|
|
|
margin-left: 10px;
|
2025-12-29 16:54:56 +08:00
|
|
|
|
margin-bottom: 25px;
|
2025-11-26 17:32:18 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
text {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
height: 30rpx;
|
|
|
|
|
|
background: red;
|
|
|
|
|
|
width: 30rpx;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
line-height: 30rpx;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
font-size: 24rpx;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
right: 5px;
|
2025-12-29 16:54:56 +08:00
|
|
|
|
top: 20px;
|
2025-11-26 17:32:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
image,
|
|
|
|
|
|
.t-icon {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-26 17:32:18 +08:00
|
|
|
|
.type {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
text-align: left;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
|
2025-11-26 17:32:18 +08:00
|
|
|
|
image {
|
|
|
|
|
|
width: 15px;
|
|
|
|
|
|
height: 15px;
|
|
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
|
2025-11-26 17:32:18 +08:00
|
|
|
|
.mic-icon {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
width: calc(100% - 120px);
|
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
|
background: $maincolor;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
border-radius: 20rpx;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.wrapper {
|
|
|
|
|
|
.box {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
top: 40px;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background-color: #dfdfdf;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.box-info {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
padding: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
.val {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
width: 70%;
|
|
|
|
|
|
padding: 30rpx 0;
|
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
background-color: #F8F8F8;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
margin: 30rpx auto;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
|
border-bottom: 1px soild #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.unit {
|
|
|
|
|
|
width: auto;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
padding: 10rpx;
|
|
|
|
|
|
margin-left: 30rpx;
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
|
background-color: #F0AE43;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.foodItem {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.more {
|
|
|
|
|
|
padding: 6rpx 10rpx;
|
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
background-color: #f0ae43;
|
|
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
|
width: 50rpx;
|
|
|
|
|
|
height: 50rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.left {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 100%;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
|
width: 90rpx;
|
|
|
|
|
|
height: 90rpx;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
border: 1px solid #f7f7f7;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
margin-left: 30rpx;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: calc(100% - 120rpx);
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.name {
|
2025-12-27 15:47:56 +08:00
|
|
|
|
width: 100%;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.kcal {
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.foodInfo {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
.foodInfoItem {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
color: #8F8F8F;
|
|
|
|
|
|
|
|
|
|
|
|
.color {
|
|
|
|
|
|
width: 6rpx;
|
|
|
|
|
|
height: 20rpx;
|
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
|
border-radius: 3rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.value {
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.blue-tooth {
|
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.foodDetail {
|
|
|
|
|
|
background: #fff;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
margin-top: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.foodContent {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding: 0 10rpx 30rpx;
|
|
|
|
|
|
margin-top: 0;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.progress {
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
.info {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
width: calc(100% - 280rpx);
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.info-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-top: 20rpx;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
.weight {
|
|
|
|
|
|
color: #f7f7f7;
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
text {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
width: 30px;
|
|
|
|
|
|
margin: 0 10rpx;
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
.color {
|
|
|
|
|
|
width: 6rpx;
|
|
|
|
|
|
height: 20rpx;
|
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
|
border-radius: 3rpx;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
display: inline-block;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tips {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
border-bottom: 1px solid #f1f1f1;
|
|
|
|
|
|
padding: 16rpx 0;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
font-size: 32rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
margin-top: 10rpx;
|
2025-12-27 15:47:56 +08:00
|
|
|
|
font-weight: bold;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.foodDetailList {
|
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.foodDetailItem {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
|
width: 70%;
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
color: #777;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.val {
|
|
|
|
|
|
width: 30%;
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon-error {
|
|
|
|
|
|
position: absolute;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
right: 20rpx;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
top: -40rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
background: #fff;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
font-size: 80rpx;
|
|
|
|
|
|
width: 80rpx;
|
|
|
|
|
|
height: 80rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.box2 {
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
top: 80rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
bottom: 0;
|
|
|
|
|
|
position: absolute;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
padding: 20rpx;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
padding-bottom: 90px;
|
|
|
|
|
|
background-color: #dfdfdf;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
.jishiqi {
|
|
|
|
|
|
width: calc(100% - 20px);
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
height: 340rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-12-22 09:34:09 +08:00
|
|
|
|
.chart-wrap {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
width: 280rpx;
|
|
|
|
|
|
height: 280rpx;
|
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
|
|
.center {
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
width: 280rpx;
|
|
|
|
|
|
height: 210rpx;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 44rpx;
|
|
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
.box_list {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 10px;
|
|
|
|
|
|
right: 10px;
|
|
|
|
|
|
bottom: 90px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
top: 420rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.left {
|
|
|
|
|
|
width: 80px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0px;
|
|
|
|
|
|
top: 0px;
|
|
|
|
|
|
bottom: 0px;
|
2025-11-26 17:32:18 +08:00
|
|
|
|
display: flex;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
flex-direction: column;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
view {
|
|
|
|
|
|
height: 25%;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
display: flex;
|
2025-11-26 17:32:18 +08:00
|
|
|
|
align-items: center;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
.active {
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
background-color: #EDFFF4;
|
|
|
|
|
|
color: #3CB383;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
.box_list_item {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 10px;
|
|
|
|
|
|
left: 90px;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
overflow: scroll;
|
|
|
|
|
|
padding-bottom: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
.length {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 35px;
|
|
|
|
|
|
line-height: 35px;
|
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
padding: 5px 0;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
border-bottom: 1px solid #f7f7f7;
|
|
|
|
|
|
|
|
|
|
|
|
.item-left {
|
|
|
|
|
|
width: calc(100% - 40px);
|
2025-11-26 17:32:18 +08:00
|
|
|
|
display: flex;
|
2025-12-03 15:34:39 +08:00
|
|
|
|
align-items: center;
|
2025-11-26 17:32:18 +08:00
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
image {
|
|
|
|
|
|
width: 90rpx;
|
|
|
|
|
|
height: 90rpx;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
border: 1px solid #f7f7f7;
|
2025-11-26 17:32:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
.name {
|
|
|
|
|
|
width: calc(100% - 100rpx);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
text {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.weight {
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
color: #999;
|
|
|
|
|
|
}
|
2025-11-26 17:32:18 +08:00
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-03 15:34:39 +08:00
|
|
|
|
.icon-ashbin {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 10px;
|
|
|
|
|
|
top: 15px;
|
|
|
|
|
|
color: red !important;
|
|
|
|
|
|
font-size: 18px !important;
|
|
|
|
|
|
}
|
2025-11-25 14:21:22 +08:00
|
|
|
|
}
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
width: 60%;
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
background-color: #f0ae43;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.button-container {
|
|
|
|
|
|
position: absolute;
|
2025-11-25 14:21:22 +08:00
|
|
|
|
top: 20rpx;
|
|
|
|
|
|
right: 30rpx;
|
|
|
|
|
|
font-size: 40rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
|
|
|
|
|
|
image {
|
2025-11-25 14:21:22 +08:00
|
|
|
|
width: 50rpx;
|
|
|
|
|
|
height: 50rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.footBtn {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
|
padding-bottom: 30rpx;
|
|
|
|
|
|
padding-top: 30rpx;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
z-index: 99;
|
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
padding: 8px 40rpx;
|
|
|
|
|
|
background: $maincolor;
|
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
border-radius: 20rpx;
|
2025-11-08 16:50:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|