|
@@ -11,10 +11,11 @@ import com.atmob.keyboard_android.component.child.IToolBarComponent
|
|
|
import com.atmob.keyboard_android.component.root.IKeyboardRootComponent
|
|
import com.atmob.keyboard_android.component.root.IKeyboardRootComponent
|
|
|
import com.atmob.keyboard_android.enums.KeyboardGlobalType
|
|
import com.atmob.keyboard_android.enums.KeyboardGlobalType
|
|
|
import com.atmob.keyboard_android.ext.click
|
|
import com.atmob.keyboard_android.ext.click
|
|
|
-import com.atmob.keyboard_android.ext.longClick
|
|
|
|
|
import com.atmob.keyboard_android.ext.setGone
|
|
import com.atmob.keyboard_android.ext.setGone
|
|
|
import com.atmob.keyboard_android.keyboard.InputMethodPickerActivity
|
|
import com.atmob.keyboard_android.keyboard.InputMethodPickerActivity
|
|
|
import com.atmob.keyboard_android.util.KeyboardHolder
|
|
import com.atmob.keyboard_android.util.KeyboardHolder
|
|
|
|
|
+import com.atmob.keyboard_android.util.UserInfoHelper
|
|
|
|
|
+import com.atmob.keyboard_android.util.bridge.FlutterBridgeManager
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 工具类组件
|
|
* 工具类组件
|
|
@@ -62,22 +63,15 @@ class ToolBarComponent @JvmOverloads constructor(
|
|
|
updateKeyboardGlobalType(newGlobalType)
|
|
updateKeyboardGlobalType(newGlobalType)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // TODO: hezhiao,测试显示vip页,记得要去掉
|
|
|
|
|
- vIcon.longClick {
|
|
|
|
|
- val rootComponent =
|
|
|
|
|
- ComponentMediator.findComponent<IKeyboardRootComponent>(IKeyboardRootComponent::class.java)
|
|
|
|
|
- rootComponent?.switchVipPage()
|
|
|
|
|
- true
|
|
|
|
|
- }
|
|
|
|
|
vKeyboardSwitchBtn.click {
|
|
vKeyboardSwitchBtn.click {
|
|
|
// 打开系统输入法选择器
|
|
// 打开系统输入法选择器
|
|
|
InputMethodPickerActivity.start(context)
|
|
InputMethodPickerActivity.start(context)
|
|
|
}
|
|
}
|
|
|
vIntimacyLayout.click {
|
|
vIntimacyLayout.click {
|
|
|
- // 点击亲密度布局,跳转去登录页
|
|
|
|
|
- val rootComponent =
|
|
|
|
|
- ComponentMediator.findComponent<IKeyboardRootComponent>(IKeyboardRootComponent::class.java)
|
|
|
|
|
- rootComponent?.switchLoginPage()
|
|
|
|
|
|
|
+ // 点击亲密度布局,跳转去亲密度页
|
|
|
|
|
+ UserInfoHelper.checkLogin {
|
|
|
|
|
+ FlutterBridgeManager.jump2IntimacyPage()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
setupViewModel()
|
|
setupViewModel()
|