准备上传
This commit is contained in:
@@ -68,6 +68,12 @@
|
||||
</swiper>
|
||||
</view>
|
||||
|
||||
<!-- 配件查询按钮 -->
|
||||
<view class="parts-search-btn" @click="onPartsSearchTap" hover-class="parts-search-btn-active" hover-stay-time="80">
|
||||
<image src="/static/icons/product.png" class="parts-search-icon" mode="aspectFit"></image>
|
||||
<text class="parts-search-text">配件查询</text>
|
||||
</view>
|
||||
|
||||
<!-- 分割标题:产品与功能 -->
|
||||
<view class="section-title">
|
||||
<text class="section-text">常用功能</text>
|
||||
@@ -268,6 +274,20 @@
|
||||
})
|
||||
},
|
||||
|
||||
onPartsSearchTap() {
|
||||
// 设置标志,让货品列表页打开时自动切换到"查询"Tab并选择"按模板参数查询"
|
||||
try {
|
||||
uni.setStorageSync('PRODUCT_SEARCH_CONFIG', JSON.stringify({
|
||||
openTab: 'search',
|
||||
mode: 'template'
|
||||
}))
|
||||
} catch(e) {
|
||||
console.error('[index] 设置存储标志失败:', e)
|
||||
}
|
||||
// 跳转到货品列表页(tabBar页面使用switchTab)
|
||||
uni.switchTab({ url: '/pages/product/list' })
|
||||
},
|
||||
|
||||
onIconError(item) {
|
||||
item.img = ''
|
||||
}
|
||||
@@ -324,6 +344,34 @@ page {
|
||||
.notice-text { color: $uni-text-color; font-size: 28rpx; line-height: 36rpx; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.notice-tag { color: $uni-color-primary; font-size: 22rpx; padding: 4rpx 10rpx; border-radius: 999rpx; background: rgba(76,141,255,0.18); }
|
||||
|
||||
/* 配件查询按钮 */
|
||||
.parts-search-btn {
|
||||
margin: 0 24rpx 20rpx;
|
||||
padding: 24rpx 32rpx;
|
||||
border-radius: 20rpx;
|
||||
background: linear-gradient(135deg, #4C8DFF 0%, #3d73e6 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16rpx;
|
||||
box-shadow: 0 8rpx 20rpx rgba(76,141,255,0.25);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.parts-search-btn-active {
|
||||
opacity: 0.85;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
.parts-search-icon {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
.parts-search-text {
|
||||
color: #fff;
|
||||
font-size: 34rpx;
|
||||
font-weight: 800;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
/* 分割标题 */
|
||||
.section-title { display: flex; align-items: center; gap: 16rpx; padding: 10rpx 28rpx 0; flex: 0 0 auto; }
|
||||
|
||||
Reference in New Issue
Block a user