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> <template>
<uni-card <uni-card
:shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'" :shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'"
:padding="'0px'"
:margin="'20px'" :margin="'20px'"
:border="false" :border="false"
> >

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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