<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 && !isAlipay"> | <block v-if="isBack && !isAlipay"> | ||||
<image :src="`/static/image/icon-back.png`" | |||||
:style="{height:searchHeight+'px',width:searchHeight+'px'}" class="back" @click="back(title)"></image> | |||||
<image :src="`/static/image/icon-back.png`" :style="{height:searchHeight+'px',width:searchHeight+'px'}" | |||||
class="back" @click="back(title,type)"></image> | |||||
</block> | </block> | ||||
<text>{{title}}</text> | <text>{{title}}</text> | ||||
</view> | </view> | ||||
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { msg } from "@/utils/utils"; | |||||
import { | import { | ||||
onMounted, | onMounted, | ||||
ref | ref | ||||
const isAlipay = ref(false) | const isAlipay = ref(false) | ||||
onMounted(() => { | onMounted(() => { | ||||
const type = uni.getSystemInfoSync().uniPlatform | const type = uni.getSystemInfoSync().uniPlatform | ||||
isAlipay.value = type === 'mp-alipay' | |||||
isAlipay.value = type === 'mp-alipay' | |||||
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() | const menuButtonInfo = uni.getMenuButtonBoundingClientRect() | ||||
const { | const { | ||||
top, | top, | ||||
type: String, | type: String, | ||||
default: '' | default: '' | ||||
}, | }, | ||||
type: { | |||||
type: String, | |||||
default: '' | |||||
}, | |||||
isBack: { | isBack: { | ||||
type: Boolean, | type: Boolean, | ||||
default: true | default: true | ||||
}, | }, | ||||
scrollTop:{ | |||||
type:Number, | |||||
default:0 | |||||
scrollTop: { | |||||
type: Number, | |||||
default: 0 | |||||
} | } | ||||
}) | }) | ||||
const back = (title) => { | |||||
console.log("555555555",title) | |||||
if(title=="九州ETC"){ | |||||
uni.switchTab({ | |||||
url: "/pages/order/order" | |||||
const back = (title, type) => { | |||||
console.log("555555555", title, type) | |||||
if (title == "九州ETC" && type) { | |||||
uni.redirectTo({ | |||||
url: `/subpackage/orders/choice-product?type=${type}` | |||||
}) | |||||
} else if (title == "ETC开户新办申请-个人" || title == "ETC开户新办申请-单位" || title == "行驶证信息上传" || title == "微信车主服务" || title == "加购权益产品" || title == "产品详情") { | |||||
uni.showToast({ | |||||
title: '当前ETC正在办理中,终端后续可在订单管理继续办理。', | |||||
icon: 'none', | |||||
duration: 2000 | |||||
}) | }) | ||||
}else{ | |||||
setTimeout(function () { | |||||
uni.switchTab({ | |||||
url: "/pages/order/order" | |||||
}) | |||||
}, 2000) | |||||
} else { | |||||
uni.navigateBack({ | uni.navigateBack({ | ||||
delta: 1 | delta: 1 | ||||
}) | }) | ||||
</script> | </script> | ||||
<style scoped> | <style scoped> | ||||
.nav-bg{ | |||||
background: linear-gradient(to right,#13E7C1,#43A1E0); | |||||
.nav-bg { | |||||
background: linear-gradient(to right, #13E7C1, #43A1E0); | |||||
} | } | ||||
.blank { | .blank { | ||||
width: 100%; | width: 100%; | ||||
display: none; | display: none; | ||||
position: fixed; | position: fixed; | ||||
width: 100%; | width: 100%; | ||||
z-index: 999; | z-index: 999; | ||||
} | } | ||||
.nav-bar .title { | .nav-bar .title { | ||||
position: absolute; | position: absolute; | ||||
left: 10rpx; | left: 10rpx; | ||||
} | } | ||||
</style> | |||||
</style> |
"lockfileVersion": 1, | "lockfileVersion": 1, | ||||
"requires": true, | "requires": true, | ||||
"dependencies": { | "dependencies": { | ||||
"echarts": { | |||||
"version": "5.4.2", | |||||
"resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.2.tgz", | |||||
"integrity": "sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==", | |||||
"requires": { | |||||
"tslib": "2.3.0", | |||||
"zrender": "5.4.3" | |||||
} | |||||
"jsbn": { | |||||
"version": "1.1.0", | |||||
"resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-1.1.0.tgz", | |||||
"integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" | |||||
}, | }, | ||||
"tslib": { | |||||
"version": "2.3.0", | |||||
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", | |||||
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" | |||||
}, | |||||
"zrender": { | |||||
"version": "5.4.3", | |||||
"resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.4.3.tgz", | |||||
"integrity": "sha512-DRUM4ZLnoaT0PBVvGBDO9oWIDBKFdAVieNWxWwK0niYzJCMwGchRk21/hsE+RKkIveH3XHCyvXcJDkgLVvfizQ==", | |||||
"sm-crypto": { | |||||
"version": "0.3.12", | |||||
"resolved": "https://registry.npmmirror.com/sm-crypto/-/sm-crypto-0.3.12.tgz", | |||||
"integrity": "sha512-272PBzB4PYaBdeGa41TH9ZlMGLPVRmS36Gs4FjmHwXIdihQypAbhhFWZTaa/3de69q2KfMme1M5O2W5+spAdrg==", | |||||
"requires": { | "requires": { | ||||
"tslib": "2.3.0" | |||||
"jsbn": "^1.1.0" | |||||
} | } | ||||
}, | |||||
"vue-buffer": { | |||||
"version": "0.0.1", | |||||
"resolved": "https://registry.npmmirror.com/vue-buffer/-/vue-buffer-0.0.1.tgz", | |||||
"integrity": "sha512-D9q93U6rzIeGthpq+yOgKKWDoSrWQlKHTxOW1Y8hVscA8uHYtE600VNLwoFrDhpdcgpMBetM/VRfDCb7/dmImA==" | |||||
} | } | ||||
} | } | ||||
} | } |
"echarts": "^5.4.2", | "echarts": "^5.4.2", | ||||
"image-tools": "^1.4.0", | "image-tools": "^1.4.0", | ||||
"js-base64": "^2.6.4", | "js-base64": "^2.6.4", | ||||
"text-decoding": "^1.0.0" | |||||
"sm-crypto": "^0.3.12", | |||||
"text-decoding": "^1.0.0", | |||||
"vue-buffer": "0.0.1" | |||||
}, | }, | ||||
"devDependencies": { | "devDependencies": { | ||||
"@babel/core": "^7.22.9", | "@babel/core": "^7.22.9", |
equipmentState: '' | equipmentState: '' | ||||
}); | }); | ||||
const list = reactive([{ | const list = reactive([{ | ||||
//原因 | |||||
value: "原因1", | |||||
label: "原因1", | |||||
}, | |||||
{ | |||||
value: "原因1", | |||||
label: "原因1", | |||||
}, | |||||
{ | |||||
value: "原因1", | |||||
label: "原因1", | |||||
}, | |||||
//原因 | |||||
value: "原因1", | |||||
label: "原因1", | |||||
}, | |||||
{ | |||||
value: "原因1", | |||||
label: "原因1", | |||||
}, | |||||
{ | |||||
value: "原因1", | |||||
label: "原因1", | |||||
}, | |||||
]); | ]); | ||||
// 验证提示类型(toast要版本为1.3.5才支持) | // 验证提示类型(toast要版本为1.3.5才支持) | ||||
form.orderId = option.orderId | form.orderId = option.orderId | ||||
form.equipmentState = option.equipmentState | form.equipmentState = option.equipmentState | ||||
/*监听蓝牙回调*/ | /*监听蓝牙回调*/ | ||||
uni.$on('bluetoothLink', function(status) { | |||||
queryCardSignCancellation(1, 1, 1).then((item: any) => { | |||||
uni.$on('bluetoothLink', function (status) { | |||||
queryCardSignCancellation(1, 1, 1).then((item : any) => { | |||||
instructAction(item).then(value => { | instructAction(item).then(value => { | ||||
if (value.orderStatus === 1) { | if (value.orderStatus === 1) { | ||||
instructAction(item) | instructAction(item) | ||||
} else { | } else { | ||||
queryConfirmSignCancellation(0).then((val: any) => { | |||||
queryConfirmSignCancellation(0).then((val : any) => { | |||||
console.log(val) | console.log(val) | ||||
navTo("/subpackage/after-sale/ETC-log-off/log-off-result"); | navTo("/subpackage/after-sale/ETC-log-off/log-off-result"); | ||||
}) | }) | ||||
}); | }); | ||||
const show = ref(false); | const show = ref(false); | ||||
const showPicker = function() { | |||||
const showPicker = function () { | |||||
show.value = true; | show.value = true; | ||||
}; | }; | ||||
navTo("/pages/bluetooth/bluetooth?routeType=5"); | navTo("/pages/bluetooth/bluetooth?routeType=5"); | ||||
} else { | } else { | ||||
queryCardSignCancellation(0, 0, 0).then((item: any) => { | |||||
queryConfirmSignCancellation(0).then((val: any) => { | |||||
queryCardSignCancellation(0, 0, 0).then((item : any) => { | |||||
queryConfirmSignCancellation(0).then((val : any) => { | |||||
console.log(val) | console.log(val) | ||||
navTo("/subpackage/after-sale/ETC-log-off/log-off-result"); | navTo("/subpackage/after-sale/ETC-log-off/log-off-result"); | ||||
}) | }) | ||||
let cmdArr = data.command.split(","); | let cmdArr = data.command.split(","); | ||||
console.log(cmdArr); | console.log(cmdArr); | ||||
bluetoothUtil.transCmd(cmdArr, "10", function(res) { | |||||
bluetoothUtil.transCmd(cmdArr, "10", function (res) { | |||||
console.log("透传"); | console.log("透传"); | ||||
console.log(res); | console.log(res); | ||||
var arraylenth = res.length; | var arraylenth = res.length; | ||||
} | } | ||||
//注销确认 | //注销确认 | ||||
const queryConfirmSignCancellation = (hasCard: any) => { | |||||
const queryConfirmSignCancellation = (hasCard : any) => { | |||||
return new Promise(async (resolve, reject) => { | return new Promise(async (resolve, reject) => { | ||||
const res = await request(confirmSignCancellation, { | const res = await request(confirmSignCancellation, { | ||||
type: 2, | type: 2, | ||||
margin: 60rpx auto; | margin: 60rpx auto; | ||||
} | } | ||||
} | } | ||||
</style> | |||||
</style> |
state.isSign = val.isSign; | state.isSign = val.isSign; | ||||
// 判断是几张卡 | // 判断是几张卡 | ||||
console.log("val.cardTypeArr.split(", ")", val.cardTypeArr.split(",")) | console.log("val.cardTypeArr.split(", ")", val.cardTypeArr.split(",")) | ||||
if (val.promoteName.indexOf('选装') != -1) { | |||||
if (val.cardTypeArr.split(",")[0] == "记账卡") { | |||||
state.isValueCard = 2 | |||||
} else if (val.cardTypeArr.split(",")[0] == '储值卡') { | |||||
state.isValueCard = 1 | |||||
} else { | |||||
state.isValueCard = 3 | |||||
} | |||||
uni.redirectTo({ | |||||
url: `/subpackage/orders/verify/verify-phone/verify-phone?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | |||||
}); | |||||
return | |||||
} | |||||
// if (val.promoteName.indexOf('选装') != -1) { | |||||
// if (val.cardTypeArr.split(",")[0] == "记账卡") { | |||||
// state.isValueCard = 2 | |||||
// } else if (val.cardTypeArr.split(",")[0] == '储值卡') { | |||||
// state.isValueCard = 1 | |||||
// } else { | |||||
// state.isValueCard = 3 | |||||
// } | |||||
// uni.redirectTo({ | |||||
// url: `/subpackage/orders/verify/verify-phone/verify-phone?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | |||||
// }); | |||||
// return | |||||
// } | |||||
if (val.cardTypeArr.split(",").length == 1) { | if (val.cardTypeArr.split(",").length == 1) { | ||||
if (val.cardTypeArr.split(",")[0] == "记账卡") { | if (val.cardTypeArr.split(",")[0] == "记账卡") { |
<template> | <template> | ||||
<navBar title="九州ETC" :scrollTop="scrollTop"></navBar> | |||||
<navBar title="九州ETC" :scrollTop="scrollTop" :type="state.data.type"></navBar> | |||||
<navBgCar></navBgCar> | <navBgCar></navBgCar> | ||||
<view class="content-wrap"> | <view class="content-wrap"> | ||||
<!-- 车牌输入 --> | <!-- 车牌输入 --> |
export const envs = { | export const envs = { | ||||
//开发环境配置 | //开发环境配置 | ||||
development: { | development: { | ||||
baseUrl: "http://192.168.100.63:8087", | |||||
<<<<<<< HEAD | |||||
// baseUrl: "https://qtzl.etcjz.cn", | // baseUrl: "https://qtzl.etcjz.cn", | ||||
baseUrl: "http://192.168.100.63:8087", | |||||
// baseUrl: "https://testmedusa.etcjz.cn", | // baseUrl: "https://testmedusa.etcjz.cn", | ||||
// baseUrl: "http://192.168.100.158:8085", | // baseUrl: "http://192.168.100.158:8085", | ||||
}, | }, | ||||
//生产环境配置 | //生产环境配置 | ||||
production: { | production: { | ||||
// baseUrl: "http://192.168.100.63:8087", | |||||
baseUrl: "http://222.85.144.89:19002", | |||||
======= | |||||
baseUrl: "http://192.168.100.63:8087", | |||||
// baseUrl: "http://222.85.144.89:19002", | |||||
// baseUrl: "http://192.168.100.158:8085/html/", | // baseUrl: "http://192.168.100.158:8085/html/", | ||||
// baseUrl: "https://qtzl.etcjz.cn", | // baseUrl: "https://qtzl.etcjz.cn", | ||||
// baseUrl: "https://testmedusa.etcjz.cn", | // baseUrl: "https://testmedusa.etcjz.cn", | ||||
}, | }, | ||||
//生产环境配置 | |||||
production: { | |||||
// baseUrl: "htttp://222.85.144.89:19002", | |||||
baseUrl: "http://192.168.100.63:8087" | |||||
// baseUrl: "http://192.168.100.158:8085/html/", | |||||
// baseUrl: "https://qtzl.etcjz.cn", | |||||
>>>>>>> 0abd00b5e5b4a432dd4a058dee7543b5785ae948 | |||||
// baseUrl: "https://testmedusa.etcjz.cn", | |||||
} | |||||
} | } | ||||
export const appId = "52030131"; //应用appid 综合业务支撑平台使用 | export const appId = "52030131"; //应用appid 综合业务支撑平台使用 | ||||
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 getToken = "1006"; //统一会员平台登录确认接口(用于换取openId和token) | export const getToken = "1006"; //统一会员平台登录确认接口(用于换取openId和token) | ||||
export const updateToken = "225aa780a91b40f0b44e7e5fe204fc9a"; //统一会员平台登录确认接口(用于换取openId和token) | export const updateToken = "225aa780a91b40f0b44e7e5fe204fc9a"; //统一会员平台登录确认接口(用于换取openId和token) | ||||
export const checkCode = "966"; //校验验证码 | export const checkCode = "966"; //校验验证码 | ||||
export const register = "52de4029940f4e03b18c3a0b8d64c2db";//USER-无感注册登录(个人/企业) | |||||
export const obtainUserId = "58760acb637245729e971597a1fb92c4";//获取第三方用户标识 | |||||
export const register = "52de4029940f4e03b18c3a0b8d64c2db"; //USER-无感注册登录(个人/企业) | |||||
export const obtainUserId = "58760acb637245729e971597a1fb92c4"; //获取第三方用户标识 | |||||
/*地址管理*/ | /*地址管理*/ | ||||
export const addressQuery = "27"; //地址管理查询 | export const addressQuery = "27"; //地址管理查询 | ||||
// export const etcQueryProduct = "48"; //获取产品根据orderId获取 | // export const etcQueryProduct = "48"; //获取产品根据orderId获取 | ||||
export const etcQueryProduct = "098bff3fc88e48bf9cafc3b5679b4d07"; //获取产品 根据客货类型获取 | export const etcQueryProduct = "098bff3fc88e48bf9cafc3b5679b4d07"; //获取产品 根据客货类型获取 | ||||
// export const productReCode = '914'//订单产品选择接口 | // export const productReCode = '914'//订单产品选择接口 | ||||
export const productReCode = '198172b1858d474fa8e35225d65014d7'//订单选择推广发行产品 | |||||
export const productReCode = '198172b1858d474fa8e35225d65014d7' //订单选择推广发行产品 | |||||
//签约 | //签约 | ||||
export const etcOpenIdMember = "62"; //统一会员平台openId查询接口 | export const etcOpenIdMember = "62"; //统一会员平台openId查询接口 | ||||
export const outletList = '168'; //根据机构号获取服务网点信息 | export const outletList = '168'; //根据机构号获取服务网点信息 | ||||
export const orderEvaluate = '169'; //评价订单 | export const orderEvaluate = '169'; //评价订单 | ||||
export const orderEvaluateTag = '170'; //获取服务评价标签 | export const orderEvaluateTag = '170'; //获取服务评价标签 | ||||
export const salesmanMsg='9f19be89a03e475b903b88d4bc91cbb4' //订单查询业务员简单信息 | |||||
export const salesmanMsg = '9f19be89a03e475b903b88d4bc91cbb4' //订单查询业务员简单信息 | |||||
//个人中心 | //个人中心 | ||||
export const changePassword = "94"; //重置密码 | export const changePassword = "94"; //重置密码 | ||||
export const createCarInfo = "1028"; //车辆管理信息添加 | export const createCarInfo = "1028"; //车辆管理信息添加 | ||||
export const selectCarInfo = "1030"; //车辆管理信息查询 | export const selectCarInfo = "1030"; //车辆管理信息查询 | ||||
export const delCarInfo = "1031"; //车辆管理信息删除 | export const delCarInfo = "1031"; //车辆管理信息删除 | ||||
export const infoQuery= "935"; //8.212.文本信息查询接口 | |||||
export const userInfoQuery= "510"; //BDS-用户信息变更查询接口 | |||||
export const userInfoChange= "520"; //ASS-变更个人用户信息 | |||||
export const userInfoIndex= "9a78e7c35f31439990dc4b778ca84ad1"; //USER-获取用户个人简单信息 | |||||
export const infoQuery = "935"; //8.212.文本信息查询接口 | |||||
export const userInfoQuery = "510"; //BDS-用户信息变更查询接口 | |||||
export const userInfoChange = "520"; //ASS-变更个人用户信息 | |||||
export const userInfoIndex = "9a78e7c35f31439990dc4b778ca84ad1"; //USER-获取用户个人简单信息 | |||||
export const changeCardQuery = '885' //换货/换卡签查询接口 | export const changeCardQuery = '885' //换货/换卡签查询接口 | ||||
export const changeCardQueryCancle = '884' //换货/换卡签取消查询接口 | export const changeCardQueryCancle = '884' //换货/换卡签取消查询接口 | ||||
export const changeCardInfo = '887' //换货/换卡/填写信息接口 | 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 dataStatistics = "4f78420d614e449ea111726d00d95a26"//全国发行日报表接口数据统计 | |||||
export const queryInterestsList="074017442f7d40c4bb63da780c253b55" //查询权益列表 | |||||
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 dataStatistics = "4f78420d614e449ea111726d00d95a26" //全国发行日报表接口数据统计 | |||||
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 cardList= "152"//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 quanConfirm = "72"; //圈存确认 | 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 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 gongWuChefindFormatVehicleInfo = "507"; //制式警车信息查询 ,只用于同步IF01001202206010854 | ||||
//首页接口 | //首页接口 | ||||
export const querySwiper = "59b1aab2864a467fb55f028aa54b224a"; //MTS-轮播图查询所有启用信息 | export const querySwiper = "59b1aab2864a467fb55f028aa54b224a"; //MTS-轮播图查询所有启用信息 | ||||
export const addProduct="10414819633f46db98158fc7b4e8475e" //加购权益产品 | |||||
export const addProduct = "10414819633f46db98158fc7b4e8475e" //加购权益产品 | |||||
export const queryDetails="8" //查详情 | |||||
export const queryHighMsg="64f4a17302774b6eab09f7a1f8364605" //高速快讯查询接口 | |||||
export const addEvaluation="64ed1fdff3b44138ba30d183b613bc7f" //满意度评价-新增 | |||||
export const satisfactionEvaluation="746b5e0375b8474eb3e133b8c79586d8" //满意度评价-分页查询 | |||||
export const judageSalesman="35744a8e282a42ddbc63814303e9e441" //判断是否有业务员 | |||||
export const judageQuanProduct="fe71273c1a394eaa999825afe7daa59b" //判断是否有权益产品 | |||||
export const getGlobalParam="d0579171c82443cb9b243c113309119a" //全局配置 | |||||
export const getUserMsg="c4a499a2a63042b9a2d4e88fc77d3fc0" //通过opneId查询用户信息 | |||||
export const queryDetails = "8" //查详情 | |||||
export const queryHighMsg = "64f4a17302774b6eab09f7a1f8364605" //高速快讯查询接口 | |||||
export const addEvaluation = "64ed1fdff3b44138ba30d183b613bc7f" //满意度评价-新增 | |||||
export const satisfactionEvaluation = "746b5e0375b8474eb3e133b8c79586d8" //满意度评价-分页查询 | |||||
export const judageSalesman = "35744a8e282a42ddbc63814303e9e441" //判断是否有业务员 | |||||
export const judageQuanProduct = "fe71273c1a394eaa999825afe7daa59b" //判断是否有权益产品 | |||||
export const getGlobalParam = "d0579171c82443cb9b243c113309119a" //全局配置 | |||||
export const getUserMsg = "c4a499a2a63042b9a2d4e88fc77d3fc0" //通过opneId查询用户信息 | |||||
// 单位账户充值 | // 单位账户充值 | ||||
export const accountLogin="308679d555fa47da84876a8aeaee40a4" //单位账户登录 | |||||
export const openRecharge="3d68404d529d4b30963c6d3638003e6f " //单位账户开户 | |||||
export const addBankCard="578a8372a8c0414aa917c84ac8c802b9" //对公账户银行账户添加接口 | |||||
export const queryBankCard="769790d75f3648a8925312c7e1496860" //对公账户银行账户查询接口 | |||||
export const delBankCard="0a05e54acebe46d29e2fbcaf1db95c75" //对公账户银行账户移除接口 | |||||
export const transactionRecord="d713b25213c64633b2c048fb1cfab7c6" //对公账户交易记录查询服务 | |||||
export const queryRecharge="bd8d3b44734c4d05b9c586815d0b98d8" //对公账户充值服务 | |||||
export const changePass="2ba78074e3004453a26dba1d41ae7568" //对公账户改密服务 | |||||
export const accountLogin = "308679d555fa47da84876a8aeaee40a4" //单位账户登录 | |||||
export const openRecharge = "3d68404d529d4b30963c6d3638003e6f " //单位账户开户 | |||||
export const addBankCard = "578a8372a8c0414aa917c84ac8c802b9" //对公账户银行账户添加接口 | |||||
export const queryBankCard = "769790d75f3648a8925312c7e1496860" //对公账户银行账户查询接口 | |||||
export const delBankCard = "0a05e54acebe46d29e2fbcaf1db95c75" //对公账户银行账户移除接口 | |||||
export const transactionRecord = "d713b25213c64633b2c048fb1cfab7c6" //对公账户交易记录查询服务 | |||||
export const queryRecharge = "bd8d3b44734c4d05b9c586815d0b98d8" //对公账户充值服务 | |||||
export const changePass = "2ba78074e3004453a26dba1d41ae7568" //对公账户改密服务 | |||||
// 补卡额 | // 补卡额 | ||||
export const queryCardLimit="d6c1e39dccf44919a57c55457a9da21a" //补卡额列表查询接口 | |||||
export const queryCardLimit = "d6c1e39dccf44919a57c55457a9da21a" //补卡额列表查询接口 | |||||
export const refundQuan="52d32062470345a1915b0adeb458609e" //储值卡圈存-半条流水-微信退费 | |||||
export const queryRefoundResult="a11d756827f848f79de027a2ec1943c3" //储值卡圈存-半条流水-微信退费结果查询 | |||||
export const queryStoredQuan="cc907ba2683e481d92398bf6c4d74c57" //储值卡圈存详情-多条件分页查询 | |||||
export const queryTrajectory="d6414e83a2a34c4cb0f3da33a0e901bd" //我的上个月轨迹查询 | |||||
export const queryCardRecord="2124c3086aa04faf84d70c01930cc90c" //用户储值卡充值记录-分页查询 | |||||
export const refundQuan = "52d32062470345a1915b0adeb458609e" //储值卡圈存-半条流水-微信退费 | |||||
export const queryRefoundResult = "a11d756827f848f79de027a2ec1943c3" //储值卡圈存-半条流水-微信退费结果查询 | |||||
export const queryStoredQuan = "cc907ba2683e481d92398bf6c4d74c57" //储值卡圈存详情-多条件分页查询 | |||||
export const queryTrajectory = "d6414e83a2a34c4cb0f3da33a0e901bd" //我的上个月轨迹查询 | |||||
export const queryCardRecord = "2124c3086aa04faf84d70c01930cc90c" //用户储值卡充值记录-分页查询 |
import { | import { | ||||
SM4Util | SM4Util | ||||
} from '../util/sm4.js' | } from '../util/sm4.js' | ||||
import {getItem} from "@/utils/storage"; | |||||
import { | |||||
getItem | |||||
} from "@/utils/storage"; | |||||
const s4 = new SM4Util() | const s4 = new SM4Util() | ||||
const _signCode = "etc123456"; //签名码 | const _signCode = "etc123456"; //签名码 | ||||
} | } | ||||
// 判断是否是微信小程序 | // 判断是否是微信小程序 | ||||
export function isWeixin() { | export function isWeixin() { | ||||
if(getItem("loginSource")=='69af303ba2eb4608a099163f0d2a5dbd'){ | |||||
if (getItem("loginSource") == '69af303ba2eb4608a099163f0d2a5dbd') { | |||||
return true; | return true; | ||||
}else{ | |||||
} else { | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
); | ); | ||||
let endData = arrayToJson(requestData); | let endData = arrayToJson(requestData); | ||||
return endData; | return endData; | ||||
} | |||||
} |
staffId: "54623263cb4d4a289dccbc983b22a4af", | staffId: "54623263cb4d4a289dccbc983b22a4af", | ||||
terminalId: "999999999999", | terminalId: "999999999999", | ||||
loginSource: getItem("loginSource"), | loginSource: getItem("loginSource"), | ||||
rbacSource: 'MINI_PROGRAM' | |||||
rbacSource: 'MINI_PROGRAM', | |||||
accessToken: getItem(StorageKeys.Token) | |||||
} | } | ||||
options.url = 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 + '/api/interfaceMidGroundIn' | |||||
options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' | |||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' | // options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' | ||||
//默认json数据格式提交` | //默认json数据格式提交` | ||||
let contentType = 'application/x-www-form-urlencoded' | let contentType = 'application/x-www-form-urlencoded' | ||||
//设置请求超时时间 | //设置请求超时时间 | ||||
options.timeout = 60000 | options.timeout = 60000 | ||||
options.header = { | options.header = { | ||||
'content-type': contentType, | 'content-type': contentType, | ||||
'Access-Token': getItem(StorageKeys.Token) | 'Access-Token': getItem(StorageKeys.Token) |
import SM3 from "sm-crypto"; | |||||
import Buffer from "vue-buffer"; | |||||
export function sm3(message, key) { | |||||
const keyBuffer = Buffer.from(key, "utf-8"); | |||||
const messageBuffer = Buffer.from(message, "utf-8"); | |||||
const hmac = SM3.sm3(messageBuffer, { key: keyBuffer }); | |||||
const mac = SM3.sm3(messageBuffer); | |||||
if (key) { | |||||
return hmac?.toUpperCase(); | |||||
} else { | |||||
return mac?.toUpperCase(); | |||||
} | |||||
} |