fix(login): 鸿蒙元服务环境隐藏协议勾选框
- 鸿蒙 ArkUI 渲染引擎对动态 class 绑定(含 :before 伪元素)支持不完善 - 协议勾选状态切换后视图不刷新 - 暂时通过条件编译 #ifndef MP-HARMONY 在非鸿蒙环境显示勾选框 - 鸿蒙环境下跳过协议勾选校验
This commit is contained in:
@@ -48,9 +48,11 @@
|
||||
</view>
|
||||
<view class="regisiter-agreement"
|
||||
style="margin: 0 50rpx;padding-top: 40rpx;line-height: 1.5;display: flex;">
|
||||
<!-- #ifndef MP-HARMONY -->
|
||||
<view style="" class="iconfont"
|
||||
:class="isAgree ? 'icon-fuxuankuang1 color-base-text' : 'icon-fuxuankuang2'"
|
||||
@click="isAgree = !isAgree" @tap="isAgree = !isAgree"></view>
|
||||
<!-- #endif -->
|
||||
<view style="text-align: left;margin-left: 10rpx;padding-top: 2rpx;">{{
|
||||
$lang('registerAgreementText') }} <text @click="tourl('/pages_tool/agreement/contenr?type=0')"
|
||||
@tap="tourl('/pages_tool/agreement/contenr?type=0')"
|
||||
@@ -193,12 +195,14 @@ export default {
|
||||
* 登录
|
||||
*/
|
||||
login() {
|
||||
// #ifndef MP-HARMONY
|
||||
if (!this.isAgree) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('agreeAgreementTip')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
// #endif
|
||||
if (this.loginMode == 'account') {
|
||||
var url = '/api/login/login';
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user