modify:优化
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
<!-- 价格列表 -->
|
||||
<view class="price-list">
|
||||
<view class="list-header">
|
||||
<text wx:if="{{priceList.length > 0}}">共找到 {{total}} 条结果</text>
|
||||
<text wx:if="{{priceList.length > 0}}">共找到 {{total}} 条结果,已加载 {{priceList.length}} 条</text>
|
||||
<text wx:else>暂无数据</text>
|
||||
</view>
|
||||
|
||||
@@ -126,9 +126,27 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 加载更多状态 -->
|
||||
<view class="load-more" wx:if="{{priceList.length > 0}}">
|
||||
<!-- 加载中 -->
|
||||
<view class="loading-more" wx:if="{{loadingMore}}">
|
||||
<t-loading theme="circular" size="40rpx" text="加载中..."></t-loading>
|
||||
</view>
|
||||
|
||||
<!-- 没有更多数据 -->
|
||||
<view class="no-more" wx:elif="{{!hasMore}}">
|
||||
<text>已加载全部数据</text>
|
||||
</view>
|
||||
|
||||
<!-- 继续滚动提示 -->
|
||||
<view class="scroll-hint" wx:else>
|
||||
<text>继续滚动加载更多</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 空状态 -->
|
||||
<t-empty
|
||||
wx:if="{{priceList.length === 0}}"
|
||||
wx:if="{{priceList.length === 0 && searched}}"
|
||||
icon="search"
|
||||
description="未找到相关价格数据"
|
||||
tips="请尝试调整查询条件">
|
||||
@@ -207,6 +225,105 @@
|
||||
bind:confirm="onDateConfirm"
|
||||
bind:cancel="onDatePickerCancel" />
|
||||
|
||||
<!-- 价格详情弹窗 -->
|
||||
<view class="detail-modal" wx:if="{{detailVisible}}" bindtap="onCloseDetail">
|
||||
<view class="detail-content" catchtap="stopPropagation">
|
||||
<!-- 头部 -->
|
||||
<view class="detail-header">
|
||||
<view class="detail-title">价格详情</view>
|
||||
<view class="detail-close" bindtap="onCloseDetail">
|
||||
<text class="close-icon">×</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 主要价格信息 -->
|
||||
<view class="detail-main">
|
||||
<view class="detail-price-section">
|
||||
<view class="price-label">挂牌价</view>
|
||||
<view class="price-value-large">
|
||||
<text class="price-symbol">¥</text>
|
||||
<text class="price-number">{{detailItem.hang_price || detailItem.make_price || '-'}}</text>
|
||||
</view>
|
||||
<view class="price-unit">元/吨</view>
|
||||
</view>
|
||||
|
||||
<!-- 钢厂价(如果有) -->
|
||||
<view class="detail-factory-price" wx:if="{{detailItem.make_price && detailItem.hang_price}}">
|
||||
<view class="factory-row">
|
||||
<text class="factory-label">钢厂价</text>
|
||||
<text class="factory-value">¥{{detailItem.make_price}}</text>
|
||||
</view>
|
||||
<view class="factory-row" wx:if="{{detailItem.make_price_updw}}">
|
||||
<text class="factory-label">涨跌幅</text>
|
||||
<text class="trend-tag {{detailItem.make_price_updw.includes('+') ? 'trend-up' : detailItem.make_price_updw.includes('-') ? 'trend-down' : 'trend-flat'}}">
|
||||
{{detailItem.make_price_updw}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 详细信息列表 -->
|
||||
<view class="detail-info">
|
||||
<!-- 基本信息 -->
|
||||
<view class="info-section">
|
||||
<view class="section-title">基本信息</view>
|
||||
<view class="info-grid">
|
||||
<view class="info-item">
|
||||
<text class="info-label">地区</text>
|
||||
<text class="info-value">{{detailItem.price_region || '-'}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">品名</text>
|
||||
<text class="info-value">{{detailItem.partsname_name || '-'}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">材质</text>
|
||||
<text class="info-value highlight">{{detailItem.goods_material || '-'}}</text>
|
||||
</view>
|
||||
<view class="info-item" wx:if="{{detailItem.goods_spec}}">
|
||||
<text class="info-label">规格</text>
|
||||
<text class="info-value">{{detailItem.goods_spec}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 其他信息 -->
|
||||
<view class="info-section">
|
||||
<view class="section-title">其他信息</view>
|
||||
<view class="info-list">
|
||||
<view class="info-row">
|
||||
<text class="row-label">价格日期</text>
|
||||
<text class="row-value">{{detailItem.price_date_str || detailItem.price_date || '-'}}</text>
|
||||
</view>
|
||||
<view class="info-row" wx:if="{{detailItem.price_source}}">
|
||||
<text class="row-label">数据来源</text>
|
||||
<text class="row-value tag">{{detailItem.price_source}}</text>
|
||||
</view>
|
||||
<view class="info-row" wx:if="{{detailItem.productarea_name}}">
|
||||
<text class="row-label">产地钢厂</text>
|
||||
<text class="row-value">{{detailItem.productarea_name}}</text>
|
||||
</view>
|
||||
<view class="info-row" wx:if="{{detailItem.pntree_name}}">
|
||||
<text class="row-label">分类</text>
|
||||
<text class="row-value">{{detailItem.pntree_name}}</text>
|
||||
</view>
|
||||
<view class="info-row" wx:if="{{detailItem.operator_name}}">
|
||||
<text class="row-label">操作员</text>
|
||||
<text class="row-value">{{detailItem.operator_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<view class="detail-footer">
|
||||
<t-button theme="default" size="large" variant="outline" bindtap="onCloseDetail" block>
|
||||
关闭
|
||||
</t-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- TDesign TabBar -->
|
||||
<t-tab-bar value="0" theme="normal" bindchange="onTabChange">
|
||||
<t-tab-bar-item value="0" icon="search" label="价格查询" />
|
||||
|
||||
Reference in New Issue
Block a user