Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
e56317ea
Commit
e56317ea
authored
Jun 22, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排行榜等页面给兑换奖励调用
parent
678e466b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
92 additions
and
26 deletions
+92
-26
PangleAdapterScripts.meta
Assets/AdSDK/AD/CSJ/PangleAdapterScripts.meta
+0
-8
PangleSDK.meta
Assets/AdSDK/AD/CSJ/PangleSDK.meta
+0
-8
PlantTreeItem.cs
Assets/Game/Main/Scripts/Item/PlantTreeItem.cs
+2
-2
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+5
-1
HomeInfoControl.cs
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
+1
-1
RAInputPhone.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputPhone.cs
+5
-2
RealAwardsVM.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsVM.cs
+73
-3
RealAwardsWinDialog.cs
...ame/Main/Scripts/dialog/RealAwards/RealAwardsWinDialog.cs
+6
-1
No files found.
Assets/AdSDK/AD/CSJ/PangleAdapterScripts.meta
deleted
100644 → 0
View file @
678e466b
fileFormatVersion: 2
guid: 4de77bfbd9c014146a2b371280ff0f63
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/AD/CSJ/PangleSDK.meta
deleted
100644 → 0
View file @
678e466b
fileFormatVersion: 2
guid: 9216b5ab3159c44e594fa8e3a6bfcd90
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/Item/PlantTreeItem.cs
View file @
e56317ea
...
@@ -137,7 +137,7 @@ public class PlantTreeItem : MonoBehaviour
...
@@ -137,7 +137,7 @@ public class PlantTreeItem : MonoBehaviour
if
(
RealAwardsVM
.
didChooseAward
)
if
(
RealAwardsVM
.
didChooseAward
)
{
{
// 已经选择过奖品, 直接弹出排行榜
// 已经选择过奖品, 直接弹出排行榜
FindObjectOfType
<
DialogControl
>().
ShowRARankList
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
true
);
}
}
else
else
{
{
...
@@ -161,7 +161,7 @@ public class PlantTreeItem : MonoBehaviour
...
@@ -161,7 +161,7 @@ public class PlantTreeItem : MonoBehaviour
if
(
RealAwardsVM
.
didChooseAward
)
if
(
RealAwardsVM
.
didChooseAward
)
{
{
// 已经选择过奖品, 直接弹出排行榜
// 已经选择过奖品, 直接弹出排行榜
FindObjectOfType
<
DialogControl
>().
ShowRARankList
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
true
);
}
}
else
else
{
{
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
e56317ea
...
@@ -1060,6 +1060,7 @@ public class DialogControl : MonoBehaviour
...
@@ -1060,6 +1060,7 @@ public class DialogControl : MonoBehaviour
/// </summary>
/// </summary>
public
void
ShowRealAwards
()
public
void
ShowRealAwards
()
{
{
RealAwardsVM
.
isFanYiFan
=
true
;
GameObject
gameObject
=
Instantiate
(
RealAwards
,
transform
);
GameObject
gameObject
=
Instantiate
(
RealAwards
,
transform
);
gameObject
.
name
=
"RealAwards"
;
gameObject
.
name
=
"RealAwards"
;
gameObject
.
SetActive
(
true
);
gameObject
.
SetActive
(
true
);
...
@@ -1153,8 +1154,11 @@ public class DialogControl : MonoBehaviour
...
@@ -1153,8 +1154,11 @@ public class DialogControl : MonoBehaviour
/// <summary>
/// <summary>
/// 显示排行榜页面
/// 显示排行榜页面
/// </summary>
/// </summary>
public
void
ShowRARankList
()
/// <param name="isFanYiFan">是否是翻一翻</param>
public
void
ShowRARankList
(
bool
isFanYiFan
)
{
{
RealAwardsVM
.
isFanYiFan
=
isFanYiFan
;
GameObject
gameObject
=
transform
.
Find
(
"RARankList"
).
gameObject
;
GameObject
gameObject
=
transform
.
Find
(
"RARankList"
).
gameObject
;
gameObject
.
SetActive
(
true
);
gameObject
.
SetActive
(
true
);
}
}
...
...
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
View file @
e56317ea
...
@@ -716,7 +716,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
...
@@ -716,7 +716,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
if
(
RealAwardsVM
.
didChooseAward
)
if
(
RealAwardsVM
.
didChooseAward
)
{
{
// 已经选择过奖品, 直接弹出排行榜
// 已经选择过奖品, 直接弹出排行榜
FindObjectOfType
<
DialogControl
>().
ShowRARankList
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
true
);
}
}
else
else
{
{
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputPhone.cs
View file @
e56317ea
...
@@ -32,11 +32,14 @@ public class RAInputPhone : MonoBehaviour
...
@@ -32,11 +32,14 @@ public class RAInputPhone : MonoBehaviour
{
{
if
(
cb
)
if
(
cb
)
{
{
RealAwardsVM
.
RequestInternetForChooseAward
(
RealAwardsVM
.
awardModel
.
id
);
if
(
RealAwardsVM
.
isFanYiFan
)
{
RealAwardsVM
.
RequestInternetForChooseAward
(
RealAwardsVM
.
awardModel
.
id
);
}
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
RealAwardsVM
.
isFanYiFan
);
}
}
}));
}));
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsVM.cs
View file @
e56317ea
...
@@ -40,12 +40,42 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
...
@@ -40,12 +40,42 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
/// </summary>
/// </summary>
public
static
bool
cannotChooseOthers
;
public
static
bool
cannotChooseOthers
;
/// <summary>
/// 是否是翻一翻
/// </summary>
public
static
bool
isFanYiFan
;
/// <summary>
/// 兑换奖品的no
/// </summary>
public
static
string
no
;
/// <summary>
/// <summary>
/// 获取实物奖励数据, 包括我的奖品、奖品列表、排行榜、我的排行
/// 获取实物奖励数据, 包括我的奖品、奖品列表、排行榜、我的排行
/// </summary>
/// </summary>
public
static
void
RequestInternetForData
()
public
static
void
RequestInternetForData
()
{
{
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/inKind/rank"
,
null
,
new
Action
<
RealAwardsDataModel
>((
bean
)
=>
string
urlString
;
if
(
isFanYiFan
)
{
urlString
=
"app/v1/game/module/inKind/rank"
;
}
else
{
urlString
=
"app/v1/game/module/exchange/logRank"
;
}
Dictionary
<
string
,
object
>
parameters
=
new
Dictionary
<
string
,
object
>();
if
(
isFanYiFan
)
{
parameters
=
null
;
}
else
{
parameters
[
no
]
=
no
;
}
HttpTool
.
Instance
.
_Get
(
urlString
,
parameters
,
new
Action
<
RealAwardsDataModel
>((
bean
)
=>
{
{
dataModel
=
bean
;
dataModel
=
bean
;
...
@@ -101,7 +131,27 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
...
@@ -101,7 +131,27 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
/// </summary>
/// </summary>
public
static
void
RequestInternetForRankYesterday
(
Action
action
)
public
static
void
RequestInternetForRankYesterday
(
Action
action
)
{
{
HttpTool
.
Instance
.
_Get
(
"app/v1/game/module/inKind/rankYesterday"
,
null
,
new
Action
<
List
<
RealAwardsRankModel
>>((
bean
)
=>
string
urlString
;
if
(
isFanYiFan
)
{
urlString
=
"app/v1/game/module/inKind/rankYesterday"
;
}
else
{
urlString
=
"app/v1/game/module/exchange/rankYesterday"
;
}
Dictionary
<
string
,
object
>
parameters
=
new
Dictionary
<
string
,
object
>();
if
(
isFanYiFan
)
{
parameters
=
null
;
}
else
{
parameters
[
no
]
=
no
;
}
HttpTool
.
Instance
.
_Get
(
urlString
,
parameters
,
new
Action
<
List
<
RealAwardsRankModel
>>((
bean
)
=>
{
{
yesterdayList
=
bean
;
yesterdayList
=
bean
;
...
@@ -118,7 +168,27 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
...
@@ -118,7 +168,27 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
/// </summary>
/// </summary>
public
static
void
RequestInternetForUpgrade
()
public
static
void
RequestInternetForUpgrade
()
{
{
HttpTool
.
Instance
.
_Post
(
"app/v1/game/module/inKind/upgrade"
,
null
,
new
Action
<
EmptyModel
>((
bean
)
=>
string
urlString
;
if
(
isFanYiFan
)
{
urlString
=
"app/v1/game/module/inKind/upgrade"
;
}
else
{
urlString
=
"app/v1/game/module/exchange/upgrade"
;
}
Dictionary
<
string
,
object
>
parameters
=
new
Dictionary
<
string
,
object
>();
if
(
isFanYiFan
)
{
parameters
=
null
;
}
else
{
parameters
[
no
]
=
no
;
}
HttpTool
.
Instance
.
_Post
(
urlString
,
parameters
,
new
Action
<
EmptyModel
>((
bean
)
=>
{
{
RequestInternetForData
();
RequestInternetForData
();
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsWinDialog.cs
View file @
e56317ea
...
@@ -59,13 +59,18 @@ public class RealAwardsWinDialog : MonoBehaviour
...
@@ -59,13 +59,18 @@ public class RealAwardsWinDialog : MonoBehaviour
/// </summary>
/// </summary>
/// <param name="img">图片url</param>
/// <param name="img">图片url</param>
/// <param name="name">名字</param>
/// <param name="name">名字</param>
public
void
SetUpSubviews
(
string
img
,
string
name
)
/// <param name="no">兑换奖励的订单号</param>
public
void
SetUpSubviews
(
string
img
,
string
name
,
string
no
)
{
{
isReal
=
false
;
isReal
=
false
;
StartCoroutine
(
LoadAwardImage
(
img
));
StartCoroutine
(
LoadAwardImage
(
img
));
NameText
.
text
=
name
;
NameText
.
text
=
name
;
RealAwardsVM
.
no
=
no
;
RealAwardsVM
.
isFanYiFan
=
false
;
}
}
/// <summary>
/// <summary>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment