|
- _this.config = {
- bgImg: 'ximafge/bg2.png', // 背景
- navHidde: true, // 是否隐藏导航栏
- navBg: '#ffffff',
- navTxt: '一键登录',
- navColor: '#000000',
- navSize: '16',
- navClear: true, // 导航是否透明
- logoImg: 'ximafge/logo.png',
- phoneColor: '#ffffff',
- loginTxt: '本机号码一键登录',
- loginColor: '#000000',
- loginImg: 'ximafge/btn1.png',
- check: false,
- otherImg: 'ximafge/btn2.png',
- }
- _this.view = {
- uiConfig: {
- setAuthBGImgPath: 'widget://' + _this.config.bgImg, // 背景
- setNavColor: _this.config.navBg,
- setNavText: _this.config.navTxt,
- setNavTextColor: _this.config.navColor,
- setNavTextSize: _this.config.navSize,
- setAuthNavTransparent: _this.config.navClear,
- setAuthNavHidden: _this.config.navHidde,
- setNavReturnBtnWidth: '25',
- setNavReturnImgPath: 'sy_sdk_left',
- setNavReturnBtnOffsetX: '0',
- setNavReturnBtnOffsetY: '-1',
- setNavReturnBtnOffsetRightX: '-1',
- setNavReturnBtnHeight: '25',
- setNavReturnImgHidden: 'false',
- setNumberColor: _this.config.phoneColor,
- setLogBtnText: _this.config.loginTxt,
- setLogBtnTextColor: _this.config.loginColor,
- setLogBtnImgPath: 'widget://' + _this.config.loginImg,
- setLogoImgPath: 'widget://' + _this.config.logoImg,
- setPrivacyState: _this.config.check,
- setPrivacyText: {
- privacyTextOne: '同意',
- privacyTextFive: "并授权本APP登录"
- },
- },
- widgets: {
- widget1: {
- widgetId: "customView_one",
- type: "TextView",
- left: "",
- top: "330",
- right: "",
- bottom: "",
- width: screenWidth_Portrait * 0.75,
- height: "50",
- textContent: "其他手机号码登入",
- textFont: "13",
- textColor: "#000000",
- backgroundColor: "",
- backgroundImgPath: 'widget://' + _this.config.otherImg,
- isFinish: false
- },
- },
- };
- _this.iosview = {
- clBackgroundImg: _this.config.bgImg,
- shouldAutorotate: false, //支持自动旋转
- supportedInterfaceOrientations: 5,
- clNavigationBackgroundClear: true, //导航栏透明
- clNavigationBackBtnImage: "ximafge/shanyanImg/close-white.png", //返回按钮图片
- clNavBackBtnAlimentRight: false, //返回按钮居右,设置自定义导航栏返回按钮时,以自定义为准
- clLogoImage: _this.config.logoImg, //logo图片
- clLoginBtnText: _this.config.loginTxt, //一键登录按钮文字
- clLoginBtnTextColor: [1, 1, 1, 1.0], //rgba
- clLoginBtnBgColor: [0.825, 0.607, 0.290, 1.0], //rgba
- clLoginBtnTextFont: 16,
- clLoginBtnCornerRadius: 20,
- clLoginBtnBorderWidth: 0.5,
- clPhoneNumberFont: 20.0 * screenScale,
- clPhoneNumberColor: [1, 1, 1, 1.0],
- clSloganTextColor: [1, 1, 1, 1.0],
- clAppPrivacyColor: [
- [0.6, 0.6, 0.6, 1.0],
- [0, 1, 0, 1.0]
- ], //2 item,commomTextColor and appPrivacyTextColor
- clAppPrivacyTextFont: 11 * screenScale,
- clAppPrivacyTextAlignment: 0, //0: center 1: left 2: right
- clCheckBoxVerticalAlignmentToAppPrivacyCenterY: true,
- clCheckBoxSize: [25, 25], //2 item, width and height
- clCheckBoxUncheckedImage: "ximafge/select4.png",
- clCheckBoxCheckedImage: "ximafge/select3.png",
- clLoadingSize: [50, 50], //2 item, width and height
- clLoadingTintColor: [0.2, 0.8, 0.2, 1],
- clLoadingBackgroundColor: [1, 1, 1, 1],
- clLoadingCornerRadius: 5,
- clOrientationLayOutPortrait: {
- clLayoutLogoWidth: clLayoutLogoWidth_Portrait,
- clLayoutLogoHeight: clLayoutLogoHeight_Portrait,
- clLayoutLogoCenterX: clLayoutLogoCenterX_Portrait,
- clLayoutLogoTop: clLayoutLogoTop_Portrait,
- clLayoutPhoneCenterY: clLayoutPhoneCenterY_Portrait,
- clLayoutPhoneHeight: clLayoutPhoneHeight_Portrait,
- clLayoutPhoneLeft: clLayoutPhoneLeft_Portrait,
- clLayoutPhoneRight: clLayoutPhoneRight_Portrait,
- clLayoutLoginBtnCenterY: clLayoutLoginBtnCenterY_Portrait,
- clLayoutLoginBtnHeight: clLayoutLoginBtnHeight_Portrait,
- clLayoutLoginBtnLeft: clLayoutLoginBtnLeft_Portrait,
- clLayoutLoginBtnRight: clLayoutLoginBtnRight_Portrait,
- clLayoutAppPrivacyLeft: clLayoutAppPrivacyLeft_Portrait,
- clLayoutAppPrivacyRight: clLayoutAppPrivacyRight_Portrait,
- clLayoutAppPrivacyBottom: clLayoutAppPrivacyBottom_Portrait,
- clLayoutAppPrivacyHeight: clLayoutAppPrivacyHeight_Portrait,
- clLayoutSloganLeft: clLayoutSloganLeft_Portrait,
- clLayoutSloganRight: clLayoutSloganRight_Portrait,
- clLayoutSloganHeight: clLayoutSloganHeight_Portrait,
- clLayoutSloganBottom: clLayoutSloganBottom_Portrait,
- },
- clOrientationLayOutLandscape: {
- clLayoutLogoWidth: clLayoutLogoWidth_Landscape,
- clLayoutLogoHeight: clLayoutLogoHeight_Landscape,
- clLayoutLogoCenterX: clLayoutLogoCenterX_Landscape,
- clLayoutLogoTop: clLayoutLogoTop_Landscape,
- clLayoutPhoneCenterY: clLayoutPhoneCenterY_Landscape,
- clLayoutPhoneHeight: clLayoutPhoneHeight_Landscape,
- clLayoutPhoneLeft: clLayoutPhoneLeft_Landscape,
- clLayoutPhoneRight: clLayoutPhoneRight_Landscape,
- clLayoutLoginBtnCenterY: clLayoutLoginBtnCenterY_Landscape,
- clLayoutLoginBtnHeight: clLayoutLoginBtnHeight_Landscape,
- clLayoutLoginBtnLeft: clLayoutLoginBtnLeft_Landscape,
- clLayoutLoginBtnRight: clLayoutLoginBtnRight_Landscape,
- clLayoutAppPrivacyLeft: clLayoutAppPrivacyLeft_Landscape,
- clLayoutAppPrivacyRight: clLayoutAppPrivacyRight_Landscape,
- clLayoutAppPrivacyBottom: clLayoutAppPrivacyBottom_Landscape,
- clLayoutAppPrivacyHeight: clLayoutAppPrivacyHeight_Landscape,
- clLayoutSloganLeft: clLayoutSloganLeft_Landscape,
- clLayoutSloganRight: clLayoutSloganRight_Landscape,
- clLayoutSloganHeight: clLayoutSloganHeight_Landscape,
- clLayoutSloganBottom: clLayoutSloganBottom_Landscape,
- },
- widgets: {
- widget0: {
- widgetId: "customView_one", //字符标记
- type: "Button", // 类型:Button:按钮,ImageView:图片 TextView:文本
- textContent: "其他手机号码登入", //文字
- textFont: 14, //字体
- textColor: [0, 0, 0, 1], //文字颜色[r,g,b,a]
- backgroundColor: [1, 1, 1, 1], //控件背景色[r,g,b,a]
- numberOfLines: 0, //行数:默认单行, 0:无限,自动换行,其他:指定行数
- textAlignment: 1, //0: center 1: left 2: right //仅TextView有效
- clLayoutLeft: clLayoutLoginBtnLeft_Portrait,
- clLayoutRight: clLayoutLoginBtnRight_Portrait,
- clLayoutBottom: -320,
- clLayoutWidth: screenWidth_Portrait * 0.8,
- clLayoutHeight: clLayoutLoginBtnHeight_Portrait,
- cornerRadius: 20,
- masksToBounds: true
- },
- }
- };
复制代码 |
|