商城接口恢复
This commit is contained in:
parent
d753673775
commit
cd00ac298d
@ -14,9 +14,10 @@ public class Scene_main_jiekou :Base
|
||||
|
||||
|
||||
//商城信息
|
||||
public MallResponsePro _mallResponsePro;//É̳ÇÁбí½á¹¹Ìå
|
||||
private MallResponsePro _mallResponsePro;//<2F>냘죗깊써뭐竟
|
||||
private getMallList21 _getMallList21;//商城列表获取方法
|
||||
|
||||
//<2F>냘info俚듕
|
||||
public Dictionary<int, ProductPro> shopItemDic;
|
||||
|
||||
// Start is called before the first frame update
|
||||
|
||||
@ -25,7 +26,7 @@ public class Scene_main_jiekou :Base
|
||||
instance = this;
|
||||
|
||||
//testLogo();
|
||||
getPlayerInfo();
|
||||
//getPlayerInfo();
|
||||
// getShopInfo();
|
||||
}
|
||||
|
||||
@ -48,13 +49,25 @@ public class Scene_main_jiekou :Base
|
||||
|
||||
|
||||
|
||||
|
||||
public async Task ShopInfo()
|
||||
{
|
||||
//瓊품헌왕
|
||||
shopItemDic = null;
|
||||
_mallResponsePro = null;
|
||||
_getMallList21 = null;
|
||||
|
||||
|
||||
//路畇畇흙
|
||||
_mallResponsePro = new MallResponsePro();
|
||||
_getMallList21 = new getMallList21();
|
||||
|
||||
_mallResponsePro = await _getMallList21.getMallList(1, 1, 20);
|
||||
|
||||
foreach (ProductPro go in _mallResponsePro.Data.DataList)
|
||||
{
|
||||
shopItemDic.Add(go.ProductId,go);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -6,6 +6,21 @@ using DG.Tweening;
|
||||
|
||||
public class shopPanel: ui_huodong
|
||||
{
|
||||
public List<itemInfo> itemInfos = new List<itemInfo>();
|
||||
|
||||
void initShop()
|
||||
{
|
||||
|
||||
int index= Scene_main_jiekou.instance._mallResponsePro.Data.TotalCount;//商城的商品数量
|
||||
|
||||
foreach (itemInfo item in itemInfos)
|
||||
{
|
||||
if (index>0)
|
||||
{
|
||||
item.gameObject.SetActive(true);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ public class ui_huodong :main_BaseShowPanel
|
||||
[Header("面板,请和按钮一一对应")]
|
||||
public List<GameObject> panels=new List<GameObject>();
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
public virtual void Start()
|
||||
{
|
||||
base.showPanel(base._panel);
|
||||
|
||||
|
@ -9,6 +9,7 @@ GameObject:
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5363579444209329408}
|
||||
- component: {fileID: 2302796054771788344}
|
||||
m_Layer: 5
|
||||
m_Name: shopPanel
|
||||
m_TagString: Untagged
|
||||
@ -38,6 +39,21 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2302796054771788344
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5363579444209329409}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e3c192bd726c790488c8fe8895226742, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_panel: {fileID: 957974660627982085}
|
||||
btns: []
|
||||
panels: []
|
||||
--- !u!1001 &5363579443773024874
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -144,6 +160,11 @@ RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 5126270615579512174, guid: 4e48ee49e456fad4887407d7ee921b35, type: 3}
|
||||
m_PrefabInstance: {fileID: 5363579443773024874}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &957974660627982085 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 5126270615579512175, guid: 4e48ee49e456fad4887407d7ee921b35, type: 3}
|
||||
m_PrefabInstance: {fileID: 5363579443773024874}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &5363579444857241352
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
Loading…
Reference in New Issue
Block a user