院校详情index传值问题

This commit is contained in:
A1300399510 2025-01-02 17:44:21 +08:00
parent fcbf8619e8
commit 44d6e5f4c0
3 changed files with 6 additions and 4 deletions

View File

@ -212,7 +212,7 @@ Page({
if (disciplineid > 0) screenList = listAll.filter(item => item.disciplineid === disciplineid);
else if (university) screenList = listAll.filter(item => item.department === university);
else screenList = this.listAll
if (sort == 0) {
screenList.sort((a, b) => {
// a 排在后面
@ -334,6 +334,7 @@ Page({
y: data.top + data.height / 2 - this.rpx15,
}
})
});
}
@ -642,7 +643,7 @@ Page({
})
return {
title: "【寄托港校项目库】- " + this.data.info.name,
title: "【寄托港校项目库】- " + this.data.info.name,
}
},
})

View File

@ -54,7 +54,7 @@
<view class="name one-line-display">{{ item.name_zh }}</view>
<view class="english one-line-display">{{ item.name_en }}</view>
</view>
<view wx:if="{{ item.contraststatus == 0 }}" class="join flexflex" catch:tap="handleClick" data-index="{{ item.random }}" data-type="hot" data-random="{{ item.random }}" data-id="{{ item.id }}" data-index="{{ index }}" data-i="{{ i }}" data-status="{{ item.contraststatus }}">
<view wx:if="{{ item.contraststatus == 0 }}" class="join flexflex" catch:tap="handleClick" data-type="hot" data-random="{{ item.random }}" data-id="{{ item.id }}" data-index="{{ index }}" data-i="{{ i }}" data-status="{{ item.contraststatus }}">
<view class="add flexcenter" id="add{{ item.random }}">
<image class="icon" src="https://app.gter.net/image/miniApp/offer/plus-icon.svg" mode="widthFix"></image>
</view>

View File

@ -17,5 +17,6 @@
}
]
}
}
},
"libVersion": "development"
}