|
@@ -1,7 +1,7 @@
|
|
|
package com.itant.shibei.tool;
|
|
package com.itant.shibei.tool;
|
|
|
|
|
|
|
|
|
|
+import com.itant.shibei.bean.CouponBean;
|
|
|
import com.itant.shibei.bean.GoodsBean;
|
|
import com.itant.shibei.bean.GoodsBean;
|
|
|
-import com.itant.shibei.bean.TemplateBean;
|
|
|
|
|
import com.itant.shibei.common.ConstantUrl;
|
|
import com.itant.shibei.common.ConstantUrl;
|
|
|
import com.itant.shibei.ui.function.FunctionFragment;
|
|
import com.itant.shibei.ui.function.FunctionFragment;
|
|
|
|
|
|
|
@@ -17,45 +17,48 @@ public class DataTool {
|
|
|
private DataTool() {
|
|
private DataTool() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static List<TemplateBean> getTemplateList(int functionTye) {
|
|
|
|
|
|
|
+ public static List<CouponBean> getTemplateList(int functionTye) {
|
|
|
|
|
|
|
|
- List<TemplateBean> templateBeanList = new ArrayList<>();
|
|
|
|
|
|
|
+ List<CouponBean> couponBeanList = new ArrayList<>();
|
|
|
switch (functionTye) {
|
|
switch (functionTye) {
|
|
|
case FunctionFragment.TEMPLATE_TYPE_BONUS:
|
|
case FunctionFragment.TEMPLATE_TYPE_BONUS:
|
|
|
- TemplateBean meituan1 = new TemplateBean();
|
|
|
|
|
- meituan1.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_WALLPAPER);
|
|
|
|
|
- meituan1.setTemplateName("美团优惠券最多可领48元大礼包");
|
|
|
|
|
- meituan1.setJumpUrl(ConstantUrl.URL_MEITUAN_BONUS_1);
|
|
|
|
|
- meituan1.setActionEnable(true);
|
|
|
|
|
- templateBeanList.add(meituan1);
|
|
|
|
|
|
|
+ CouponBean meituan1 = new CouponBean();
|
|
|
|
|
+ meituan1.coverUrl = ConstantUrl.URL_RANDOM_PHOTO_WALLPAPER;
|
|
|
|
|
+ meituan1.couponName = "美团优惠券最多可领48元大礼包";
|
|
|
|
|
+ meituan1.jumpUrl = ConstantUrl.URL_MEITUAN_BONUS_1;
|
|
|
|
|
+ meituan1.actionEnable = true;
|
|
|
|
|
+ meituan1.isLocal = true;
|
|
|
|
|
+ couponBeanList.add(meituan1);
|
|
|
|
|
|
|
|
- TemplateBean meituan2 = new TemplateBean();
|
|
|
|
|
- meituan2.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_WALLPAPER);
|
|
|
|
|
- meituan2.setTemplateName("美团优惠券至少2元起(新老用户都可领)");
|
|
|
|
|
- meituan2.setJumpUrl(ConstantUrl.URL_MEITUAN_BONUS_2);
|
|
|
|
|
- meituan2.setActionEnable(true);
|
|
|
|
|
- templateBeanList.add(meituan2);
|
|
|
|
|
|
|
+ CouponBean meituan2 = new CouponBean();
|
|
|
|
|
+ meituan2.coverUrl = ConstantUrl.URL_RANDOM_PHOTO_WALLPAPER;
|
|
|
|
|
+ meituan2.couponName = "美团优惠券至少2元起(新老用户都可领)";
|
|
|
|
|
+ meituan2.jumpUrl = ConstantUrl.URL_MEITUAN_BONUS_2;
|
|
|
|
|
+ meituan2.actionEnable = true;
|
|
|
|
|
+ meituan2.isLocal = true;
|
|
|
|
|
+ couponBeanList.add(meituan2);
|
|
|
break;
|
|
break;
|
|
|
case FunctionFragment.TEMPLATE_TYPE_TEMPLATE:
|
|
case FunctionFragment.TEMPLATE_TYPE_TEMPLATE:
|
|
|
- TemplateBean template = new TemplateBean();
|
|
|
|
|
- template.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_ECY);
|
|
|
|
|
- template.setTemplateName("DIY装机");
|
|
|
|
|
- template.setJumpUrl(ConstantUrl.URL_JD_TEMPLATE_COMPUTER);
|
|
|
|
|
- template.setActionEnable(true);
|
|
|
|
|
- templateBeanList.add(template);
|
|
|
|
|
|
|
+ CouponBean template = new CouponBean();
|
|
|
|
|
+ template.coverUrl = ConstantUrl.URL_RANDOM_PHOTO_ECY;
|
|
|
|
|
+ template.couponName = "DIY装机";
|
|
|
|
|
+ template.jumpUrl = ConstantUrl.URL_JD_TEMPLATE_COMPUTER;
|
|
|
|
|
+ template.actionEnable = true;
|
|
|
|
|
+ template.isLocal = true;
|
|
|
|
|
+ couponBeanList.add(template);
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case FunctionFragment.TEMPLATE_TYPE_GAME:
|
|
case FunctionFragment.TEMPLATE_TYPE_GAME:
|
|
|
- TemplateBean game = new TemplateBean();
|
|
|
|
|
- game.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_ECY);
|
|
|
|
|
- game.setTemplateName("欢乐猜猜");
|
|
|
|
|
- game.setActionEnable(false);
|
|
|
|
|
|
|
+// CouponBean game = new CouponBean();
|
|
|
|
|
+// game.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_ECY);
|
|
|
|
|
+// game.setTemplateName("欢乐猜猜");
|
|
|
|
|
+// game.setActionEnable(false);
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return templateBeanList;
|
|
|
|
|
|
|
+ return couponBeanList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static List<GoodsBean> getGoodsList() {
|
|
public static List<GoodsBean> getGoodsList() {
|