Commit 11ccf170 by yancanhua

Merge branch 'release/venus-usedcar-h5/1.0.0' of http://192.168.3.233:8090/monor…

…epo/venus into release/venus-usedcar-h5/1.0.0
2 parents d867fbe3 4c99ca01
Pipeline #122 for 11ccf170 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">
import PageTitle from "@/components/PageTitle.vue";
......@@ -15,8 +24,8 @@ defineProps<{
<style lang="scss" scoped>
.page-top {
background: url("@assets/image/top_bg.png") no-repeat top center;
background-size: 100% auto;
// background: url("@assets/image/top_bg.png") no-repeat top center;
// background-size: 100% auto;
}
</style>
......@@ -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();
}
......
......@@ -283,7 +283,7 @@ void onRefresh();
<van-list v-else
v-model:loading="loading"
:finished="finished"
finished-text="到底了"
finished-text="到底了~"
:scroller="scroller"
@load="onLoad">
<div v-for="item in displayList"
......@@ -539,8 +539,8 @@ void onRefresh();
:deep(.wo-btn) {
height: auto;
padding: 10px 12px;
font-size: 13px;
padding: 6px 8px;
font-size: 12px;
font-weight: 400;
line-height: 1;
border: 0;
......
......@@ -4,7 +4,6 @@ import { useLogin } from "./useLogin.ts";
const {
phone,
code,
agreed,
sending,
countdown,
hasSent,
......@@ -70,18 +69,6 @@ const {
</div>
<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>
</template>
......
......@@ -4,7 +4,6 @@ import { useLogin } from "./useLogin.ts";
const {
phone,
code,
agreed,
sending,
countdown,
hasSent,
......@@ -63,18 +62,6 @@ const {
@click="handleLogin">
登录
</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>
......
......@@ -13,7 +13,6 @@ export function useLogin() {
const phone = ref("");
const code = ref("");
const agreed = ref(false);
/** 仅数字 + 长度上限;配合 Field type=digit,并兜底粘贴等非数字字符 */
watch(phone, (v) => {
......@@ -76,10 +75,6 @@ export function useLogin() {
showFailToast("请输入验证码");
return;
}
if (!agreed.value) {
showFailToast("请先阅读并同意相关协议");
return;
}
try {
const res = await login({
......@@ -112,7 +107,6 @@ export function useLogin() {
return {
phone,
code,
agreed,
sending,
countdown,
hasSent,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!