update 更新商品搜索页

This commit is contained in:
qijq 2025-07-28 09:15:38 +08:00
parent 365358c2cd
commit adbe417bd2
4 changed files with 1248 additions and 16 deletions

View File

@ -206,6 +206,12 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/warehouse/manage/productListSearch",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/warehouse/manage/brandList", "path": "pages/warehouse/manage/brandList",
"style": { "style": {

View File

@ -45,7 +45,13 @@
</view> </view>
</view> </view>
<view class="shop_status" :style="{background: shopStatus==1 ? '#D8F1EC' : shopStatus==2 ? '#ffecf2': '#eee'}"> <view
class="shop_status"
:style="{
background:
shopStatus == 1 ? '#D8F1EC' : shopStatus == 2 ? '#ffecf2' : '#eee',
}"
>
<u-cell-group :border="false"> <u-cell-group :border="false">
<u-cell <u-cell
@click="handleShowTime" @click="handleShowTime"
@ -54,7 +60,7 @@
isLink isLink
icon="hourglass-half-fill" icon="hourglass-half-fill"
title="营业中" title="营业中"
v-if="shopStatus==1" v-if="shopStatus == 1"
></u-cell> ></u-cell>
<u-cell <u-cell
iconStyle="marginRight:6px; color: #fe411b" iconStyle="marginRight:6px; color: #fe411b"
@ -63,7 +69,7 @@
url="/pages/my/shopQRcode/shopQRcode" url="/pages/my/shopQRcode/shopQRcode"
icon="hourglass-half-fill" icon="hourglass-half-fill"
title="已停业" title="已停业"
v-if="shopStatus==2" v-if="shopStatus == 2"
></u-cell> ></u-cell>
<u-cell <u-cell
iconStyle="marginRight:6px; color: #666" iconStyle="marginRight:6px; color: #666"
@ -72,7 +78,7 @@
url="/pages/my/shopQRcode/shopQRcode" url="/pages/my/shopQRcode/shopQRcode"
icon="hourglass-half-fill" icon="hourglass-half-fill"
title="已打烊" title="已打烊"
v-if="shopStatus==3" v-if="shopStatus == 3"
></u-cell> ></u-cell>
</u-cell-group> </u-cell-group>
</view> </view>
@ -167,7 +173,7 @@
</u-cell-group> </u-cell-group>
</view> </view>
<view class="btn_logout">退出登录</view> <view class="btn_logout" @click="outLogin">退出登录</view>
<tpfTimeRange <tpfTimeRange
ref="time" ref="time"
@ -228,7 +234,7 @@ export default {
store_opening_hours: "00:00", store_opening_hours: "00:00",
store_close_hours: "00:00", store_close_hours: "00:00",
}, },
} },
}; };
}, },
@ -277,6 +283,9 @@ export default {
// url: "/pages/my/shopInfo", // url: "/pages/my/shopInfo",
// }); // });
}, },
outLogin() {
this.$store.dispatch("user/LoginOut");
},
}, },
}; };
</script> </script>
@ -342,8 +351,7 @@ export default {
text-align: center; text-align: center;
color: #fff; color: #fff;
.kf_item {
.kf_item{
position: absolute; position: absolute;
right: 48rpx; right: 48rpx;
top: 24rpx; top: 24rpx;
@ -416,7 +424,7 @@ export default {
} }
} }
.shop_status{ .shop_status {
font-size: 28rpx; font-size: 28rpx;
} }

View File

@ -24,6 +24,8 @@
placeholder="搜索你想要的商品" placeholder="搜索你想要的商品"
:showAction="false" :showAction="false"
bgColor="#fff" bgColor="#fff"
:disabled="true"
@click="skipuSearch"
></u-search> ></u-search>
</block> </block>
</navBar> </navBar>
@ -763,6 +765,13 @@ export default {
this.showRightPopup = true; this.showRightPopup = true;
this.isAdd = false; this.isAdd = false;
}, },
skipuSearch() {
uni.hideKeyboard();
uni.navigateTo({
url: "/pages/warehouse/manage/productListSearch",
});
},
}, },
}; };
</script> </script>

File diff suppressed because it is too large Load Diff