<template> | <template> | ||||
<view class="nav-bar" :class="scrollTop>navHeight?'nav-bg':''" :style="{height:navHeight+'px'}"> | <view class="nav-bar" :class="scrollTop>navHeight?'nav-bg':''" :style="{height:navHeight+'px'}"> | ||||
<view class="title" :style="{paddingTop:searchMarginTop+'px',height:searchHeight+'px',lineHeight:searchHeight+'px'}"> | <view class="title" :style="{paddingTop:searchMarginTop+'px',height:searchHeight+'px',lineHeight:searchHeight+'px'}"> | ||||
<block v-if="isBack"> | |||||
<block v-if="isBack && !isAlipay"> | |||||
<image :src="`/static/image/icon-back.png`" | <image :src="`/static/image/icon-back.png`" | ||||
:style="{height:searchHeight+'px',width:searchHeight+'px'}" class="back" @click="back"></image> | :style="{height:searchHeight+'px',width:searchHeight+'px'}" class="back" @click="back"></image> | ||||
</block> | </block> | ||||
const searchMarginTop = ref(0) | const searchMarginTop = ref(0) | ||||
const searchHeight = ref(0) | const searchHeight = ref(0) | ||||
const searchWidth = ref(0) | const searchWidth = ref(0) | ||||
const isAlipay = ref(false) | |||||
onMounted(() => { | onMounted(() => { | ||||
const type = uni.getSystemInfoSync().uniPlatform | |||||
isAlipay.value = type === 'mp-alipay' | |||||
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() | const menuButtonInfo = uni.getMenuButtonBoundingClientRect() | ||||
const { | const { | ||||
top, | top, |
// export const fileURL = 'http://47.94.96.52/' | // export const fileURL = 'http://47.94.96.52/' | ||||
// export const fileURL = 'http://222.85.144.89:19002/default-bucket/' | // export const fileURL = 'http://222.85.144.89:19002/default-bucket/' | ||||
export const downloadFileURL = 'http://'+ envs[process.env.NODE_ENV].baseUrl +'/user-export-excel/' | |||||
export const fileURL = 'http://'+ envs[process.env.NODE_ENV].baseUrl +'/default-bucket/' | |||||
export const fileURLList = 'http://'+ envs[process.env.NODE_ENV].baseUrl | |||||
export const downloadFileURL = envs[process.env.NODE_ENV].baseUrl +'/user-export-excel/' | |||||
export const fileURL = envs[process.env.NODE_ENV].baseUrl +'/default-bucket/' | |||||
export const fileURLList = envs[process.env.NODE_ENV].baseUrl |
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationBarTitleText": "ETC开户新办申请-个人", | "navigationBarTitleText": "ETC开户新办申请-个人", | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | |||||
"titlePenetrate": "YES" | |||||
"transparentTitle": "always", | |||||
"titlePenetrate": "YES", // 允许点击穿透后,才能触发导航栏上的 onTap 事件 | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | ||||
"transparentTitle": "always", | "transparentTitle": "always", | ||||
"titlePenetrate": "YES" | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | } | ||||
} | } | ||||
} | } |
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
return str.replace('192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl) | |||||
return str.replace('http://192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl) | |||||
} | } | ||||
// 高速快讯查询接口 | // 高速快讯查询接口 | ||||
const highMsg = () => { | const highMsg = () => { |
<image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`"> | <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`"> | ||||
</image> | </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> | </view> | ||||
<view class="picture-wrapper" @click="cardImageOcr('2')"> | <view class="picture-wrapper" @click="cardImageOcr('2')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`"> | <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`"> | ||||
</image> | </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> | </view> | ||||
<view class="picture-wrapper" @click="cardFileImageUpdate()"> | <view class="picture-wrapper" @click="cardFileImageUpdate()"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`"> | <image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`"> | ||||
</image> | </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> | </view> | ||||
<view class="shibie-wrapper"> | <view class="shibie-wrapper"> | ||||
etcCarCardInfoSubmit, | etcCarCardInfoSubmit, | ||||
etcCarOcrCard, | etcCarOcrCard, | ||||
fileUpload, | fileUpload, | ||||
envs, | |||||
queryGuoHuJianCe, | queryGuoHuJianCe, | ||||
queryGuoHuCaoZuo, | queryGuoHuCaoZuo, | ||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有 | sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有 | ||||
sourceType: ["camera", "album"], //从相册选择 | sourceType: ["camera", "album"], //从相册选择 | ||||
success: function (res) { | success: function (res) { | ||||
pathToBase64(res.tempFilePaths[0]) | pathToBase64(res.tempFilePaths[0]) | ||||
.then((path) => { | .then((path) => { | ||||
console.log("Base64返回",path) | |||||
var data = { | var data = { | ||||
source: "1", | source: "1", | ||||
agencyId: "52010106004", | agencyId: "52010106004", | ||||
} | } | ||||
}); | }); | ||||
}) | }) | ||||
.catch((error) => { }); | |||||
.catch((error) => { console.log("Base64异常",error)}); | |||||
}, | }, | ||||
}); | }); | ||||
}; | }; | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
return str.replace("192.168.101.145:9000", "222.85.144.89:19002"); | |||||
return str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
}; | }; | ||||
const getGlobalParam=()=>{ | const getGlobalParam=()=>{ | ||||
const data=getItem('globalParam') | const data=getItem('globalParam') |
</view> | </view> | ||||
<image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | <image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.userPosImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.userPosImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardImageOcr('2')"> | <view class="picture-wrapper" @click="cardImageOcr('2')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | <image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.userNegImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.userNegImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | <image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.agentPosImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.agentPosImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardDbImageOcr('2')"> | <view class="picture-wrapper" @click="cardDbImageOcr('2')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`"> | <image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.proxyUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.proxyUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="shibie-wrapper"> | <view class="shibie-wrapper"> | ||||
}; | }; | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
return str.replace('192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
return str.replace('htttp://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
} | } | ||||
const getGlobalParam=()=>{ | const getGlobalParam=()=>{ | ||||
const data=getItem('globalParam') | const data=getItem('globalParam') |
</view> | </view> | ||||
<image v-if="!state.form.posImgUrl" class="icon" :src="`${$imgUrl}applyCard/zhizhao.png`"> | <image v-if="!state.form.posImgUrl" class="icon" :src="`${$imgUrl}applyCard/zhizhao.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.posImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.posImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardImageOcr('1')"> | <view class="picture-wrapper" @click="cardImageOcr('1')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | <image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.agentPosImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.agentPosImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardImageOcr('2')"> | <view class="picture-wrapper" @click="cardImageOcr('2')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.agentNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | <image v-if="!state.form.agentNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.agentNegImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.agentNegImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardFileImageUpdate()"> | <view class="picture-wrapper" @click="cardFileImageUpdate()"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`"> | <image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.proxyUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.proxyUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="shibie-wrapper"> | <view class="shibie-wrapper"> | ||||
import { | import { | ||||
ocrAllQuery, | ocrAllQuery, | ||||
fileUpload, | fileUpload, | ||||
envs, | |||||
etcOcrCard, | etcOcrCard, | ||||
etcCompanyCardInfoSubmit, | etcCompanyCardInfoSubmit, | ||||
register, | register, | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str: string) => { | const strReplace = (str: string) => { | ||||
return str.replace('192.168.101.145:9000', '222.85.144.89:19002') | |||||
// return str.replace('192.168.101.145:9000', '222.85.144.89:19002') | |||||
return str.replace('htttp://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
} | } | ||||
</script> | </script> | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
if (typeof my === 'object' && uni.canIUse('getFileSystemManager')) { | |||||
uni.getFileSystemManager().readFile({ | |||||
filePath: path, | |||||
encoding: 'base64', | |||||
success: function(res) { | |||||
resolve('data:image/png;base64,' + res.data) | |||||
}, | |||||
fail: function(error) { | |||||
reject(error) | |||||
} | |||||
}) | |||||
return | |||||
} | |||||
reject(new Error('not support')) | reject(new Error('not support')) | ||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
if (typeof my === 'object' && uni.canIUse('getFileSystemManager')) { | |||||
var filePath = uni.env.USER_DATA_PATH + '/' + fileName | |||||
uni.getFileSystemManager().writeFile({ | |||||
filePath: filePath, | |||||
data: dataUrlToBase64(base64), | |||||
encoding: 'base64', | |||||
success: function() { | |||||
resolve(filePath) | |||||
}, | |||||
fail: function(error) { | |||||
reject(error) | |||||
} | |||||
}) | |||||
return | |||||
} | |||||
reject(new Error('not support')) | reject(new Error('not support')) | ||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
if (typeof my === 'object' && uni.canIUse('getFileSystemManager')) { | |||||
uni.getFileSystemManager().readFile({ | |||||
filePath: path, | |||||
encoding: 'base64', | |||||
success: function(res) { | |||||
resolve(res.data) | |||||
}, | |||||
fail: function(error) { | |||||
reject(error) | |||||
} | |||||
}) | |||||
return | |||||
} | |||||
reject(new Error('not support')) | reject(new Error('not support')) | ||||
}) | }) | ||||
} | } |
/* 接口中常量 */ | /* 接口中常量 */ | ||||
export const URL = "192.168.100.63"; | |||||
// export const URL = "192.168.100.63"; | |||||
export const URL = "testmedusa.etcjz.cn"; | |||||
/** | /** | ||||
* 配置信息,针对不同的平台进行配置 | * 配置信息,针对不同的平台进行配置 | ||||
*/ | */ | ||||
export const envs = { | export const envs = { | ||||
//开发环境配置 | //开发环境配置 | ||||
development: { | development: { | ||||
baseUrl: "192.168.100.63:8087", | |||||
// baseUrl: "qtzl.etcjz.cn", | |||||
// baseUrl: "htttp://192.168.100.63:8087", | |||||
// baseUrl: "https://qtzl.etcjz.cn", | |||||
baseUrl: "https://testmedusa.etcjz.cn", | |||||
}, | }, | ||||
//生产环境配置 | //生产环境配置 | ||||
production: { | production: { | ||||
// baseUrl: "222.85.144.89:19002", | |||||
baseUrl: "192.168.100.63:8087" | |||||
// baseUrl: "htttp://222.85.144.89:19002", | |||||
// baseUrl: "http://192.168.100.63:8087" | |||||
baseUrl: "https://testmedusa.etcjz.cn", | |||||
} | } | ||||
} | } | ||||
export const wechatSecret = "699c10826113ddb350fbe58a96e2b015"; //九州小程序AppSecret:95197718b43b497f02732bd9f8011080 | export const wechatSecret = "699c10826113ddb350fbe58a96e2b015"; //九州小程序AppSecret:95197718b43b497f02732bd9f8011080 | ||||
// export const sm4Key = "5dc11f854ceca1473e1a5075ed16eb226b4543a9a05fe50f7fba40f898099ce34abba69a07a20509f315f94d808a4d0e988935588858f65a"; | // export const sm4Key = "5dc11f854ceca1473e1a5075ed16eb226b4543a9a05fe50f7fba40f898099ce34abba69a07a20509f315f94d808a4d0e988935588858f65a"; | ||||
export const sm4Key = "5dc11f854ceca147"; | export const sm4Key = "5dc11f854ceca147"; | ||||
//字典 | |||||
//字典 | |||||
export const queryKey = 'cefb3b5da25a49eeb18865c00bc91c96'//全量KEY | export const queryKey = 'cefb3b5da25a49eeb18865c00bc91c96'//全量KEY | ||||
//菜单配置 | |||||
//菜单配置 | |||||
export const queryMenuConfig = '1032' | export const queryMenuConfig = '1032' | ||||
/*统一 会员平台*/ | /*统一 会员平台*/ | ||||
export const etcCarOcrCard = "16"; //CSMSN-OCR识别行驶证 | export const etcCarOcrCard = "16"; //CSMSN-OCR识别行驶证 | ||||
export const ocrAllQuery = '91'; //8.76.BDS-OCR证照识别接口 | export const ocrAllQuery = '91'; //8.76.BDS-OCR证照识别接口 | ||||
export const etcUserCardInfoSubmit = "22"; // CSMSN-提交个人用户信息 | export const etcUserCardInfoSubmit = "22"; // CSMSN-提交个人用户信息 | ||||
export const etcUserCardInfoChange = "21"; // CSMSN-更改个人用户信息 | |||||
export const etcUserCardInfoChange = "21"; // CSMSN-更改个人用户信息 | |||||
export const etcCompanyCardInfoSubmit = "20"; // CSMSN-提交单位用户信息 | export const etcCompanyCardInfoSubmit = "20"; // CSMSN-提交单位用户信息 | ||||
export const etcCarCardInfoSubmit = "18"; // CSMSN-提交车辆信息 | export const etcCarCardInfoSubmit = "18"; // CSMSN-提交车辆信息 | ||||
export const etcQyList = "66"; // 统一会员平台可签约渠道列表查询接口 | export const etcQyList = "66"; // 统一会员平台可签约渠道列表查询接口 | ||||
export const CardlossStatus = '82' //卡签挂失/解挂 | export const CardlossStatus = '82' //卡签挂失/解挂 | ||||
export const confirmSignCancellation = '897' //卡确认注销接口 | export const confirmSignCancellation = '897' //卡确认注销接口 | ||||
export const relieveCarId = '932' //车辆释放信息增加接口(解除车牌占用) | export const relieveCarId = '932' //车辆释放信息增加接口(解除车牌占用) | ||||
export const cckChangejzCard = '93' //8.106.ASS-储值卡转记账卡申请接口 | |||||
export const cckChangejzCardJY = '92' //8.133.ASS-卡签注销验证接口 | |||||
export const cckChangejzCardInfo = '95' //8.107.ASS-储值卡转记账卡填写信息接口 | |||||
export const changeCardApply = '888' //换货/换卡签申请接口 | |||||
export const changeCardQuery = '885' //换货/换卡签查询接口 | |||||
export const changeCardQueryCancle = '884' //换货/换卡签取消查询接口 | |||||
export const changeCardInfo = '887' //换货/换卡/填写信息接口 | |||||
export const queryRefund= '924' //储值卡注销退费查询接口 | |||||
export const queryCardFreeExit= '923' //储值卡注销退费申请接口 | |||||
export const queryRefundApply= '918' //储值卡注销余额补领申请接口 | |||||
export const queryGuoHu= '47631d58945642afa053e07c306e99e6' //8.311.MTS-ASS-过户接口 | |||||
export const queryGuoHuJianCe = '54dafed574f5475ea88b50eed9c58486'//8.312.ASS-过户检测接口 | |||||
export const cckChangejzCard = '93' //8.106.ASS-储值卡转记账卡申请接口 | |||||
export const cckChangejzCardJY = '92' //8.133.ASS-卡签注销验证接口 | |||||
export const cckChangejzCardInfo = '95' //8.107.ASS-储值卡转记账卡填写信息接口 | |||||
export const changeCardApply = '888' //换货/换卡签申请接口 | |||||
export const changeCardQuery = '885' //换货/换卡签查询接口 | |||||
export const changeCardQueryCancle = '884' //换货/换卡签取消查询接口 | |||||
export const changeCardInfo = '887' //换货/换卡/填写信息接口 | |||||
export const queryRefund= '924' //储值卡注销退费查询接口 | |||||
export const queryCardFreeExit= '923' //储值卡注销退费申请接口 | |||||
export const queryRefundApply= '918' //储值卡注销余额补领申请接口 | |||||
export const queryGuoHu= '47631d58945642afa053e07c306e99e6' //8.311.MTS-ASS-过户接口 | |||||
export const queryGuoHuJianCe = '54dafed574f5475ea88b50eed9c58486'//8.312.ASS-过户检测接口 | |||||
export const queryGuoHuCaoZuo = 'b1e66d22fb6f400f915458f5c50c7118'//8.312.ASS-过户检测接口 | export const queryGuoHuCaoZuo = 'b1e66d22fb6f400f915458f5c50c7118'//8.312.ASS-过户检测接口 | ||||
export const upLoadImg = "4a95e1d90e824ee8a50aa9826617e736"//CSMSN-激活照片上传 | |||||
export const queryOBUAdd = "837c22e80fa34506a0855306d9cbb6f7"//增补OBU | |||||
export const upLoadImg = "4a95e1d90e824ee8a50aa9826617e736"//CSMSN-激活照片上传 | |||||
export const queryOBUAdd = "837c22e80fa34506a0855306d9cbb6f7"//增补OBU | |||||
export const dataStatistics = "4f78420d614e449ea111726d00d95a26"//全国发行日报表接口数据统计 | export const dataStatistics = "4f78420d614e449ea111726d00d95a26"//全国发行日报表接口数据统计 | ||||
export const queryInterestsList="074017442f7d40c4bb63da780c253b55" //查询权益列表 | |||||
export const queryInterestsList="074017442f7d40c4bb63da780c253b55" //查询权益列表 | |||||
// 资金服务 | |||||
export const CardBillQuery= '917' //通行流水欠费补缴信息查询接口 | |||||
export const CardBillPlaceOrder= '916' //通行流水欠费补缴支付下单接口 | |||||
export const CardBillPayStatus= '915' //通行流水欠费补缴支付查询接口 | |||||
export const passBills= "925"//BDS-车辆通行流水分页查询接口 | |||||
export const passBillCount= "db62a6c55461498ab2f412868eea6d24"//BDS-账单合计接口 | |||||
export const downloadBills= "558c8a96265445c78b59b4473ad01d42"//BDS-明细下载接口 | |||||
// 资金服务 | |||||
export const CardBillQuery= '917' //通行流水欠费补缴信息查询接口 | |||||
export const CardBillPlaceOrder= '916' //通行流水欠费补缴支付下单接口 | |||||
export const CardBillPayStatus= '915' //通行流水欠费补缴支付查询接口 | |||||
export const passBills= "925"//BDS-车辆通行流水分页查询接口 | |||||
export const passBillCount= "db62a6c55461498ab2f412868eea6d24"//BDS-账单合计接口 | |||||
export const downloadBills= "558c8a96265445c78b59b4473ad01d42"//BDS-明细下载接口 | |||||
export const cardList= "152"//BDS-卡信息查询接口 | export const cardList= "152"//BDS-卡信息查询接口 | ||||
export const cardRenewal = "891" //ASS-卡续期 | export const cardRenewal = "891" //ASS-卡续期 | ||||
export const cardStopOrStart ="892" //ASS-卡停/启用 | export const cardStopOrStart ="892" //ASS-卡停/启用 | ||||
export const deviceUpgrade = "896"//BDS-设备升级接口 | export const deviceUpgrade = "896"//BDS-设备升级接口 | ||||
export const cardModifyConfirm = "898" //ASS-卡信息变更确认 | |||||
export const pinCodeUnlock = "862" //ASS-卡PIN解锁 | |||||
//公务车 | |||||
export const gongWuChefindFormatVehicleInfo = "507"; //制式警车信息查询 ,只用于同步IF01001202206010854 | |||||
export const gongWuCheDanWeiJinDu = "506"; //省中心公务车车辆办理进度查询接口//IF01001202109090707 | |||||
export const gongWuCheDanWeiChaXun = "501"; //省中心公务车单位查询接口IF01001202109090705 | |||||
export const gongWuCheTiJiaoJiLu = "503"; //省中心公务车申办车辆查询 IF01001202205070809 | |||||
export const cardModifyConfirm = "898" //ASS-卡信息变更确认 | |||||
export const pinCodeUnlock = "862" //ASS-卡PIN解锁 | |||||
//公务车 | |||||
export const gongWuChefindFormatVehicleInfo = "507"; //制式警车信息查询 ,只用于同步IF01001202206010854 | |||||
export const gongWuCheDanWeiJinDu = "506"; //省中心公务车车辆办理进度查询接口//IF01001202109090707 | |||||
export const gongWuCheDanWeiChaXun = "501"; //省中心公务车单位查询接口IF01001202109090705 | |||||
export const gongWuCheTiJiaoJiLu = "503"; //省中心公务车申办车辆查询 IF01001202205070809 | |||||
export const gongWuSupplementObu = "97"; //公务车增补obu接口 | export const gongWuSupplementObu = "97"; //公务车增补obu接口 | ||||
//首页接口 | //首页接口 |
rbacSource: 'MINI_PROGRAM' | rbacSource: 'MINI_PROGRAM' | ||||
} | } | ||||
//Url 地址 /api/interfaceMidGroundIn | //Url 地址 /api/interfaceMidGroundIn | ||||
// options.url = 'https://' + envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||||
options.url = 'http://' + envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' | |||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' | |||||
options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' | |||||
//判断baseUri是否为空 | //判断baseUri是否为空 | ||||
if (options.baseUrl) { | if (options.baseUrl) { | ||||
options.url = options.baseUrl | options.url = options.baseUrl |
}) | }) | ||||
return | return | ||||
} | } | ||||
if (typeof my === 'object' && uni.canIUse('getFileSystemManager')) { | |||||
uni.getFileSystemManager().readFile({ | |||||
filePath: path, | |||||
encoding: 'base64', | |||||
success: function(res) { | |||||
resolve('data:image/png;base64,' + res.data) | |||||
}, | |||||
fail: function(error) { | |||||
reject(error) | |||||
} | |||||
}) | |||||
return | |||||
} | |||||
reject(new Error('not support')) | reject(new Error('not support')) | ||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
if (typeof my === 'object' && uni.canIUse('getFileSystemManager')) { | |||||
uni.getFileSystemManager().readFile({ | |||||
filePath: path, | |||||
encoding: 'base64', | |||||
success: function(res) { | |||||
resolve(res.data) | |||||
}, | |||||
fail: function(error) { | |||||
reject(error) | |||||
} | |||||
}) | |||||
return | |||||
} | |||||
reject(new Error('not support')) | reject(new Error('not support')) | ||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
if (typeof my === 'object' && uni.canIUse('getFileSystemManager')) { | |||||
var filePath = uni.env.USER_DATA_PATH + '/' + fileName | |||||
uni.getFileSystemManager().writeFile({ | |||||
filePath: filePath, | |||||
data: dataUrlToBase64(base64), | |||||
encoding: 'base64', | |||||
success: function() { | |||||
resolve(filePath) | |||||
}, | |||||
fail: function(error) { | |||||
reject(error) | |||||
} | |||||
}) | |||||
return | |||||
} | |||||
reject(new Error('not support')) | reject(new Error('not support')) | ||||
}) | }) | ||||
} | } |