詹子聪 5 роки тому
батько
коміт
27bd846d7e

+ 3 - 2
app/src/main/java/com/itant/shibei/common/ConstantUrl.java

@@ -20,9 +20,10 @@ public interface ConstantUrl {
     String URL_JD_TEMPLATE_COMPUTER = "https://diy.m.jd.com/?utm_user=plusmember&ad_od=share&utm_source=androidapp&utm_medium=appshare&utm_campaign=t_335139774&utm_term=CopyURL";
 
     /**
-     * 美团优惠
+     * 美团优惠1
      */
-    String URL_MEITUAN_BONUS = "http://p.yiqifa.com/l?l=Cl7SYKqBR9et6lMdUJqSpNM2W9sWgQ446wbQNcUJWKe6pBU1C9qQYcDm696WNsUdUtqQN9U25KV6KlB7Y7yS5cy2W9sWgEM1UmBQgPUVNPAWgpMEUQ4SM5e7KOosR96y!5F9UnsuUZgLRlu_fOwdY5PAUZPbY8eEYO7_3QULfOb9Mpo8YJoECSo8MJMw6O4w6NUy6O3_6lKSWNK_C5ewMQzdCZgVYj--";
+    String URL_MEITUAN_BONUS_1 = "https://tb.jiuxinban.com/6Fq9k9";
+    String URL_MEITUAN_BONUS_2 = "https://tb.jiuxinban.com/6Fq9mM";
 
     /**
      * 二次元

+ 24 - 14
app/src/main/java/com/itant/shibei/tool/DataTool.java

@@ -20,33 +20,43 @@ public class DataTool {
     }
 
     public static List<TemplateBean> getTemplateList(int functionTye) {
-        TemplateBean templateBean = new TemplateBean();
 
+        List<TemplateBean> templateBeanList = new ArrayList<>();
         switch (functionTye) {
             case FunctionFragment.TEMPLATE_TYPE_BONUS:
-                templateBean.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_WALLPAPER);
-                templateBean.setTemplateName("美团优惠券");
-                templateBean.setJumpUrl(ConstantUrl.URL_MEITUAN_BONUS);
-                templateBean.setActionEnable(true);
+                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);
+
+                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);
                 break;
             case FunctionFragment.TEMPLATE_TYPE_TEMPLATE:
-                templateBean.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_ECY);
-                templateBean.setTemplateName("DIY装机");
-                templateBean.setJumpUrl(ConstantUrl.URL_JD_TEMPLATE_COMPUTER);
-                templateBean.setActionEnable(true);
+                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);
                 break;
 
             case FunctionFragment.TEMPLATE_TYPE_GAME:
-                templateBean.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_ECY);
-                templateBean.setTemplateName("欢乐猜猜");
-                templateBean.setActionEnable(false);
+                TemplateBean game = new TemplateBean();
+                game.setCoverUrl(ConstantUrl.URL_RANDOM_PHOTO_ECY);
+                game.setTemplateName("欢乐猜猜");
+                game.setActionEnable(false);
                 break;
             default:
                 break;
         }
 
-        List<TemplateBean> templateBeanList = new ArrayList<>();
-        templateBeanList.add(templateBean);
         return templateBeanList;
     }