style: 统一修复多页面重复的事件绑定冗余代码

1. 移除多处重复的@click和@tap事件,只保留必要的@tap
2. 修复scoped样式穿透语法,补全样式文件末尾换行
3. 统一调整隐私弹窗、搜索页等页面的样式写法
This commit is contained in:
2026-06-27 09:48:28 +08:00
parent ea40123c76
commit 1bf8a4a9b2
7 changed files with 23 additions and 24 deletions

View File

@@ -2,9 +2,9 @@
<view :style="themeColor">
<view class="content" :style="tabBarPagePaddingStyle">
<view class="cate-search">
<view class="search-box" @click="search()" @tap.stop="search()">
<input class="uni-input" maxlength="50" v-model="inputValue" confirm-type="search" @focus="inputFocus" focus @confirm="search()" @click="search()" @tap="search()" :placeholder="searchWords ? searchWords : ''" />
<text class="iconfont icon-sousuo3" @click="search()"></text>
<view class="search-box" @tap.stop="search()">
<input class="uni-input" maxlength="50" v-model="inputValue" confirm-type="search" @focus="inputFocus" focus @confirm="search()" @tap="search()" :placeholder="searchWords ? searchWords : ''" />
<text class="iconfont icon-sousuo3"></text>
</view>
</view>
<view class="search-content">
@@ -342,4 +342,4 @@
overflow: hidden;
}
}
</style>
</style>

View File

@@ -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" @tap="forgetPassword">{{ $lang('forgetPasswordText') }}</text>
<text @tap="forgetPassword">{{ $lang('forgetPasswordText') }}</text>
</view>
</view>
</view>
@@ -37,13 +37,13 @@
placeholder-class="input-placeholder" class="input" v-model="formData.dynacode" />
<view class="dynacode"
:class="dynacodeData.seconds == 120 ? 'color-base-text' : 'color-tip'"
@click="sendMobileCode" @tap="sendMobileCode">{{ dynacodeData.codeText }}</view>
@tap="sendMobileCode">{{ dynacodeData.codeText }}</view>
</view>
</view>
</view>
<view class="btn_view">
<button type="primary" @click="login" @tap="login" class="login-btn color-base-border color-base-bg"
<button type="primary" @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"
@@ -51,13 +51,12 @@
<!-- #ifndef MP-HARMONY -->
<view style="" class="iconfont"
:class="isAgree ? 'icon-fuxuankuang1 color-base-text' : 'icon-fuxuankuang2'"
@click="isAgree = !isAgree" @tap="isAgree = !isAgree"></view>
@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')"
$lang('registerAgreementText') }} <text
@tap="tourl('/pages_tool/agreement/contenr?type=0')"
style="color:#4395ff">{{ $lang('privacyPolicyText') }}</text> <text
@click="tourl('/pages_tool/agreement/contenr?type=1')"
@tap="tourl('/pages_tool/agreement/contenr?type=1')"
style="color:#4395ff">{{ $lang('userServiceAgreementText') }}</text></view>
</view>
@@ -497,4 +496,4 @@ export default {
::v-deep uni-toast .uni-simple-toast__text {
background: red !important;
}
</style>
</style>