|
|
@@ -7,6 +7,7 @@ using Newtonsoft.Json.Linq;
|
|
|
|
|
|
public class BoxRankList : MonoBehaviour
|
|
|
{
|
|
|
+ //public Text seasonBar;
|
|
|
/// <summary>
|
|
|
/// 0: 全球,1: 本省,2: 本市
|
|
|
/// </summary>
|
|
|
@@ -59,6 +60,23 @@ public class BoxRankList : MonoBehaviour
|
|
|
if (rankArea_copy != rankArea || rankGameType_copy != rankGameType) return;
|
|
|
GetMyRankItem().SetActive(false);
|
|
|
ClearRankList();
|
|
|
+ //Debug.Log("seasonName:" + seasonName);
|
|
|
+ //Debug.Log("seasonDate:" + seasonDate.ToString());
|
|
|
+ //if (seasonBar) {
|
|
|
+
|
|
|
+ // string strDate = seasonName + " ("; //start
|
|
|
+ // for (int i = 0; i < seasonDate.Count; i++)
|
|
|
+ // {
|
|
|
+ // DateTime dateTime = Convert.ToDateTime(seasonDate[i]);
|
|
|
+ // strDate += String.Format("{0:yyyy.M}", dateTime);
|
|
|
+ // if (i != seasonDate.Count - 1) {
|
|
|
+ // strDate += "~";
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // strDate += ")"; //end
|
|
|
+
|
|
|
+ // seasonBar.text = strDate;
|
|
|
+ //}
|
|
|
foreach (var itemInfo in rankList)
|
|
|
{
|
|
|
int rankNum = itemInfo.Value<int>("rankNum");
|
|
|
@@ -68,6 +86,8 @@ public class BoxRankList : MonoBehaviour
|
|
|
string avatarUrl = itemInfo.Value<string>("avatarUrl");
|
|
|
string nickname = itemInfo.Value<string>("nickname");
|
|
|
string country = itemInfo.Value<string>("country");
|
|
|
+ if (score <= 0) continue;
|
|
|
+
|
|
|
GameObject o = GameObject.Instantiate(GetRankListItemPrefab(), GetRankListItemParent());
|
|
|
o.SetActive(true);
|
|
|
o.transform.Find("Rank1").gameObject.SetActive(rankNum == 1);
|
|
|
@@ -146,8 +166,8 @@ public class BoxRankList : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- //rankArea_copy == 0 ? 0 : 2
|
|
|
- UserPlayer.ins.call("rankComp.getRankList", new object[] { rankArea_copy , rankGameType_copy, countryCode, stateCode, cityCode }, cb);
|
|
|
+ //rankArea_copy == 0 ? 0 : 2 getRankList
|
|
|
+ UserPlayer.ins.call("rankComp.getRankListByGameType", new object[] { rankArea_copy , rankGameType_copy, countryCode, stateCode, cityCode }, cb);
|
|
|
}
|
|
|
void ClearRankList()
|
|
|
{
|