Commit 4c99ca01 by chenwq1

fix: 提示

1 parent 1a0039a6
Pipeline #121 for 4c99ca01 failed in 0 seconds
<!--
* @Author: cen
* @Date: 2026-03-18 18:09:39
* @Description:
* @FilePath: /venus-usedcar-h5/apps/web/venus-usedcar-quality/src/components/PageTop.vue
* @LastEditTime: 2026-03-26 15:33:11
* @LastEditors: cenchengwei@foreverht.com
* 可以输入预定的版权声明、个性签名、空行等
-->
<script setup lang="ts"> <script setup lang="ts">
import PageTitle from "@/components/PageTitle.vue"; import PageTitle from "@/components/PageTitle.vue";
...@@ -15,8 +24,8 @@ defineProps<{ ...@@ -15,8 +24,8 @@ defineProps<{
<style lang="scss" scoped> <style lang="scss" scoped>
.page-top { .page-top {
background: url("@assets/image/top_bg.png") no-repeat top center; // background: url("@assets/image/top_bg.png") no-repeat top center;
background-size: 100% auto; // background-size: 100% auto;
} }
</style> </style>
...@@ -129,7 +129,21 @@ export function useInspectSubmit( ...@@ -129,7 +129,21 @@ export function useInspectSubmit(
} }
} }
function onBack() { async function onBack() {
if (submitting.value) return;
if (modules.activeBigKey.value !== SCORE_BIG_KEY) {
try {
const persisted = await saveCurrentLeafInspectionRecord(false);
if (persisted) {
showToast("已自动保存草稿");
}
} catch (error) {
if (!isRequestFailureAlreadyHandled(error)) {
showToast("草稿保存失败,请稍后重试");
}
return;
}
}
router.back(); router.back();
} }
......
...@@ -283,7 +283,7 @@ void onRefresh(); ...@@ -283,7 +283,7 @@ void onRefresh();
<van-list v-else <van-list v-else
v-model:loading="loading" v-model:loading="loading"
:finished="finished" :finished="finished"
finished-text="到底了" finished-text="到底了~"
:scroller="scroller" :scroller="scroller"
@load="onLoad"> @load="onLoad">
<div v-for="item in displayList" <div v-for="item in displayList"
...@@ -539,8 +539,8 @@ void onRefresh(); ...@@ -539,8 +539,8 @@ void onRefresh();
:deep(.wo-btn) { :deep(.wo-btn) {
height: auto; height: auto;
padding: 10px 12px; padding: 6px 8px;
font-size: 13px; font-size: 12px;
font-weight: 400; font-weight: 400;
line-height: 1; line-height: 1;
border: 0; border: 0;
......
...@@ -4,7 +4,6 @@ import { useLogin } from "./useLogin.ts"; ...@@ -4,7 +4,6 @@ import { useLogin } from "./useLogin.ts";
const { const {
phone, phone,
code, code,
agreed,
sending, sending,
countdown, countdown,
hasSent, hasSent,
...@@ -70,18 +69,6 @@ const { ...@@ -70,18 +69,6 @@ const {
</div> </div>
<div aria-hidden="true" class="min-h-6 flex-1" /> <div aria-hidden="true" class="min-h-6 flex-1" />
<div class="flex shrink-0 justify-center pt-10 text-center text-[12px] text-[#999]">
<van-checkbox v-model="agreed"
checked-color="#4f8cff"
icon-size="14px">
<span class="whitespace-nowrap">
我已阅读并同意
<a class="mx-0.5 text-[#4f8cff] no-underline" href="javascript:;">《用户协议》</a>
<a class="mx-0.5 text-[#4f8cff] no-underline" href="javascript:;">《隐私协议》</a>
</span>
</van-checkbox>
</div>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -4,7 +4,6 @@ import { useLogin } from "./useLogin.ts"; ...@@ -4,7 +4,6 @@ import { useLogin } from "./useLogin.ts";
const { const {
phone, phone,
code, code,
agreed,
sending, sending,
countdown, countdown,
hasSent, hasSent,
...@@ -63,18 +62,6 @@ const { ...@@ -63,18 +62,6 @@ const {
@click="handleLogin"> @click="handleLogin">
登录 登录
</van-button> </van-button>
<div class="mt-4 flex items-center justify-center text-[12px] text-[#999]">
<van-checkbox v-model="agreed"
checked-color="#4f8cff"
icon-size="14px">
<span class="whitespace-nowrap">
我已阅读并同意
<a class="mx-0.5 text-[#4f8cff] no-underline" href="javascript:;">《用户协议》</a>
<a class="mx-0.5 text-[#4f8cff] no-underline" href="javascript:;">《隐私协议》</a>
</span>
</van-checkbox>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -13,7 +13,6 @@ export function useLogin() { ...@@ -13,7 +13,6 @@ export function useLogin() {
const phone = ref(""); const phone = ref("");
const code = ref(""); const code = ref("");
const agreed = ref(false);
/** 仅数字 + 长度上限;配合 Field type=digit,并兜底粘贴等非数字字符 */ /** 仅数字 + 长度上限;配合 Field type=digit,并兜底粘贴等非数字字符 */
watch(phone, (v) => { watch(phone, (v) => {
...@@ -76,10 +75,6 @@ export function useLogin() { ...@@ -76,10 +75,6 @@ export function useLogin() {
showFailToast("请输入验证码"); showFailToast("请输入验证码");
return; return;
} }
if (!agreed.value) {
showFailToast("请先阅读并同意相关协议");
return;
}
try { try {
const res = await login({ const res = await login({
...@@ -112,7 +107,6 @@ export function useLogin() { ...@@ -112,7 +107,6 @@ export function useLogin() {
return { return {
phone, phone,
code, code,
agreed,
sending, sending,
countdown, countdown,
hasSent, hasSent,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!