Sfoglia il codice sorgente

1.更新弹窗打开淘宝详情问题

tags/0.0.15+4
“yanghuaxuan” 3 anni fa
parent
commit
fcd230984d
3 ha cambiato i file con 12 aggiunte e 6 eliminazioni
  1. +1
    -1
      example/android/app/build.gradle
  2. +1
    -1
      example/pubspec.yaml
  3. +10
    -4
      lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart

+ 1
- 1
example/android/app/build.gradle Vedi File

@@ -54,7 +54,7 @@ android {
ndk {
//选择要添加的对应cpu类型的.so库。
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a'
//abiFilters 'armeabi-v7a','x86_64'
// abiFilters 'armeabi-v7a','x86_64'
}
}



+ 1
- 1
example/pubspec.yaml Vedi File

@@ -36,7 +36,7 @@ dev_dependencies:
path: ../../zhiying_acquisition
zhiying_shopping_mall:
git:
ref: 0.0.5
ref: 0.0.6
url: 'http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_shopping_mall.git'
zhiying_credit_card:
path: ../../zhiying_credit_card


+ 10
- 4
lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart Vedi File

@@ -375,17 +375,23 @@ class _IntellectSearchGoodsDialogState
widget?.model?.couponUrl=widget?.model?.couponUrl.replaceAll("\\", "");
print("链接" + widget?.model?.couponUrl ?? "");
Logger.log('智能弹窗有商品情况跳转数据 = ${widget?.model?.toJson()}');
///关闭弹窗
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 (Navigator.canPop(context)) {
Navigator.pop(context);
}
if (!isAuth) return;
}else{
///关闭弹窗
if (Navigator.canPop(context)) {
Navigator.pop(context);
}
}

/// 改成统一跳转


Caricamento…
Annulla
Salva