@@ -1,7 +1,7 @@ | |||
<template> | |||
<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'}"> | |||
<block v-if="isBack"> | |||
<block v-if="isBack && !isAlipay"> | |||
<image :src="`/static/image/icon-back.png`" | |||
:style="{height:searchHeight+'px',width:searchHeight+'px'}" class="back" @click="back"></image> | |||
</block> | |||
@@ -20,7 +20,11 @@ | |||
const searchMarginTop = ref(0) | |||
const searchHeight = ref(0) | |||
const searchWidth = ref(0) | |||
const isAlipay = ref(false) | |||
onMounted(() => { | |||
const type = uni.getSystemInfoSync().uniPlatform | |||
isAlipay.value = type === 'mp-alipay' | |||
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() | |||
const { | |||
top, |
@@ -2,6 +2,6 @@ import { envs } from '@/utils/network/api.js' | |||
// export const fileURL = 'http://47.94.96.52/' | |||
// 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 |
@@ -27,7 +27,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -799,7 +800,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -816,7 +818,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -827,7 +830,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -850,7 +854,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -860,8 +865,9 @@ | |||
"navigationBarTitleText": "ETC开户新办申请-个人", | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES", // 允许点击穿透后,才能触发导航栏上的 onTap 事件 | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -872,7 +878,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -895,7 +902,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
@@ -907,7 +915,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -1051,7 +1060,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -1140,7 +1150,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -1151,7 +1162,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
}, | |||
@@ -1174,7 +1186,8 @@ | |||
"navigationStyle": "custom", | |||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||
"transparentTitle": "always", | |||
"titlePenetrate": "YES" | |||
"titlePenetrate": "YES", | |||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||
} | |||
} | |||
} |
@@ -528,7 +528,7 @@ | |||
//替换图片地址 | |||
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 = () => { |
@@ -18,7 +18,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')"> | |||
@@ -32,7 +32,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()"> | |||
@@ -46,7 +46,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"> | |||
@@ -188,6 +188,7 @@ | |||
etcCarCardInfoSubmit, | |||
etcCarOcrCard, | |||
fileUpload, | |||
envs, | |||
queryGuoHuJianCe, | |||
queryGuoHuCaoZuo, | |||
} from "@/utils/network/api.js"; | |||
@@ -409,8 +410,10 @@ | |||
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有 | |||
sourceType: ["camera", "album"], //从相册选择 | |||
success: function (res) { | |||
pathToBase64(res.tempFilePaths[0]) | |||
.then((path) => { | |||
console.log("Base64返回",path) | |||
var data = { | |||
source: "1", | |||
agencyId: "52010106004", | |||
@@ -452,7 +455,7 @@ | |||
} | |||
}); | |||
}) | |||
.catch((error) => { }); | |||
.catch((error) => { console.log("Base64异常",error)}); | |||
}, | |||
}); | |||
}; | |||
@@ -507,7 +510,7 @@ | |||
//替换图片地址 | |||
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 data=getItem('globalParam') |
@@ -99,7 +99,7 @@ | |||
</view> | |||
<image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | |||
</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 class="picture-wrapper" @click="cardImageOcr('2')"> | |||
@@ -113,7 +113,7 @@ | |||
</view> | |||
<image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | |||
</image> | |||
<image v-else class="icon" :src="state.form.userNegImgUrl"></image> | |||
<image v-else class="icon" :src="strReplace(state.form.userNegImgUrl)"></image> | |||
</view> | |||
</view> | |||
@@ -156,7 +156,7 @@ | |||
</view> | |||
<image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | |||
</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 class="picture-wrapper" @click="cardDbImageOcr('2')"> | |||
@@ -184,7 +184,7 @@ | |||
</view> | |||
<image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`"> | |||
</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 class="shibie-wrapper"> | |||
@@ -569,7 +569,7 @@ | |||
}; | |||
//替换图片地址 | |||
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 data=getItem('globalParam') |
@@ -17,7 +17,7 @@ | |||
</view> | |||
<image v-if="!state.form.posImgUrl" class="icon" :src="`${$imgUrl}applyCard/zhizhao.png`"> | |||
</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 class="picture-wrapper" @click="cardImageOcr('1')"> | |||
@@ -31,7 +31,7 @@ | |||
</view> | |||
<image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | |||
</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 class="picture-wrapper" @click="cardImageOcr('2')"> | |||
@@ -45,7 +45,7 @@ | |||
</view> | |||
<image v-if="!state.form.agentNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | |||
</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 class="picture-wrapper" @click="cardFileImageUpdate()"> | |||
@@ -59,7 +59,7 @@ | |||
</view> | |||
<image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`"> | |||
</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 class="shibie-wrapper"> | |||
@@ -109,6 +109,7 @@ | |||
import { | |||
ocrAllQuery, | |||
fileUpload, | |||
envs, | |||
etcOcrCard, | |||
etcCompanyCardInfoSubmit, | |||
register, | |||
@@ -385,7 +386,8 @@ import { | |||
//替换图片地址 | |||
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> | |||
@@ -112,6 +112,20 @@ export function pathToBase64(path) { | |||
}) | |||
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')) | |||
}) | |||
} | |||
@@ -196,6 +210,21 @@ export function base64ToPath(base64) { | |||
}) | |||
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')) | |||
}) | |||
} | |||
@@ -267,6 +296,19 @@ export function pathToBase64New(path) { | |||
}) | |||
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')) | |||
}) | |||
} |
@@ -1,18 +1,21 @@ | |||
/* 接口中常量 */ | |||
export const URL = "192.168.100.63"; | |||
// export const URL = "192.168.100.63"; | |||
export const URL = "testmedusa.etcjz.cn"; | |||
/** | |||
* 配置信息,针对不同的平台进行配置 | |||
*/ | |||
export const envs = { | |||
//开发环境配置 | |||
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: { | |||
// 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", | |||
} | |||
} | |||
@@ -23,11 +26,11 @@ export const wechatAppID = "wx8fba957179c1329a"; //九州小程序APPid:wx008c60 | |||
export const wechatSecret = "699c10826113ddb350fbe58a96e2b015"; //九州小程序AppSecret:95197718b43b497f02732bd9f8011080 | |||
// export const sm4Key = "5dc11f854ceca1473e1a5075ed16eb226b4543a9a05fe50f7fba40f898099ce34abba69a07a20509f315f94d808a4d0e988935588858f65a"; | |||
export const sm4Key = "5dc11f854ceca147"; | |||
//字典 | |||
//字典 | |||
export const queryKey = 'cefb3b5da25a49eeb18865c00bc91c96'//全量KEY | |||
//菜单配置 | |||
//菜单配置 | |||
export const queryMenuConfig = '1032' | |||
/*统一 会员平台*/ | |||
@@ -55,7 +58,7 @@ export const etcOcrCard = "15"; //CSMSN-OCR识别身份证 | |||
export const etcCarOcrCard = "16"; //CSMSN-OCR识别行驶证 | |||
export const ocrAllQuery = '91'; //8.76.BDS-OCR证照识别接口 | |||
export const etcUserCardInfoSubmit = "22"; // CSMSN-提交个人用户信息 | |||
export const etcUserCardInfoChange = "21"; // CSMSN-更改个人用户信息 | |||
export const etcUserCardInfoChange = "21"; // CSMSN-更改个人用户信息 | |||
export const etcCompanyCardInfoSubmit = "20"; // CSMSN-提交单位用户信息 | |||
export const etcCarCardInfoSubmit = "18"; // CSMSN-提交车辆信息 | |||
export const etcQyList = "66"; // 统一会员平台可签约渠道列表查询接口 | |||
@@ -141,33 +144,33 @@ export const CardHangUpStatus = "81"; //卡挂起 | |||
export const CardlossStatus = '82' //卡签挂失/解挂 | |||
export const confirmSignCancellation = '897' //卡确认注销接口 | |||
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 upLoadImg = "4a95e1d90e824ee8a50aa9826617e736"//CSMSN-激活照片上传 | |||
export const queryOBUAdd = "837c22e80fa34506a0855306d9cbb6f7"//增补OBU | |||
export const upLoadImg = "4a95e1d90e824ee8a50aa9826617e736"//CSMSN-激活照片上传 | |||
export const queryOBUAdd = "837c22e80fa34506a0855306d9cbb6f7"//增补OBU | |||
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-卡信息查询接口 | |||
@@ -186,14 +189,14 @@ export const quanConfirm = "72"; //圈存确认 | |||
export const cardRenewal = "891" //ASS-卡续期 | |||
export const cardStopOrStart ="892" //ASS-卡停/启用 | |||
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接口 | |||
//首页接口 |
@@ -30,8 +30,9 @@ export function request(code, options = {}) { | |||
rbacSource: 'MINI_PROGRAM' | |||
} | |||
//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是否为空 | |||
if (options.baseUrl) { | |||
options.url = options.baseUrl |
@@ -112,6 +112,19 @@ export function pathToBase64(path) { | |||
}) | |||
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')) | |||
}) | |||
} | |||
@@ -183,6 +196,19 @@ export function pathToBase64New(path) { | |||
}) | |||
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')) | |||
}) | |||
} | |||
@@ -266,6 +292,21 @@ export function base64ToPath(base64) { | |||
}) | |||
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')) | |||
}) | |||
} |