完成个性化功能

This commit is contained in:
539943419 committed 2023-11-20 05:05:07 +08:00
1 parent 3b2d536880
commit ac2e6bf800
6 files changed
+589 -286

No files matched your search

+16 -9
View File
@@ -1,5 +1,6 @@
<!--index.wxml-->
<view class="container">
<view class="container" style="{{ miao_style }}">
<!-- <view class="container"> -->
<!-- 开始界面 -->
<view class="miao_page" id = 'startPage'>
@@ -24,7 +25,7 @@
</view>
<view class="buttom_startPage" id="tips_startPage" hidden="{{tip_hidden}}" style="justify-content: left;">
<view class="tip_head" style="margin-left: 15rpx;font-weight: 600;">Daliy Tips:</view>
<view class="tip_content">{{tip_content}}</view>
<view class="tip_content"style="margin-left:15rpx;font-weight: 600;">{{tip_content}}</view>
</view>
<!-- <view class="buttom_startPage test" id='test' bind:tap="startPage_Bottons_leave">测试移去</view>
<view class="buttom_startPage test" id='test2' bind:tap="popup_camera">弹出相机</view> -->
@@ -51,7 +52,7 @@
<view class="title">
<view>知识库</view>
<view class="page_back" bind:tap="exit_lib">
<image src="./static/icons/back.svg" mode="aspectFit" />
<image src="./static/icons/back_black.svg" mode="aspectFit" />
</view>
</view>
<view class="content">
@@ -65,7 +66,7 @@
<!-- <view class="search_button" bind:tap="readInput_lib">搜索</view> -->
</view>
<view wx:for="{{ data_lib }}" wx:for-item="n">
<view class="node" hidden="{{ hidden_lib[n.name.zh] }}" style="background-color: {{ n.riskBgColor }};">
<view class="ingredient_card" hidden="{{ hidden_lib[n.name.zh] }}" style="background-color: {{ n.riskBgColor }};">
<view class="node_content">
<view class="node_name">{{ n.name.zh }}</view>
<view class="node_name node_name_en">{{ n.name.en }}</view>
@@ -102,7 +103,7 @@
<view class="title">
<view>历史记录</view>
<view class="page_back" bind:tap="exit_history">
<image src="./static/icons/back.svg" mode="aspectFit" />
<image src="./static/icons/back_black.svg" mode="aspectFit" />
</view>
</view>
<!-- <view class="date1">{{currentDate}}</view>
@@ -128,7 +129,7 @@
<view class="title">
<view>我的收藏</view>
<view class="page_back" bind:tap="exit_collect">
<image src="./static/icons/back.svg" mode="aspectFit" />
<image src="./static/icons/back_black.svg" mode="aspectFit" />
</view>
</view>
<view class="content">
@@ -151,10 +152,16 @@
<view class="title">
<view>个性化</view>
<view class="page_back" bind:tap="exit_style">
<image src="./static/icons/back.svg" mode="aspectFit" />
<image src="./static/icons/back_black.svg" mode="aspectFit" />
</view>
</view>
<view class="content">
<view wx:for="{{style_lib}}" wx:for-item="n" wx:for-index="index" class="choose_color" bind:tap="set_miaoStyle" data-index="{{index}}">
<view class="node" style="background-color: {{n.style.main}};"></view>
<view class="node" style="background-color: {{n.style.tertiary}};"></view>
<view class="node" style="background-color: {{n.style.secondary}};"></view>
<!-- {{ n.style.main }} -->
</view>
</view>
</view>
@@ -166,7 +173,7 @@
<view class="title">
<view>{{resultTitle}}</view>
<view class="page_back" bind:tap="exit_result">
<image src="./static/icons/back.svg" mode="aspectFit" />
<image src="./static/icons/back_black.svg" mode="aspectFit" />
</view>
<view class="page_star" bind:tap="popup_setRemark" data-index="{{}}" wx:if="{{ data_resultPage.tr=='heart' }}">
<image src="./static/icons/heart.svg" mode="aspectFit" wx:if="{{ data_resultPage.tr=='heart' }}"/>
@@ -201,7 +208,7 @@
<!-- <view class="search_button" bind:tap="readInput_lib">搜索</view> -->
</view>
<view wx:for="{{ data_resultPage.arr }}" wx:for-item="n">
<view class="node" hidden="{{ hidden_result[n.name.zh] }}" style="background-color: {{ n.riskBgColor }};">
<view class="ingredient_card" hidden="{{ hidden_result[n.name.zh] }}" style="background-color: {{ n.riskBgColor }};">
<view class="node_content">
<view class="node_name">{{ n.name.zh }}</view>
<view class="node_name node_name_en">{{ n.name.en }}</view>