Просмотр исходного кода

Merge branch 'sheep_develop' of http://10.8.230.114:3000/xmy_android/small_sheep_android into sheep_develop

zengjiebin лет назад: 7
Родитель
Сommit
ab9636233c

+ 57 - 7
app/src/main/java/com/sheep/gamegroup/model/api/ApiService.java

@@ -60,19 +60,19 @@ public interface ApiService {
     Observable<BaseMessage> changePassword(@Body JSONObject jsonObject);
     Observable<BaseMessage> changePassword(@Body JSONObject jsonObject);
 
 
     /**
     /**
-     * @param page          页数
-     * @param per_page      每页显示条数
-     * @param user_id       integer (query) 用户ID
-     * @param type          integer (query) 1:通知 2:活动 3:模块上线 4:任务上线 5:金额入账 6:任务失败 默认0:全部
+     * @param page     页数
+     * @param per_page 每页显示条数
+     * @param user_id  integer (query) 用户ID
+     * @param type     integer (query) 1:通知 2:活动 3:模块上线 4:任务上线 5:金额入账 6:任务失败 默认0:全部
      * @return 消息中心列表
      * @return 消息中心列表
      */
      */
     @GET(ApiKey.system_notification)
     @GET(ApiKey.system_notification)
     Observable<BaseMessage> getMessageCenter(@Query("page") int page, @Query("per_page") int per_page, @Query("user_id") String user_id, @SystemNotification.TYPE @Query("type") int type);
     Observable<BaseMessage> getMessageCenter(@Query("page") int page, @Query("per_page") int per_page, @Query("user_id") String user_id, @SystemNotification.TYPE @Query("type") int type);
 
 
     /**
     /**
-     * @param page          页数
-     * @param per_page      每页显示条数
-     * @param user_id       integer (query) 用户ID
+     * @param page     页数
+     * @param per_page 每页显示条数
+     * @param user_id  integer (query) 用户ID
      * @return 回复互动列表
      * @return 回复互动列表
      */
      */
     @GET("app/message/system_message/")
     @GET("app/message/system_message/")
@@ -373,6 +373,7 @@ public interface ApiService {
     @GET("app/accepted_task/status")
     @GET("app/accepted_task/status")
     Observable<BaseMessage> taskStatus(@Query("id") int id, @Query("screenshots") String screenshots,
     Observable<BaseMessage> taskStatus(@Query("id") int id, @Query("screenshots") String screenshots,
                                        @Query("remark") String remark, @Query("package_name") String package_name, @Query("status") String status, @Query("device") String device);
                                        @Query("remark") String remark, @Query("package_name") String package_name, @Query("status") String status, @Query("device") String device);
+
     /**
     /**
      * 修改任务进度
      * 修改任务进度
      */
      */
@@ -1174,6 +1175,7 @@ public interface ApiService {
      */
      */
     @POST("app/game_user/focus_user")
     @POST("app/game_user/focus_user")
     Observable<BaseMessage> postGameUserFocusUser(@Query("focus_user_id") int focus_user_id);
     Observable<BaseMessage> postGameUserFocusUser(@Query("focus_user_id") int focus_user_id);
+
     /**
     /**
      * 热门用户列表
      * 热门用户列表
      * page * integer (query) 页码
      * page * integer (query) 页码
@@ -1181,6 +1183,7 @@ public interface ApiService {
      */
      */
     @GET(ApiKey.getGameUserUserFocusHotUser)
     @GET(ApiKey.getGameUserUserFocusHotUser)
     Observable<BaseMessage> getGameUserUserFocusHotUser(@Query("page") int page, @Query("per_page") int per_page);
     Observable<BaseMessage> getGameUserUserFocusHotUser(@Query("page") int page, @Query("per_page") int per_page);
+
     /**
     /**
      * 关注的用户列表
      * 关注的用户列表
      * page * integer (query) 页码
      * page * integer (query) 页码
@@ -1188,6 +1191,7 @@ public interface ApiService {
      */
      */
     @GET(ApiKey.getGameUserUserFocusList)
     @GET(ApiKey.getGameUserUserFocusList)
     Observable<BaseMessage> getGameUserUserFocusList(@Query("page") int page, @Query("per_page") int per_page);
     Observable<BaseMessage> getGameUserUserFocusList(@Query("page") int page, @Query("per_page") int per_page);
+
     /**
     /**
      * 关注的游戏列表
      * 关注的游戏列表
      * page * integer (query) 页码
      * page * integer (query) 页码
@@ -1384,21 +1388,25 @@ public interface ApiService {
      */
      */
     @GET("app/user_sign/signs")
     @GET("app/user_sign/signs")
     Observable<BaseMessage> getUserSignSigns();
     Observable<BaseMessage> getUserSignSigns();
+
     /**
     /**
      * 获取下次刮奖金额
      * 获取下次刮奖金额
      */
      */
     @GET("app/user_sign/scratch_amount")
     @GET("app/user_sign/scratch_amount")
     Observable<BaseMessage> getUserSignScratch_amount();
     Observable<BaseMessage> getUserSignScratch_amount();
+
     /**
     /**
      * 获取最后一次刮奖结果
      * 获取最后一次刮奖结果
      */
      */
     @GET("app/user_sign/last_scratch")
     @GET("app/user_sign/last_scratch")
     Observable<BaseMessage> getUserSignLastScratch();
     Observable<BaseMessage> getUserSignLastScratch();
+
     /**
     /**
      * 每日签到
      * 每日签到
      */
      */
     @POST("app/user_sign/sign_in")
     @POST("app/user_sign/sign_in")
     Observable<BaseMessage> postUserSignSignIn();
     Observable<BaseMessage> postUserSignSignIn();
+
     /**
     /**
      * 分享
      * 分享
      */
      */
@@ -1435,6 +1443,7 @@ public interface ApiService {
      */
      */
     @POST("app/top_search_statistics/click_top_search")
     @POST("app/top_search_statistics/click_top_search")
     Observable<BaseMessage> postTopSearchStatisticsClickTopSearch(@Query("link_id") int link_id, @IHomePageSearch.LINK_TYPE @Query("link_type") int link_type);
     Observable<BaseMessage> postTopSearchStatisticsClickTopSearch(@Query("link_id") int link_id, @IHomePageSearch.LINK_TYPE @Query("link_type") int link_type);
+
     /**
     /**
      * 根据任务名(游戏名)模糊搜索
      * 根据任务名(游戏名)模糊搜索
      * search_content * string (query) 任务名(游戏名)
      * search_content * string (query) 任务名(游戏名)
@@ -1485,6 +1494,7 @@ public interface ApiService {
      */
      */
     @POST("app/user/add_user_footprint")
     @POST("app/user/add_user_footprint")
     Observable<BaseMessage> postUserAddUserFootPrint(@Body UserFootprint UserFootprint);
     Observable<BaseMessage> postUserAddUserFootPrint(@Body UserFootprint UserFootprint);
+
     /**
     /**
      * 小绵羊3.4.5
      * 小绵羊3.4.5
      * 查询足迹/我的足迹
      * 查询足迹/我的足迹
@@ -1494,6 +1504,7 @@ public interface ApiService {
      */
      */
     @GET(ApiKey.getUserFootPrintList)
     @GET(ApiKey.getUserFootPrintList)
     Observable<BaseMessage> getUserFootPrintList(@Query("page") int page, @Query("per_page") int per_page, @Query("date") String date);
     Observable<BaseMessage> getUserFootPrintList(@Query("page") int page, @Query("per_page") int per_page, @Query("date") String date);
+
     /**
     /**
      * 小绵羊3.4.5
      * 小绵羊3.4.5
      * 查询足迹/我的足迹日期数量列表
      * 查询足迹/我的足迹日期数量列表
@@ -1504,11 +1515,13 @@ public interface ApiService {
     Observable<BaseMessage> getUserFootPrintDateCount(@Query("start_date") String start_date, @Query("end_date") String end_date);
     Observable<BaseMessage> getUserFootPrintDateCount(@Query("start_date") String start_date, @Query("end_date") String end_date);
 //---------------------------end 小绵羊3.4.5 足迹-------------------------------------
 //---------------------------end 小绵羊3.4.5 足迹-------------------------------------
 //---------------------------start 小绵羊3.4.5 分享-----------------------------------
 //---------------------------start 小绵羊3.4.5 分享-----------------------------------
+
     /**
     /**
      * 获取每日分享列表
      * 获取每日分享列表
      */
      */
     @GET("app/share/shares")
     @GET("app/share/shares")
     Observable<BaseMessage> getShareList();
     Observable<BaseMessage> getShareList();
+
     /**
     /**
      * 每日分享结果
      * 每日分享结果
      */
      */
@@ -1524,42 +1537,50 @@ public interface ApiService {
      */
      */
     @POST("app/video")
     @POST("app/video")
     Observable<BaseMessage> postVideo(@Body JSONObject jsonObject);
     Observable<BaseMessage> postVideo(@Body JSONObject jsonObject);
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 查询视频详情
      * 小绵羊3.4.5新增 -- 查询视频详情
      * video_id * integer (query) 视频id
      * video_id * integer (query) 视频id
      */
      */
     @GET("app/video/detail")
     @GET("app/video/detail")
     Observable<BaseMessage> getVideoDetail(@Query("video_id") int video_id);
     Observable<BaseMessage> getVideoDetail(@Query("video_id") int video_id);
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 视频点赞
      * 小绵羊3.4.5新增 -- 视频点赞
      */
      */
     @POST("app/video/like")
     @POST("app/video/like")
     Observable<BaseMessage> postVideoLike(@Query("video_id") int video_id);
     Observable<BaseMessage> postVideoLike(@Query("video_id") int video_id);
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 查询视频列表
      * 小绵羊3.4.5新增 -- 查询视频列表
      */
      */
     @GET(ApiKey.getVideoList)
     @GET(ApiKey.getVideoList)
     Observable<BaseMessage> getVideoList(@Query("page_no") int page, @Query("page_size") int per_page);
     Observable<BaseMessage> getVideoList(@Query("page_no") int page, @Query("page_size") int per_page);
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 查询音乐列表
      * 小绵羊3.4.5新增 -- 查询音乐列表
      */
      */
     @GET(ApiKey.getVideoMusic)
     @GET(ApiKey.getVideoMusic)
     Observable<BaseMessage> getVideoMusic();
     Observable<BaseMessage> getVideoMusic();
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 视频分享回调
      * 小绵羊3.4.5新增 -- 视频分享回调
      */
      */
     @POST("app/video/share")
     @POST("app/video/share")
     Observable<BaseMessage> postVideoShare(@Query("video_id") int video_id);
     Observable<BaseMessage> postVideoShare(@Query("video_id") int video_id);
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 查询贴纸列表
      * 小绵羊3.4.5新增 -- 查询贴纸列表
      */
      */
     @GET(ApiKey.getVideoSticker)
     @GET(ApiKey.getVideoSticker)
     Observable<BaseMessage> getVideoSticker();
     Observable<BaseMessage> getVideoSticker();
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 获取七牛上传凭证
      * 小绵羊3.4.5新增 -- 获取七牛上传凭证
      */
      */
     @GET("app/video/token")
     @GET("app/video/token")
     Observable<BaseMessage> getVideoToken();
     Observable<BaseMessage> getVideoToken();
+
     /**
     /**
      * 小绵羊3.4.5新增 -- 查询话题列表
      * 小绵羊3.4.5新增 -- 查询话题列表
      */
      */
@@ -1567,6 +1588,7 @@ public interface ApiService {
     Observable<BaseMessage> getVideoTopic();
     Observable<BaseMessage> getVideoTopic();
 //---------------------------end 小绵羊3.4.5 视频-------------------------------------
 //---------------------------end 小绵羊3.4.5 视频-------------------------------------
 //---------------------------start 插件配置相关-------------------------------------
 //---------------------------start 插件配置相关-------------------------------------
+
     /**
     /**
      * 客户端插件更新/插件获取
      * 客户端插件更新/插件获取
      * package_name * string (query) 包名
      * package_name * string (query) 包名
@@ -1577,6 +1599,7 @@ public interface ApiService {
     Observable<BaseMessage> getPackageVersion(@Query("package_name") String package_name, @Query("type") String type, @Query("version") int version);
     Observable<BaseMessage> getPackageVersion(@Query("package_name") String package_name, @Query("type") String type, @Query("version") int version);
 //---------------------------end 插件配置相关-------------------------------------
 //---------------------------end 插件配置相关-------------------------------------
 //---------------------------start 商城相关-------------------------------------
 //---------------------------start 商城相关-------------------------------------
+
     /**
     /**
      * 领取商城优惠券
      * 领取商城优惠券
      * type * integer (query) 代金券类型 1:新手任务完成领取 2:h5任务领取 默认1
      * type * integer (query) 代金券类型 1:新手任务完成领取 2:h5任务领取 默认1
@@ -1584,6 +1607,7 @@ public interface ApiService {
      */
      */
     @POST("app/yf_shop/receive_coupons")
     @POST("app/yf_shop/receive_coupons")
     Observable<BaseMessage> postYfShopReceiveCoupons(@Query("type") int type, @Query("amount") float amount);
     Observable<BaseMessage> postYfShopReceiveCoupons(@Query("type") int type, @Query("amount") float amount);
+
     /**
     /**
      * 查询领取商城优惠券
      * 查询领取商城优惠券
      * type * integer (query) 代金券类型 1:新手任务完成领取 2:h5任务领取 默认1
      * type * integer (query) 代金券类型 1:新手任务完成领取 2:h5任务领取 默认1
@@ -1592,6 +1616,7 @@ public interface ApiService {
     Observable<BaseMessage> getYfShopReceiveCouponsCheck(@Query("type") int type);
     Observable<BaseMessage> getYfShopReceiveCouponsCheck(@Query("type") int type);
 //---------------------------end 商城相关-------------------------------------
 //---------------------------end 商城相关-------------------------------------
 //---------------------------start 小绵羊3.4.7新增 -- vip相关-------------------------------------
 //---------------------------start 小绵羊3.4.7新增 -- vip相关-------------------------------------
+
     /**
     /**
      * 用户充值vip
      * 用户充值vip
      * level:	integer ($int32) 1:VIP
      * level:	integer ($int32) 1:VIP
@@ -1600,5 +1625,30 @@ public interface ApiService {
     @POST("app/user/buy_vip")
     @POST("app/user/buy_vip")
     Observable<BaseMessage> postBuyVip(@Body JSONObject jsonObject);
     Observable<BaseMessage> postBuyVip(@Body JSONObject jsonObject);
 //---------------------------end 小绵羊3.4.7新增 -- vip相关-------------------------------------
 //---------------------------end 小绵羊3.4.7新增 -- vip相关-------------------------------------
+//---------------------------start 小绵羊3.4.7新增 -- 活动相关(如:元旦活动)-------------------------------------
+
+    /**
+     * 用户充值vip
+     * root_id:	integer ($int32) 2:元旦活动
+     */
+    @POST("app/mission/apply")
+    Observable<BaseMessage> postMissionApply(@Body JSONObject jsonObject);
+
+    /**
+     * 查看自己的任务状态
+     * root_id:	integer ($int32) 2:元旦活动
+     */
+    @GET("app/mission/self/{root_id}")
+    Observable<BaseMessage> getMissionSelfRootId(@Path("root_id") int root_id);
+//---------------------------end 小绵羊3.4.7新增 -- 活动相关(如:元旦活动)-------------------------------------
+//---------------------------start 小绵羊3.4.7新增 -- app/user_address 用户收货地址-------------------------------------
+
+    /**
+     * 查询用户地址信息
+     * 返回 UserAddressInfo
+     */
+    @GET("app/user_address/apply")
+    Observable<BaseMessage> getUserAddressApply();
+//---------------------------end 小绵羊3.4.7新增 -- app/user_address 用户收货地址-------------------------------------
 
 
 }
 }

+ 198 - 0
app/src/main/java/com/sheep/gamegroup/model/entity/Mission.java

@@ -0,0 +1,198 @@
+package com.sheep.gamegroup.model.entity;
+
+/**
+ * Created by realicing on 2018/12/28.
+ * realicing@sina.com
+ *
+ * {
+ *             "id": 7,
+ *             "user_id": 63418,
+ *             "follow_id": 0,
+ *             "refer_id": 0,
+ *             "origin_id": 2,
+ *             "type": 2,
+ *             "action": 0,
+ *             "status": 0,
+ *             "title": "",
+ *             "detail": "",
+ *             "url": "",
+ *             "extra": "27555863",
+ *             "create_time": 1545978171,
+ *             "update_time": 1545978171,
+ *             "amount": 0,
+ *             "total": 50,
+ *             "quantity": 0
+ *         }
+ */
+public class Mission {
+    public static final int ROOT_ID_YD = 2;//元旦活动
+    private int id;
+
+    private int user_id;
+
+    private int follow_id;
+
+    private int refer_id;
+
+    private int origin_id;
+
+    private int type;
+
+    private int action;
+
+    private int status;
+
+    private String title;
+
+    private String detail;
+
+    private String url;
+
+    private String extra;
+
+    private int create_time;
+
+    private int update_time;
+
+    private int amount;
+
+    private int total;
+
+    private int quantity;
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public int getUser_id() {
+        return user_id;
+    }
+
+    public void setUser_id(int user_id) {
+        this.user_id = user_id;
+    }
+
+    public int getFollow_id() {
+        return follow_id;
+    }
+
+    public void setFollow_id(int follow_id) {
+        this.follow_id = follow_id;
+    }
+
+    public int getRefer_id() {
+        return refer_id;
+    }
+
+    public void setRefer_id(int refer_id) {
+        this.refer_id = refer_id;
+    }
+
+    public int getOrigin_id() {
+        return origin_id;
+    }
+
+    public void setOrigin_id(int origin_id) {
+        this.origin_id = origin_id;
+    }
+
+    public int getType() {
+        return type;
+    }
+
+    public void setType(int type) {
+        this.type = type;
+    }
+
+    public int getAction() {
+        return action;
+    }
+
+    public void setAction(int action) {
+        this.action = action;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getDetail() {
+        return detail;
+    }
+
+    public void setDetail(String detail) {
+        this.detail = detail;
+    }
+
+    public String getUrl() {
+        return url;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
+
+    public String getExtra() {
+        return extra;
+    }
+
+    public void setExtra(String extra) {
+        this.extra = extra;
+    }
+
+    public int getCreate_time() {
+        return create_time;
+    }
+
+    public void setCreate_time(int create_time) {
+        this.create_time = create_time;
+    }
+
+    public int getUpdate_time() {
+        return update_time;
+    }
+
+    public void setUpdate_time(int update_time) {
+        this.update_time = update_time;
+    }
+
+    public int getAmount() {
+        return amount;
+    }
+
+    public void setAmount(int amount) {
+        this.amount = amount;
+    }
+
+    public int getTotal() {
+        return total;
+    }
+
+    public void setTotal(int total) {
+        this.total = total;
+    }
+
+    public int getQuantity() {
+        return quantity;
+    }
+
+    public void setQuantity(int quantity) {
+        this.quantity = quantity;
+    }
+}

+ 91 - 0
app/src/main/java/com/sheep/gamegroup/module/user/model/Area.java

@@ -0,0 +1,91 @@
+package com.sheep.gamegroup.module.user.model;
+
+/**
+ * Created by realicing on 2018/12/28.
+ * realicing@sina.com
+ *
+ * adcode:	integer ($int64)
+ * 行政区域编码
+ * area_id:	integer ($int64)
+ * create_time:	integer ($int64)
+ * 创建时间
+ * level:	integer ($int64)
+ * 层级,大区设置为1,省级设置为2,市级3,区县级4,乡镇级5
+ * name:	string
+ * 名称
+ * p_adcode:	integer ($int64)
+ * 上级的adcode
+ * update_time:	integer ($int64)
+ * 自动更新时间
+ */
+public class Area {
+    private int adcode;
+
+    private int area_id;
+
+    private int create_time;
+
+    private int level;
+
+    private String name;
+
+    private int p_adcode;
+
+    private int update_time;
+
+    public int getAdcode() {
+        return adcode;
+    }
+
+    public void setAdcode(int adcode) {
+        this.adcode = adcode;
+    }
+
+    public int getArea_id() {
+        return area_id;
+    }
+
+    public void setArea_id(int area_id) {
+        this.area_id = area_id;
+    }
+
+    public int getCreate_time() {
+        return create_time;
+    }
+
+    public void setCreate_time(int create_time) {
+        this.create_time = create_time;
+    }
+
+    public int getLevel() {
+        return level;
+    }
+
+    public void setLevel(int level) {
+        this.level = level;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public int getP_adcode() {
+        return p_adcode;
+    }
+
+    public void setP_adcode(int p_adcode) {
+        this.p_adcode = p_adcode;
+    }
+
+    public int getUpdate_time() {
+        return update_time;
+    }
+
+    public void setUpdate_time(int update_time) {
+        this.update_time = update_time;
+    }
+}

+ 152 - 0
app/src/main/java/com/sheep/gamegroup/module/user/model/UserAddress.java

@@ -0,0 +1,152 @@
+package com.sheep.gamegroup.module.user.model;
+
+import com.alibaba.fastjson.annotation.JSONField;
+
+/**
+ * Created by realicing on 2018/12/28.
+ * realicing@sina.com
+ *
+ * default:	integer ($int32)
+ * 默认地址 1:是 2:否
+ * update_time:	integer ($int64)
+ * area_map:	string
+ * 地区map
+ * area_id:	integer ($int64)
+ * 对应map表的id
+ * postcode:	string
+ * 邮编
+ * phone:	string
+ * 电话
+ * user_id:	integer ($int64)
+ * 用户id
+ * create_time:	integer ($int64)
+ * address:	string
+ * 地址
+ * id:	integer ($int64)
+ * address_detail:	string
+ * 地址详情
+ * user_name:	string
+ * 姓名
+ */
+public class UserAddress {
+    private String address;
+
+    private String address_detail;
+
+    private int area_id;
+
+    private String area_map;
+
+    private int create_time;
+
+    @JSONField(name = "default")
+    private int _default;
+
+    private int id;
+
+    private String phone;
+
+    private String postcode;
+
+    private int update_time;
+
+    private int user_id;
+
+    private String user_name;
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    public String getAddress_detail() {
+        return address_detail;
+    }
+
+    public void setAddress_detail(String address_detail) {
+        this.address_detail = address_detail;
+    }
+
+    public int getArea_id() {
+        return area_id;
+    }
+
+    public void setArea_id(int area_id) {
+        this.area_id = area_id;
+    }
+
+    public String getArea_map() {
+        return area_map;
+    }
+
+    public void setArea_map(String area_map) {
+        this.area_map = area_map;
+    }
+
+    public int getCreate_time() {
+        return create_time;
+    }
+
+    public void setCreate_time(int create_time) {
+        this.create_time = create_time;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getPhone() {
+        return phone;
+    }
+
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    public String getPostcode() {
+        return postcode;
+    }
+
+    public void setPostcode(String postcode) {
+        this.postcode = postcode;
+    }
+
+    public int getUpdate_time() {
+        return update_time;
+    }
+
+    public void setUpdate_time(int update_time) {
+        this.update_time = update_time;
+    }
+
+    public int getUser_id() {
+        return user_id;
+    }
+
+    public void setUser_id(int user_id) {
+        this.user_id = user_id;
+    }
+
+    public String getUser_name() {
+        return user_name;
+    }
+
+    public void setUser_name(String user_name) {
+        this.user_name = user_name;
+    }
+
+    public int get_default() {
+        return _default;
+    }
+
+    public void set_default(int _default) {
+        this._default = _default;
+    }
+}

+ 28 - 0
app/src/main/java/com/sheep/gamegroup/module/user/model/UserAddressInfo.java

@@ -0,0 +1,28 @@
+package com.sheep.gamegroup.module.user.model;
+
+import java.util.List;
+
+/**
+ * Created by realicing on 2018/12/28.
+ * realicing@sina.com
+ */
+public class UserAddressInfo {
+    private List<Area> area;
+    private UserAddress userAddress;
+
+    public List<Area> getArea() {
+        return area;
+    }
+
+    public void setArea(List<Area> area) {
+        this.area = area;
+    }
+
+    public UserAddress getUserAddress() {
+        return userAddress;
+    }
+
+    public void setUserAddress(UserAddress userAddress) {
+        this.userAddress = userAddress;
+    }
+}

+ 56 - 2
app/src/main/java/com/sheep/gamegroup/util/Jump2View.java

@@ -36,6 +36,7 @@ import com.sheep.gamegroup.model.entity.GameListTag;
 import com.sheep.gamegroup.model.entity.GameListType;
 import com.sheep.gamegroup.model.entity.GameListType;
 import com.sheep.gamegroup.model.entity.HomeListEntity;
 import com.sheep.gamegroup.model.entity.HomeListEntity;
 import com.sheep.gamegroup.model.entity.LoginEntity;
 import com.sheep.gamegroup.model.entity.LoginEntity;
+import com.sheep.gamegroup.model.entity.Mission;
 import com.sheep.gamegroup.model.entity.NewbieTask;
 import com.sheep.gamegroup.model.entity.NewbieTask;
 import com.sheep.gamegroup.model.entity.NewbieTaskRecord;
 import com.sheep.gamegroup.model.entity.NewbieTaskRecord;
 import com.sheep.gamegroup.model.entity.RouserArticlesEntity;
 import com.sheep.gamegroup.model.entity.RouserArticlesEntity;
@@ -208,6 +209,7 @@ import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_FEEDBACK;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_FIND_APP_ORDER;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_FIND_APP_ORDER;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_GAME_ACCOUNT;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_GAME_ACCOUNT;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_INFO;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_INFO;
+import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_INFO_ADDR;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_MY_MONEY;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_MY_MONEY;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_NEW_VERSION;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_NEW_VERSION;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_TASK_RECORD;
 import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_TASK_RECORD;
@@ -1495,6 +1497,7 @@ public class Jump2View {
         }
         }
     }
     }
 
 
+    //尝试显示弹窗广告
     public void tryShowHalfScreenAd(final Activity activity, final Container<Action1<Integer>> container) {
     public void tryShowHalfScreenAd(final Activity activity, final Container<Action1<Integer>> container) {
         if (SysAppUtil.isNewSmallSheep()) {//新版本只显示引导页面,不展示弹窗和开屏广告
         if (SysAppUtil.isNewSmallSheep()) {//新版本只显示引导页面,不展示弹窗和开屏广告
             return;
             return;
@@ -1532,7 +1535,7 @@ public class Jump2View {
                                         return;
                                         return;
                                     }
                                     }
                                 }
                                 }
-                                //显示商城
+                                //显示弹窗广告
                                 SheepApp.getInstance().getNetComponent().getApiService().getAdvertising(2)
                                 SheepApp.getInstance().getNetComponent().getApiService().getAdvertising(2)
                                         .subscribeOn(Schedulers.io())
                                         .subscribeOn(Schedulers.io())
                                         .observeOn(AndroidSchedulers.mainThread())
                                         .observeOn(AndroidSchedulers.mainThread())
@@ -1545,13 +1548,64 @@ public class Jump2View {
 
 
                                             @Override
                                             @Override
                                             public void onError(BaseMessage baseMessage) {
                                             public void onError(BaseMessage baseMessage) {
-                                                tryShowReservation(activity);
+                                                tryShowYfShopAskDialog(activity);
                                             }
                                             }
                                         });
                                         });
                             }
                             }
                         }));
                         }));
     }
     }
 
 
+    //尝试显示元旦活动完成一个阶段,有礼品时提示用户
+    public void tryShowYfShopAskDialog(final Activity activity) {
+        SheepApp.getInstance().getNetComponent().getApiService().getMissionSelfRootId(Mission.ROOT_ID_YD)
+                .subscribeOn(Schedulers.io())
+                .observeOn(AndroidSchedulers.mainThread())
+                .subscribe(new SheepSubscriber<BaseMessage>(activity) {
+                    @Override
+                    public void onNext(BaseMessage baseMessage) {
+                        Mission mission = baseMessage.getData(Mission.class);
+                        if(mission != null) {
+                            if(mission.getQuantity() == 10) {//邀请10个后有奖品
+                                tryCheckUserAddress(activity, mission);
+                                return;
+                            } else if(mission.getQuantity() == 50) {//邀请50个时有奖品
+                                tryCheckUserAddress(activity, mission);
+                                return;
+                            }
+                        }
+                        tryShowReservation(activity);
+                    }
+
+                    @Override
+                    public void onError(BaseMessage baseMessage) {
+                        tryShowReservation(activity);
+                    }
+                });
+    }
+    //尝试获取收货地址,来显示用户获取到礼品后,显示的状态
+    public void tryCheckUserAddress(final Activity activity, Mission mission) {
+        SheepApp.getInstance().getNetComponent().getApiService().getUserAddressApply()
+                .subscribeOn(Schedulers.io())
+                .observeOn(AndroidSchedulers.mainThread())
+                .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
+                    @Override
+                    public void onNext(BaseMessage baseMessage) {
+                        String content = activity.getString(R.string.yf_shop_ask_tip, mission.getExtra());
+                        ViewUtil.showYfShopAsk(activity, "前\t往", content, dialog -> {
+                            Jump2View.getInstance().goActUserAddrInfo(activity);
+                            USER_INFO_ADDR.onEvent();
+                        });
+
+                    }
+
+                    @Override
+                    public void onError(BaseMessage baseMessage) {
+                        String content = activity.getString(R.string.yf_shop_ask_tip_2, mission.getExtra());
+                        ViewUtil.showYfShopAsk(activity, "继续邀请", content, dialog -> Jump2View.getInstance().goActInvitation(activity));
+                    }
+                });
+    }
+    //显示下载预约的游戏可以下载的提示
     public void tryShowReservation(final Activity activity) {
     public void tryShowReservation(final Activity activity) {
         SheepApp.getInstance().getNetComponent().getApiService().getFindAppDownloadsStatus()
         SheepApp.getInstance().getNetComponent().getApiService().getFindAppDownloadsStatus()
                 .subscribeOn(Schedulers.io())
                 .subscribeOn(Schedulers.io())

+ 1 - 4
app/src/main/java/com/sheep/gamegroup/util/TestUtil.java

@@ -16,7 +16,6 @@ import android.graphics.Paint;
 import android.net.Uri;
 import android.net.Uri;
 import android.os.Build;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.Bundle;
-import android.speech.tts.TextToSpeech;
 import android.support.v4.app.NotificationCompat;
 import android.support.v4.app.NotificationCompat;
 import android.support.v4.app.NotificationManagerCompat;
 import android.support.v4.app.NotificationManagerCompat;
 import android.support.v7.app.AlertDialog;
 import android.support.v7.app.AlertDialog;
@@ -33,7 +32,6 @@ import com.kfzs.cfyl.share_library.util.CallBackAPI;
 import com.kfzs.duanduan.utils.ApkUtils;
 import com.kfzs.duanduan.utils.ApkUtils;
 import com.kfzs.duanduan.view.DialogStorageLow;
 import com.kfzs.duanduan.view.DialogStorageLow;
 import com.sheep.gamegroup.absBase.AbsObserver;
 import com.sheep.gamegroup.absBase.AbsObserver;
-import com.sheep.gamegroup.absBase.BaseActivity;
 import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.entity.CreditCard;
 import com.sheep.gamegroup.model.entity.CreditCard;
 import com.sheep.gamegroup.model.entity.DialogConfig;
 import com.sheep.gamegroup.model.entity.DialogConfig;
@@ -73,7 +71,6 @@ import com.zhy.http.okhttp.OkHttpUtils;
 import com.zhy.http.okhttp.callback.FileCallBack;
 import com.zhy.http.okhttp.callback.FileCallBack;
 import com.zhy.http.okhttp.callback.StringCallback;
 import com.zhy.http.okhttp.callback.StringCallback;
 
 
-
 import java.io.File;
 import java.io.File;
 import java.util.ArrayList;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashMap;
@@ -279,7 +276,7 @@ public class TestUtil {
                     public void onClick(DialogInterface dialog, int which) {
                     public void onClick(DialogInterface dialog, int which) {
                         switch (items[which]) {
                         switch (items[which]) {
                             case "填写收件地址弹窗":
                             case "填写收件地址弹窗":
-                                ViewUtil.showYfShopAsk(activity);
+                                ViewUtil.showYfShopAsk(activity, "继续邀请", activity.getString(R.string.yf_shop_ask_tip, "987654311"), dialog1 -> Jump2View.getInstance().goActInvitation(activity));
                                 break;
                                 break;
                             case "朗读文字":
                             case "朗读文字":
                                 testReadText("小绵羊666", 20);
                                 testReadText("小绵羊666", 20);

+ 12 - 8
app/src/main/java/com/sheep/gamegroup/util/ViewUtil.java

@@ -74,6 +74,7 @@ import com.sheep.gamegroup.model.entity.DialogConfig;
 import com.sheep.gamegroup.model.entity.GameAccountEntity;
 import com.sheep.gamegroup.model.entity.GameAccountEntity;
 import com.sheep.gamegroup.model.entity.GiftBagApp;
 import com.sheep.gamegroup.model.entity.GiftBagApp;
 import com.sheep.gamegroup.model.entity.Lp;
 import com.sheep.gamegroup.model.entity.Lp;
+import com.sheep.gamegroup.model.entity.Mission;
 import com.sheep.gamegroup.model.entity.PayEntity;
 import com.sheep.gamegroup.model.entity.PayEntity;
 import com.sheep.gamegroup.model.entity.RobTask;
 import com.sheep.gamegroup.model.entity.RobTask;
 import com.sheep.gamegroup.model.entity.TaskEty;
 import com.sheep.gamegroup.model.entity.TaskEty;
@@ -847,9 +848,9 @@ public class ViewUtil {
         /* URL */
         /* URL */
         UMWeb web = new UMWeb(url);
         UMWeb web = new UMWeb(url);
         /* 标题 */
         /* 标题 */
-        web.setTitle(!TextUtils.isEmpty(title) ? "赚钱就来小绵羊" : title);
+        web.setTitle(TextUtils.isEmpty(title) ? "赚钱就来小绵羊" : title);
         web.setThumb(image);
         web.setThumb(image);
-        web.setDescription(!TextUtils.isEmpty(content) ? "更懂你的赚钱工具,超多福利,超多赏金,拿到你手软!" : content);
+        web.setDescription(TextUtils.isEmpty(content) ? "更懂你的赚钱工具,超多福利,超多赏金,拿到你手软!" : content);
         switch (media) {
         switch (media) {
             case WEIXIN_CIRCLE:
             case WEIXIN_CIRCLE:
                 web.setTitle(web.getTitle() + "\n" + web.getDescription());
                 web.setTitle(web.getTitle() + "\n" + web.getDescription());
@@ -1488,7 +1489,7 @@ public class ViewUtil {
 //                    }
 //                    }
                     ACache aCache = ACache.get(SheepApp.getInstance());
                     ACache aCache = ACache.get(SheepApp.getInstance());
                     aCache.put(advertising.getDisplay_src(), String.format(Locale.CHINA, "%d;%d", dialog_center_ll.getWidth(), dialog_center_ll.getHeight()));
                     aCache.put(advertising.getDisplay_src(), String.format(Locale.CHINA, "%d;%d", dialog_center_ll.getWidth(), dialog_center_ll.getHeight()));
-                    Jump2View.getInstance().tryShowReservation(activity);
+                    Jump2View.getInstance().tryShowYfShopAskDialog(activity);
                 }
                 }
             });
             });
             if (TextUtils.isEmpty(advertising.getDesc())) {
             if (TextUtils.isEmpty(advertising.getDesc())) {
@@ -1559,7 +1560,7 @@ public class ViewUtil {
             dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
             dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
                 @Override
                 @Override
                 public void onDismiss(DialogInterface dialogInterface) {
                 public void onDismiss(DialogInterface dialogInterface) {
-                    Jump2View.getInstance().tryShowReservation(activity);
+                    Jump2View.getInstance().tryShowYfShopAskDialog(activity);
                 }
                 }
             });
             });
             try {
             try {
@@ -1570,7 +1571,7 @@ public class ViewUtil {
         }
         }
     }
     }
     //3.4.7添加 -- 展示 元旦活动中 提示用户邀请人数到达一定数量时,获得了礼品,需要填写收件地址 对话框
     //3.4.7添加 -- 展示 元旦活动中 提示用户邀请人数到达一定数量时,获得了礼品,需要填写收件地址 对话框
-    public static void showYfShopAsk(final Activity activity) {
+    public static void showYfShopAsk(final Activity activity, String btnText, String content, Action1<AlertDialog> action1) {
         if (activity != null) {
         if (activity != null) {
             View dialog_parent = View.inflate(activity, R.layout.dialog_parent, null);
             View dialog_parent = View.inflate(activity, R.layout.dialog_parent, null);
             final AlertDialog dialog = new AlertDialog.Builder(activity, R.style.MyDialogActivityTheme)
             final AlertDialog dialog = new AlertDialog.Builder(activity, R.style.MyDialogActivityTheme)
@@ -1587,11 +1588,13 @@ public class ViewUtil {
             TextView dialog_yf_shop_ask_title_tv = view.findViewById(R.id.dialog_yf_shop_ask_title_tv);
             TextView dialog_yf_shop_ask_title_tv = view.findViewById(R.id.dialog_yf_shop_ask_title_tv);
             TextView dialog_yf_shop_ask_content_tv = view.findViewById(R.id.dialog_yf_shop_ask_content_tv);
             TextView dialog_yf_shop_ask_content_tv = view.findViewById(R.id.dialog_yf_shop_ask_content_tv);
             TextView dialog_yf_shop_ask_btn_tv = view.findViewById(R.id.dialog_yf_shop_ask_btn_tv);
             TextView dialog_yf_shop_ask_btn_tv = view.findViewById(R.id.dialog_yf_shop_ask_btn_tv);
+
+            ViewUtil.setText(dialog_yf_shop_ask_content_tv, content);
             float per = (G.WIDTH - G.getRealPix(80)) / 920.0f;
             float per = (G.WIDTH - G.getRealPix(80)) / 920.0f;
             LayoutParamsUtil.resetLayoutParams(dialog_yf_shop_ask_title_tv, new Lp(per).setTopMargin(50));
             LayoutParamsUtil.resetLayoutParams(dialog_yf_shop_ask_title_tv, new Lp(per).setTopMargin(50));
             LayoutParamsUtil.resetLayoutParams(dialog_yf_shop_ask_content_tv, new Lp(per).setHeight(650).setLeftMargin(200).setRightMargin(200));
             LayoutParamsUtil.resetLayoutParams(dialog_yf_shop_ask_content_tv, new Lp(per).setHeight(650).setLeftMargin(200).setRightMargin(200));
             LayoutParamsUtil.resetLayoutParams(dialog_yf_shop_ask_btn_tv, new Lp(per).setBottomMargin(50));
             LayoutParamsUtil.resetLayoutParams(dialog_yf_shop_ask_btn_tv, new Lp(per).setBottomMargin(50));
-            ViewUtil.setText(dialog_yf_shop_ask_btn_tv, "前\t往");
+            ViewUtil.setText(dialog_yf_shop_ask_btn_tv, btnText);
             dialog_close.setOnClickListener(new View.OnClickListener() {
             dialog_close.setOnClickListener(new View.OnClickListener() {
                 @Override
                 @Override
                 public void onClick(View v) {
                 public void onClick(View v) {
@@ -1601,8 +1604,9 @@ public class ViewUtil {
             dialog_yf_shop_ask_btn_tv.setOnClickListener(new View.OnClickListener() {
             dialog_yf_shop_ask_btn_tv.setOnClickListener(new View.OnClickListener() {
                 @Override
                 @Override
                 public void onClick(View v) {
                 public void onClick(View v) {
-                    Jump2View.getInstance().goActUserAddrInfo(activity);
-                    USER_INFO_ADDR.onEvent();
+                    if(action1 != null){
+                        action1.call(dialog);
+                    }
                 }
                 }
             });
             });
             dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
             dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {

+ 26 - 2
app/src/main/java/com/sheep/gamegroup/util/js/KFZSJs.java

@@ -4,6 +4,7 @@ import android.app.Activity;
 import android.text.TextUtils;
 import android.text.TextUtils;
 import android.webkit.JavascriptInterface;
 import android.webkit.JavascriptInterface;
 
 
+import com.alibaba.fastjson.JSONObject;
 import com.sheep.gamegroup.absBase.AbsObserver;
 import com.sheep.gamegroup.absBase.AbsObserver;
 import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.util.SheepSubscriber;
 import com.sheep.gamegroup.model.util.SheepSubscriber;
@@ -26,11 +27,11 @@ import com.sheep.jiuyan.samllsheep.utils.G;
 import com.sheep.jiuyan.samllsheep.utils.PackageUtil;
 import com.sheep.jiuyan.samllsheep.utils.PackageUtil;
 import com.sheep.jiuyan.samllsheep.utils.SpUtils;
 import com.sheep.jiuyan.samllsheep.utils.SpUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
-import com.umeng.socialize.UMShareListener;
-import com.umeng.socialize.bean.SHARE_MEDIA;
 
 
 import java.util.Locale;
 import java.util.Locale;
 
 
+import io.reactivex.android.schedulers.AndroidSchedulers;
+import io.reactivex.schedulers.Schedulers;
 import rx.functions.Action1;
 import rx.functions.Action1;
 
 
 /**
 /**
@@ -220,6 +221,29 @@ public class KFZSJs {
         });
         });
     }
     }
     @JavascriptInterface
     @JavascriptInterface
+    public void postMissionApply(int root_id){
+        JSONObject jsonObject = new JSONObject();
+        jsonObject.put("root_id", root_id);
+        SheepApp.getInstance().getNetComponent().getApiService().postMissionApply(jsonObject)
+                        .subscribeOn(Schedulers.io())
+                        .observeOn(AndroidSchedulers.mainThread())
+                        .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
+                            @Override
+                            public void onNext(BaseMessage baseMessage) {
+                            }
+
+                            @Override
+                            public void onError(BaseMessage baseMessage) {
+                                G.showToast(baseMessage);
+                            }
+                        });
+        switch (root_id){
+            case 2://领取元旦活动后,跳转邀请界面
+                Jump2View.getInstance().goActInvitation(activity);
+                break;
+        }
+    }
+    @JavascriptInterface
     public void buyVip(int level, int pay_type){
     public void buyVip(int level, int pay_type){
         buyVip(activity, new BuyVipReq());
         buyVip(activity, new BuyVipReq());
     }
     }

+ 31 - 2
app/src/main/java/com/sheep/gamegroup/view/activity/ActMyMoney.java

@@ -6,9 +6,11 @@ import android.support.annotation.Nullable;
 import android.support.design.widget.TabLayout;
 import android.support.design.widget.TabLayout;
 import android.support.v4.app.Fragment;
 import android.support.v4.app.Fragment;
 import android.support.v4.view.ViewPager;
 import android.support.v4.view.ViewPager;
+import android.support.v4.widget.NestedScrollView;
 import android.view.LayoutInflater;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.View;
 import android.widget.ImageView;
 import android.widget.ImageView;
+import android.widget.ScrollView;
 import android.widget.TextView;
 import android.widget.TextView;
 
 
 import com.kfzs.duanduan.utils.NumberFormatUtils;
 import com.kfzs.duanduan.utils.NumberFormatUtils;
@@ -21,6 +23,7 @@ import com.sheep.gamegroup.absBase.BaseRefreshLoadMoreFragment;
 import com.sheep.gamegroup.absBase.ILoadMore;
 import com.sheep.gamegroup.absBase.ILoadMore;
 import com.sheep.gamegroup.absBase.IRefresh;
 import com.sheep.gamegroup.absBase.IRefresh;
 import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.entity.BaseMessage;
+import com.sheep.gamegroup.model.entity.Lp;
 import com.sheep.gamegroup.model.entity.UserAssets;
 import com.sheep.gamegroup.model.entity.UserAssets;
 import com.sheep.gamegroup.model.util.SheepSubscriber;
 import com.sheep.gamegroup.model.util.SheepSubscriber;
 import com.sheep.gamegroup.module.personal.fragment.FgtRechargeBalanceLog;
 import com.sheep.gamegroup.module.personal.fragment.FgtRechargeBalanceLog;
@@ -30,8 +33,10 @@ import com.sheep.gamegroup.util.CommonUtil;
 import com.sheep.gamegroup.util.DataUtil;
 import com.sheep.gamegroup.util.DataUtil;
 import com.sheep.gamegroup.util.GlideImageLoader;
 import com.sheep.gamegroup.util.GlideImageLoader;
 import com.sheep.gamegroup.util.Jump2View;
 import com.sheep.gamegroup.util.Jump2View;
+import com.sheep.gamegroup.util.LogUtil;
 import com.sheep.gamegroup.util.RefreshUtil;
 import com.sheep.gamegroup.util.RefreshUtil;
 import com.sheep.gamegroup.util.ViewUtil;
 import com.sheep.gamegroup.util.ViewUtil;
+import com.sheep.gamegroup.util.viewHelper.LayoutParamsUtil;
 import com.sheep.gamegroup.view.adapter.TitleFragmentListAdapter;
 import com.sheep.gamegroup.view.adapter.TitleFragmentListAdapter;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.SheepApp;
 import com.sheep.jiuyan.samllsheep.SheepApp;
@@ -56,7 +61,11 @@ public class ActMyMoney extends BaseActivity {
 
 
     @BindView(R.id.refresh)
     @BindView(R.id.refresh)
     SmartRefreshLayout refresh;
     SmartRefreshLayout refresh;
+    @BindView(R.id.scrollView)
+    NestedScrollView scrollView;
 
 
+    @BindView(R.id.img_baseactivity_title)
+    View img_baseactivity_title;
     @BindView(R.id.indicator)
     @BindView(R.id.indicator)
     TabLayout indicator;
     TabLayout indicator;
     @BindView(R.id.pager)
     @BindView(R.id.pager)
@@ -80,6 +89,9 @@ public class ActMyMoney extends BaseActivity {
     @BindView(R.id.my_money_dingxiang_amount_iv)
     @BindView(R.id.my_money_dingxiang_amount_iv)
     ImageView my_money_dingxiang_amount_iv;
     ImageView my_money_dingxiang_amount_iv;
 
 
+    @BindView(R.id.act_my_money_bottom_v)
+    View act_my_money_bottom_v;
+
     private TitleFragmentListAdapter mAdapter;
     private TitleFragmentListAdapter mAdapter;
 
 
     @Override
     @Override
@@ -100,7 +112,6 @@ public class ActMyMoney extends BaseActivity {
                 .setTitleFinish(this);
                 .setTitleFinish(this);
         //顶部背景添加弧度
         //顶部背景添加弧度
         GlideImageLoader.setImage(act_my_money_bg_iv, ViewUtil.getNetImgByName("home_blue_bg_hb"), R.mipmap.home_blue_bg);
         GlideImageLoader.setImage(act_my_money_bg_iv, ViewUtil.getNetImgByName("home_blue_bg_hb"), R.mipmap.home_blue_bg);
-
         mAdapter = new TitleFragmentListAdapter(getSupportFragmentManager());
         mAdapter = new TitleFragmentListAdapter(getSupportFragmentManager());
         mAdapter.add(new FgtRechargeBalanceLog(), tabNames[0]);
         mAdapter.add(new FgtRechargeBalanceLog(), tabNames[0]);
         mAdapter.add(new FgtWithdraw(), tabNames[1]);
         mAdapter.add(new FgtWithdraw(), tabNames[1]);
@@ -129,6 +140,12 @@ public class ActMyMoney extends BaseActivity {
             }
             }
         });
         });
         RefreshUtil.newInstance().publicParameterLoadMore(refresh, this);
         RefreshUtil.newInstance().publicParameterLoadMore(refresh, this);
+        viewPager.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
+            public void onLayoutChange(View view, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
+                LogUtil.println("ActMyMoney", "viewPager", "onLayoutChange", left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom);
+                LayoutParamsUtil.resetLayoutParams(act_my_money_bottom_v, new Lp().setHeight(G.HEIGHT - G.getRealPix(74) - img_baseactivity_title.getHeight() + top - bottom));
+            }
+        });
     }
     }
     private void new_tab(){
     private void new_tab(){
         indicator.addTab(indicator.newTab().setCustomView(tab_icon(tabNames[0], true)));
         indicator.addTab(indicator.newTab().setCustomView(tab_icon(tabNames[0], true)));
@@ -136,7 +153,19 @@ public class ActMyMoney extends BaseActivity {
         indicator.addTab(indicator.newTab().setCustomView(tab_icon(tabNames[2], false)));
         indicator.addTab(indicator.newTab().setCustomView(tab_icon(tabNames[2], false)));
         //Tablayout自定义view绑定ViewPager
         //Tablayout自定义view绑定ViewPager
         viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(indicator));
         viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(indicator));
-        indicator.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager));
+        indicator.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager){
+            @Override
+            public void onTabReselected(TabLayout.Tab tab) {
+                super.onTabReselected(tab);
+                scrollView.smoothScrollTo(0, indicator.getTop());
+            }
+
+            @Override
+            public void onTabSelected(TabLayout.Tab tab) {
+                super.onTabSelected(tab);
+                scrollView.smoothScrollTo(0, indicator.getTop());
+            }
+        });
         viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
         viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
             @Override
             @Override
             public void onPageScrolled(int i, float v, int i1) {
             public void onPageScrolled(int i, float v, int i1) {

+ 2 - 2
app/src/main/java/com/sheep/gamegroup/view/fragment/FgtPersonalCenter.java

@@ -296,8 +296,8 @@ public class FgtPersonalCenter extends BaseFragment {
         sheepNumTv.setText(String.format(Locale.CHINA, "绵羊号:%s", userEntity.getInvitation_code()));
         sheepNumTv.setText(String.format(Locale.CHINA, "绵羊号:%s", userEntity.getInvitation_code()));
         GlideImageLoader.setAvatar(iconImgIv, userEntity.getAvatar(), Color.argb(128, 255, 255, 255));
         GlideImageLoader.setAvatar(iconImgIv, userEntity.getAvatar(), Color.argb(128, 255, 255, 255));
         ViewUtil.setVisibility(vipFlagView, userEntity.isVIP());
         ViewUtil.setVisibility(vipFlagView, userEntity.isVIP());
-        ViewUtil.setVisibility(fgt_pc_item_vip_v, userEntity.isVIP());
-        ViewUtil.setVisibility(fgt_pc_item_vip_ll, userEntity.isVIP());
+        ViewUtil.setVisibility(fgt_pc_item_vip_v, !userEntity.isVIP());
+        ViewUtil.setVisibility(fgt_pc_item_vip_ll, !userEntity.isVIP());
     }
     }
 
 
     /**
     /**

+ 4 - 1
app/src/main/res/layout/act_my_money.xml

@@ -315,7 +315,10 @@
                     android:layout_width="match_parent"
                     android:layout_width="match_parent"
                     android:layout_height="0dip"
                     android:layout_height="0dip"
                     android:layout_weight="1" />
                     android:layout_weight="1" />
-
+                <View
+                    android:id="@+id/act_my_money_bottom_v"
+                    android:layout_width="match_parent"
+                    android:layout_height="500dp"/>
             </LinearLayout>
             </LinearLayout>
         </android.support.v4.widget.NestedScrollView>
         </android.support.v4.widget.NestedScrollView>
     </com.scwang.smartrefresh.layout.SmartRefreshLayout>
     </com.scwang.smartrefresh.layout.SmartRefreshLayout>

+ 1 - 1
app/src/main/res/layout/dialog_yf_shop_ask.xml

@@ -30,7 +30,7 @@
         android:layout_marginEnd="30dp"
         android:layout_marginEnd="30dp"
         android:gravity="center_vertical"
         android:gravity="center_vertical"
         android:lineSpacingExtra="2dp"
         android:lineSpacingExtra="2dp"
-        android:text="恭喜XXX(绵羊ID)用户,元旦邀新活动,你已获得礼品,请前往填写收件信息,羊羊乐园的工作人员将尽快的为你安排发货,请耐心等待!"
+        android:text="@string/yf_shop_ask_tip"
         android:textColor="#ff999999"
         android:textColor="#ff999999"
         android:textSize="13sp" />
         android:textSize="13sp" />
 
 

+ 17 - 20
app/src/main/res/layout/tab_item.xml

@@ -3,32 +3,29 @@
     android:layout_width="match_parent"
     android:layout_width="match_parent"
     android:layout_height="50dp">
     android:layout_height="50dp">
 
 
-    <LinearLayout
+    <View
+        android:id="@+id/tab_line"
+        android:layout_width="1dp"
+        android:layout_height="20dp"
+        android:layout_alignParentEnd="true"
+        android:layout_centerVertical="true"
+        android:background="@color/white" />
+
+    <TextView
+        android:id="@+id/tabtext"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_height="match_parent"
+        android:layout_centerHorizontal="true"
+        android:layout_toStartOf="@id/tab_line"
         android:gravity="center"
         android:gravity="center"
-        android:orientation="horizontal">
-
-        <TextView
-            android:id="@+id/tabtext"
-            android:layout_width="0dp"
-            android:layout_height="wrap_content"
-            android:layout_weight="1"
-            android:gravity="center"
-            android:text="TAB"
-            android:textColor="@color/white"
-            android:textSize="15sp" />
+        android:text="TAB"
+        android:textColor="@color/white"
+        android:textSize="15sp" />
 
 
-        <View
-            android:id="@+id/tab_line"
-            android:layout_width="1dp"
-            android:layout_height="20dp"
-            android:background="@color/white" />
-    </LinearLayout>
     <View
     <View
         android:layout_width="15dp"
         android:layout_width="15dp"
         android:layout_height="15dp"
         android:layout_height="15dp"
-        android:background="@drawable/selector_tab_triangle"
+        android:layout_alignParentBottom="true"
         android:layout_centerHorizontal="true"
         android:layout_centerHorizontal="true"
-        android:layout_alignParentBottom="true"/>
+        android:background="@drawable/selector_tab_triangle" />
 </RelativeLayout>
 </RelativeLayout>

+ 3 - 1
app/src/main/res/values/strings.xml

@@ -206,9 +206,11 @@
     <string name="pay_success">支付成功</string>
     <string name="pay_success">支付成功</string>
     <string name="pay_fail">支付失败</string>
     <string name="pay_fail">支付失败</string>
     <string name="you_had_cancel_pay">您取消了支付</string>
     <string name="you_had_cancel_pay">您取消了支付</string>
-    <string name="task_detail_vip_tip">做任务可提高收益哦,任务优先审核</string>
+    <string name="task_detail_vip_tip">做任务可提高收益哦,奖励优先审核</string>
     <string name="get_money_x_yuan">账户入账通知 尊敬的羊羊用户,恭喜元宝账户收入XXX元。</string>
     <string name="get_money_x_yuan">账户入账通知 尊敬的羊羊用户,恭喜元宝账户收入XXX元。</string>
     <string name="yf_shop_quan_tip">恭喜你获得%s元商品劵,你可前往商城,直接选择心仪的商品哦~</string>
     <string name="yf_shop_quan_tip">恭喜你获得%s元商品劵,你可前往商城,直接选择心仪的商品哦~</string>
     <string name="yf_shop_quan_title">—— 商城优惠券  ——</string>
     <string name="yf_shop_quan_title">—— 商城优惠券  ——</string>
+    <string name="yf_shop_ask_tip">恭喜%s用户,元旦邀新活动,你已获得礼品,请前往填写收件信息,羊羊乐园的工作人员将尽快的为你安排发货,请耐心等待!</string>
+    <string name="yf_shop_ask_tip_2">恭喜%s用户,元旦邀新活动,你已获得礼品。请耐心等待,羊羊乐园的工作人员将尽快的为你安排发货,!</string>
 
 
 </resources>
 </resources>