注销账号Android适配 --review by 张丽霞
Showing
3 changed files
with
17 additions
and
15 deletions
@@ -35,7 +35,7 @@ export default class LogoutClause extends Component { | @@ -35,7 +35,7 @@ export default class LogoutClause extends Component { | ||
35 | 在您注销您的YOHO!BUY账户之前,请您充分阅读、理解并同意下列事项,当您按照注销页面提示填写信息、阅读并同意本《注销须知》及相关条款与条件且完成全部注销程序后,即表示您已充分阅读、理解并接受本《注销须知》的全部内容。阅读本《注销须知》的过程中,如果您不同意相关任何条款和条件约定,请您立即停止账户注销程序。 | 35 | 在您注销您的YOHO!BUY账户之前,请您充分阅读、理解并同意下列事项,当您按照注销页面提示填写信息、阅读并同意本《注销须知》及相关条款与条件且完成全部注销程序后,即表示您已充分阅读、理解并接受本《注销须知》的全部内容。阅读本《注销须知》的过程中,如果您不同意相关任何条款和条件约定,请您立即停止账户注销程序。 |
36 | </Text> | 36 | </Text> |
37 | <Text style={styles.content}> | 37 | <Text style={styles.content}> |
38 | - 我们在此善意的提醒您,您注销帐号的行为会给您的售后维权带来诸多的不便,且注销YOHO!BUY账户后,您的个人信息我们只会在有货商城的前台系统中去除,使其保持不可被检索、访问的状态,或对其进行匿名化处理。您知晓并理解,根据相关法律规定相关交易记录须在有货后台保存2年甚至更长时间。 | 38 | + 我们在此善意的提醒您,您注销账号的行为会给您的售后维权带来诸多的不便,且注销YOHO!BUY账户后,您的个人信息我们只会在有货商城的前台系统中去除,使其保持不可被检索、访问的状态,或对其进行匿名化处理。您知晓并理解,根据相关法律规定相关交易记录须在有货后台保存2年甚至更长时间。 |
39 | </Text> | 39 | </Text> |
40 | <Text style={styles.content}> | 40 | <Text style={styles.content}> |
41 | 1.您所申请注销等YOHO!BUY账户应该是您依照用户服务协议注册并由本公司提供给您本人的账户。您应当按照本公司规定的程序或网站上的提示进行YOHO!BUY账户注销。 | 41 | 1.您所申请注销等YOHO!BUY账户应该是您依照用户服务协议注册并由本公司提供给您本人的账户。您应当按照本公司规定的程序或网站上的提示进行YOHO!BUY账户注销。 |
@@ -45,7 +45,7 @@ export default class UserLogout extends Component { | @@ -45,7 +45,7 @@ export default class UserLogout extends Component { | ||
45 | <View style={styles.clauseContainer}> | 45 | <View style={styles.clauseContainer}> |
46 | <TouchableOpacity | 46 | <TouchableOpacity |
47 | activeOpacity={1.0} | 47 | activeOpacity={1.0} |
48 | - style={{flexDirection: 'row'}} | 48 | + style={{flexDirection: 'row',alignItems: 'center'}} |
49 | onPress={() => { | 49 | onPress={() => { |
50 | this.setState(previousState => { | 50 | this.setState(previousState => { |
51 | return { readedClause: !previousState.readedClause }; | 51 | return { readedClause: !previousState.readedClause }; |
@@ -73,7 +73,7 @@ export default class UserLogout extends Component { | @@ -73,7 +73,7 @@ export default class UserLogout extends Component { | ||
73 | } | 73 | } |
74 | }}> | 74 | }}> |
75 | <View style={[styles.confirmBtn,{backgroundColor:this.state.readedClause?'#444444':'#b0b0b0'}]}> | 75 | <View style={[styles.confirmBtn,{backgroundColor:this.state.readedClause?'#444444':'#b0b0b0'}]}> |
76 | - <Text style={styles.confirmText}>注销帐号</Text> | 76 | + <Text style={styles.confirmText}>注销账号</Text> |
77 | </View> | 77 | </View> |
78 | </TouchableOpacity> | 78 | </TouchableOpacity> |
79 | <Modal | 79 | <Modal |
@@ -85,26 +85,26 @@ export default class UserLogout extends Component { | @@ -85,26 +85,26 @@ export default class UserLogout extends Component { | ||
85 | <View style={styles.modalView}> | 85 | <View style={styles.modalView}> |
86 | <View style={styles.confirmTitleContainer}> | 86 | <View style={styles.confirmTitleContainer}> |
87 | <View style={{marginTop:40,marginBottom:29}}> | 87 | <View style={{marginTop:40,marginBottom:29}}> |
88 | - <Text style={styles.confirmTitle}>确认注销帐号吗?</Text> | ||
89 | - <Text style={styles.confirmTitle}>注销帐号将无法恢复!</Text> | 88 | + <Text style={styles.confirmTitle}>确认注销账号吗?</Text> |
89 | + <Text style={styles.confirmTitle}>注销账号将无法恢复!</Text> | ||
90 | </View> | 90 | </View> |
91 | </View> | 91 | </View> |
92 | <View style={{width:'100%',height:0.5,backgroundColor:'#e0e0e0'}}/> | 92 | <View style={{width:'100%',height:0.5,backgroundColor:'#e0e0e0'}}/> |
93 | <View style={styles.confirmBtnContainer}> | 93 | <View style={styles.confirmBtnContainer}> |
94 | <TouchableOpacity | 94 | <TouchableOpacity |
95 | - style={{width:'49%',alignItems:'center',height:45.5}} | 95 | + style={{width:'49%',alignItems:'center',justifyContent:'center',height:45.5}} |
96 | onPress={() => { | 96 | onPress={() => { |
97 | this.props.updateLogoutModalState && this.props.updateLogoutModalState(false); | 97 | this.props.updateLogoutModalState && this.props.updateLogoutModalState(false); |
98 | }}> | 98 | }}> |
99 | - <Text style={{lineHeight:44,fontSize:17,color:'#444444',letterSpacing:-0.41}}>放弃</Text> | 99 | + <Text style={{fontSize:17,color:'#444444',letterSpacing:-0.41}}>放弃</Text> |
100 | </TouchableOpacity> | 100 | </TouchableOpacity> |
101 | <View style={{width:0.5,height:45,backgroundColor:'#e0e0e0'}}/> | 101 | <View style={{width:0.5,height:45,backgroundColor:'#e0e0e0'}}/> |
102 | <TouchableOpacity | 102 | <TouchableOpacity |
103 | - style={{width:'49%',alignItems:'center',height:45.5}} | 103 | + style={{width:'49%',alignItems:'center',justifyContent:'center',height:45.5}} |
104 | onPress={() => { | 104 | onPress={() => { |
105 | this.props.confirmLogoutAction && this.props.confirmLogoutAction(); | 105 | this.props.confirmLogoutAction && this.props.confirmLogoutAction(); |
106 | }}> | 106 | }}> |
107 | - <Text style={{lineHeight:44,fontSize:17,color:'#d0021b',letterSpacing:-0.41}}>确定</Text> | 107 | + <Text style={{fontSize:17,color:'#d0021b',letterSpacing:-0.41}}>确定</Text> |
108 | </TouchableOpacity> | 108 | </TouchableOpacity> |
109 | </View> | 109 | </View> |
110 | </View> | 110 | </View> |
@@ -179,7 +179,6 @@ let styles = StyleSheet.create({ | @@ -179,7 +179,6 @@ let styles = StyleSheet.create({ | ||
179 | flex: 1, | 179 | flex: 1, |
180 | justifyContent: 'center', | 180 | justifyContent: 'center', |
181 | backgroundColor:'rgba(0, 0, 0, 0.4)', | 181 | backgroundColor:'rgba(0, 0, 0, 0.4)', |
182 | - marginTop: 64 | ||
183 | }, | 182 | }, |
184 | modalView: { | 183 | modalView: { |
185 | marginTop: -64, | 184 | marginTop: -64, |
@@ -95,6 +95,7 @@ export default class UserLogoutReason extends Component { | @@ -95,6 +95,7 @@ export default class UserLogoutReason extends Component { | ||
95 | multiline={true} | 95 | multiline={true} |
96 | placeholder="原因..." | 96 | placeholder="原因..." |
97 | placeholderTextColor='#b0b0b0' | 97 | placeholderTextColor='#b0b0b0' |
98 | + underlineColorAndroid='transparent' //设置下划线背景色透明 达到去掉下划线的效果 | ||
98 | onChangeText={(text) => { | 99 | onChangeText={(text) => { |
99 | this.setState({text}); | 100 | this.setState({text}); |
100 | this.props.enableSubmitBtn && this.props.enableSubmitBtn(text == "" ? false : true) | 101 | this.props.enableSubmitBtn && this.props.enableSubmitBtn(text == "" ? false : true) |
@@ -133,6 +134,7 @@ export default class UserLogoutReason extends Component { | @@ -133,6 +134,7 @@ export default class UserLogoutReason extends Component { | ||
133 | placeholderTextColor='#b0b0b0' | 134 | placeholderTextColor='#b0b0b0' |
134 | keyboardType="numeric" | 135 | keyboardType="numeric" |
135 | maxLength={13} | 136 | maxLength={13} |
137 | + underlineColorAndroid='transparent' //设置下划线背景色透明 达到去掉下划线的效果 | ||
136 | onChangeText={(mobile) => { | 138 | onChangeText={(mobile) => { |
137 | this.setState({mobile}); | 139 | this.setState({mobile}); |
138 | }}/> | 140 | }}/> |
@@ -144,6 +146,7 @@ export default class UserLogoutReason extends Component { | @@ -144,6 +146,7 @@ export default class UserLogoutReason extends Component { | ||
144 | placeholderTextColor='#b0b0b0' | 146 | placeholderTextColor='#b0b0b0' |
145 | keyboardType="numeric" | 147 | keyboardType="numeric" |
146 | maxLength={11} | 148 | maxLength={11} |
149 | + underlineColorAndroid='transparent' //设置下划线背景色透明 达到去掉下划线的效果 | ||
147 | onChangeText={(cancleCode) => { | 150 | onChangeText={(cancleCode) => { |
148 | this.setState({cancleCode}); | 151 | this.setState({cancleCode}); |
149 | }}/> | 152 | }}/> |
@@ -233,12 +236,12 @@ export default class UserLogoutReason extends Component { | @@ -233,12 +236,12 @@ export default class UserLogoutReason extends Component { | ||
233 | <View style={{width:'100%',height:0.5,backgroundColor:'#e0e0e0',marginTop:15}}/> | 236 | <View style={{width:'100%',height:0.5,backgroundColor:'#e0e0e0',marginTop:15}}/> |
234 | 237 | ||
235 | <TouchableOpacity | 238 | <TouchableOpacity |
236 | - style={{width:'49%',alignItems:'center',height:45.5}} | 239 | + style={{width:'49%',alignItems:'center',justifyContent: 'center',height:45.5}} |
237 | onPress={() => { | 240 | onPress={() => { |
238 | this.props.confirmLogout && this.props.confirmLogout(this.state.cancleCode, this.state.text); | 241 | this.props.confirmLogout && this.props.confirmLogout(this.state.cancleCode, this.state.text); |
239 | }}> | 242 | }}> |
240 | <View style={{width:240}}> | 243 | <View style={{width:240}}> |
241 | - <Text style={{lineHeight:44,fontSize:17,color:'#d0021b',letterSpacing:-0.41,fontFamily:'PingFang-SC-Medium',backgroundColor:'transparent',textAlign:'center'}}>确定</Text> | 244 | + <Text style={{fontSize:17,color:'#d0021b',letterSpacing:-0.41,fontFamily:'PingFang-SC-Medium',backgroundColor:'transparent',textAlign:'center'}}>确定</Text> |
242 | </View> | 245 | </View> |
243 | </TouchableOpacity> | 246 | </TouchableOpacity> |
244 | </View> | 247 | </View> |
@@ -279,13 +282,13 @@ let styles = StyleSheet.create({ | @@ -279,13 +282,13 @@ let styles = StyleSheet.create({ | ||
279 | padding: 10, | 282 | padding: 10, |
280 | color: '#444444', | 283 | color: '#444444', |
281 | borderWidth: 0.5, | 284 | borderWidth: 0.5, |
282 | - borderColor: '#e0e0e0' | 285 | + borderColor: '#e0e0e0', |
286 | + textAlignVertical: 'top' | ||
283 | }, | 287 | }, |
284 | textInputContainer: { | 288 | textInputContainer: { |
285 | marginLeft: 15, | 289 | marginLeft: 15, |
286 | marginRight: 15, | 290 | marginRight: 15, |
287 | borderRadius: 10, | 291 | borderRadius: 10, |
288 | - alignItems: 'center' | ||
289 | }, | 292 | }, |
290 | submitBtn: { | 293 | submitBtn: { |
291 | marginLeft: 15, | 294 | marginLeft: 15, |
@@ -294,10 +297,10 @@ let styles = StyleSheet.create({ | @@ -294,10 +297,10 @@ let styles = StyleSheet.create({ | ||
294 | height: 44, | 297 | height: 44, |
295 | borderRadius: 5, | 298 | borderRadius: 5, |
296 | alignItems: 'center', | 299 | alignItems: 'center', |
300 | + justifyContent: 'center', | ||
297 | }, | 301 | }, |
298 | submitText: { | 302 | submitText: { |
299 | textAlign: 'center', | 303 | textAlign: 'center', |
300 | - lineHeight: 43, | ||
301 | color: 'white', | 304 | color: 'white', |
302 | fontSize: 16 | 305 | fontSize: 16 |
303 | }, | 306 | }, |
-
Please register or login to post a comment