|
@@ -178,7 +178,7 @@ import top.keepempty.sph.library.SphResultCallback;
|
|
|
* Created by cjx on 2020-08-21
|
|
|
* 说明:
|
|
|
*/
|
|
|
-public class IceCreamFragment extends BaseAutoExitFragment implements View.OnClickListener, Animation.AnimationListener {
|
|
|
+public class IceCreamFragment extends BaseAutoExitFragment implements View.OnClickListener, Animation.AnimationListener{
|
|
|
|
|
|
// 去除末尾的0
|
|
|
// private DecimalFormat decimalFormat = new DecimalFormat("###################.###########");
|
|
@@ -823,6 +823,7 @@ public class IceCreamFragment extends BaseAutoExitFragment implements View.OnCli
|
|
|
return; // 直接返回,不继续执行
|
|
|
} else {
|
|
|
if (PreventSpeedClickUtil.isFastClick()) {
|
|
|
+ showLoading();
|
|
|
getDiscountCodeOverseas(arrayCode[shoppingNumber], id);
|
|
|
} else {
|
|
|
}
|
|
@@ -1543,6 +1544,7 @@ public class IceCreamFragment extends BaseAutoExitFragment implements View.OnCli
|
|
|
Log.d(TAG, "setPaperDriverListener event: " + messageEvent);
|
|
|
switch (messageEvent.getName()) {
|
|
|
case "clearMenu":
|
|
|
+ resetFinishDelay();
|
|
|
orderHelper.clearOrder();
|
|
|
updateShopCart(-1, -1);
|
|
|
showShopCartView(false);
|
|
@@ -2629,6 +2631,7 @@ public class IceCreamFragment extends BaseAutoExitFragment implements View.OnCli
|
|
|
new HttpResultObserver<String>(mView, getContext()) {
|
|
|
public void onNext(String type) {
|
|
|
Log.d(TAG, "type onNext: " + type);
|
|
|
+ dismissLoading();
|
|
|
switch (type) {
|
|
|
case "0":
|
|
|
if (R.id.btn_discounts_code == id) {
|
|
@@ -2636,6 +2639,7 @@ public class IceCreamFragment extends BaseAutoExitFragment implements View.OnCli
|
|
|
}
|
|
|
//成功
|
|
|
getConfirmCodeOverseas(code, id);
|
|
|
+ Log.d(TAG, "onNext: 0折优惠码");
|
|
|
break;
|
|
|
case "1":
|
|
|
//不存在
|