fix: lint
parent
adecddae67
commit
b2cf1646a4
|
|
@ -64,12 +64,12 @@ const [Form, formApi] = useVbenForm({
|
||||||
|
|
||||||
// ================= 商品选择相关 =================
|
// ================= 商品选择相关 =================
|
||||||
/** SKU 扩展类型 */
|
/** SKU 扩展类型 */
|
||||||
interface SkuExtension extends MallSpuApi.Sku {
|
interface SkuExtension extends MallSpuApi.Sku {
|
||||||
productConfig: MallDiscountActivityApi.DiscountProduct;
|
productConfig: MallDiscountActivityApi.DiscountProduct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** SPU 扩展类型 */
|
/** SPU 扩展类型 */
|
||||||
interface SpuExtension extends MallSpuApi.Spu {
|
interface SpuExtension extends MallSpuApi.Spu {
|
||||||
skus?: SkuExtension[];
|
skus?: SkuExtension[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function openRightMessage(item: MallKefuConversationApi.Conversation) {
|
||||||
|
|
||||||
/** 获得消息类型 */
|
/** 获得消息类型 */
|
||||||
const getConversationDisplayText = computed(
|
const getConversationDisplayText = computed(
|
||||||
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
||||||
switch (lastMessageContentType) {
|
switch (lastMessageContentType) {
|
||||||
case KeFuMessageContentTypeEnum.IMAGE: {
|
case KeFuMessageContentTypeEnum.IMAGE: {
|
||||||
return '[图片消息]';
|
return '[图片消息]';
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import ProductBrowsingHistory from './product-browsing-history.vue';
|
||||||
|
|
||||||
const activeTab = ref<string>('会员信息');
|
const activeTab = ref<string>('会员信息');
|
||||||
|
|
||||||
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
||||||
|
|
||||||
/** tab 切换 */
|
/** tab 切换 */
|
||||||
const productBrowsingHistoryRef =
|
const productBrowsingHistoryRef =
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ const loadHistory = ref(false); // 加载历史消息
|
||||||
|
|
||||||
/** 获悉消息内容 */
|
/** 获悉消息内容 */
|
||||||
const getMessageContent = computed(
|
const getMessageContent = computed(
|
||||||
() => (item: any) => jsonParse(item.content),
|
() => (item: any) => jsonParse(item.content),
|
||||||
);
|
);
|
||||||
|
|
||||||
/** 获得消息列表 */
|
/** 获得消息列表 */
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const emits = defineEmits<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
/** 选择赠送的优惠类型拓展 */
|
/** 选择赠送的优惠类型拓展 */
|
||||||
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
||||||
giveCount?: number;
|
giveCount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,12 +64,12 @@ const [Form, formApi] = useVbenForm({
|
||||||
|
|
||||||
// ================= 商品选择相关 =================
|
// ================= 商品选择相关 =================
|
||||||
/** SKU 扩展类型 */
|
/** SKU 扩展类型 */
|
||||||
interface SkuExtension extends MallSpuApi.Sku {
|
interface SkuExtension extends MallSpuApi.Sku {
|
||||||
productConfig: MallDiscountActivityApi.DiscountProduct;
|
productConfig: MallDiscountActivityApi.DiscountProduct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** SPU 扩展类型 */
|
/** SPU 扩展类型 */
|
||||||
interface SpuExtension extends MallSpuApi.Spu {
|
interface SpuExtension extends MallSpuApi.Spu {
|
||||||
skus?: SkuExtension[];
|
skus?: SkuExtension[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function openRightMessage(item: MallKefuConversationApi.Conversation) {
|
||||||
|
|
||||||
/** 获得消息类型 */
|
/** 获得消息类型 */
|
||||||
const getConversationDisplayText = computed(
|
const getConversationDisplayText = computed(
|
||||||
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
() => (lastMessageContentType: number, lastMessageContent: string) => {
|
||||||
switch (lastMessageContentType) {
|
switch (lastMessageContentType) {
|
||||||
case KeFuMessageContentTypeEnum.IMAGE: {
|
case KeFuMessageContentTypeEnum.IMAGE: {
|
||||||
return '[图片消息]';
|
return '[图片消息]';
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import ProductBrowsingHistory from './product-browsing-history.vue';
|
||||||
|
|
||||||
const activeTab = ref<string>('会员信息');
|
const activeTab = ref<string>('会员信息');
|
||||||
|
|
||||||
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
const tabActivation = computed(() => (tab: string) => activeTab.value === tab);
|
||||||
|
|
||||||
/** tab 切换 */
|
/** tab 切换 */
|
||||||
const productBrowsingHistoryRef =
|
const productBrowsingHistoryRef =
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ const loadHistory = ref(false); // 加载历史消息
|
||||||
|
|
||||||
/** 获悉消息内容 */
|
/** 获悉消息内容 */
|
||||||
const getMessageContent = computed(
|
const getMessageContent = computed(
|
||||||
() => (item: any) => jsonParse(item.content),
|
() => (item: any) => jsonParse(item.content),
|
||||||
);
|
);
|
||||||
|
|
||||||
/** 获得消息列表 */
|
/** 获得消息列表 */
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const emits = defineEmits<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
/** 选择赠送的优惠类型拓展 */
|
/** 选择赠送的优惠类型拓展 */
|
||||||
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
interface GiveCoupon extends MallCouponTemplateApi.CouponTemplate {
|
||||||
giveCount?: number;
|
giveCount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@
|
||||||
*/
|
*/
|
||||||
export function isUrl(path: string): boolean {
|
export function isUrl(path: string): boolean {
|
||||||
try {
|
try {
|
||||||
new URL(path);
|
return Boolean(new URL(path));
|
||||||
return true;
|
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue