准备上传

This commit is contained in:
2025-10-08 19:15:20 +08:00
parent 0aa7d55a23
commit 0e14a5fa1c
193 changed files with 14697 additions and 2461 deletions

View File

@@ -65,7 +65,8 @@
</view>
</scroll-view>
<!-- 保留我的提交页的此处不显示 -->
<!-- 右下角的"+"按钮 -->
<view class="fab" @click="goSubmit"></view>
</view>
</template>
@@ -99,6 +100,27 @@ export default {
onShow() {
const hasToken = (() => { try { return !!uni.getStorageSync('TOKEN') } catch(e){ return false } })()
if (!hasToken) return
// 检查是否需要打开查询Tab并设置查询模式从首页"配件查询"按钮进入)
try {
const configStr = uni.getStorageSync('PRODUCT_SEARCH_CONFIG')
if (configStr) {
const config = JSON.parse(configStr)
// 切换到指定Tab
if (config.openTab) {
this.tab = config.openTab
}
// 设置查询模式
if (config.mode) {
this.query.mode = config.mode
}
// 清除标志,避免下次进入时再次切换
uni.removeStorageSync('PRODUCT_SEARCH_CONFIG')
}
} catch(e) {
console.error('[list] 处理查询配置失败:', e)
}
// 从创建/编辑页返回时,确保刷新最新列表
this.reload()
},
@@ -211,7 +233,10 @@ export default {
} catch (e) {
uni.showToast({ title: '删除失败', icon: 'none' })
}
}
},
goSubmit() {
uni.navigateTo({ url: '/pages/product/submit' })
}
}
}
</script>
@@ -241,7 +266,7 @@ export default {
.card-params .param { color:$uni-text-color-grey; font-size: 22rpx; background:$uni-bg-color-grey; padding: 2rpx 6rpx; border-radius: 8rpx; }
.price { margin-left: 20rpx; color:$uni-color-primary; }
.empty { height: 60vh; display:flex; align-items:center; justify-content:center; color:$uni-text-color-grey; }
.fab { position: fixed; right: 30rpx; bottom: 120rpx; width: 100rpx; height: 100rpx; background:$uni-color-primary; color:#fff; border-radius: 50rpx; text-align:center; line-height: 100rpx; font-size: 48rpx; box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.15); }
.fab { position: fixed; right: 30rpx; bottom: 120rpx; width: 100rpx; height: 100rpx; background: linear-gradient(135deg, #4c8dff, #6ab7ff); color: #fff; border-radius: 50rpx; display: flex; align-items: center; justify-content: center; font-size: 48rpx; box-shadow: 0 20rpx 40rpx rgba(0,0,0,0.2); }
</style>