|
|
@@ -61,11 +61,8 @@ class _IntellectSearchNoGoodsDialogState extends State<IntellectSearchNoGoodsDia |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/// 点击立即搜索,跳转搜索结果页 |
|
|
|
void openSearchResultPage() { |
|
|
|
// RouterUtil.route(SkipModel.fromJson(_styleModel.moduleList.btn.skipInfo.toJson()), {"keywords": searchText, "type": _styleModel.moduleList.btn.skipInfo.pvd}, context).then((_) { |
|
|
|
// Navigator.pop(context); |
|
|
|
// }); |
|
|
|
/// 点击立即搜索,跳转默认渠道的搜索结果页 |
|
|
|
void openDefaultSearchResultPage() { |
|
|
|
// 这里直接跳搜索结果页,不能跳搜索页。app端直接写死。需要修改记得修改这个地方 |
|
|
|
_styleModel.moduleList.btn.skipInfo.skipIdentifier = 'pub.flutter.search_result'; |
|
|
|
RouterUtil.route(SkipModel.fromJson(_styleModel.moduleList.btn.skipInfo.toJson()), {"keywords": searchText, "type": _styleModel.moduleList.btn.skipInfo.pvd}, context).then((_) { |
|
|
@@ -73,6 +70,15 @@ class _IntellectSearchNoGoodsDialogState extends State<IntellectSearchNoGoodsDia |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/// 点击跳转指定渠道的搜索页面 |
|
|
|
void openTargetSearchResultPage(item) { |
|
|
|
// 这里直接跳搜索结果页,不能跳搜索页。app端直接写死。需要修改记得修改这个地方 |
|
|
|
item.skipInfo.skipIdentifier = 'pub.flutter.search_result'; |
|
|
|
RouterUtil.route(SkipModel.fromJson(item.skipInfo.toJson()), {"keywords": searchText, "type": item.pvd}, context).then((value) { |
|
|
|
Navigator.pop(context); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Scaffold( |
|
|
@@ -174,7 +180,7 @@ class _IntellectSearchNoGoodsDialogState extends State<IntellectSearchNoGoodsDia |
|
|
|
), |
|
|
|
)), |
|
|
|
), |
|
|
|
onTap: () => openSearchResultPage(), |
|
|
|
onTap: () => openDefaultSearchResultPage(), |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
@@ -237,11 +243,7 @@ class _IntellectSearchNoGoodsDialogState extends State<IntellectSearchNoGoodsDia |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
onTap: () { |
|
|
|
RouterUtil.route(SkipModel.fromJson(item.skipInfo.toJson()), {"keywords": searchText, "type": item.pvd}, context).then((value) { |
|
|
|
Navigator.pop(context); |
|
|
|
}); |
|
|
|
}, |
|
|
|
onTap: () => openTargetSearchResultPage(item), |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|