Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 498cdc95
由
cgx
编写于
2022-08-26 09:11:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
处理APP跳转到小程序审核被拒问题
1 个父辈
8fe68224
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
18 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Class/ProfileModule/Me/ProfileTableView.m
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
498cdc9
...
...
@@ -2515,7 +2515,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION =
1
;
CURRENT_PROJECT_VERSION =
2
;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
...
...
@@ -2597,7 +2597,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/DreamSleep.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
1
;
CURRENT_PROJECT_VERSION =
2
;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
...
...
@@ -2738,7 +2738,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepBeta.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
1
;
CURRENT_PROJECT_VERSION =
2
;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
...
...
DreamSleep/DreamSleep/Class/ProfileModule/Me/ProfileTableView.m
查看文件 @
498cdc9
...
...
@@ -7,6 +7,7 @@
#import "ProfileTableView.h"
#import "ProfileHeaderView.h"
#import "WXApi.h"
#pragma mark - ProfileModel
@interface
ProfileModel
:
NSObject
...
...
@@ -20,14 +21,11 @@
@implementation
ProfileModel
+
(
NSArray
*
)
getGroupDataArr
{
NSMutableArray
*
totalGroupArr
=
[
NSMutableArray
array
];
NSArray
*
leftIcon_group1
=
@[
@"ic_person_fankui_normal"
,
@"ic_person_shezhi_normal"
,
@"ic_person_yaoqing_normal"
,
@"ic_person_guanyuwomen_normal"
];
NSArray
*
dk_leftIcon_group1
=
@[
@"dk_ic_person_fankui_normal"
,
@"dk_ic_person_shezhi_normal"
,
@"dk_ic_person_yaoqing_normal"
,
@"dk_ic_person_guanyuwomen_normal"
];
NSArray
*
title_group1
=
@[
@"意见反馈"
,
@"系统设置"
,
@"邀请好友"
,
@"关于我们"
];
NSArray
*
leftIcon_group2
=
@[
@"ic_person_xiaochengxu_normal"
,
@"ic_person_gongzhonghao_normal"
,
@"ic_person_kefu_normal"
];
NSArray
*
dk_leftIcon_group2
=
@[
@"dk_ic_person_xiaochengxu_normal"
,
@"dk_ic_person_gongzhonghao_normal"
,
@"dk_ic_person_kefu_normal"
];
NSArray
*
title_group2
=
@[
@"前往小程序"
,
@"关注公众号"
,
@"添加客服微信"
];
NSMutableArray
*
group1Arr
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
leftIcon_group1
.
count
;
i
++
)
{
ProfileModel
*
model
=
[
ProfileModel
new
];
...
...
@@ -38,17 +36,26 @@
model
.
dk_rightIcon
=
@"moreIcon"
;
[
group1Arr
addObject
:
model
];
}
NSMutableArray
*
group2Arr
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
leftIcon_group2
.
count
;
i
++
)
{
ProfileModel
*
model
=
[
ProfileModel
new
];
model
.
leftIcon
=
leftIcon_group2
[
i
];
model
.
dk_leftIcon
=
dk_leftIcon_group2
[
i
];
model
.
title
=
title_group2
[
i
];
model
.
rightIcon
=
@"moreIcon"
;
model
.
dk_rightIcon
=
@"moreIcon"
;
[
group2Arr
addObject
:
model
];
[
totalGroupArr
addObject
:[
group1Arr
copy
]];
if
([
WXApi
isWXAppInstalled
])
{
NSArray
*
leftIcon_group2
=
@[
@"ic_person_xiaochengxu_normal"
,
@"ic_person_gongzhonghao_normal"
,
@"ic_person_kefu_normal"
];
NSArray
*
dk_leftIcon_group2
=
@[
@"dk_ic_person_xiaochengxu_normal"
,
@"dk_ic_person_gongzhonghao_normal"
,
@"dk_ic_person_kefu_normal"
];
NSArray
*
title_group2
=
@[
@"前往小程序"
,
@"关注公众号"
,
@"添加客服微信"
];
NSMutableArray
*
group2Arr
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
leftIcon_group2
.
count
;
i
++
)
{
ProfileModel
*
model
=
[
ProfileModel
new
];
model
.
leftIcon
=
leftIcon_group2
[
i
];
model
.
dk_leftIcon
=
dk_leftIcon_group2
[
i
];
model
.
title
=
title_group2
[
i
];
model
.
rightIcon
=
@"moreIcon"
;
model
.
dk_rightIcon
=
@"moreIcon"
;
[
group2Arr
addObject
:
model
];
}
[
totalGroupArr
addObject
:[
group2Arr
copy
]];
}
return
@[[
group1Arr
copy
],
[
group2Arr
copy
]];
return
[
totalGroupArr
copy
];
}
@end
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论