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

id判断

parent 726eaaa6
...@@ -290,10 +290,6 @@ function toCart() { ...@@ -290,10 +290,6 @@ function toCart() {
page { page {
background: #f3f3f3; background: #f3f3f3;
} }
.container {
position: relative;
left: 0rpx;
}
.top { .top {
width: 750rpx; width: 750rpx;
height: 128rpx; height: 128rpx;
......
...@@ -147,12 +147,12 @@ const onChange = (e) => { ...@@ -147,12 +147,12 @@ const onChange = (e) => {
// console.log(e); // console.log(e);
}; };
const toBuilding = (item) => { const toBuilding = (item) => {
if (item.categoryName === '筑农严选') { if (item.categoryId === '10') {
// 跳转到筑农严选 // 跳转到筑农严选
xma.navigateTo({ xma.navigateTo({
url: `/pages/assistingAgriculture/index/building?categoryId=${item.categoryId}`, url: `/pages/assistingAgriculture/index/building?categoryId=${item.categoryId}`,
}); });
} else if (item.categoryName === '乡村旅居') { } else if (item.categoryId === '8') {
// 跳转到乡村旅居 // 跳转到乡村旅居
xma.navigateTo({ xma.navigateTo({
url: `/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=${item.categoryId}`, 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