style(login.vue): remove redundant harmony platform conditional comments

clean up the mp-harmony specific code blocks that are no longer needed
This commit is contained in:
2026-07-04 18:00:18 +08:00
parent 181717a7ab
commit 014f111cd1

View File

@@ -48,11 +48,9 @@
</view> </view>
<view class="regisiter-agreement" <view class="regisiter-agreement"
style="margin: 0 50rpx;padding-top: 40rpx;line-height: 1.5;display: flex;"> style="margin: 0 50rpx;padding-top: 40rpx;line-height: 1.5;display: flex;">
<!-- #ifndef MP-HARMONY -->
<view style="" class="iconfont" <view style="" class="iconfont"
:class="isAgree ? 'icon-fuxuankuang1 color-base-text' : 'icon-fuxuankuang2'" :class="isAgree ? 'icon-fuxuankuang1 color-base-text' : 'icon-fuxuankuang2'"
@tap="isAgree = !isAgree"></view> @tap="isAgree = !isAgree"></view>
<!-- #endif -->
<view style="text-align: left;margin-left: 10rpx;padding-top: 2rpx;">{{ <view style="text-align: left;margin-left: 10rpx;padding-top: 2rpx;">{{
$lang('login.login.registerAgreementText') }} <text $lang('login.login.registerAgreementText') }} <text
@tap="tourl('/pages_tool/agreement/contenr?type=0')" @tap="tourl('/pages_tool/agreement/contenr?type=0')"
@@ -194,14 +192,12 @@ export default {
* 登录 * 登录
*/ */
login() { login() {
// #ifndef MP-HARMONY
if (!this.isAgree) { if (!this.isAgree) {
this.$util.showToast({ this.$util.showToast({
title: this.$lang('login.login.agreeAgreementTip') title: this.$lang('login.login.agreeAgreementTip')
}); });
return false; return false;
} }
// #endif
if (this.loginMode == 'account') { if (this.loginMode == 'account') {
var url = '/api/login/login'; var url = '/api/login/login';
data = { data = {