zhaoyang 2 years ago
parent
commit
ac8e6a7163

+ 4 - 3
FGUIProject/assets/Store/StoreMonthUI.xml

@@ -6,12 +6,14 @@
       <relation target="" sidePair="height-height"/>
     </image>
     <image id="n2_qik1" name="n2" src="hhx918" fileName="imagesNew/MonthCard_bg.png" xy="90,552"/>
+    <component id="n41_qik1" name="valueBar" src="v3541v" fileName="components/ComponentValueBar.xml" pkg="eg2y0ldp" xy="0,95" controller="c1,10"/>
     <component id="n3_qik1" name="btnRule" src="psphtkg" fileName="components/BtnRule.xml" pkg="eg2y0ldp" xy="919,564" size="52,52">
       <Button icon="ui://p9mtgheofqortar"/>
     </component>
     <loader id="n33_qik1" name="loaCard" xy="190,612" size="592,340" url="ui://p9mtgheohhx91a" autoSize="true"/>
-    <text id="n4_qik1" name="txtTime" xy="759,570" pivot="1,0" size="143,39" fontSize="28" color="#675c50" text="29天后到期"/>
+    <text id="n4_qik1" name="txtTime" xy="759,570" pivot="1,0" size="143,39" fontSize="28" color="#675c50" vars="true" text="{value=29}天后到期"/>
     <image id="n5_qik1" name="n5" src="hhx919" fileName="imagesNew/MonthCard_Devide_baseboard.png" xy="127,1004" size="826,240"/>
+    <component id="n32_qik1" name="btnBuy" src="qik1tc2" fileName="components/Button10.xml" xy="415,864"/>
     <text id="n6_qik1" name="txtTips" xy="149,954" pivot="0.5,0" size="781,36" fontSize="26" color="#8c8580" vars="true" text="购买/续费可获得{value=300}会员积分(剩余天数超过{day=300}天后无法继续续费)"/>
     <text id="n7_qik1" name="n7" xy="296,1025" size="182,42" group="n10_qik1" fontSize="30" color="#8c8580" vars="true" text="购买立即获得"/>
     <loader id="n11_qik1" name="loaMoney" xy="513,1026" size="40,40" group="n15_qik1" aspect="true" url="ui://eg2y0ldpkztethq" fill="scale"/>
@@ -29,8 +31,7 @@
     <text id="n24_qik1" name="txtDailyMoneyCount" xy="684,1080" size="47,41" group="n25_qik1" fontSize="30" color="#8c8580" vars="true" text="300"/>
     <group id="n25_qik1" name="n25" xy="625,1080" size="106,42" group="n30_qik1"/>
     <group id="n30_qik1" name="n30" xy="349,1080" size="382,42" advanced="true" layout="hz" colGap="35" excludeInvisibles="true"/>
-    <component id="n31_qik1" name="n31" src="qik1tc1" fileName="components/Button9.xml" xy="428,1145"/>
-    <component id="n32_qik1" name="btnBuy" src="qik1tc2" fileName="components/Button10.xml" xy="415,864"/>
+    <component id="n31_qik1" name="btnGet" src="qik1tc1" fileName="components/Button9.xml" xy="428,1145"/>
     <image id="n34_qik1" name="n34" src="hhx91c" fileName="imagesNew/ornamental_title.png" xy="103,1281" pivot="0.5,0.5" group="n37_qik1" scale="-1,1"/>
     <text id="n35_qik1" name="txtGiftBag" xy="474,1268" pivot="0.5,0" size="132,44" group="n37_qik1" fontSize="32" color="#915e15" align="center" vars="true" text="特权礼包"/>
     <image id="n36_qik1" name="n36" src="hhx91c" fileName="imagesNew/ornamental_title.png" xy="625,1281" pivot="0.5,0.5" group="n37_qik1"/>

+ 6 - 6
FGUIProject/assets/Store/components/Button10.xml

@@ -3,14 +3,14 @@
   <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
   <displayList>
     <image id="n10_qik1" name="n10" src="hhx91d" fileName="imagesNew/bt_buy.png" xy="0,5"/>
-    <text id="n5_l500" name="txtOriginalPrice" xy="36,16" pivot="0.5,0" size="50,44" group="n7_l500" fontSize="32" color="#725e41" align="center" text="999"/>
-    <image id="n6_l500" name="n6" src="fqortas" fileName="imagesNew/sc_jinxiexian.png" xy="31,37" pivot="0.5,0" group="n7_l500">
+    <text id="n5_l500" name="txtOriginalPrice" xy="33,16" pivot="0.5,0" size="50,44" group="n7_l500" fontSize="32" color="#725e41" align="center" text="999"/>
+    <image id="n6_l500" name="n6" src="fqortas" fileName="imagesNew/sc_jinxiexian.png" xy="28,35" pivot="0.5,0" group="n7_l500">
       <relation target="n5_l500" sidePair="width-width"/>
     </image>
-    <group id="n7_l500" name="grpOriginalPrice" xy="31,16" size="60,44" group="n8_l500" advanced="true"/>
-    <text id="n4_l500" name="txtPrice" xy="93,10" size="43,54" group="n8_l500" fontSize="40" color="#5a3e16" text="99"/>
-    <text id="n9_l500" name="title" xy="138,9" size="84,54" group="n8_l500" fontSize="40" color="#5a3e16" align="center" text="购买"/>
-    <group id="n8_l500" name="n8" xy="31,9" size="191,55" advanced="true" layout="hz" colGap="2" excludeInvisibles="true">
+    <group id="n7_l500" name="grpOriginalPrice" xy="28,16" size="60,44" group="n8_l500" advanced="true"/>
+    <text id="n4_l500" name="txtPrice" xy="90,10" size="43,54" group="n8_l500" fontSize="40" color="#5a3e16" text="99"/>
+    <text id="n9_l500" name="title" xy="135,9" size="84,54" group="n8_l500" fontSize="40" color="#5a3e16" align="center" text="购买"/>
+    <group id="n8_l500" name="n8" xy="28,9" size="191,55" advanced="true" layout="hz" colGap="2" excludeInvisibles="true">
       <relation target="" sidePair="center-center"/>
     </group>
   </displayList>

+ 2 - 2
FGUIProject/assets/Store/package.xml

@@ -106,7 +106,7 @@
     <image id="hhx917" name="MonthCard_baseboard.png" path="/imagesNew/" scale="9grid" scale9grid="243,346,486,692"/>
     <image id="hhx918" name="MonthCard_bg.png" path="/imagesNew/"/>
     <image id="hhx919" name="MonthCard_Devide_baseboard.png" path="/imagesNew/" scale="9grid" scale9grid="25,25,50,50"/>
-    <image id="hhx91a" name="MonthCard_Icon.png" path="/imagesNew/"/>
+    <image id="hhx91a" name="MonthCard_Icon.png" path="/imagesNew/" exported="true"/>
     <image id="hhx91b" name="MonthCard_unopen.png" path="/imagesNew/"/>
     <image id="hhx91c" name="ornamental_title.png" path="/imagesNew/"/>
     <image id="hhx91d" name="bt_buy.png" path="/imagesNew/"/>
@@ -140,7 +140,7 @@
     <image id="qik1tbx" name="bt_to.png" path="/imagesNew/"/>
     <component id="qik1tby" name="ListVipItem.xml" path="/components/"/>
     <component id="qik1tbz" name="Button8.xml" path="/components/"/>
-    <component id="qik1tc0" name="StoreMonthUI.xml" path="/"/>
+    <component id="qik1tc0" name="StoreMonthUI.xml" path="/" exported="true"/>
     <component id="qik1tc1" name="Button9.xml" path="/components/"/>
     <component id="qik1tc2" name="Button10.xml" path="/components/"/>
     <image id="qik1tc3" name="sc_yk_dbzz.png" path="/imagesNew/"/>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Constant/ConstStoreSubId.cs

@@ -5,7 +5,7 @@ namespace GFGGame
         public const int STORE_CHARGE = 0;//充值
         public const int STORE_CHARGE_ADDUP = 1;//累计充值
         public const int STORE_MONTH_GLOAD_CARD = 0;//金卡
-        public const int STORE_MONTH_BLACK_CARD = 0;//黑金卡
+        public const int STORE_MONTH_BLACK_CARD = 1;//黑金卡
         public const int STORE_GIFT_BAG_ACTIVITY = 0;//活动
         public const int STORE_GIFT_BAG_TIME_LIMIT = 1;//限时活动
         public const int STORE_GIFT_BAG_GREATEST = 2;//精选

+ 77 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_Button10.cs

@@ -0,0 +1,77 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.Store
+{
+    public partial class UI_Button10
+    {
+        public GButton target;
+        public GTextField m_txtOriginalPrice;
+        public GGroup m_grpOriginalPrice;
+        public GTextField m_txtPrice;
+        public const string URL = "ui://p9mtgheoqik1tc2";
+        public const string PACKAGE_NAME = "Store";
+        public const string RES_NAME = "Button10";
+        private static UI_Button10 _proxy;
+
+        public static UI_Button10 Create(GObject gObject = null)
+        {
+            var ui = new UI_Button10();
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_Button10 Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_Button10();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_txtOriginalPrice = (GTextField)comp.GetChild("txtOriginalPrice");
+            m_grpOriginalPrice = (GGroup)comp.GetChild("grpOriginalPrice");
+            m_txtPrice = (GTextField)comp.GetChild("txtPrice");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_txtOriginalPrice = null;
+            m_grpOriginalPrice = null;
+            m_txtPrice = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_Button10.cs.meta

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

+ 111 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthUI.cs

@@ -0,0 +1,111 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.Store
+{
+    public partial class UI_StoreMonthUI
+    {
+        public GComponent target;
+        public GComponent m_valueBar;
+        public GButton m_btnRule;
+        public GLoader m_loaCard;
+        public GTextField m_txtTime;
+        public UI_Button10 m_btnBuy;
+        public GTextField m_txtTips;
+        public GLoader m_loaMoney;
+        public GTextField m_txtMoneyCount;
+        public GTextField m_txtPrivilegeCount;
+        public GLoader m_loaDailyMoney;
+        public GTextField m_txtDailyMoneyCount;
+        public GButton m_btnGet;
+        public GTextField m_txtGiftBag;
+        public GList m_list;
+        public const string URL = "ui://p9mtgheoqik1tc0";
+        public const string PACKAGE_NAME = "Store";
+        public const string RES_NAME = "StoreMonthUI";
+        private static UI_StoreMonthUI _proxy;
+
+        public static UI_StoreMonthUI Create(GObject gObject = null)
+        {
+            var ui = new UI_StoreMonthUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_StoreMonthUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_StoreMonthUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_valueBar = (GComponent)comp.GetChild("valueBar");
+            m_btnRule = (GButton)comp.GetChild("btnRule");
+            m_loaCard = (GLoader)comp.GetChild("loaCard");
+            m_txtTime = (GTextField)comp.GetChild("txtTime");
+            m_btnBuy = (UI_Button10)UI_Button10.Create(comp.GetChild("btnBuy"));
+            m_txtTips = (GTextField)comp.GetChild("txtTips");
+            m_loaMoney = (GLoader)comp.GetChild("loaMoney");
+            m_txtMoneyCount = (GTextField)comp.GetChild("txtMoneyCount");
+            m_txtPrivilegeCount = (GTextField)comp.GetChild("txtPrivilegeCount");
+            m_loaDailyMoney = (GLoader)comp.GetChild("loaDailyMoney");
+            m_txtDailyMoneyCount = (GTextField)comp.GetChild("txtDailyMoneyCount");
+            m_btnGet = (GButton)comp.GetChild("btnGet");
+            m_txtGiftBag = (GTextField)comp.GetChild("txtGiftBag");
+            m_list = (GList)comp.GetChild("list");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_valueBar = null;
+            m_btnRule = null;
+            m_loaCard = null;
+            m_txtTime = null;
+            m_btnBuy.Dispose();
+            m_btnBuy = null;
+            m_txtTips = null;
+            m_loaMoney = null;
+            m_txtMoneyCount = null;
+            m_txtPrivilegeCount = null;
+            m_loaDailyMoney = null;
+            m_txtDailyMoneyCount = null;
+            m_btnGet = null;
+            m_txtGiftBag = null;
+            m_list = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthUI.cs.meta

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

+ 36 - 2
GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs

@@ -22,7 +22,7 @@ namespace GFGGame
             }
             return false;
         }
-        public static async ETTask<bool> ReqShopBuy(int buyId, long buyCount)
+        public static async ETTask<bool> ReqShopBuy(int buyId, long buyCount = 1)
         {
             S2C_ShopBuy response = null;
             response = (S2C_ShopBuy)await MessageHelper.SendToServer(new C2S_ShopBuy() { BuyId = buyId, Times = (int)buyCount });
@@ -54,6 +54,8 @@ namespace GFGGame
             }
             return false;
         }
+
+        /**********************************************会员中心**********************************************/
         //领取VIP等级礼包
         public static async ETTask<bool> ReqGetVipGiftBag(int vipLv)
         {
@@ -82,6 +84,38 @@ namespace GFGGame
             }
             return false;
         }
-    }
 
+        /*********************************************************月卡***************************************************/
+
+        //领取每日返还珍珠
+        public static async ETTask<bool> ReqGetMonthCardReward(int monthCardType)
+        {
+            S2C_GetMonthCardReward response = null;
+            response = (S2C_GetMonthCardReward)await MessageHelper.SendToServer(new C2S_GetMonthCardReward() { MonthCardType = monthCardType });
+            if (response != null)
+            {
+                if (response.Error == ErrorCode.ERR_Success)
+                {
+                    return true;
+                }
+            }
+            return false;
+        }
+        //领取专属单品
+        public static async ETTask<bool> ReqGetMonthCardItem(int monthCardType)
+        {
+            S2C_GetMonthCardItem response = null;
+            response = (S2C_GetMonthCardItem)await MessageHelper.SendToServer(new C2S_GetMonthCardItem());
+            if (response != null)
+            {
+                if (response.Error == ErrorCode.ERR_Success)
+                {
+                    return true;
+                }
+            }
+            return false;
+        }
+
+
+    }
 }

+ 172 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs

@@ -0,0 +1,172 @@
+using UI.Store;
+using UI.CommonGame;
+using FairyGUI;
+using System.Collections.Generic;
+using ET;
+using System;
+
+namespace GFGGame
+{
+    public class StoreMonthView : BaseWindow
+    {
+        private UI_StoreMonthUI _ui;
+        private ValueBarController _valueBarController;
+        private List<ShopCfg> _shopCfgs;
+
+        public override void Dispose()
+        {
+            if (_valueBarController != null)
+            {
+                _valueBarController.Dispose();
+                _valueBarController = null;
+            }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+            }
+            _ui = null;
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_StoreMonthUI.PACKAGE_NAME;
+            _ui = UI_StoreMonthUI.Create();
+            this.viewCom = _ui.target;
+            isfullScreen = true;
+            this.clickBlankToClose = false;
+
+            _valueBarController = new ValueBarController(_ui.m_valueBar);
+            _ui.m_list.itemRenderer = ListItemRenderer;
+            _ui.m_btnBuy.target.onClick.Add(OnBtnBuyCardClick);
+            _ui.m_btnGet.onClick.Add(OnBtnGetClick);
+        }
+        protected override void AddEventListener()
+        {
+            base.AddEventListener();
+
+        }
+        protected override void OnShown()
+        {
+            base.OnShown();
+
+            _valueBarController.OnShown();
+        }
+
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+            _valueBarController.OnHide();
+        }
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+        }
+        private void UpdateView()
+        {
+            int menu2 = (int)this.viewData;
+            _shopCfgs = ShopCfgArray.Instance.GetCfgsBymenu1Andmenu2(ConstStoreTabId.STORE_MONTH_CARD, menu2);
+            _ui.m_list.numItems = _shopCfgs.Count;
+
+            MonthlyCardPrivilegeCfg privilegeCfg = MonthlyCardPrivilegeCfgArray.Instance.GetCfg(MonthCardPrivilegeType.Privilege1);
+
+            string iconUrl = "";
+            bool isFirstBuy = false;
+            bool isGot = false;
+            long endTime = 0;
+            int privilegeCount = 0;
+            MonthlyCardCfg monthCfg = null;
+            switch (menu2)
+            {
+                case ConstStoreSubId.STORE_MONTH_GLOAD_CARD:
+                    iconUrl = "ui://Store/MonthCard_Icon";
+                    monthCfg = MonthlyCardCfgArray.Instance.GetCfg(MonthCardType.Gold);
+                    isFirstBuy = GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardGoldFirstBuy) <= 0;
+                    endTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardGoldEndTime);
+                    isGot = GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardGoldReward) > 0;
+                    for (int i = 0; i < MonthlyCardPrivilegeCfgArray.Instance.dataArray.Length; i++)
+                    {
+                        if (MonthlyCardPrivilegeCfgArray.Instance.dataArray[i].value1Arr[0] > 0)
+                        {
+                            privilegeCount++;
+                        }
+                    }
+                    _ui.m_txtMoneyCount.text = privilegeCfg.value1Arr[0].ToString();
+                    _ui.m_txtDailyMoneyCount.text = privilegeCfg.value1Arr[1].ToString();
+                    break;
+                case ConstStoreSubId.STORE_MONTH_BLACK_CARD:
+                    iconUrl = "ui://Store/MonthCard_Icon";
+                    monthCfg = MonthlyCardCfgArray.Instance.GetCfg(MonthCardType.BlackGold);
+                    isFirstBuy = GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardBlackGoldFirstBuy) <= 0;
+                    endTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardBlackGoldEndTime);
+                    isGot = GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardBlackGoldReward) > 0;
+                    for (int i = 0; i < MonthlyCardPrivilegeCfgArray.Instance.dataArray.Length; i++)
+                    {
+                        if (MonthlyCardPrivilegeCfgArray.Instance.dataArray[i].value2Arr[0] > 0)
+                        {
+                            privilegeCount++;
+                        }
+                    }
+
+                    _ui.m_txtMoneyCount.text = privilegeCfg.value2Arr[0].ToString();
+                    _ui.m_txtDailyMoneyCount.text = privilegeCfg.value2Arr[1].ToString();
+                    break;
+            }
+
+            long day = TimeUtil.FormattingTime11(TimeHelper.ServerNow(), endTime);
+            _ui.m_txtTime.SetVar("value", day.ToString()).FlushVars();
+            _ui.m_txtTime.visible = endTime > TimeHelper.ServerNow();
+            _ui.m_loaCard.url = iconUrl;
+            ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(monthCfg.shopId);
+            _ui.m_btnBuy.m_txtOriginalPrice.text = shopCfg.price.ToString();
+            _ui.m_btnBuy.m_grpOriginalPrice.visible = isFirstBuy && shopCfg.oncePrice < shopCfg.price;
+            int price = isFirstBuy ? shopCfg.oncePrice : shopCfg.price;
+            _ui.m_btnBuy.m_txtPrice.text = price.ToString();
+            _ui.m_btnBuy.target.data = "";
+            _ui.m_txtTips.SetVar("value", (price * 10).ToString()).FlushVars();
+            _ui.m_txtTips.SetVar("day", monthCfg.limitDays.ToString()).FlushVars();
+
+            _ui.m_loaMoney.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(privilegeCfg.paramsArr[0]).res);
+            _ui.m_loaDailyMoney.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(privilegeCfg.paramsArr[0]).res);
+            _ui.m_txtPrivilegeCount.text = privilegeCount.ToString();
+            _ui.m_btnGet.enabled = endTime > TimeHelper.ServerNow() && !isGot;
+            _ui.m_btnGet.text = isGot ? "已领取" : "领取";
+            _ui.m_btnGet.data = monthCfg.type; ;
+        }
+        private void OnBtnBuyCardClick(EventContext context)
+        {
+            GObject obj = context.sender as GObject;
+            int goodsId = (int)obj.data;
+            ShopSProxy.ReqShopBuy(goodsId).Coroutine();
+        }
+        private async void OnBtnGetClick(EventContext context)
+        {
+            GObject obj = context.sender as GObject;
+            int goodsId = (int)obj.data;
+            bool result = await ShopSProxy.ReqGetMonthCardReward(goodsId);
+            if (result)
+            {
+                UpdateView();
+            }
+        }
+        private void ListItemRenderer(int index, GObject obj)
+        {
+            ShopCfg shopCfg = _shopCfgs[index];
+            ShopViewManager.Instance.UptadeItem(obj, shopCfg);
+        }
+
+        private void OnClickBtnBuy(EventContext context)
+        {
+            GObject obj = context.sender as GObject;
+            int index = (int)obj.data;
+            ShopCfg itemData = _shopCfgs[index];
+            if (!AntiAddictionController.CheckAntiAddictionRecharge(itemData.price))
+            {
+                ShopSProxy.ReqShopBuy(itemData.id, 1).Coroutine();
+                LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.SHANG_CHENG, 2);
+            }
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs.meta

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

BIN
GameClient/Assets/ResIn/Config/excelConfig.sqlite.bytes


BIN
GameClient/Assets/ResIn/UI/Store/Store_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Store/Store_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/Store/Store_fui.bytes