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
b41b8bb5
Commit
b41b8bb5
authored
Jun 22, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改兑换逻辑
parent
8cee60e3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
19 deletions
+38
-19
ExchangeItem.cs
Assets/Game/Main/Scripts/Item/ExchangeItem.cs
+1
-1
RAInputPhone.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputPhone.cs
+14
-2
RARankList.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RARankList.cs
+2
-0
RealAwardsVM.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsVM.cs
+5
-0
RealAwardsWinDialog.cs
...ame/Main/Scripts/dialog/RealAwards/RealAwardsWinDialog.cs
+3
-3
packages-lock.json
Packages/packages-lock.json
+13
-13
No files found.
Assets/Game/Main/Scripts/Item/ExchangeItem.cs
View file @
b41b8bb5
...
@@ -32,7 +32,7 @@ public class ExchangeItem : MonoBehaviour
...
@@ -32,7 +32,7 @@ public class ExchangeItem : MonoBehaviour
ToastPlugin
.
ToastHelper
.
ShowToast
(
"余额不足"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"余额不足"
);
return
;
return
;
}
}
FindObjectOfType
<
DialogControl
>().
ShowRealAwardsWinDialog
().
SetUpSubviews
(
bean
.
img
,
bean
.
name
,
bean
.
id
+
""
);
FindObjectOfType
<
DialogControl
>().
ShowRealAwardsWinDialog
().
SetUpSubviews
(
bean
.
img
,
bean
.
name
,
bean
.
id
);
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputPhone.cs
View file @
b41b8bb5
...
@@ -46,11 +46,23 @@ public class RAInputPhone : MonoBehaviour
...
@@ -46,11 +46,23 @@ public class RAInputPhone : MonoBehaviour
if
(
RealAwardsVM
.
isFanYiFan
)
if
(
RealAwardsVM
.
isFanYiFan
)
{
{
RealAwardsVM
.
RequestInternetForChooseAward
(
RealAwardsVM
.
awardModel
.
id
);
RealAwardsVM
.
RequestInternetForChooseAward
(
RealAwardsVM
.
awardModel
.
id
);
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
RealAwardsVM
.
isFanYiFan
);
}
}
else
{
GameObject
.
Find
(
"planttreewithdrawDialog"
).
GetComponent
<
PlantTreeControl
>().
FinishWriteInfo
(
RealAwardsVM
.
id
,
new
Action
<
string
>((
no
)
=>
{
RealAwardsVM
.
no
=
no
;
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
RealAwardsVM
.
isFanYiFan
);
FindObjectOfType
<
DialogControl
>().
ShowRARankList
(
RealAwardsVM
.
isFanYiFan
);
}));
}
}
}
}));
}));
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RARankList.cs
View file @
b41b8bb5
...
@@ -51,6 +51,8 @@ public class RARankList : MonoBehaviour
...
@@ -51,6 +51,8 @@ public class RARankList : MonoBehaviour
private
void
OnDisable
()
private
void
OnDisable
()
{
{
EventCenter
.
RemoveListener
(
MyEventType
.
RefreshRealAwardsData
,
RefreshData
);
EventCenter
.
RemoveListener
(
MyEventType
.
RefreshRealAwardsData
,
RefreshData
);
GameObject
.
Find
(
"planttreewithdrawDialog"
).
GetComponent
<
PlantTreeControl
>().
clickthree
();
}
}
/// <summary>
/// <summary>
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsVM.cs
View file @
b41b8bb5
...
@@ -45,6 +45,11 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
...
@@ -45,6 +45,11 @@ public class RealAwardsVM : SingletonMono<RealAwardsVM>
/// </summary>
/// </summary>
public
static
bool
isFanYiFan
;
public
static
bool
isFanYiFan
;
/// <summary>
/// 兑换奖品的id
/// </summary>
public
static
int
id
;
/// <summary>
/// <summary>
/// 兑换奖品的no
/// 兑换奖品的no
/// </summary>
/// </summary>
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsWinDialog.cs
View file @
b41b8bb5
...
@@ -59,8 +59,8 @@ public class RealAwardsWinDialog : MonoBehaviour
...
@@ -59,8 +59,8 @@ public class RealAwardsWinDialog : MonoBehaviour
/// </summary>
/// </summary>
/// <param name="img">图片url</param>
/// <param name="img">图片url</param>
/// <param name="name">名字</param>
/// <param name="name">名字</param>
/// <param name="
no">兑换奖励的订单号
</param>
/// <param name="
id">兑换奖励的id
</param>
public
void
SetUpSubviews
(
string
img
,
string
name
,
string
no
)
public
void
SetUpSubviews
(
string
img
,
string
name
,
int
id
)
{
{
isReal
=
false
;
isReal
=
false
;
...
@@ -68,7 +68,7 @@ public class RealAwardsWinDialog : MonoBehaviour
...
@@ -68,7 +68,7 @@ public class RealAwardsWinDialog : MonoBehaviour
NameText
.
text
=
name
;
NameText
.
text
=
name
;
RealAwardsVM
.
no
=
no
;
RealAwardsVM
.
id
=
id
;
RealAwardsVM
.
isFanYiFan
=
false
;
RealAwardsVM
.
isFanYiFan
=
false
;
}
}
...
...
Packages/packages-lock.json
View file @
b41b8bb5
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.analytics"
:
{
"com.unity.analytics"
:
{
"version"
:
"3.3.5"
,
"version"
:
"3.3.5"
,
...
@@ -28,21 +28,21 @@
...
@@ -28,21 +28,21 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.collab-proxy"
:
{
"com.unity.collab-proxy"
:
{
"version"
:
"1.2.16"
,
"version"
:
"1.2.16"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ext.nunit"
:
{
"com.unity.ext.nunit"
:
{
"version"
:
"1.0.6"
,
"version"
:
"1.0.6"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ide.rider"
:
{
"com.unity.ide.rider"
:
{
"version"
:
"1.1.4"
,
"version"
:
"1.1.4"
,
...
@@ -51,14 +51,14 @@
...
@@ -51,14 +51,14 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.test-framework"
:
"1.1.1"
"com.unity.test-framework"
:
"1.1.1"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ide.vscode"
:
{
"com.unity.ide.vscode"
:
{
"version"
:
"1.2.3"
,
"version"
:
"1.2.3"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.multiplayer-hlapi"
:
{
"com.unity.multiplayer-hlapi"
:
{
"version"
:
"1.0.8"
,
"version"
:
"1.0.8"
,
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
"dependencies"
:
{
"dependencies"
:
{
"nuget.mono-cecil"
:
"0.1.6-preview"
"nuget.mono-cecil"
:
"0.1.6-preview"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.purchasing"
:
{
"com.unity.purchasing"
:
{
"version"
:
"2.2.1"
,
"version"
:
"2.2.1"
,
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.test-framework"
:
{
"com.unity.test-framework"
:
{
"version"
:
"1.1.20"
,
"version"
:
"1.1.20"
,
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.jsonserialize"
:
"1.0.0"
"com.unity.modules.jsonserialize"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.textmeshpro"
:
{
"com.unity.textmeshpro"
:
{
"version"
:
"2.1.1"
,
"version"
:
"2.1.1"
,
...
@@ -96,14 +96,14 @@
...
@@ -96,14 +96,14 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.timeline"
:
{
"com.unity.timeline"
:
{
"version"
:
"1.2.17"
,
"version"
:
"1.2.17"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ugui"
:
{
"com.unity.ugui"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
@@ -122,14 +122,14 @@
...
@@ -122,14 +122,14 @@
"com.unity.modules.vr"
:
"1.0.0"
,
"com.unity.modules.vr"
:
"1.0.0"
,
"com.unity.modules.xr"
:
"1.0.0"
"com.unity.modules.xr"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"nuget.mono-cecil"
:
{
"nuget.mono-cecil"
:
{
"version"
:
"0.1.6-preview"
,
"version"
:
"0.1.6-preview"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.modules.ai"
:
{
"com.unity.modules.ai"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
...
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