Commit 8cbba9f9 authored by 张娇(东信)'s avatar 张娇(东信)

id判断

parent 726eaaa6
......@@ -290,10 +290,6 @@ function toCart() {
page {
background: #f3f3f3;
}
.container {
position: relative;
left: 0rpx;
}
.top {
width: 750rpx;
height: 128rpx;
......
......@@ -147,12 +147,12 @@ const onChange = (e) => {
// console.log(e);
};
const toBuilding = (item) => {
if (item.categoryName === '筑农严选') {
if (item.categoryId === '10') {
// 跳转到筑农严选
xma.navigateTo({
url: `/pages/assistingAgriculture/index/building?categoryId=${item.categoryId}`,
});
} else if (item.categoryName === '乡村旅居') {
} else if (item.categoryId === '8') {
// 跳转到乡村旅居
xma.navigateTo({
url: `/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=${item.categoryId}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment