|
|
@@ -362,6 +362,7 @@ class _IntellectSearchGoodsDialogState |
|
|
|
void openUrl() async { |
|
|
|
///跳转购买 |
|
|
|
UserInfoModel userInfo = UserInfoNotifier.staitcUserInfo; |
|
|
|
/// 登录 |
|
|
|
if (userInfo?.token == null || userInfo.token == '') { |
|
|
|
print('need login...'); |
|
|
|
RouterUtil.goLogin(context); |
|
|
@@ -378,6 +379,15 @@ class _IntellectSearchGoodsDialogState |
|
|
|
if (Navigator.canPop(context)) { |
|
|
|
Navigator.pop(context); |
|
|
|
} |
|
|
|
|
|
|
|
String tempProvider = widget?.model?.provider ?? 'taobao'; |
|
|
|
|
|
|
|
/// 判断淘宝渠道是否授权 |
|
|
|
if(tempProvider == GlobalConfig.PROVIDER_TB || tempProvider == GlobalConfig.PROVIDER_TM ) { |
|
|
|
bool isAuth = await TaobaoAuth.auth(context); |
|
|
|
if (!isAuth) return; |
|
|
|
} |
|
|
|
|
|
|
|
/// 改成统一跳转 |
|
|
|
await TurnChainUtil.jumpNative( |
|
|
|
context, |
|
|
|