源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

592 lines
22 KiB

  1. SocialityFlowerView = SocialityFlowerView or BaseClass(BaseView)
  2. function SocialityFlowerView:__init()
  3. self.base_file = "sociality"
  4. self.layout_file = "SocialityFlowerView"
  5. self.layer_name = "Activity"
  6. self.destroy_imm = true
  7. self.use_background = true
  8. self.hide_maincancas = false
  9. self.change_scene_close = true
  10. -- self.append_to_ctl_queue = true
  11. self.model = SocialityModel:getInstance()
  12. self.blur_activity_bg = true
  13. self.use_show_anim = true
  14. self.use_hide_anim = true
  15. self.is_set_zdepth = true
  16. self.item_list = {}
  17. --预加载的Item
  18. self:AddPreLoadList("sociality", {"SocialityFlowerItem"})
  19. --回调方法
  20. self.load_callback = function()
  21. self:LoadSuccess()
  22. self:InitEvent()
  23. end
  24. self.open_callback = function()
  25. self:UpdateView()
  26. end
  27. self.close_callback = function()
  28. --刷新好友亲密度
  29. -- self.model:Fire(SocialityModel.REQUEST_CCMD_EVENT, 14000, 1)
  30. self:Clear()
  31. end
  32. self.destroy_callback = function()
  33. end
  34. end
  35. function SocialityFlowerView:LoadSuccess()
  36. self.ScrollView,--礼品容器
  37. self.ScrollViewViewport,--礼品容器
  38. self.ScrollViewCon,--礼品容器
  39. self.fameName_trans,--花香
  40. self.fameLabel_tmp_trans--花香值
  41. = GetChildTransforms(self.transform,
  42. {
  43. "ScrollView",
  44. "ScrollView/Viewport",
  45. "ScrollView/Viewport/Content",
  46. "fameName",
  47. "fameLabel",
  48. })
  49. self.sendBtn,--立即赠送
  50. self.selectBtn,--选择好友
  51. self.heartLvObj,--亲密阶段(陌生人隐藏)
  52. self.heartNumObj,--亲密值(陌生人隐藏)
  53. self.questionBtn,
  54. self.weekCharmNameObj,
  55. self.grayBg_obj
  56. = GetChildGameObjects(self.transform,
  57. {
  58. "sendBtn",
  59. "selectBtn",
  60. "heartLvLabel",
  61. "heartNumLabel",
  62. "questionBtn",
  63. "weekCharmName",
  64. "grayBg",
  65. })
  66. self.nodes = {
  67. "heart:img:obj",
  68. "name_con",
  69. "name_con/name:tmp",
  70. "name_con/sex:img:obj",
  71. "heartLabel:tmp",
  72. "fameLabel:tmp",
  73. "charmLabel:tmp",
  74. "weekCharmLabel:tmp",
  75. "heartLvLabel:tmp",
  76. "heartNumLabel:tmp",
  77. "headCon:obj",
  78. "price:tmp",
  79. "vipCon",
  80. "specialGiftCon:obj",
  81. "tips1:obj", --"tips2:obj",
  82. "tipCon/tip4:obj", --"tipCon/tip5:obj",
  83. "specialGiftCon/myReward", "specialGiftCon/friendReward",
  84. "specialGiftCon/friendTips:tmp",
  85. "specialGiftCon/myTips:tmp",
  86. "specialGiftCon/limitBuyTip:tmp",
  87. "selectRoleLabel:tmp",
  88. }
  89. self:GetChildren(self.nodes)
  90. local close_callback = function()
  91. self:Close()
  92. end
  93. self.tabWindowComponent = UITabWindow.New(self.transform, nil, nil, close_callback, self.background_wnd,
  94. self.transform,UITabWindow.SizeSmallNoTab,nil,nil,true)
  95. self.tabWindowComponent:SetBackgroundRes("sociality_bg1")
  96. self.tabWindowComponent:SetTitleText("送礼")
  97. -- self.tabWindowComponent:ChangeShowFlag("FriendShip")
  98. self.vipItem = RoleVipItem.New(self.vipCon)
  99. self.roleItem = HeadRoleItem.New(self.headCon)
  100. self.roleItem:SetItemSize(70,70)
  101. self.my_reward = UIObjPool:getInstance():PopItem(UIObjPool.UIType.AwardItem, self.myReward)
  102. self.my_reward:SetItemSize(80,80)
  103. self.friend_reward = UIObjPool:getInstance():PopItem(UIObjPool.UIType.AwardItem, self.friendReward)
  104. self.friend_reward:SetItemSize(80,80)
  105. end
  106. function SocialityFlowerView:Open(roleVo, select_goods_id)
  107. self.roleVo = roleVo
  108. self.select_goods_id = select_goods_id
  109. BaseView.Open(self)
  110. end
  111. function SocialityFlowerView:InitEvent( )
  112. local function onClickBtnHandler(target)
  113. if target == self.sendBtn then
  114. self:SendFlower()
  115. elseif target == self.selectBtn then--打开选择好友界面
  116. GlobalEventSystem:Fire(EventName.OPEN_SOCIAL_FRIEND_SEL_VIEW, true)
  117. elseif target == self.questionBtn then
  118. GlobalEventSystem:Fire(EventName.OPEN_INSTRUCTION_VIEW, 22301)
  119. end
  120. end
  121. AddClickEvent(self.sendBtn,onClickBtnHandler,LuaSoundManager.SOUND_UI.NONE)
  122. AddClickEvent(self.selectBtn,onClickBtnHandler,LuaSoundManager.SOUND_UI.NONE)
  123. AddClickEvent(self.questionBtn,onClickBtnHandler,LuaSoundManager.SOUND_UI.NONE)
  124. --选中好友之后刷新界面
  125. local onSel = function( vo )
  126. self.roleVo = vo
  127. self:UpdateView()
  128. end
  129. self.event_id = self.model:Bind(SocialityModel.SELECT_FIREND, onSel)
  130. --背包数目变化时刷新scrollview
  131. local function onUpdateBagList()
  132. if self._use_delete_method then return end
  133. self:UpdateView()
  134. end
  135. self.bag_num_id = GoodsModel:getInstance():Bind(GoodsModel.CHANGE_BAGLIST,onUpdateBagList)
  136. --刷新亲密度和人气
  137. local function onUpdateInIntimacy(role_id,week_charm,intimacy)
  138. if role_id ~= self.roleVo.role_id then return end
  139. self.roleVo.week_charm = week_charm
  140. self.roleVo.intimacy = intimacy
  141. self:UpdateView()
  142. end
  143. self:BindEvent(self.model,SocialityModel.UPDATE_FLOWER_NUM,onUpdateInIntimacy)
  144. --刷新显示人物形象
  145. local function on_update_vo( vo )
  146. self.roleVo = vo
  147. self:UpdateView()
  148. end
  149. self:BindEvent(self.model,SocialityModel.ANS_FRIEND_SHOW_DATA,on_update_vo)
  150. local function on_update_sp_gift_limit()
  151. self:SelectItem(self.vo)
  152. end
  153. self:BindEvent(self.model,SocialityModel.REFRESH_SOCIALITY_SP_GIFT_LIMIT,on_update_sp_gift_limit)
  154. end
  155. function SocialityFlowerView:Clear( )
  156. for k,v in pairs(self.item_list) do
  157. v:DeleteMe()
  158. end
  159. self.item_list = {}
  160. if self.event_id then
  161. self.model:UnBind(self.event_id)
  162. self.event_id = nil
  163. end
  164. if self.bag_num_id then
  165. GoodsModel:getInstance():UnBind(self.bag_num_id)
  166. self.bag_num_id = nil
  167. end
  168. if self.tabWindowComponent then
  169. self.tabWindowComponent:DeleteMe()
  170. self.tabWindowComponent = nil
  171. end
  172. if self.vipItem then
  173. self.vipItem:DeleteMe()
  174. self.vipItem = nil
  175. end
  176. if self.roleItem then
  177. self.roleItem:DeleteMe()
  178. self.roleItem = nil
  179. end
  180. if self.my_reward then
  181. UIObjPool:getInstance():PushItem(UIObjPool.UIType.AwardItem,self.my_reward)
  182. self.my_reward = nil
  183. end
  184. if self.friend_reward then
  185. UIObjPool:getInstance():PushItem(UIObjPool.UIType.AwardItem,self.friend_reward)
  186. self.friend_reward = nil
  187. end
  188. end
  189. function SocialityFlowerView:SendFlower( )
  190. if self.roleVo then--选中赠礼对象
  191. -- local isOn = self.toggle.isOn and 1 or 0 --是否匿名
  192. local isOn = 0 --暂时不要匿名的逻辑
  193. --是否是双向好友,非好友以及单向好友可送礼,但加成不会生效,也不能羁绊,需要提醒玩家
  194. local not_true_friend = not self.model:IsRelaviveType(self.roleVo.role_id, Config.ConfigSocial.RelativeType.friend) or self.model:IsOneWayToFriend(self.roleVo.role_id)
  195. if self.select_goods_id and self.roleVo.role_id then--是否选中礼物
  196. if self.vo then
  197. --先判断特殊礼物的限购次数
  198. local is_special = false
  199. local special_data = {}
  200. for k,v in pairs(Config.Flowerspgift) do
  201. if v.goods_id == self.vo.goods_id then
  202. is_special = true
  203. special_data = v
  204. end
  205. end
  206. if is_special then
  207. local sp_gift_limit_data = self.model:GetSpGiftLimitData()
  208. local max_times = special_data.limit_count
  209. local left_times = 0
  210. for k,v in pairs(sp_gift_limit_data) do
  211. if v.goods_id == self.vo.goods_id then
  212. left_times = max_times - v.num
  213. end
  214. end
  215. if left_times <= 0 then
  216. Message.show("已达到限购次数")
  217. return
  218. end
  219. end
  220. local num = GoodsModel:getInstance():GetTypeGoodsNum(self.select_goods_id)--获取背包中该物品的数目
  221. if num and num > 0 then --判断背包中是否有物品,有物品可以直接发22301协议送礼
  222. local ok_callback_4 = function()
  223. if num > 1 and not is_special then--如果数量大于1可以选择批量赠送
  224. local goods_vo = GoodsModel:getInstance():GetGoodsBasicByTypeId(self.vo.goods_id)
  225. goods_vo.goods_num = num
  226. local extra_param_list = {gift_have_num = num, send_role_id = self.roleVo.role_id}
  227. BagModel:getInstance():Fire(BagModel.OPEN_BATHANDLE_VIEW, goods_vo, SplitView.TYPE.BAT_SEND_FLOWER, extra_param_list)
  228. else
  229. self.model:Fire(SocialityModel.REQUEST_CCMD_EVENT, 22301, self.roleVo.role_id, self.select_goods_id, 1, isOn)
  230. end
  231. end
  232. if not_true_friend then
  233. if not self.model:IsRelaviveType(self.roleVo.role_id, Config.ConfigSocial.RelativeType.friend) and not self.model:IsOneWayToFriend(self.roleVo.role_id) then
  234. Alert.show("你与对方不是好友关系,需要添加为<#2CF86F>永久好友</color>后<#2CF86F>亲密度关系才会生效</color> ,确认继续赠送吗?\n(亲密度数值会<#2CF86F>有效增加</color>,转变为 <#2CF86F>永久好友 后 <#2CF86F>100%继承</color>)", Alert.Type.Two, ok_callback_4, nil, "确定", "取消")
  235. else
  236. Alert.show("你与对方只是<#2CF86F>临时好友</color>,需要添加为<#2CF86F>永久好友</color>后<#2CF86F>亲密度关系才会生效</color> ,确认继续赠送吗?\n(亲密度数值会<#2CF86F>有效增加</color>,转变为 <#2CF86F>永久好友 后 <#2CF86F>100%继承</color>)", Alert.Type.Two, ok_callback_4, nil, "确定", "取消")
  237. end
  238. else
  239. ok_callback_4()
  240. end
  241. else
  242. local ok_callback_5 = function()
  243. local cfg = Config.Goodsprice[self.vo.goods_id]
  244. local price = cfg.price
  245. local function ok_callback( ... )
  246. self.model:Fire(SocialityModel.REQUEST_CCMD_EVENT, 22301, self.roleVo.role_id, self.select_goods_id, 1, isOn)
  247. end
  248. local function toggle_function( flag )
  249. self.model._buy_gift_no_double_check = flag
  250. end
  251. local function use_function( toggle_tip_data,call_fun_sum )
  252. if not self.model._buy_gift_no_double_check and price ~= 0 then
  253. GlobalEventSystem:Fire(EventName.OPEN_COM_TOGGLE_TIP_VIEW, toggle_tip_data)
  254. else
  255. call_fun_sum()
  256. end
  257. end
  258. local buy_tip_data = {
  259. gold_type = cfg.price_type,--货币类型
  260. cost_price = price,--消耗金额
  261. ok_callback = ok_callback,--成功
  262. toggle_function = toggle_function,--多选
  263. togglePriceStr = string.format("<color=#fdffc2>%s</color> 进行购买?",price),--提示语
  264. use_function = use_function,--最终调用
  265. recharge_open_call_back = function()
  266. self:Close()
  267. end,
  268. invest_call_back = function()
  269. self:Close()
  270. end,
  271. }
  272. CustomActivityModel:getInstance():BuyTips(buy_tip_data)
  273. end
  274. if not_true_friend then
  275. if not self.model:IsRelaviveType(self.roleVo.role_id, Config.ConfigSocial.RelativeType.friend) and not self.model:IsOneWayToFriend(self.roleVo.role_id) then
  276. Alert.show("你与对方不是好友关系,需要添加为<#2CF86F>永久好友</color>后<#2CF86F>亲密度关系才会生效</color> ,确认继续赠送吗?\n(亲密度数值会<#2CF86F>有效增加</color>,转变为 <#2CF86F>永久好友 后 <#2CF86F>100%继承</color>)", Alert.Type.Two, ok_callback_5, nil, "确定", "取消")
  277. else
  278. Alert.show("你与对方只是<#2CF86F>临时好友</color>,需要添加为<#2CF86F>永久好友</color>后<#2CF86F>亲密度关系才会生效</color> ,确认继续赠送吗?\n(亲密度数值会<#2CF86F>有效增加</color>,转变为 <#2CF86F>永久好友 后 <#2CF86F>100%继承</color>)", Alert.Type.Two, ok_callback_5, nil, "确定", "取消")
  279. end
  280. else
  281. ok_callback_5()
  282. end
  283. end
  284. end
  285. else
  286. Message.show("请选择一个礼物")
  287. end
  288. else
  289. Message.show("请选择一个玩家")
  290. end
  291. end
  292. function SocialityFlowerView:UpdateView( )
  293. self.selectRoleLabel_tmp.text = ""
  294. local vo = self.roleVo--拿到选中的礼品数据
  295. if vo then
  296. self.name_tmp.text = vo.name or vo.role_name
  297. local sex_res = vo.sex == 1 and "com_boy" or "com_girl"
  298. lua_resM:setImageSprite(self, self.sex_img, "common_asset", sex_res, true)
  299. SetAnchoredPositionX(self.sex,self.name_tmp.preferredWidth+4)
  300. self.vipItem:SetData(vo.vip_flag,vo.sup_vip_type)
  301. if self.roleVo.vip_flag and tonumber(self.roleVo.vip_flag) > 0 then
  302. SetAnchoredPositionX(self.name_con,309)
  303. else
  304. SetAnchoredPositionX(self.name_con,270)
  305. end
  306. end
  307. if self.roleVo then
  308. --设置亲密度
  309. if self.model:IsRelaviveType(self.roleVo.role_id, Config.ConfigSocial.RelativeType.friend) then
  310. local temp_intimacy = vo.intimacy or 0
  311. self.heartLvObj:SetActive(true)
  312. self.heartNumObj:SetActive(true)
  313. local lv = self.model:GetLvByIntimacy(temp_intimacy)
  314. local intimacy_cfg = Config.Intimacylv[lv]
  315. lua_resM:setImageSprite(self, self.heart_img, "sociality_asset","sociality_intimacy_"..lv,true)
  316. if not self.model:IsOneWayToFriend(self.roleVo.role_id) then
  317. self.heartLvLabel_tmp.text = temp_intimacy..""..Trim(intimacy_cfg.name)..""
  318. else
  319. self.heartLvLabel_tmp.text = temp_intimacy.."(临时好友)"
  320. end
  321. else
  322. lua_resM:setImageSprite(self, self.heart_img, "sociality_asset","sociality_intimacy_0",true)
  323. self.heartLvObj:SetActive(true)
  324. self.heartNumObj:SetActive(false)
  325. self.heartLvLabel_tmp.text = "(陌生人)"
  326. end
  327. local head_data = {
  328. vo = {
  329. id = self.roleVo.role_id,
  330. server_id = self.roleVo.ser_id,
  331. career = self.roleVo.career,
  332. sex = self.roleVo.sex,
  333. turn = self.roleVo.turn,
  334. picture_ver = self.roleVo.picture_ver,
  335. picture = self.roleVo.picture,
  336. profile_photo_id = self.roleVo.profile_photo_id,
  337. dress_board_id = self.roleVo.dress_board,
  338. level = self.roleVo.lv,
  339. empty_head = false, -- 是否是空数据头像
  340. }
  341. }
  342. self.roleItem:SetData(head_data)
  343. self.headCon_obj:SetActive(true)
  344. self.weekCharmLabel_tmp.text = vo.week_charm
  345. self.weekCharmNameObj:SetActive(true)
  346. self.sex_obj:SetActive(true)
  347. self.heart_obj:SetActive(true)
  348. self.grayBg_obj:SetActive(false)
  349. else
  350. self.headCon_obj:SetActive(false)
  351. self.heartLvObj:SetActive(false)
  352. self.heartNumObj:SetActive(false)
  353. self.weekCharmNameObj:SetActive(false)
  354. self.name_tmp.text = ""
  355. self.selectRoleLabel_tmp.text = "请选择一个好友"
  356. self.sex_obj:SetActive(false)
  357. self.heart_obj:SetActive(false)
  358. self.grayBg_obj:SetActive(true)
  359. self.vipItem:SetData(0,0)
  360. end
  361. --处理鲜花配置
  362. local cfg = Config.Flowertools
  363. local price_cfg = Config.Goodsprice
  364. local list = {}
  365. for k,v in pairs(cfg) do
  366. --不可购买的物品,如果数量为0则不插入列表
  367. local num = GoodsModel:getInstance():GetTypeGoodsNum(v.goods_id)
  368. v.num = num or 0
  369. v.price = price_cfg[v.goods_id].price or 0
  370. if v.is_sell==0 then
  371. if num>0 then
  372. table.insert(list, v)
  373. end
  374. else
  375. table.insert(list, v)
  376. end
  377. end
  378. --排序
  379. -- local arg = {"num", "price"}
  380. -- local condition = {Array.UPPER, Array.UPPER}
  381. local arg = {"index"}
  382. local condition = {Array.LOWER}
  383. SortTools.MoreKeysSorter(list, arg, condition)
  384. local call_back = function( vo )
  385. self:SelectItem(vo)
  386. end
  387. local delta_x1 = 15
  388. local delta_y1 = 20
  389. local item_size_x = 263+11 --单个item的大小
  390. local item_size_y = 102+6 --
  391. local line_y = -36
  392. local len = #list
  393. local num = 0
  394. if len > 0 then
  395. if len%2 > 0 then
  396. num = num + 1
  397. end
  398. local three_multiple = math.modf(len/2)
  399. num = num + three_multiple
  400. end
  401. self.ScrollViewCon.sizeDelta = co.TableXY(self.ScrollViewCon.sizeDelta.x, num * item_size_y)
  402. local count = 0
  403. local x = 0
  404. for i,v in ipairs(list) do
  405. count = count + 1
  406. local item = self.item_list[i]
  407. if not item then
  408. item = SocialityFlowerItem.New(self.ScrollViewCon)
  409. self.item_list[i] = item
  410. end
  411. item:SetVisible(true)
  412. item:SetData(v, call_back)
  413. local y = math.modf((i-1)/2)
  414. if count == 1 then
  415. x = delta_x1
  416. else
  417. x = x + item_size_x
  418. end
  419. item:SetPosition(x, -y * item_size_y - 5)
  420. if count == 2 then
  421. count = 0
  422. x = 0
  423. end
  424. end
  425. for i=#list+1, #self.item_list do
  426. self.item_list[i]:SetVisible(false)
  427. end
  428. if self.select_goods_id then
  429. local index = nil
  430. for k,v in pairs(list) do
  431. if v.goods_id == self.select_goods_id then
  432. index = k
  433. end
  434. end
  435. if not index then
  436. --选中第一个
  437. self.item_list[1]:CallBack()
  438. else
  439. self.item_list[index]:CallBack()
  440. end
  441. else
  442. self.item_list[1]:CallBack()
  443. end
  444. end
  445. --选中礼品
  446. function SocialityFlowerView:SelectItem( vo )
  447. self.vo = vo--立即记录self.vo为当前选中的礼品数据
  448. self.select_goods_id = vo.goods_id--记录礼品id
  449. for k,v in pairs(self.item_list) do
  450. v:SetSelected(v.vo.goods_id == vo.goods_id)
  451. end
  452. local goodsBasic = GoodsModel:getInstance():GetGoodsBasicByTypeId(vo.goods_id)
  453. -- self.flowerName.text = goodsBasic.goods_name--礼品名
  454. local str = ""
  455. if vo.intimacy~=0 then
  456. self.heartLabel_tmp.text = string.format("双方亲密度+%d ", vo.intimacy)
  457. end
  458. if vo.fame~=0 then
  459. self.fameLabel_tmp.text = string.format("自己壕气值+%d", vo.fame)
  460. end
  461. if vo.charm~=0 then
  462. self.charmLabel_tmp.text = string.format("对方人气值+%d", vo.charm)
  463. end
  464. local num = GoodsModel:getInstance():GetTypeGoodsNum(vo.goods_id)--获取物品数目
  465. if num > 0 then
  466. self.price_tmp.text = string.format( "当前拥有:%s", HtmlColorTxt( num , '#2cf89a') )
  467. else
  468. local vo_price = Config.Goodsprice[vo.goods_id].price
  469. self.price_tmp.text = WordManager:GetMoneyFaceStr( 1 ) .. vo_price
  470. end
  471. --判断是否特殊礼品
  472. local is_special = false
  473. local special_data = {}
  474. for k,v in pairs(Config.Flowerspgift) do
  475. if v.goods_id == vo.goods_id then
  476. is_special = true
  477. special_data = v
  478. end
  479. end
  480. if is_special then
  481. local my_reward_data = stringtotable(special_data.my_back_reward)[1]
  482. local friend_reward_data = stringtotable(special_data.friend_back_reward)[1]
  483. self.my_reward:SetDataWithMapId(my_reward_data[2],my_reward_data[3],my_reward_data[1])
  484. self.friend_reward:SetDataWithMapId(friend_reward_data[2],friend_reward_data[3],friend_reward_data[1])
  485. self.friendTips_tmp.text = string.format("赠送后对方<color=#2cf89a>连续%s天</color>\n每日<color=#2cf89a>邮件发放</color>",special_data.friend_day)
  486. self.myTips_tmp.text = string.format("赠送后自己<color=#2cf89a>连续%s天</color>\n每日<color=#2cf89a>邮件发放</color>",special_data.my_day)
  487. local sp_gift_limit_data = self.model:GetSpGiftLimitData()
  488. local max_times = special_data.limit_count
  489. local left_times = 0
  490. for k,v in pairs(sp_gift_limit_data) do
  491. if v.goods_id == vo.goods_id then
  492. left_times = max_times - v.num
  493. end
  494. end
  495. local color_str = left_times>0 and "#2CF86F" or "#ff203a"
  496. self.limitBuyTip_tmp.text = string.format("每日限购:<%s>%s</color>/%s",color_str,left_times,max_times)
  497. self.tip4_obj:SetActive(false)
  498. -- self.tip5_obj:SetActive(false)
  499. self.tips1_obj:SetActive(false)
  500. -- self.tips2_obj:SetActive(false)
  501. self.specialGiftCon_obj:SetActive(true)
  502. else
  503. self.tip4_obj:SetActive(true)
  504. -- self.tip5_obj:SetActive(true)
  505. self.tips1_obj:SetActive(true)
  506. -- self.tips2_obj:SetActive(true)
  507. self.specialGiftCon_obj:SetActive(false)
  508. end
  509. end
  510. function SocialityFlowerView:UpdateRoleModel( )
  511. --此处必须有figure数据
  512. if not self.roleVo then return end
  513. local res_data = {
  514. father_node = self,
  515. transform = self.roleCon,
  516. fashion_type = FuncOpenModel.TypeId.Clothes,
  517. scale = 160,
  518. role_vo = self.roleVo,
  519. size = Vector2(720,720),
  520. -- position = Vector3(0,-260,-300),
  521. layer_name = self.layer_name,
  522. ui_model_type = UIModelCommon.ModelType.BackModel,
  523. }
  524. FuncOpenModel:getInstance():SetModelRes(res_data)
  525. end