fix(login): 修复多端适配及事件重复绑定问题
1. 修正微信小程序平台的条件编译标识 2. 为uniapp页面元素补充@tap事件,兼容多端点击事件规范
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<input type="password" :placeholder="$lang('passwordInputPlaceholder')"
|
||||
placeholder-class="input-placeholder" class="input" v-model="formData.password" />
|
||||
<view class="align-right" v-show="loginMode == 'account'">
|
||||
<text @click="forgetPassword">{{ $lang('forgetPasswordText') }}</text>
|
||||
<text @click="forgetPassword" @tap="forgetPassword">{{ $lang('forgetPasswordText') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -37,25 +37,27 @@
|
||||
placeholder-class="input-placeholder" class="input" v-model="formData.dynacode" />
|
||||
<view class="dynacode"
|
||||
:class="dynacodeData.seconds == 120 ? 'color-base-text' : 'color-tip'"
|
||||
@click="sendMobileCode">{{ dynacodeData.codeText }}</view>
|
||||
@click="sendMobileCode" @tap="sendMobileCode">{{ dynacodeData.codeText }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="btn_view">
|
||||
<button type="primary" @click="login" class="login-btn color-base-border color-base-bg"
|
||||
<button type="primary" @click="login" @tap="login" class="login-btn color-base-border color-base-bg"
|
||||
style="background: #2796f2 !important;border: none;">{{ $lang('loginButtonText') }}</button>
|
||||
</view>
|
||||
<view class="regisiter-agreement"
|
||||
style="margin: 0 50rpx;padding-top: 40rpx;line-height: 1.5;display: flex;">
|
||||
<view style="" class="iconfont"
|
||||
:class="isAgree ? 'icon-fuxuankuang1 color-base-text' : 'icon-fuxuankuang2'"
|
||||
@click="isAgree = !isAgree"></view>
|
||||
@click="isAgree = !isAgree" @tap="isAgree = !isAgree"></view>
|
||||
<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')"
|
||||
style="color:#4395ff">{{ $lang('privacyPolicyText') }}</text> <text
|
||||
@click="tourl('/pages_tool/agreement/contenr?type=1')" style="color:#4395ff">{{
|
||||
$lang('userServiceAgreementText') }}</text></view>
|
||||
@click="tourl('/pages_tool/agreement/contenr?type=1')"
|
||||
@tap="tourl('/pages_tool/agreement/contenr?type=1')"
|
||||
style="color:#4395ff">{{ $lang('userServiceAgreementText') }}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
|
||||
Reference in New Issue
Block a user