feat: 兼容性修改

This commit is contained in:
admin 2024-09-18 17:19:25 +08:00
parent fc1a36ef3b
commit 4910ed04cb
8 changed files with 39 additions and 17 deletions

View File

@ -1,7 +1,6 @@
<template>
<uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'"
:border="false"
>

View File

@ -1,7 +1,6 @@
<template>
<uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'"
:border="false"
>

View File

@ -1,6 +1,16 @@
<template>
<Layout>
<!-- 轮播图 -->
<!-- <button
open-type="im"
:data-im-id="'13918346152'"
@im="imCallback"
@error="onimError"
class="animate-button"
>
点击咨询
</button> -->
<CustomSwiper> </CustomSwiper>
<!-- 入口 -->
<view class="entry-card">
@ -97,6 +107,14 @@ const handleClick = (item: any) => {
url: item.url, //
});
};
const imCallback = (e: any) => {
console.log("跳转IM客服成功", e.detail);
};
const onimError = (e: any) => {
console.log("拉起IM客服失败", e.detail);
};
</script>
<style lang="scss" scoped>

View File

@ -1,7 +1,6 @@
<template>
<uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'"
:border="false"
>

View File

@ -1,10 +1,10 @@
<template>
<uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'"
:border="false"
>
<view class="uni-card__content">
<view class="title">车辆信息</view>
<u-form
labelPosition="left"
@ -82,6 +82,8 @@
</template>
</u-form-item>
</u-form>
</view>
</uni-card>
<view class="btn-box-fix-btn">
@ -437,16 +439,21 @@ const startSave = () => {
};
</script>
<style lang="scss" scoped>
::v-deep .uni-card__content {
padding: 20rpx !important;
.uni-card__content {
padding: 10px !important;
height: calc(100vh - 100px);
overflow: auto;
}
// ::v-deep .uni-card__content {
// padding: 10px !important;
// height: calc(100vh - 100px);
// overflow: auto;
// }
::v-deep .uni-card--shadow {
padding: 0px !important;
}
::v-deep .u-form-item {
height: auto;
height: auto !important;
border-bottom: 1rpx solid rgba(233, 233, 233, 0.76);
margin: 0px 20rpx;
padding: 0px 20rpx;

View File

@ -1,24 +1,25 @@
<template>
<uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'"
:border="false"
>
<view style="text-align: center;">
<image
style="height: 680rpx"
style="height: 680rpx; background-size: 100%"
:src="`${url}/static/img/vehicle/flow.png`"
mode="'aspectFit'"
></image>
</view>
</uni-card>
</template>
<script setup >
<script setup>
import { url } from "@/utils/data";
</script>
<style lang="scss" scoped>
::v-deep .uni-card--shadow {
padding: 0px !important;
background: linear-gradient(0deg, #EAF6FF, #FFFFFF);
background: linear-gradient(0deg, #eaf6ff, #ffffff);
text-align: center;
}
</style>

View File

@ -1,7 +1,6 @@
<template>
<uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'"
:border="false"
>

View File

@ -73,7 +73,7 @@ export const http = <T>(options: UniApp.RequestOptions) => {
// #ifdef H5
files: (options as any).data.files,
// #endif
// #ifdef MP-WEIXIN || MP-TOUTIAO
// #ifdef MP-WEIXIN || MP-TOUTIAO || MP-ALIPAY
filePath: compressedTempFilePath,
// #endif
name: "file",