Showing
3 changed files
with
21 additions
and
4 deletions
@@ -29,7 +29,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | @@ -29,7 +29,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | ||
29 | 29 | ||
30 | func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { | 30 | func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { |
31 | 31 | ||
32 | - print(url) | 32 | + if url.scheme == "hh-medic.com" { |
33 | + NotificationCenter.default.post(name: NSNotification.Name(rawValue: "WX_H5_PAY"), object: nil) | ||
34 | + return true | ||
35 | + } | ||
33 | 36 | ||
34 | return true | 37 | return true |
35 | } | 38 | } |
@@ -27,6 +27,8 @@ | @@ -27,6 +27,8 @@ | ||
27 | <string></string> | 27 | <string></string> |
28 | </dict> | 28 | </dict> |
29 | <dict> | 29 | <dict> |
30 | + <key>CFBundleIdentifier</key> | ||
31 | + <string></string> | ||
30 | <key>CFBundleTypeRole</key> | 32 | <key>CFBundleTypeRole</key> |
31 | <string>Editor</string> | 33 | <string>Editor</string> |
32 | <key>CFBundleURLName</key> | 34 | <key>CFBundleURLName</key> |
@@ -76,9 +76,12 @@ class SettingVC : UIViewController { | @@ -76,9 +76,12 @@ class SettingVC : UIViewController { | ||
76 | 76 | ||
77 | 77 | ||
78 | let userCenterSetting = ("个人中心设置",[ | 78 | let userCenterSetting = ("个人中心设置",[ |
79 | - ("是否隐藏个人中心入口",HHSDKOptions.default.mUserCenterOptions.hideUserCenter,true), | ||
80 | - ("是否展示激活码入口",HHSDKOptions.default.mUserCenterOptions.enableActivate,true), | ||
81 | - ("是否展示档案库入口",HHSDKOptions.default.mUserCenterOptions.enableMedical,true), | 79 | + ("隐藏个人中心入口",HHSDKOptions.default.mUserCenterOptions.hideUserCenter,true), |
80 | + ("展示激活码入口",HHSDKOptions.default.mUserCenterOptions.enableActivate,true), | ||
81 | + ("展示档案库入口",HHSDKOptions.default.mUserCenterOptions.enableMedical,true), | ||
82 | + ("档案库可以增加成员",HHSDKOptions.default.mUserCenterOptions.enableAddMemberInDoc,true), | ||
83 | + ("展示会员信息",HHSDKOptions.default.mUserCenterOptions.enableVipInfo,true), | ||
84 | + ("展示购买VIP",HHSDKOptions.default.mUserCenterOptions.enableBuyService,true), | ||
82 | 85 | ||
83 | ]) | 86 | ]) |
84 | sections.append(userCenterSetting) | 87 | sections.append(userCenterSetting) |
@@ -223,6 +226,15 @@ extension SettingVC { | @@ -223,6 +226,15 @@ extension SettingVC { | ||
223 | case (3,2): | 226 | case (3,2): |
224 | HHSDKOptions.default.mUserCenterOptions.enableMedical = isOpen | 227 | HHSDKOptions.default.mUserCenterOptions.enableMedical = isOpen |
225 | 228 | ||
229 | + case (3,3): | ||
230 | + HHSDKOptions.default.mUserCenterOptions.enableAddMemberInDoc = isOpen | ||
231 | + | ||
232 | + case (3,4): | ||
233 | + HHSDKOptions.default.mUserCenterOptions.enableVipInfo = isOpen | ||
234 | + | ||
235 | + case (3,5): | ||
236 | + HHSDKOptions.default.mUserCenterOptions.enableBuyService = isOpen | ||
237 | + | ||
226 | default: | 238 | default: |
227 | break | 239 | break |
228 | } | 240 | } |
-
Please register or login to post a comment