| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import { BasicType } from '../../models';
- import { yTToast } from '../../utils/arkts/utils/YTToast';
- import { YTButton } from '../generalComp/YTButton';
- @Builder
- export function agreePrivacy(item: BasicType<undefined>) {
- Column() {
- Text('温馨提示')
- .fontSize(14)
- .fontColor('Color.Black')
- .margin({ top: 14, bottom: 8 })
- Text('已阅读并同意《用户协议》和《隐私政策》')
- .fontSize(13)
- .fontColor($r('sys.color.mask_secondary'))
- .margin({ bottom: 19 })
- Column() {
- YTButton({
- btContent: '同意并登入',
- btHeight: 37,
- click: () => {
- yTToast.hide()
- item.loginType!.isAgreePrivacy = true
- item.loginType?.executeLogin()
- }
- })
- YTButton({
- btContent: '不同意',
- btHeight: 37,
- bgc: Color.White,
- btFontColor: '#80000000',
- click: () => {
- yTToast.hide()
- }
- })
- }
- .padding({ left: 16, right: 16 })
- }
- .width(280)
- .height(160)
- .backgroundColor(Color.White)
- .borderRadius(8)
- .margin({ bottom: 28 })
- }
|