diff --git a/src/pagesBattery/inquiry.vue b/src/pagesBattery/inquiry.vue index 43284fe..85f96c4 100644 --- a/src/pagesBattery/inquiry.vue +++ b/src/pagesBattery/inquiry.vue @@ -1,7 +1,6 @@ <template> <uni-card :shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'" - :padding="'0px'" :margin="'20px'" :border="false" > diff --git a/src/pagesBattery/registration.vue b/src/pagesBattery/registration.vue index 3b921a6..5d5cc03 100644 --- a/src/pagesBattery/registration.vue +++ b/src/pagesBattery/registration.vue @@ -1,7 +1,6 @@ <template> <uni-card :shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'" - :padding="'0px'" :margin="'20px'" :border="false" > diff --git a/src/pagesHome/index.vue b/src/pagesHome/index.vue index d5180df..3063444 100644 --- a/src/pagesHome/index.vue +++ b/src/pagesHome/index.vue @@ -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> diff --git a/src/pagesScrapSteel/registration.vue b/src/pagesScrapSteel/registration.vue index 7bbdfd3..eb3f1dc 100644 --- a/src/pagesScrapSteel/registration.vue +++ b/src/pagesScrapSteel/registration.vue @@ -1,7 +1,6 @@ <template> <uni-card :shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'" - :padding="'0px'" :margin="'20px'" :border="false" > diff --git a/src/pagesVehicle/inquiry.vue b/src/pagesVehicle/inquiry.vue index 75f9144..04d95ed 100644 --- a/src/pagesVehicle/inquiry.vue +++ b/src/pagesVehicle/inquiry.vue @@ -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; diff --git a/src/pagesVehicle/recycleFlow.vue b/src/pagesVehicle/recycleFlow.vue index 49b57ef..8bea483 100644 --- a/src/pagesVehicle/recycleFlow.vue +++ b/src/pagesVehicle/recycleFlow.vue @@ -1,24 +1,25 @@ <template> <uni-card :shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'" - :padding="'0px'" :margin="'20px'" :border="false" > - <image - style="height: 680rpx" - :src="`${url}/static/img/vehicle/flow.png`" - mode="'aspectFit'" - ></image> + <view style="text-align: center;"> + <image + 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> diff --git a/src/pagesVehicle/registration.vue b/src/pagesVehicle/registration.vue index 1fd81df..849d5d9 100644 --- a/src/pagesVehicle/registration.vue +++ b/src/pagesVehicle/registration.vue @@ -1,7 +1,6 @@ <template> <uni-card :shadow="'0rpx 0rpx 10rpx 0rpx rgba(5,68,37,0.12)'" - :padding="'0px'" :margin="'20px'" :border="false" > diff --git a/src/utils/http.ts b/src/utils/http.ts index c1e4241..02606a3 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -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",