Commit 2f470410 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :加入vip限制
parent a056df77
......@@ -200,6 +200,10 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N
protected void onResume() {
super.onResume();
MobclickAgent.onResume(this);
UserInfo userInfoData = SettingPreference.getUserInfoData();
if (userInfoData != null) {
Constant.Switch.isOpenVip = userInfoData.member;
}
}
......
......@@ -8,6 +8,7 @@ import android.widget.ImageView
import androidx.viewpager.widget.PagerAdapter
import com.bumptech.glide.Glide
import com.zxbw.modulemain.R
import com.zxhl.cms.common.Constant
import com.zxhl.cms.net.model.qy.HomeBannerEntity
import com.zxhl.cms.utils.JumpUtils
import com.zxhl.cms.utils.Utils
......@@ -46,9 +47,17 @@ class HomeBannerAdapter : PagerAdapter {
}
bg.setOnClickListener {
if (data.bannerType.equals("blindBox")) {
JumpUtils.goodsDetailJump(data.boxId)
if (!Constant.Switch.isOpenVip) {
JumpUtils.MemberOrderJump()
}else{
JumpUtils.goodsDetailJump(data.boxId)
}
} else if (data.bannerType.equals("H5")) {
JumpUtils.webJump("免费领红包", data.url)
if (!Constant.Switch.isOpenVip) {
JumpUtils.MemberOrderJump()
}else{
JumpUtils.webJump("免费领红包", data.url)
}
} else {
JumpUtils.FlashSaleJump()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment