This commit is contained in:
GL 2025-01-03 18:03:48 +08:00
commit 2aa64d8eb7
38 changed files with 8770 additions and 1466 deletions

View File

@ -1605,10 +1605,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -634}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3204589705642550975
CanvasRenderer:
@ -2278,10 +2278,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -1202}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2090536758468094090
CanvasRenderer:
@ -2730,10 +2730,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -1060}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2535729662466176082
CanvasRenderer:
@ -4766,10 +4766,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -1344}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4595682842202534514
CanvasRenderer:
@ -4845,10 +4845,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -776}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8081018131655818520
CanvasRenderer:
@ -7367,10 +7367,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -1486}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8464823850635824637
CanvasRenderer:
@ -9528,10 +9528,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -492}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7268680617402293261
CanvasRenderer:
@ -10007,10 +10007,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -208}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7268680617711780049
CanvasRenderer:
@ -10387,10 +10387,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -66}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7268680617923562949
CanvasRenderer:
@ -10628,10 +10628,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -350}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7268680618054312407
CanvasRenderer:
@ -14068,10 +14068,10 @@ RectTransform:
m_Father: {fileID: 7268680617494098487}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 501, y: -918}
m_SizeDelta: {x: 1002, y: 132}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2645874367655342211
CanvasRenderer:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0feb386b76684454d82635b8550ef7a9
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cc134eaa63cd02b4db236ebd7e88ea7a
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f11b8f164932d54448ae008c6db1c697
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9f62d71316e95c548abc9ec40b9bd7ea
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,123 @@
fileFormatVersion: 2
guid: cfd04ce7fd073ac47978f00c0d7115af
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,123 @@
fileFormatVersion: 2
guid: 1d9d4dd89cc819141bd7478d9ea84474
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 KiB

View File

@ -0,0 +1,123 @@
fileFormatVersion: 2
guid: fa3afb24365b2914bba9fd37bb8c93b1
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -44,10 +44,9 @@ public class Promotion_Rank : MonoBehaviour
remainingTime = response.data.countdown;
UpdateCountdownText(remainingTime);
switch (response.data.ranks.Count)
if(response.data.ranks.Count ==1)
{
case 1:
Firstlevel.text = response.data.ranks[0].rank.ToString();
Firstlevel.text = response.data.ranks[0].rank.ToString();
FirstName.text = response.data.ranks[0].nickname;
Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
FitstPrize.text = response.data.ranks[0].reward.ToString();
@ -61,26 +60,28 @@ public class Promotion_Rank : MonoBehaviour
ThirdName.text ="";
Thirdcount.text = "";
ThirdPrize.text ="";
}
break;
case 2:
Firstlevel.text = response.data.ranks[0].rank.ToString();
FirstName.text = response.data.ranks[0].nickname;
Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
FitstPrize.text = response.data.ranks[0].reward.ToString();
if (response.data.ranks.Count == 2)
{
Firstlevel.text = response.data.ranks[0].rank.ToString();
FirstName.text = response.data.ranks[0].nickname;
Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
FitstPrize.text = response.data.ranks[0].reward.ToString();
Secondlevel.text = response.data.ranks[1].rank.ToString();
SecondName.text = response.data.ranks[1].nickname;
Secondcount.text = response.data.ranks[1].quantity + "/" + response.data.ranks[1].require;
SecondPrize.text = response.data.ranks[1].reward.ToString();
Secondlevel.text = response.data.ranks[1].rank.ToString();
SecondName.text = response.data.ranks[1].nickname;
Secondcount.text = response.data.ranks[1].quantity + "/" + response.data.ranks[1].require;
SecondPrize.text = response.data.ranks[1].reward.ToString();
Thirdlevel.text = "3";
ThirdName.text = "";
Thirdcount.text = "";
ThirdPrize.text = "";
break;
case 3:
Firstlevel.text = response.data.ranks[0].rank.ToString();
Thirdlevel.text = "3";
ThirdName.text = "";
Thirdcount.text = "";
ThirdPrize.text = "";
}
if (response.data.ranks.Count >= 3)
{
Firstlevel.text = response.data.ranks[0].rank.ToString();
FirstName.text = response.data.ranks[0].nickname;
Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
FitstPrize.text = response.data.ranks[0].reward.ToString();
@ -94,7 +95,6 @@ public class Promotion_Rank : MonoBehaviour
ThirdName.text = response.data.ranks[2].nickname;
Thirdcount.text = response.data.ranks[2].quantity + "/" + response.data.ranks[2].require;
ThirdPrize.text = response.data.ranks[2].reward.ToString();
break;
}
for (int i = 3; i < response.data.ranks.Count; i++)

View File

@ -45,6 +45,10 @@ public class Scene_main_jiekou :MonoBehaviour
teamFansList teamFansList = new teamFansList();
modifyTradePassword modifyTradePassword = new modifyTradePassword();
sendCode sendCode = new sendCode();
treebonusrank treebonusrank = new treebonusrank();
userinviteconfig userinviteconfig = new userinviteconfig();
treeluckywheel treeluckywheel = new treeluckywheel();
public static Scene_main_jiekou instance;
//public PlayerInfoData infoData;
@ -77,7 +81,7 @@ public class Scene_main_jiekou :MonoBehaviour
return await transfersearch.TransfersearchInfo(key);
}
public async Task<SendCodeResponse> SendCodess(string password, int value)
public async Task<SendCodeResponse> SendCodess(string password, int value)//发送验证码
{
SendCodeBody body = new SendCodeBody();
body.account = password;
@ -313,9 +317,19 @@ public class Scene_main_jiekou :MonoBehaviour
return await promotionRank.PromotionRank();
}
public async Task<TreeBonusrankResponse> TreeBonusrank(int type)//全网数据
{
return await treebonusrank.TreeBonusrank(type);
}
public async Task<userinviteconfigResponse> PromotionRankss()//邀请好友配置
{
return await userinviteconfig.PromotionRank();
}
public async Task<TreeluckywheelResponse> TreeluckyWheels()//获取幸运转盘
{
return await treeluckywheel.TreeluckyWheel();
}
}

View File

@ -0,0 +1,171 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class QuanwangPanel : MonoBehaviour
{
public Button GamenBtn;
public Button AdvertiseBtn;
public Button GoldBtn;
public GameObject quanwangListItemFirst;
public GameObject quanwangListItemScecond;
public GameObject quanwangListItemTird;
public GameObject quanwangListItem;
public GameObject quanwangSelfListItem;
public Transform Connact;
List<GameObject> Objlist = new List<GameObject>();
async void Start()
{
updataitem(0);
GamenBtn.onClick.AddListener(GameClick);
AdvertiseBtn.onClick.AddListener(AdvertiseClick);
GoldBtn.onClick.AddListener(GoldClick);
}
async void updataitem(int type)//用来更新不同排行榜数据,直接传输需要用到的排行版int值
{
TreeBonusrankResponse response = await Scene_main_jiekou.instance.TreeBonusrank(type);
if (response.data.ranks.Length == 1)
{
GameObject quanwangListItemFirstobj = Instantiate(quanwangListItemFirst, Connact);
Objlist.Add(quanwangListItemFirstobj);
quanwangListItemFirstobj.GetComponent<quanwangListItemFirst>().username.text = response.data.ranks[0].nickname;
quanwangListItemFirstobj.GetComponent<quanwangListItemFirst>().userid.text = response.data.ranks[0].uid;
for (int i = 0; i < response.data.ranks[0].level; i++)
{
quanwangListItemFirstobj.GetComponent<quanwangListItemFirst>().start[i].gameObject.SetActive(true);
}
quanwangListItemFirstobj.GetComponent<quanwangListItemFirst>().moneynumber.text = response.data.ranks[0].amount.ToString();
}
if (response.data.ranks.Length == 2)
{
GameObject quanwangListItemFirstobj2 = Instantiate(quanwangListItemFirst, Connact);
GameObject quanwangListItemScecondobj = Instantiate(quanwangListItemScecond, Connact);
Objlist.Add(quanwangListItemFirstobj2);
Objlist.Add(quanwangListItemScecondobj);
quanwangListItemFirstobj2.GetComponent<quanwangListItemFirst>().username.text = response.data.ranks[0].nickname;
quanwangListItemFirstobj2.GetComponent<quanwangListItemFirst>().userid.text = response.data.ranks[0].uid;
for (int i = 0; i < response.data.ranks[0].level; i++)
{
quanwangListItemFirstobj2.GetComponent<quanwangListItemFirst>().start[i].gameObject.SetActive(true);
}
quanwangListItemFirstobj2.GetComponent<quanwangListItemFirst>().moneynumber.text = response.data.ranks[0].amount.ToString();
quanwangListItemScecondobj.GetComponent<quanwangListItemScecond>().username.text = response.data.ranks[1].nickname;
quanwangListItemScecondobj.GetComponent<quanwangListItemScecond>().userid.text = response.data.ranks[1].uid;
for (int i = 0; i < response.data.ranks[1].level; i++)
{
quanwangListItemScecondobj.GetComponent<quanwangListItemScecond>().start[i].gameObject.SetActive(true);
}
quanwangListItemScecondobj.GetComponent<quanwangListItemScecond>().moneynumber.text = response.data.ranks[1].amount.ToString();
}
if (response.data.ranks.Length >= 3)
{
GameObject quanwangListItemFirstobj3 = Instantiate(quanwangListItemFirst, Connact);
GameObject quanwangListItemScecondobj2 = Instantiate(quanwangListItemScecond, Connact);
GameObject quanwangListItemTirdobj = Instantiate(quanwangListItemTird, Connact);
Objlist.Add(quanwangListItemFirstobj3);
Objlist.Add(quanwangListItemScecondobj2);
Objlist.Add(quanwangListItemTirdobj);
quanwangListItemFirstobj3.GetComponent<quanwangListItemFirst>().username.text = response.data.ranks[0].nickname;
quanwangListItemFirstobj3.GetComponent<quanwangListItemFirst>().userid.text = response.data.ranks[0].uid;
for (int i = 0; i < response.data.ranks[0].level; i++)
{
quanwangListItemFirstobj3.GetComponent<quanwangListItemFirst>().start[i].gameObject.SetActive(true);
}
quanwangListItemFirstobj3.GetComponent<quanwangListItemFirst>().moneynumber.text = response.data.ranks[0].amount.ToString();
quanwangListItemScecondobj2.GetComponent<quanwangListItemScecond>().username.text = response.data.ranks[1].nickname;
quanwangListItemScecondobj2.GetComponent<quanwangListItemScecond>().userid.text = response.data.ranks[1].uid;
for (int i = 0; i < response.data.ranks[1].level; i++)
{
quanwangListItemScecondobj2.GetComponent<quanwangListItemScecond>().start[i].gameObject.SetActive(true);
}
quanwangListItemScecondobj2.GetComponent<quanwangListItemScecond>().moneynumber.text = response.data.ranks[1].amount.ToString();
quanwangListItemTirdobj.GetComponent<quanwangListItemTird>().username.text = response.data.ranks[2].nickname;
quanwangListItemTirdobj.GetComponent<quanwangListItemTird>().userid.text = response.data.ranks[2].uid;
for (int i = 0; i < response.data.ranks[2].level; i++)
{
quanwangListItemTirdobj.GetComponent<quanwangListItemTird>().start[i].gameObject.SetActive(true);
}
quanwangListItemTirdobj.GetComponent<quanwangListItemTird>().moneynumber.text = response.data.ranks[2].amount.ToString();
}
for (int i = 3; i < response.data.ranks.Length; i++)
{
GameObject quanwangListItemobj = Instantiate(quanwangListItem, Connact);
Objlist.Add(quanwangListItemobj);
quanwangListItemobj.GetComponent<quanwangListItem>().RankingNumber.text = response.data.ranks[i].rank.ToString();
quanwangListItemobj.GetComponent<quanwangListItem>().username.text = response.data.ranks[i].nickname;
quanwangListItemobj.GetComponent<quanwangListItem>().userid.text = response.data.ranks[i].uid;
for (int j= 0; j < response.data.ranks[i].level; j++)
{
quanwangListItemobj.GetComponent<quanwangListItem>().start[j].gameObject.SetActive(true);
}
quanwangListItemobj.GetComponent<quanwangListItem>().moneynumber.text = response.data.ranks[i].amount.ToString();
}
if (response.data.bottom_show == 1)
{
quanwangSelfListItem.gameObject.SetActive(true);
quanwangSelfListItem.GetComponent<quanwangSelfListItem>().RankingNumber.text = response.data.bottom_rank.rank.ToString();
quanwangSelfListItem.GetComponent<quanwangSelfListItem>().username.text = response.data.bottom_rank.nickname;
quanwangSelfListItem.GetComponent<quanwangSelfListItem>().userid.text = response.data.bottom_rank.uid;
for (int i = 0; i < response.data.bottom_rank.level; i++)
{
quanwangSelfListItem.GetComponent<quanwangListItemTird>().start[i].gameObject.SetActive(true);
}
quanwangSelfListItem.GetComponent<quanwangSelfListItem>().moneynumber.text = response.data.bottom_rank.amount.ToString();
}
else
{
quanwangSelfListItem.gameObject.SetActive(false);
}
}
void GameClick()
{
ClearList();
updataitem(0);
}
void AdvertiseClick()
{
ClearList();
updataitem(1);
}
void GoldClick()
{
ClearList();
updataitem(2);
}
void ClearList()
{
foreach (GameObject obj in Objlist)
{
Destroy(obj);
}
Objlist.Clear();
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a96ec400804edd247afd3ab6a20f6b1e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,46 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ZhuanpanPanel : MonoBehaviour
{
public List<Text> rewardlist;
public Button PlayerBtn;
public Image PlayerPointer;
public Text GetNumber;
public Button AdvertiseBtn;
async void Start()
{
TreeluckywheelResponse response = await Scene_main_jiekou.instance.TreeluckyWheels();
for (int i = 0; i < response.data.items.Length; i++)
{
rewardlist[i].text = response.data.items[i].amount+"g";
}
GetNumber.text ="¿´¹ã¸æ»ñµÃ³é½±´ÎÊý"+ response.data.count_watch +"/10";
PlayerBtn.onClick.AddListener(PlayerClick);
AdvertiseBtn.onClick.AddListener(AdvertiseClick);
}
void PlayerClick()
{
}
void AdvertiseClick()
{
}
// Update is called once per frame
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 831700dc083b97641a10c7fcf7e532b4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class quanwangListItem : MonoBehaviour
{
public Image headicon;
public Text username;
public Text userid;
public List<GameObject> start = new List<GameObject>();
public Text moneynumber;
public Text RankingNumber;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0a84ab266c84b0f4ca1ae7997629d8e4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class quanwangListItemFirst : MonoBehaviour
{
public Image headicon;
public Text username;
public Text userid;
public List<GameObject> start = new List<GameObject>();
public Text moneynumber;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4620b88488f3b884b85a0fb8870cac60
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class quanwangListItemScecond : MonoBehaviour
{
public Image headicon;
public Text username;
public Text userid;
public List<GameObject> start = new List<GameObject>();
public Text moneynumber;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ff5bb043bae83034da3bba6653b94717
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class quanwangListItemTird : MonoBehaviour
{
public Image headicon;
public Text username;
public Text userid;
public List<GameObject> start = new List<GameObject>();
public Text moneynumber;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: adf1d36680cbe8a408c53343a79e0a4a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class quanwangSelfListItem : MonoBehaviour
{
public Image headicon;
public Text username;
public Text userid;
public List<GameObject> start = new List<GameObject>();
public Text moneynumber;
public Text RankingNumber;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 199dd319071de5449bd334e102311eff
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,77 @@
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class treebonusrank : MonoBehaviour
{
public Dictionary<string, string> CreateHeaders()
{
if (string.IsNullOrEmpty(MyGlobal.global.loginResponse.Data.access_token))
{
Debug.LogWarning("尝试创建请求头时token 未设置。");
return new Dictionary<string, string>();
}
return new Dictionary<string, string>
{
{ "Authorization","Bearer "+MyGlobal.global.loginResponse.Data.access_token },
{ "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" }
};
}
public async Task<TreeBonusrankResponse> TreeBonusrank(int type)
{
string response = await myWeb.SendRequest(myWeb.URL + "/api/tree/bonus_rank?type="+type, "GET", "{}", CreateHeaders());
Debug.Log("全网数据" + response);
TreeBonusrankResponse TreeBonusrankResponse = JsonConvert.DeserializeObject<TreeBonusrankResponse>(response);
// Debug.Log("=========" + promotionRankResponse.data.ranks[0].nickname);
return TreeBonusrankResponse;
}
}
public class TreeBonusrankResponse : myResponse
{
public RankData data;
}
public class RankData
{
public int rank;
public Rank[] ranks;
public int bottom_show;
public BottomRank bottom_rank;
}
[System.Serializable]
public class Rank
{
public string uid;
public string account;
public string nickname;
public string avatar_url;
public string invite_code;
public int level;
public string level_name;
public string level_icon;
public int rank;
public float amount;
}
public class BottomRank
{
public string uid;
public string account;
public string nickname;
public string avatar_url;
public string invite_code;
public int level;
public string level_name;
public string level_icon;
public int rank;
public float amount;
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a2f0e19eec636eb45818d9419d6d3f7e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,57 @@
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class treeluckywheel : MonoBehaviour
{
public Dictionary<string, string> CreateHeaders()
{
if (string.IsNullOrEmpty(MyGlobal.global.loginResponse.Data.access_token))
{
Debug.LogWarning("尝试创建请求头时token 未设置。");
return new Dictionary<string, string>();
}
return new Dictionary<string, string>
{
{ "Authorization","Bearer "+MyGlobal.global.loginResponse.Data.access_token },
{ "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" }
};
}
public async Task<TreeluckywheelResponse> TreeluckyWheel()
{
string response = await myWeb.SendRequest(myWeb.URL + "/api/tree/lucky_wheel", "GET", "{}", CreateHeaders());
Debug.Log("幸运转盘" + response);
TreeluckywheelResponse treeluckywheelResponse = JsonConvert.DeserializeObject<TreeluckywheelResponse>(response);
return treeluckywheelResponse;
}
}
public class TreeluckywheelResponse : myResponse
{
public TreeluckywheelData data;
}
[Serializable]
public class TreeluckywheelItem
{
public string uid; // 物品唯一标识符
public string name; // 物品名称
public int amount; // 物品数量
}
[Serializable]
public class TreeluckywheelData
{
public int count_draw; // 已抽取数量
public int count_watch; // 已观看数量
public TreeluckywheelItem[] items; // 物品列表
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e3cebdc92747e5f45953033a8c322ffd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,57 @@
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class userinviteconfig : MonoBehaviour
{
public Dictionary<string, string> CreateHeaders()
{
if (string.IsNullOrEmpty(MyGlobal.global.loginResponse.Data.access_token))
{
Debug.LogWarning("尝试创建请求头时token 未设置。");
return new Dictionary<string, string>();
}
return new Dictionary<string, string>
{
{ "Authorization","Bearer "+MyGlobal.global.loginResponse.Data.access_token },
{ "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" }
};
}
public async Task<userinviteconfigResponse> PromotionRank()
{
string response = await myWeb.SendRequest(myWeb.URL + "/api/user/invite_config", "GET", "{}", CreateHeaders());
Debug.Log("邀请好友配置" + response);
userinviteconfigResponse userinviteconfigresponse = JsonConvert.DeserializeObject<userinviteconfigResponse>(response);
return userinviteconfigresponse;
}
}
[Serializable]
public class InviteData
{
public string title; // 邀请标题
public string desc; // 描述
public string icon; // 图标
public string invite_url; // 邀请链接
public string account; // 用户账户
public string nickname; // 用户昵称
public string avatar_url; // 用户头像
public string invite_code; // 邀请码
public string[] background_urls; // 背景图片 URL 列表
}
[Serializable]
public class userinviteconfigResponse:myResponse
{
public InviteData data; // 包含邀请数据的字段
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: db933369b0be1824daa31ae0ff94a9ad
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: