Compare commits
5 Commits
fix-109
...
92f981769f
| Author | SHA1 | Date | |
|---|---|---|---|
| 92f981769f | |||
| f69225dbff | |||
| f422dbaa00 | |||
| 14fee13568 | |||
| ed62f3fbbc |
@@ -15,7 +15,7 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="!isCallSuccess" class="order-content border-box p-12">
|
<view v-if="!isCallSuccess" class="border-box p-12">
|
||||||
<view
|
<view
|
||||||
class="bg-F5F7FA border-box flex flex-items-center p-12 rounded-10 font-size-14 color-171717 mb-12"
|
class="bg-F5F7FA border-box flex flex-items-center p-12 rounded-10 font-size-14 color-171717 mb-12"
|
||||||
>
|
>
|
||||||
@@ -149,6 +149,8 @@ const originalPhone = ref("");
|
|||||||
const contactPhone = ref("");
|
const contactPhone = ref("");
|
||||||
// 是否用户已编辑过手机号(一旦编辑则不再脱敏)
|
// 是否用户已编辑过手机号(一旦编辑则不再脱敏)
|
||||||
const hasEditedPhone = ref(false);
|
const hasEditedPhone = ref(false);
|
||||||
|
// 需求信息描述:使用可写的 ref,并从工具结果初始化
|
||||||
|
const contactText = ref("");
|
||||||
|
|
||||||
// 手机号脱敏:138****1234(仅对11位数字进行处理)
|
// 手机号脱敏:138****1234(仅对11位数字进行处理)
|
||||||
const maskPhone = (phone) => {
|
const maskPhone = (phone) => {
|
||||||
@@ -163,13 +165,10 @@ watch(
|
|||||||
originalPhone.value = val?.userPhone || "";
|
originalPhone.value = val?.userPhone || "";
|
||||||
hasEditedPhone.value = false;
|
hasEditedPhone.value = false;
|
||||||
contactPhone.value = maskPhone(originalPhone.value);
|
contactPhone.value = maskPhone(originalPhone.value);
|
||||||
|
contactText.value = val?.callServiceContent || "";
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
);
|
);
|
||||||
const contactText = computed({
|
|
||||||
get: () => toolResult.value?.callServiceContent || "",
|
|
||||||
set: (val) => (contactText.value = val),
|
|
||||||
});
|
|
||||||
|
|
||||||
// 处理图片上传
|
// 处理图片上传
|
||||||
const handleChooseImage = () => {
|
const handleChooseImage = () => {
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
width: 98px;
|
width: 98px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
}
|
}
|
||||||
.order-content {
|
|
||||||
width: 335px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.help-icon {
|
.help-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="!isCallSuccess" class="order-content border-box p-12">
|
<view v-if="!isCallSuccess" class="border-box p-12">
|
||||||
<view
|
<view
|
||||||
class="bg-F5F7FA border-box flex flex-items-center p-12 rounded-10 font-size-14 color-171717 mb-12"
|
class="bg-F5F7FA border-box flex flex-items-center p-12 rounded-10 font-size-14 color-171717 mb-12"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -7,10 +7,6 @@
|
|||||||
height: 48px;
|
height: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-content {
|
|
||||||
width: 335px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.help-icon {
|
.help-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ const count = computed({
|
|||||||
const totalAmt = computed(() => {
|
const totalAmt = computed(() => {
|
||||||
const { totalDays } = props.selectedDate;
|
const { totalDays } = props.selectedDate;
|
||||||
const { specificationPrice } = props.orderData;
|
const { specificationPrice } = props.orderData;
|
||||||
|
|
||||||
return count.value * Number(specificationPrice) * totalDays;
|
return count.value * Number(specificationPrice) * totalDays;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view
|
<view
|
||||||
class="quick-access border-box flex flex-nowrap items-center ml-12 pt-8 pb-8"
|
class="quick-access flex flex-row ml-12 pt-8 pb-8 scroll-x whitespace-nowrap"
|
||||||
>
|
>
|
||||||
<view
|
<view
|
||||||
class="item border-box rounded-50 flex flex-row items-center"
|
class="item border-box rounded-50 flex flex-row items-center"
|
||||||
|
|||||||
@@ -3,7 +3,11 @@ import { defineStore } from "pinia";
|
|||||||
export const useSelectedDateStore = defineStore("selectedDate", {
|
export const useSelectedDateStore = defineStore("selectedDate", {
|
||||||
state() {
|
state() {
|
||||||
return {
|
return {
|
||||||
selectedDate: {},
|
selectedDate: {
|
||||||
|
startDate: "",
|
||||||
|
endDate: "",
|
||||||
|
totalDays: 1,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user