chengyanfang

fix ui

No preview for this file type
@@ -212,8 +212,6 @@ @@ -212,8 +212,6 @@
212 95F31C3A20D0F8C9000BDAC4 /* Frameworks */, 212 95F31C3A20D0F8C9000BDAC4 /* Frameworks */,
213 95F31C3B20D0F8C9000BDAC4 /* Resources */, 213 95F31C3B20D0F8C9000BDAC4 /* Resources */,
214 2F2866C9626CA31B9760B5C4 /* [CP] Embed Pods Frameworks */, 214 2F2866C9626CA31B9760B5C4 /* [CP] Embed Pods Frameworks */,
215 - F8948772789F21F588832CFB /* [CP] Copy Pods Resources */,  
216 - 7EFDD5BE25A6A2EA0021A7DB /* ShellScript */,  
217 ); 215 );
218 buildRules = ( 216 buildRules = (
219 ); 217 );
@@ -325,40 +323,6 @@ @@ -325,40 +323,6 @@
325 shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 323 shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
326 showEnvVarsInLog = 0; 324 showEnvVarsInLog = 0;
327 }; 325 };
328 - 7EFDD5BE25A6A2EA0021A7DB /* ShellScript */ = {  
329 - isa = PBXShellScriptBuildPhase;  
330 - buildActionMask = 2147483647;  
331 - files = (  
332 - );  
333 - inputFileListPaths = (  
334 - );  
335 - inputPaths = (  
336 - );  
337 - outputFileListPaths = (  
338 - );  
339 - outputPaths = (  
340 - );  
341 - runOnlyForDeploymentPostprocessing = 0;  
342 - shellPath = /bin/sh;  
343 - shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nAPP_PATH=\"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\" \n\n# This script loops through the frameworks embedded in the application and \n\n# removes unused architectures. \n\n find \"$APP_PATH\" -name '*.framework' -type d | while read -r FRAMEWORK \n do \n FRAMEWORK_EXECUTABLE_NAME=$(defaults read \"$FRAMEWORK/Info.plist\" CFBundleExecutable) \n FRAMEWORK_EXECUTABLE_PATH=\"$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME\" \n echo \"Executable is $FRAMEWORK_EXECUTABLE_PATH\" \n\n EXTRACTED_ARCHS=() \n\n for ARCH in $ARCHS \n do \n echo \"Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME\" \n lipo -extract \"$ARCH\" \"$FRAMEWORK_EXECUTABLE_PATH\" -o \"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\" \n EXTRACTED_ARCHS+=(\"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\") \n done \n\n echo \"Merging extracted architectures: ${ARCHS}\" \n lipo -o \"$FRAMEWORK_EXECUTABLE_PATH-merged\" -create \"${EXTRACTED_ARCHS[@]}\" \n rm \"${EXTRACTED_ARCHS[@]}\" \n\n echo \"Replacing original executable with thinned version\" \n rm \"$FRAMEWORK_EXECUTABLE_PATH\" \n mv \"$FRAMEWORK_EXECUTABLE_PATH-merged\" \"$FRAMEWORK_EXECUTABLE_PATH\" \n\n done\n";  
344 - };  
345 - F8948772789F21F588832CFB /* [CP] Copy Pods Resources */ = {  
346 - isa = PBXShellScriptBuildPhase;  
347 - buildActionMask = 2147483647;  
348 - files = (  
349 - );  
350 - inputFileListPaths = (  
351 - "${PODS_ROOT}/Target Support Files/Pods-HHMSDKDemo/Pods-HHMSDKDemo-resources-${CONFIGURATION}-input-files.xcfilelist",  
352 - );  
353 - name = "[CP] Copy Pods Resources";  
354 - outputFileListPaths = (  
355 - "${PODS_ROOT}/Target Support Files/Pods-HHMSDKDemo/Pods-HHMSDKDemo-resources-${CONFIGURATION}-output-files.xcfilelist",  
356 - );  
357 - runOnlyForDeploymentPostprocessing = 0;  
358 - shellPath = /bin/sh;  
359 - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-HHMSDKDemo/Pods-HHMSDKDemo-resources.sh\"\n";  
360 - showEnvVarsInLog = 0;  
361 - };  
362 /* End PBXShellScriptBuildPhase section */ 326 /* End PBXShellScriptBuildPhase section */
363 327
364 /* Begin PBXSourcesBuildPhase section */ 328 /* Begin PBXSourcesBuildPhase section */
@@ -17,7 +17,6 @@ class LoginVC: UIViewController { @@ -17,7 +17,6 @@ class LoginVC: UIViewController {
17 @IBOutlet weak var mLoginBtn: UIButton! 17 @IBOutlet weak var mLoginBtn: UIButton!
18 @IBOutlet weak var mMemberBtn: UIButton! 18 @IBOutlet weak var mMemberBtn: UIButton!
19 @IBOutlet weak var mPidText: UITextField! 19 @IBOutlet weak var mPidText: UITextField!
20 - @IBOutlet weak var mSkipHomeBt : UIButton!  
21 20
22 21
23 fileprivate lazy var mTestBt : UIButton = { 22 fileprivate lazy var mTestBt : UIButton = {
@@ -66,7 +65,6 @@ class LoginVC: UIViewController { @@ -66,7 +65,6 @@ class LoginVC: UIViewController {
66 mLoginBtn.isHidden = true 65 mLoginBtn.isHidden = true
67 mCallBtn.isHidden = false 66 mCallBtn.isHidden = false
68 mMemberBtn.isHidden = false 67 mMemberBtn.isHidden = false
69 - mSkipHomeBt.isHidden = false  
70 } 68 }
71 } 69 }
72 70
@@ -94,19 +92,6 @@ class LoginVC: UIViewController { @@ -94,19 +92,6 @@ class LoginVC: UIViewController {
94 } 92 }
95 93
96 94
97 - @IBAction func skipToHome(_ sender : UIButton) {  
98 -  
99 - if HHSDKOptions.default.mMessageOptions.isByPresent {  
100 - if let vc = HHMSDK.default.chatHomeVC() {  
101 - let nav = UINavigationController(rootViewController: vc)  
102 - nav.modalPresentationStyle = .fullScreen  
103 - self.present(nav, animated: true, completion: nil)  
104 - }  
105 - }else{  
106 - HHMSDK.default.skipChatHome()  
107 - }  
108 - }  
109 -  
110 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { 95 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
111 self.view.endEditing(true) 96 self.view.endEditing(true)
112 } 97 }
@@ -116,7 +101,6 @@ class LoginVC: UIViewController { @@ -116,7 +101,6 @@ class LoginVC: UIViewController {
116 self?.mLoginBtn.isHidden = false 101 self?.mLoginBtn.isHidden = false
117 self?.mCallBtn.isHidden = true 102 self?.mCallBtn.isHidden = true
118 self?.mMemberBtn.isHidden = true 103 self?.mMemberBtn.isHidden = true
119 - self?.mSkipHomeBt.isHidden = true  
120 104
121 if let aError = $0 { 105 if let aError = $0 {
122 self?.mDescLbl.text = "退出登录失败:\(aError)" 106 self?.mDescLbl.text = "退出登录失败:\(aError)"
@@ -98,19 +98,6 @@ @@ -98,19 +98,6 @@
98 <action selector="doSelectMem:" destination="H9G-Cx-5aF" eventType="touchUpInside" id="SnD-7P-d52"/> 98 <action selector="doSelectMem:" destination="H9G-Cx-5aF" eventType="touchUpInside" id="SnD-7P-d52"/>
99 </connections> 99 </connections>
100 </button> 100 </button>
101 - <button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HAJ-cu-o1I">  
102 - <rect key="frame" x="46" y="427.5" width="283" height="50"/>  
103 - <color key="backgroundColor" red="0.026365790516138077" green="0.7069585919380188" blue="0.95850151777267456" alpha="0.9990234375" colorSpace="custom" customColorSpace="sRGB"/>  
104 - <constraints>  
105 - <constraint firstAttribute="height" constant="50" id="VyT-1E-E2P"/>  
106 - </constraints>  
107 - <state key="normal" title="跳转首页">  
108 - <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>  
109 - </state>  
110 - <connections>  
111 - <action selector="skipToHome:" destination="H9G-Cx-5aF" eventType="touchUpInside" id="Ogg-hL-Exq"/>  
112 - </connections>  
113 - </button>  
114 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SDKProductID" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vGE-5O-Jnp"> 101 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SDKProductID" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vGE-5O-Jnp">
115 <rect key="frame" x="36" y="74" width="99" height="18"/> 102 <rect key="frame" x="36" y="74" width="99" height="18"/>
116 <fontDescription key="fontDescription" type="system" pointSize="15"/> 103 <fontDescription key="fontDescription" type="system" pointSize="15"/>
@@ -143,16 +130,13 @@ @@ -143,16 +130,13 @@
143 <constraint firstItem="WDq-Dc-IOR" firstAttribute="top" secondItem="vGE-5O-Jnp" secondAttribute="bottom" constant="50" id="UuJ-ZL-pny"/> 130 <constraint firstItem="WDq-Dc-IOR" firstAttribute="top" secondItem="vGE-5O-Jnp" secondAttribute="bottom" constant="50" id="UuJ-ZL-pny"/>
144 <constraint firstItem="8oo-l9-0xS" firstAttribute="leading" secondItem="8W4-aR-lG5" secondAttribute="leading" id="ZWz-DC-qe9"/> 131 <constraint firstItem="8oo-l9-0xS" firstAttribute="leading" secondItem="8W4-aR-lG5" secondAttribute="leading" id="ZWz-DC-qe9"/>
145 <constraint firstItem="tXq-br-C4i" firstAttribute="centerY" secondItem="WDq-Dc-IOR" secondAttribute="centerY" id="d6z-rc-7Hm"/> 132 <constraint firstItem="tXq-br-C4i" firstAttribute="centerY" secondItem="WDq-Dc-IOR" secondAttribute="centerY" id="d6z-rc-7Hm"/>
146 - <constraint firstItem="HAJ-cu-o1I" firstAttribute="leading" secondItem="Hxg-q0-rWs" secondAttribute="leadingMargin" constant="30" id="gbT-y9-FiN"/>  
147 <constraint firstItem="8oo-l9-0xS" firstAttribute="trailing" secondItem="8W4-aR-lG5" secondAttribute="trailing" id="hEl-M1-WZ9"/> 133 <constraint firstItem="8oo-l9-0xS" firstAttribute="trailing" secondItem="8W4-aR-lG5" secondAttribute="trailing" id="hEl-M1-WZ9"/>
148 <constraint firstItem="8W4-aR-lG5" firstAttribute="centerX" secondItem="Hxg-q0-rWs" secondAttribute="centerX" id="k7H-CD-dJB"/> 134 <constraint firstItem="8W4-aR-lG5" firstAttribute="centerX" secondItem="Hxg-q0-rWs" secondAttribute="centerX" id="k7H-CD-dJB"/>
149 <constraint firstItem="8W4-aR-lG5" firstAttribute="top" secondItem="poL-z9-aP0" secondAttribute="bottom" constant="25" id="lbY-4y-PGG"/> 135 <constraint firstItem="8W4-aR-lG5" firstAttribute="top" secondItem="poL-z9-aP0" secondAttribute="bottom" constant="25" id="lbY-4y-PGG"/>
150 - <constraint firstAttribute="trailingMargin" secondItem="HAJ-cu-o1I" secondAttribute="trailing" constant="30" id="n3M-dU-lw9"/>  
151 <constraint firstItem="LMZ-Wb-ONz" firstAttribute="leading" secondItem="Hxg-q0-rWs" secondAttribute="leading" constant="150" id="n6s-bX-QgY"/> 136 <constraint firstItem="LMZ-Wb-ONz" firstAttribute="leading" secondItem="Hxg-q0-rWs" secondAttribute="leading" constant="150" id="n6s-bX-QgY"/>
152 <constraint firstItem="3Ez-hY-hE0" firstAttribute="centerX" secondItem="Hxg-q0-rWs" secondAttribute="centerX" id="tNe-km-eME"/> 137 <constraint firstItem="3Ez-hY-hE0" firstAttribute="centerX" secondItem="Hxg-q0-rWs" secondAttribute="centerX" id="tNe-km-eME"/>
153 <constraint firstItem="WDq-Dc-IOR" firstAttribute="leading" secondItem="Hxg-q0-rWs" secondAttribute="leadingMargin" constant="20" id="wmc-fH-91m"/> 138 <constraint firstItem="WDq-Dc-IOR" firstAttribute="leading" secondItem="Hxg-q0-rWs" secondAttribute="leadingMargin" constant="20" id="wmc-fH-91m"/>
154 <constraint firstItem="poL-z9-aP0" firstAttribute="top" secondItem="tXq-br-C4i" secondAttribute="bottom" constant="20" id="xXs-dA-lRG"/> 139 <constraint firstItem="poL-z9-aP0" firstAttribute="top" secondItem="tXq-br-C4i" secondAttribute="bottom" constant="20" id="xXs-dA-lRG"/>
155 - <constraint firstItem="HAJ-cu-o1I" firstAttribute="top" secondItem="8oo-l9-0xS" secondAttribute="bottom" constant="10" id="xc5-7d-vGv"/>  
156 </constraints> 140 </constraints>
157 </view> 141 </view>
158 <navigationItem key="navigationItem" id="83O-Gf-RkC"> 142 <navigationItem key="navigationItem" id="83O-Gf-RkC">
@@ -174,7 +158,6 @@ @@ -174,7 +158,6 @@
174 <outlet property="mLoginBtn" destination="poL-z9-aP0" id="iZz-fi-zBw"/> 158 <outlet property="mLoginBtn" destination="poL-z9-aP0" id="iZz-fi-zBw"/>
175 <outlet property="mMemberBtn" destination="8oo-l9-0xS" id="jkY-bH-DFI"/> 159 <outlet property="mMemberBtn" destination="8oo-l9-0xS" id="jkY-bH-DFI"/>
176 <outlet property="mPidText" destination="LMZ-Wb-ONz" id="3LE-zP-K1g"/> 160 <outlet property="mPidText" destination="LMZ-Wb-ONz" id="3LE-zP-K1g"/>
177 - <outlet property="mSkipHomeBt" destination="HAJ-cu-o1I" id="TNg-Ha-66n"/>  
178 <outlet property="mTextView" destination="tXq-br-C4i" id="jhn-qC-kjs"/> 161 <outlet property="mTextView" destination="tXq-br-C4i" id="jhn-qC-kjs"/>
179 </connections> 162 </connections>
180 </viewController> 163 </viewController>
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <key>CFBundleDevelopmentRegion</key> 5 <key>CFBundleDevelopmentRegion</key>
6 <string>$(DEVELOPMENT_LANGUAGE)</string> 6 <string>$(DEVELOPMENT_LANGUAGE)</string>
7 <key>CFBundleDisplayName</key> 7 <key>CFBundleDisplayName</key>
8 - <string>视频SDK&lt;腾讯&gt;</string> 8 + <string>视频SDK&lt;腾讯smart版&gt; </string>
9 <key>CFBundleExecutable</key> 9 <key>CFBundleExecutable</key>
10 <string>$(EXECUTABLE_NAME)</string> 10 <string>$(EXECUTABLE_NAME)</string>
11 <key>CFBundleIdentifier</key> 11 <key>CFBundleIdentifier</key>
@@ -61,29 +61,6 @@ class SettingVC : UIViewController { @@ -61,29 +61,6 @@ class SettingVC : UIViewController {
61 sections.append(videoSetting) 61 sections.append(videoSetting)
62 62
63 63
64 -  
65 - let infoListSetting = ("信息流设置",[  
66 - ("是否过滤总结卡片",HHSDKOptions.default.mMessageOptions.isFilterSummary,true),  
67 - ("是否过滤药卡",HHSDKOptions.default.mMessageOptions.isFilterMedicinal,true),  
68 -// ("小助手默认头像",false,false),  
69 -// ("小助手默认昵称",false,false),  
70 -// ("信息流默认标题",false,false),  
71 - ("开启定位",false,true),  
72 - ("是否通过Present弹出信息流",HHSDKOptions.default.mMessageOptions.isByPresent,true),  
73 - ])  
74 - sections.append(infoListSetting)  
75 -  
76 -  
77 -  
78 - let userCenterSetting = ("个人中心设置",[  
79 - ("是否隐藏个人中心入口",HHSDKOptions.default.mUserCenterOptions.hideUserCenter,true),  
80 - ("是否展示激活码入口",HHSDKOptions.default.mUserCenterOptions.enableActivate,true),  
81 - ("是否展示档案库入口",HHSDKOptions.default.mUserCenterOptions.enableMedical,true),  
82 -  
83 - ])  
84 - sections.append(userCenterSetting)  
85 -  
86 -  
87 mTableView.reloadData() 64 mTableView.reloadData()
88 } 65 }
89 } 66 }
@@ -135,30 +112,7 @@ extension SettingVC : UITableViewDelegate,UITableViewDataSource { @@ -135,30 +112,7 @@ extension SettingVC : UITableViewDelegate,UITableViewDataSource {
135 } 112 }
136 113
137 break 114 break
138 -  
139 - case (2,2):  
140 -  
141 - showEditAlter(title: "小助手默认头像",info: HHSDKOptions.default.mExtension) { info in  
142 - HHSDKOptions.default.mMessageOptions.defaultDocHeader = info  
143 - }  
144 -  
145 - break  
146 -  
147 - case (2,3):  
148 -  
149 - showEditAlter(title: "小助手默认昵称",info: HHSDKOptions.default.mExtension) { info in  
150 - HHSDKOptions.default.mMessageOptions.defaultDocName = info  
151 - }  
152 -  
153 - break  
154 115
155 - case (2,4):  
156 -  
157 - showEditAlter(title: "信息流默认标题",info: HHSDKOptions.default.mExtension) { info in  
158 - HHSDKOptions.default.mMessageOptions.messageTitle = info  
159 - }  
160 -  
161 - break  
162 default: 116 default:
163 break 117 break
164 118
@@ -195,34 +149,6 @@ extension SettingVC { @@ -195,34 +149,6 @@ extension SettingVC {
195 case (1,4): 149 case (1,4):
196 HHSDKOptions.default.mVideoOptions.allowEvaluate = isOpen 150 HHSDKOptions.default.mVideoOptions.allowEvaluate = isOpen
197 151
198 - case (2,0):  
199 - HHSDKOptions.default.mMessageOptions.isFilterSummary = isOpen  
200 -  
201 - case (2,1):  
202 - HHSDKOptions.default.mMessageOptions.isFilterMedicinal = isOpen  
203 -  
204 - case (2,2):  
205 -  
206 - if isOpen {  
207 - HHLocation.default.startLocation(lng: "116.431941", lat: "39.940199")  
208 -  
209 - }else{  
210 -  
211 - HHLocation.default.closeLocation()  
212 - }  
213 -  
214 - case (2,3):  
215 - HHSDKOptions.default.mMessageOptions.isByPresent = isOpen  
216 -  
217 - case (3,0):  
218 - HHSDKOptions.default.mUserCenterOptions.hideUserCenter = isOpen  
219 -  
220 - case (3,1):  
221 - HHSDKOptions.default.mUserCenterOptions.enableActivate = isOpen  
222 -  
223 - case (3,2):  
224 - HHSDKOptions.default.mUserCenterOptions.enableMedical = isOpen  
225 -  
226 default: 152 default:
227 break 153 break
228 } 154 }
@@ -8,7 +8,7 @@ target 'HHMSDKDemo' do @@ -8,7 +8,7 @@ target 'HHMSDKDemo' do
8 project './HHMSDKDemo.xcodeproj' 8 project './HHMSDKDemo.xcodeproj'
9 pod 'SVProgressHUD' 9 pod 'SVProgressHUD'
10 pod 'SnapKit' 10 pod 'SnapKit'
11 - pod 'HHVDoctorSDK', :git => "http://code.hh-medic.com/hh_public/hhvDoctorSDK.ios.git" 11 + pod 'HH_TRTC_Mini'
12 12
13 end 13 end
14 14