From 06a80d5c4b3a971cdc1ca3d91717ec3f6e03a443 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 17 五月 2021 18:59:39 +0800 Subject: [PATCH] 特价完善 --- app/src/main/java/com/tejia/lijin/app/ui/mine/OrderAdapter33.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/tejia/lijin/app/ui/mine/OrderAdapter33.java b/app/src/main/java/com/tejia/lijin/app/ui/mine/OrderAdapter33.java index a34551a..cb06bba 100644 --- a/app/src/main/java/com/tejia/lijin/app/ui/mine/OrderAdapter33.java +++ b/app/src/main/java/com/tejia/lijin/app/ui/mine/OrderAdapter33.java @@ -34,6 +34,9 @@ import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.assist.ImageScaleType; import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer; +import com.tejia.lijin.app.ShoppingApplication; +import com.tejia.lijin.app.ui.recommend.GoodsDetailActivity; +import com.tejia.lijin.app.util.user.UserUtil; import com.wpc.library.recyclerviewhelper.DividerItemDecoration; import com.wpc.library.util.SystemCommon; import com.wpc.library.util.common.DimenUtils; @@ -243,13 +246,14 @@ @Override public void onClick(View v) { UserCustomEvent.userOrderGoodsdetail(mContext); - Intent intent = GoodsDetailJumpUtil.getGoodsDetailIntent(mContext, oInfo.getGoodsType()); - if (intent == null) - return; if (StringUtils.isEmpty(oInfo.getGoodsId())||"0".equalsIgnoreCase(oInfo.getGoodsId())) { return; } + + Intent intent= new Intent(mContext, GoodsDetailActivity.class); + intent.putExtra("goodsId", oInfo.getGoodsId()); + intent.putExtra("goodsType", oInfo.getGoodsType()); intent.putExtra("title", oInfo.getTitle()); intent.putExtra("id", oInfo.getGoodsId()); @@ -532,9 +536,7 @@ 鍟嗗搧璇︽儏鍏嶅崟鍒稿脊妗嗘帴鍙� */ private void getGoodsCouponList(final OrderFilter orderFilter) { - String uid = mContext.getSharedPreferences("user", MODE_PRIVATE) - .getString("uid", ""); - ShoppingApi.getOrderCouponList(mContext, uid, orderFilter.getOrderNo(), new BasicTextHttpResponseHandler() { + ShoppingApi.getOrderCouponList(mContext, UserUtil.getUid(ShoppingApplication.application), orderFilter.getOrderNo(), new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { if (jsonObject.optString("code").equalsIgnoreCase("0")) { @@ -622,8 +624,7 @@ private void useRewardTicket(FreeSingleTicket info, final OrderFilter orderFilter) { - String uid = mContext.getSharedPreferences("user", MODE_PRIVATE).getString("uid", ""); - ShoppingApi.useRewardTicket(mContext, uid, info.getId(), orderFilter.getOrderNo(), + ShoppingApi.useRewardTicket(mContext, UserUtil.getUid(ShoppingApplication.application), info.getId(), orderFilter.getOrderNo(), orderFilter.getSourceType(), new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { -- Gitblit v1.8.0