Browse Source

支付宝适配

yxb
skx 1 year ago
parent
commit
7159430a49
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      subpackage/personal-center/setting/car-information/car-change.vue

+ 9
- 4
subpackage/personal-center/setting/car-information/car-change.vue View File

@@ -16,7 +16,7 @@

<image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`">
</image>
<image v-else class="icon" :src="state.form.vehPosImgUrl"></image>
<image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"></image>
</view>
</view>
<view class="picture-wrapper" @click="cardImageOcr('2')">
@@ -30,7 +30,7 @@
</view>
<image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`">
</image>
<image v-else class="icon" :src="state.form.vehNegImgUrl"></image>
<image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"></image>
</view>
</view>
<view class="picture-wrapper" @click="cardFileImageUpdate()">
@@ -44,7 +44,7 @@
</view>
<image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`">
</image>
<image v-else class="icon" :src="state.form.vehBodyUrl"></image>
<image v-else class="icon" :src="strReplace(state.form.vehBodyUrl)"></image>
</view>
</view>
<view class="shibie-wrapper">
@@ -126,6 +126,7 @@
etcCarOcrCard,
fileUpload,
changeCarInfo,
envs
} from "@/utils/network/api.js";
import {
request
@@ -141,7 +142,11 @@


let cacachCarid=''

const strReplace = (str : string) => {
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl);
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl);
return imgUrl;
};
// 修改
const savaHandle = () => {
state.form.vehicleId=cacachCarid

Loading…
Cancel
Save