import { | import { | ||||
getCodeName | getCodeName | ||||
} from "@/datas/queryKey.js"; | } from "@/datas/queryKey.js"; | ||||
// import { log } from "console"; | |||||
export default { | export default { | ||||
// data(){ | |||||
// return{ | |||||
// isEnableSetGray:true, | |||||
// } | |||||
// }, | |||||
onLaunch: function(option) { | onLaunch: function(option) { | ||||
var that = this; | var that = this; | ||||
uni.getSystemInfo({ | uni.getSystemInfo({ | ||||
uni.login({ | uni.login({ | ||||
provider: "weixin", | provider: "weixin", | ||||
success: function(e) { | success: function(e) { | ||||
// auth.code2Session | |||||
console.log("ee", e); | console.log("ee", e); | ||||
that.getOpenid(e.code); | that.getOpenid(e.code); | ||||
// uni.request({ | |||||
// url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | |||||
// success: (res) => { | |||||
// // state.openid = res.data.openid; | |||||
// setItem("QYorder", res.data); | |||||
// console.log("获取微信小程序openid", res); | |||||
// }, | |||||
// fail: (err) => { | |||||
// uni.showToast({ | |||||
// title: "网络异常,请重试!" + err.errcode, | |||||
// icon: "error", | |||||
// duration: 500, | |||||
// }); | |||||
// return; | |||||
// }, | |||||
// }); | |||||
}, | }, | ||||
}); | }); | ||||
//搜索 | //搜索 | ||||
const doSearch = () => { | const doSearch = () => { | ||||
// #ifdef MP-WEIXIN | |||||
if (!searchKeyWords.value) { | if (!searchKeyWords.value) { | ||||
msg('请输入需要搜索的车牌号!'); | msg('请输入需要搜索的车牌号!'); | ||||
return; | return; | ||||
} | } | ||||
// #endif | |||||
refreshList(true); | refreshList(true); | ||||
} | } | ||||
"tabIndex": props.index + '', | "tabIndex": props.index + '', | ||||
"pageNo": params.pageNum, | "pageNo": params.pageNum, | ||||
"pageSize": params.pageSize, | "pageSize": params.pageSize, | ||||
"promotionModes": 1 | |||||
"promotionModes": 1, | |||||
"isAfter": true | |||||
}, | }, | ||||
method: 'POST', | method: 'POST', | ||||
// showLoading: isLoading ? (params.pageNum === 1 ? true : false) : false , | // showLoading: isLoading ? (params.pageNum === 1 ? true : false) : false , |
//车辆信息变更-信息重写 | //车辆信息变更-信息重写 | ||||
const gotoEditCarWriteInfo = (orderInfo : any) => { | const gotoEditCarWriteInfo = (orderInfo : any) => { | ||||
// navTo(`/pages/bluetooth/bluetooth?id=${orderInfo.id}&orderId=${orderInfo.orderId}`); | |||||
navTo(`/pages/bluetooth/bluetooth?routeType=3`); | navTo(`/pages/bluetooth/bluetooth?routeType=3`); | ||||
} | } | ||||
//办理流程数据 | //办理流程数据 | ||||
{ | { | ||||
title: "第一步:产品选择", | title: "第一步:产品选择", | ||||
desc: "提交车牌号、车牌颜色、收货地址相关信息", | |||||
desc: "选择购买的发行产品", | |||||
}, | }, | ||||
{ | { | ||||
title: "第二步:信息校验", | title: "第二步:信息校验", | ||||
desc: "上传身份证、行驶证等相关信息", | |||||
desc: "提交车牌号、车牌颜色、收货地址相关信息", | |||||
}, | }, | ||||
{ | { | ||||
title: "第三步:证件上传", | title: "第三步:证件上传", | ||||
desc: "选择签约账户并关联", | |||||
desc: "上传身份证、行驶证等相关信息", | |||||
}, | }, | ||||
{ | { | ||||
title: "第四步:订单支付", | title: "第四步:订单支付", | ||||
desc: "选择购买的发行产品", | |||||
desc: "支付完成订单", | |||||
}, | }, | ||||
{ | { | ||||
title: "第五步:签约代扣", | title: "第五步:签约代扣", | ||||
desc: "支付完成订单", | |||||
desc: "选择签约账户并关联", | |||||
}, | }, | ||||
], | ], | ||||
highMsgData: '',//高速快讯内容 | highMsgData: '',//高速快讯内容 |
<template> | <template> | ||||
<scroll-view class="setHight" scroll-y="true" refresher-enabled="true" :refresher-enabled='state.freshing' | <scroll-view class="setHight" scroll-y="true" refresher-enabled="true" :refresher-enabled='state.freshing' | ||||
:refresher-triggered='state.triggered' @refresherrefresh="onRefresh" @refresherpulling="onPulling" | :refresher-triggered='state.triggered' @refresherrefresh="onRefresh" @refresherpulling="onPulling" | ||||
refresher-default-style="black" @scroll="upper"> | |||||
refresher-default-style="black"> | |||||
<!-- 搜索框 --> | <!-- 搜索框 --> | ||||
<view class="as-layout-horizontal as-gravity-center-start search-layout"> | <view class="as-layout-horizontal as-gravity-center-start search-layout"> | ||||
<view class="search-box"> | <view class="search-box"> | ||||
} | } | ||||
state.triggered = true | state.triggered = true | ||||
} | } | ||||
const upper = (e) => { | |||||
console.log("333333") | |||||
} | |||||
</script> | </script> | ||||
<style lang="scss" scoped> | <style lang="scss" scoped> |
const common_vendor = require("../../common/vendor.js"); | const common_vendor = require("../../common/vendor.js"); | ||||
var uni = common_vendor.index | var uni = common_vendor.index | ||||
const identityData = [ | |||||
{ | |||||
id: 101, | |||||
name: '身份证(含临时身份证)' | |||||
}, | |||||
{ | |||||
id: 102, | |||||
name: '护照(限外籍人士)' | |||||
}, | |||||
{ | |||||
id: 103, | |||||
name: '港澳居民来往内地通行证' | |||||
}, | |||||
{ | |||||
id: 104, | |||||
name: '台湾居民来往大陆通行证' | |||||
}, | |||||
{ | |||||
id: 105, | |||||
name: '军官证' | |||||
}, | |||||
{ | |||||
id: 106, | |||||
name: '武警警察身份证' | |||||
}, | |||||
{ | |||||
id: 201, | |||||
name: '统一社会信用代码证书' | |||||
}, | |||||
{ | |||||
id: 202, | |||||
name: '组织机构代码证' | |||||
}, | |||||
{ | |||||
id: 203, | |||||
name: '营业执照' | |||||
}, | |||||
{ | |||||
id: 204, | |||||
name: '事业单位法人证书' | |||||
}, | |||||
{ | |||||
id: 205, | |||||
name: '社会团体法人登记证书' | |||||
}, | |||||
{ | |||||
id: 206, | |||||
name: '律师事务所执业许可证' | |||||
}, | |||||
{ | |||||
id: 217, | |||||
name: '公司商业登记副本(3个月内)' | |||||
}, | |||||
{ | |||||
id: 218, | |||||
name: '公司营业税单M8副本' | |||||
}, | |||||
{ | |||||
id: 219, | |||||
name: '公司营业税开业/更改M1副本' | |||||
} | |||||
const identityData = [{ | |||||
id: 101, | |||||
name: '身份证(含临时身份证)' | |||||
}, | |||||
{ | |||||
id: 102, | |||||
name: '护照(限外籍人士)' | |||||
}, | |||||
{ | |||||
id: 103, | |||||
name: '港澳居民来往内地通行证' | |||||
}, | |||||
{ | |||||
id: 104, | |||||
name: '台湾居民来往大陆通行证' | |||||
}, | |||||
{ | |||||
id: 105, | |||||
name: '军官证' | |||||
}, | |||||
{ | |||||
id: 106, | |||||
name: '武警警察身份证' | |||||
}, | |||||
{ | |||||
id: 201, | |||||
name: '统一社会信用代码证书' | |||||
}, | |||||
{ | |||||
id: 202, | |||||
name: '组织机构代码证' | |||||
}, | |||||
{ | |||||
id: 203, | |||||
name: '营业执照' | |||||
}, | |||||
{ | |||||
id: 204, | |||||
name: '事业单位法人证书' | |||||
}, | |||||
{ | |||||
id: 205, | |||||
name: '社会团体法人登记证书' | |||||
}, | |||||
{ | |||||
id: 206, | |||||
name: '律师事务所执业许可证' | |||||
}, | |||||
{ | |||||
id: 217, | |||||
name: '公司商业登记副本(3个月内)' | |||||
}, | |||||
{ | |||||
id: 218, | |||||
name: '公司营业税单M8副本' | |||||
}, | |||||
{ | |||||
id: 219, | |||||
name: '公司营业税开业/更改M1副本' | |||||
} | |||||
]; | ]; | ||||
const deviceModel = [ | |||||
{ | |||||
name: '万集', | |||||
value: 'WJ' | |||||
}, | |||||
{ | |||||
name: '聚利', | |||||
value: 'JL' | |||||
}, | |||||
{ | |||||
name: '金溢', | |||||
value: 'JY' | |||||
}, | |||||
{ | |||||
name: '埃特斯', | |||||
value: 'AT' | |||||
}, | |||||
{ | |||||
name: '建投', | |||||
value: 'JT' | |||||
}, | |||||
{ | |||||
name: '握奇', | |||||
value: 'WQ' | |||||
}, | |||||
{ | |||||
name: '成谷', | |||||
value: 'CG' | |||||
}, | |||||
{ | |||||
name: '天地融', | |||||
value: 'TD' | |||||
}, | |||||
{ | |||||
name: '智载', | |||||
value: 'ZZ' | |||||
} | |||||
const deviceModel = [{ | |||||
name: '万集', | |||||
value: 'WJ' | |||||
}, | |||||
{ | |||||
name: '聚利', | |||||
value: 'JL' | |||||
}, | |||||
{ | |||||
name: '金溢', | |||||
value: 'JY' | |||||
}, | |||||
{ | |||||
name: '埃特斯', | |||||
value: 'AT' | |||||
}, | |||||
{ | |||||
name: '建投', | |||||
value: 'JT' | |||||
}, | |||||
{ | |||||
name: '握奇', | |||||
value: 'WQ' | |||||
}, | |||||
{ | |||||
name: '成谷', | |||||
value: 'CG' | |||||
}, | |||||
{ | |||||
name: '天地融', | |||||
value: 'TD' | |||||
}, | |||||
{ | |||||
name: '智载', | |||||
value: 'ZZ' | |||||
} | |||||
]; | ]; | ||||
/********************** 路由跳转 **********************/ | /********************** 路由跳转 **********************/ | ||||
//保留当前页面,跳转到应用内的某个页面 | //保留当前页面,跳转到应用内的某个页面 | ||||
function toUrl(url) { | function toUrl(url) { | ||||
uni.showToast({ | |||||
//显示消息提示框 此处是提升用户体验的作用 | |||||
title: '加载中', | |||||
icon: 'loading' | |||||
}); // if (url.indexOf("?")==-1){ | |||||
// url += '?rand=' + datas.randomNum(1000,9999) | |||||
// }else{ | |||||
// url += '&rand=' + datas.randomNum(1000,9999) | |||||
// } | |||||
uni.showToast({ | |||||
//显示消息提示框 此处是提升用户体验的作用 | |||||
title: '加载中', | |||||
icon: 'loading' | |||||
}); // if (url.indexOf("?")==-1){ | |||||
// url += '?rand=' + datas.randomNum(1000,9999) | |||||
// }else{ | |||||
// url += '&rand=' + datas.randomNum(1000,9999) | |||||
// } | |||||
console.log('url:*****' + url); | |||||
uni.navigateTo({ | |||||
url: url, | |||||
complete: function (response) { | |||||
uni.hideToast(); | |||||
} | |||||
}); | |||||
console.log('url:*****' + url); | |||||
uni.navigateTo({ | |||||
url: url, | |||||
complete: function(response) { | |||||
uni.hideToast(); | |||||
} | |||||
}); | |||||
} //关闭当前页面,返回上一页面或多级页面。 | } //关闭当前页面,返回上一页面或多级页面。 | ||||
function navigateBack(delta, successFunc = null, failFunc = null) { | function navigateBack(delta, successFunc = null, failFunc = null) { | ||||
uni.navigateBack({ | |||||
delta: delta, | |||||
success: function (res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function (res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function (res) {} //接口调用结束的回调函数(调用成功、失败都会执行) | |||||
}); | |||||
uni.navigateBack({ | |||||
delta: delta, | |||||
success: function(res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function(res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function(res) {} //接口调用结束的回调函数(调用成功、失败都会执行) | |||||
}); | |||||
} | } | ||||
/********************** showModalAlert ************************/ | /********************** showModalAlert ************************/ | ||||
function showModalAlert(content, successFunc = null, failFunc = null, title = '温馨提示', showCancel = false) { | function showModalAlert(content, successFunc = null, failFunc = null, title = '温馨提示', showCancel = false) { | ||||
uni.showModal({ | |||||
title: title, | |||||
content: content, | |||||
showCancel: showCancel, | |||||
//是否显示取消按钮 | |||||
cancelText: '取消', | |||||
//默认是“取消” | |||||
cancelColor: theme.cancelModalColor, | |||||
//取消文字的颜色 | |||||
confirmText: '确定', | |||||
//默认是“确定” | |||||
confirmColor: theme.modalColor, | |||||
//确定文字的颜色 | |||||
success: function (res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function (res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function (res) {} //接口调用结束的回调函数(调用成功、失败都会执行) | |||||
}); | |||||
uni.showModal({ | |||||
title: title, | |||||
content: content, | |||||
showCancel: showCancel, | |||||
//是否显示取消按钮 | |||||
cancelText: '取消', | |||||
//默认是“取消” | |||||
cancelColor: theme.cancelModalColor, | |||||
//取消文字的颜色 | |||||
confirmText: '确定', | |||||
//默认是“确定” | |||||
confirmColor: theme.modalColor, | |||||
//确定文字的颜色 | |||||
success: function(res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function(res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function(res) {} //接口调用结束的回调函数(调用成功、失败都会执行) | |||||
}); | |||||
} | } | ||||
/*******************showToastAlert********************/ | /*******************showToastAlert********************/ | ||||
function showToastAlert(title = '成功', icon = 'none', image = '', duration = 2000, mask = true, successFunc = null, failFunc = null, completeFun = null) { | |||||
uni.showToast({ | |||||
title: title, | |||||
icon: icon, | |||||
//success显示成功图标,loading显示加载图标,none不显示图标 | |||||
image: image, | |||||
duration: duration, | |||||
mask: mask, | |||||
////是否显示透明蒙层,防止触摸穿透 | |||||
success: function (res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function (res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function (res) { | |||||
//接口调用结束的回调函数(调用成功、失败都会执行) | |||||
if (completeFun != null) { | |||||
completeFun(res); | |||||
} | |||||
} | |||||
}); | |||||
function showToastAlert(title = '成功', icon = 'none', image = '', duration = 2000, mask = true, successFunc = null, | |||||
failFunc = null, completeFun = null) { | |||||
uni.showToast({ | |||||
title: title, | |||||
icon: icon, | |||||
//success显示成功图标,loading显示加载图标,none不显示图标 | |||||
image: image, | |||||
duration: duration, | |||||
mask: mask, | |||||
////是否显示透明蒙层,防止触摸穿透 | |||||
success: function(res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function(res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function(res) { | |||||
//接口调用结束的回调函数(调用成功、失败都会执行) | |||||
if (completeFun != null) { | |||||
completeFun(res); | |||||
} | |||||
} | |||||
}); | |||||
} | } | ||||
/******************showLoadingAlert************************/ | /******************showLoadingAlert************************/ | ||||
function showLoadingAlert(title = '加载中...', mask = true, successFunc = null, failFunc = null, completeFun = null) { | function showLoadingAlert(title = '加载中...', mask = true, successFunc = null, failFunc = null, completeFun = null) { | ||||
uni.showLoading({ | |||||
title: title, | |||||
mask: mask, | |||||
//是否显示透明蒙层,防止触摸穿透 | |||||
success: function (res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function (res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function (res) { | |||||
//接口调用结束的回调函数(调用成功、失败都会执行) | |||||
if (completeFun != null) { | |||||
completeFun(res); | |||||
} | |||||
} | |||||
}); | |||||
uni.showLoading({ | |||||
title: title, | |||||
mask: mask, | |||||
//是否显示透明蒙层,防止触摸穿透 | |||||
success: function(res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function(res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function(res) { | |||||
//接口调用结束的回调函数(调用成功、失败都会执行) | |||||
if (completeFun != null) { | |||||
completeFun(res); | |||||
} | |||||
} | |||||
}); | |||||
} | } | ||||
function hideLoadingAlert(successFunc = null, failFunc = null, completeFun = null) { | function hideLoadingAlert(successFunc = null, failFunc = null, completeFun = null) { | ||||
uni.hideLoading({ | |||||
success: function (res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function (res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function (res) { | |||||
//接口调用结束的回调函数(调用成功、失败都会执行) | |||||
if (completeFun != null) { | |||||
completeFun(res); | |||||
} | |||||
} | |||||
}); | |||||
uni.hideLoading({ | |||||
success: function(res) { | |||||
//接口调用成功的回调函数 | |||||
if (successFunc != null) { | |||||
successFunc(res); | |||||
} | |||||
}, | |||||
fail: function(res) { | |||||
//接口调用失败的回调函数 | |||||
if (failFunc != null) { | |||||
failFunc(res); | |||||
} | |||||
}, | |||||
complete: function(res) { | |||||
//接口调用结束的回调函数(调用成功、失败都会执行) | |||||
if (completeFun != null) { | |||||
completeFun(res); | |||||
} | |||||
} | |||||
}); | |||||
} //签名 | } //签名 | ||||
function alertF(msg) { | function alertF(msg) { | ||||
//隐藏加载框 | |||||
hideLoadingAlert(); //提示对话框 | |||||
//隐藏加载框 | |||||
hideLoadingAlert(); //提示对话框 | |||||
showModalAlert(msg); | |||||
showModalAlert(msg); | |||||
} | } | ||||
function alertFback(msg, backcall) { | function alertFback(msg, backcall) { | ||||
//隐藏加载框 | |||||
hideLoadingAlert(); //提示对话框 | |||||
//隐藏加载框 | |||||
hideLoadingAlert(); //提示对话框 | |||||
showModalAlert(msg, backcall); | |||||
showModalAlert(msg, backcall); | |||||
} | } | ||||
/** | /** | ||||
*/ | */ | ||||
function vehiclePlateStr(num, successFun) { | function vehiclePlateStr(num, successFun) { | ||||
var vehicleColorStr; | |||||
var vehicleColorStr; | |||||
switch (num) { | |||||
case 0: | |||||
vehicleColorStr = '蓝色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
switch (num) { | |||||
case 0: | |||||
vehicleColorStr = '蓝色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 1: | |||||
vehicleColorStr = '黄色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 1: | |||||
vehicleColorStr = '黄色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 2: | |||||
vehicleColorStr = '黑色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 2: | |||||
vehicleColorStr = '黑色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 3: | |||||
vehicleColorStr = '白色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 3: | |||||
vehicleColorStr = '白色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 4: | |||||
vehicleColorStr = '渐变绿色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 4: | |||||
vehicleColorStr = '渐变绿色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 5: | |||||
vehicleColorStr = '黄绿双拼色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 5: | |||||
vehicleColorStr = '黄绿双拼色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 6: | |||||
vehicleColorStr = '蓝白渐变色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 6: | |||||
vehicleColorStr = '蓝白渐变色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 7: | |||||
vehicleColorStr = '临时牌照'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 7: | |||||
vehicleColorStr = '临时牌照'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 9: | |||||
vehicleColorStr = '未确定'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 9: | |||||
vehicleColorStr = '未确定'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 11: | |||||
vehicleColorStr = '绿色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 11: | |||||
vehicleColorStr = '绿色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 12: | |||||
vehicleColorStr = '红色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
case 12: | |||||
vehicleColorStr = '红色'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
default: | |||||
vehicleColorStr = '未知'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
} | |||||
default: | |||||
vehicleColorStr = '未知'; | |||||
successFun(vehicleColorStr); | |||||
break; | |||||
} | |||||
} | } | ||||
//字符串加密 | //字符串加密 | ||||
function md5Str(str) { | function md5Str(str) { | ||||
var _str = md5.i(str); | |||||
return _str; | |||||
var _str = md5.i(str); | |||||
return _str; | |||||
} | } | ||||
module.exports = { | module.exports = { | ||||
toUrl, | |||||
navigateBack, | |||||
showModalAlert, | |||||
showToastAlert, | |||||
showLoadingAlert, | |||||
hideLoadingAlert, | |||||
// getEtcBankList, | |||||
// showAlertv2, | |||||
// loading, | |||||
md5Str, | |||||
// sha1Str, | |||||
alertF, | |||||
alertFback, | |||||
identityData, | |||||
deviceModel, | |||||
// isFollow, | |||||
vehiclePlateStr | |||||
}; | |||||
toUrl, | |||||
navigateBack, | |||||
showModalAlert, | |||||
showToastAlert, | |||||
showLoadingAlert, | |||||
hideLoadingAlert, | |||||
// getEtcBankList, | |||||
// showAlertv2, | |||||
// loading, | |||||
md5Str, | |||||
// sha1Str, | |||||
alertF, | |||||
alertFback, | |||||
identityData, | |||||
deviceModel, | |||||
// isFollow, | |||||
vehiclePlateStr | |||||
}; |
import { ETCProductStatusListQueryApi } from "@/utils/network/api.js"; | import { ETCProductStatusListQueryApi } from "@/utils/network/api.js"; | ||||
import { request } from "@/utils/network/request.js"; | import { request } from "@/utils/network/request.js"; | ||||
import { stringToJson } from "@/utils/network/encryption.js"; | import { stringToJson } from "@/utils/network/encryption.js"; | ||||
import { agentId } from "@/utils/network/difference"; | |||||
const state = reactive({ | const state = reactive({ | ||||
promoteName: "", //产品名称 | promoteName: "", //产品名称 | ||||
promoteId: "",//产品编号 | promoteId: "",//产品编号 | ||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
"agencyId": "52010106998", | |||||
"agencyId": agentId, | |||||
"pageNo": state.pageNo, | "pageNo": state.pageNo, | ||||
"pageSize": state.pageSize, | "pageSize": state.pageSize, | ||||
"status": state.index == 1 ? 'DISABLE' : "ENABLE", | "status": state.index == 1 ? 'DISABLE' : "ENABLE", |
import { | import { | ||||
getCodeName | getCodeName | ||||
} from "@/datas/queryKey.js"; | } from "@/datas/queryKey.js"; | ||||
import { agentId } from "@/utils/network/difference"; | |||||
const state = reactive({ | const state = reactive({ | ||||
obuId: obu.obuId, | obuId: obu.obuId, | ||||
vehicleId: orderInfos.vehiclePlate + "_" + orderInfos.vehiclePlateColor, | vehicleId: orderInfos.vehiclePlate + "_" + orderInfos.vehiclePlateColor, | ||||
orderId: orderInfos.orderId, | orderId: orderInfos.orderId, | ||||
agentId: "52010106998", | |||||
agentId: agentId, | |||||
channelId: "5201010200601130001", | channelId: "5201010200601130001", | ||||
channelType: "1", | channelType: "1", | ||||
staffId: "opId", | staffId: "opId", |
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption.js"; | } from "@/utils/network/encryption.js"; | ||||
import * as IFCODE from "@/utils/network/api.js"; | import * as IFCODE from "@/utils/network/api.js"; | ||||
import { | |||||
agentId | |||||
} from "@/utils/network/difference"; | |||||
const cmd = require("../../../static/etcUtil/cmdConfig.js"); | const cmd = require("../../../static/etcUtil/cmdConfig.js"); | ||||
const tools = require("../../../static/etcUtil/tools.js"); | const tools = require("../../../static/etcUtil/tools.js"); | ||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | const bluetoothUtil = require("../../../static/etcUtil/index.js"); | ||||
obuId: obu.obuId, | obuId: obu.obuId, | ||||
vehicleId: fileDataStrings.vehiclePlate + "_" + fileDataStrings.vehiclePlateColor, | vehicleId: fileDataStrings.vehiclePlate + "_" + fileDataStrings.vehiclePlateColor, | ||||
orderId: fileDataStrings.orderId, | orderId: fileDataStrings.orderId, | ||||
agentId: "52010106998", | |||||
agentId: agentId, | |||||
channelId: "5201010200601130001", | channelId: "5201010200601130001", | ||||
channelType: "1", | channelType: "1", | ||||
staffId: "opId", | staffId: "opId", |
// import navBar from "@/components/nav-bar/nav-bar2.vue"; | // import navBar from "@/components/nav-bar/nav-bar2.vue"; | ||||
import { getItem, StorageKeys, setItem } from "@/utils/storage.ts"; | import { getItem, StorageKeys, setItem } from "@/utils/storage.ts"; | ||||
import { msg } from "@/utils/utils"; | import { msg } from "@/utils/utils"; | ||||
import { agentId } from "@/utils/network/difference"; | |||||
import { | import { | ||||
navTo | navTo | ||||
} from "@/utils/utils" | } from "@/utils/utils" | ||||
var data = { | var data = { | ||||
type: state.type, | type: state.type, | ||||
source: state.sysType, //请求方来源 | source: state.sysType, //请求方来源 | ||||
agencyId: "52010106998",//渠道编号 | |||||
agencyId: agentId,//渠道编号 | |||||
userType: state.userType, //用户类型 | userType: state.userType, //用户类型 | ||||
vanType: state.type, //车类型 | vanType: state.type, //车类型 | ||||
promotionMode: 1 | promotionMode: 1 |
import navBar from "@/components/nav-bar/nav-bar2.vue"; | import navBar from "@/components/nav-bar/nav-bar2.vue"; | ||||
import { getItem, StorageKeys, setItem } from "@/utils/storage.ts"; | import { getItem, StorageKeys, setItem } from "@/utils/storage.ts"; | ||||
import { msg } from "@/utils/utils"; | import { msg } from "@/utils/utils"; | ||||
import { agentId } from "@/utils/network/difference"; | |||||
const imgURL = `${fileURL}image/`; | const imgURL = `${fileURL}image/`; | ||||
// import { setItem } from "@/utils/storage"; | // import { setItem } from "@/utils/storage"; | ||||
var data = { | var data = { | ||||
userType: state.userType, | userType: state.userType, | ||||
// source: state.sysType, //请求方来源 | // source: state.sysType, //请求方来源 | ||||
agencyId: '52010106998', | |||||
agencyId: agentId, | |||||
vanType: state.type, | vanType: state.type, | ||||
promotionMode: 1 | promotionMode: 1 | ||||
}; | }; |
export const source = "WECHAT" | export const source = "WECHAT" | ||||
// #endif | // #endif | ||||
// 微信:52010106004 支付宝52010106998 | |||||
// 微信小程序渠道编号:52010106004 支付宝小程序52010106998 | |||||
// 渠道编号 | |||||
// #ifdef MP-ALIPAY | |||||
export const agentId = "52010106998" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
export const agentId = "52010106004" | |||||
// #endif |
sm4Key | sm4Key | ||||
} from "../network/api.js"; | } from "../network/api.js"; | ||||
import SM4Util from '../util/sm4.js' | import SM4Util from '../util/sm4.js' | ||||
import { | |||||
agentId | |||||
} from "@/utils/network/difference"; | |||||
import { | import { | ||||
updateToken | updateToken | ||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
//请求 | //请求 | ||||
export function request(code, options = {}, start = false) { | export function request(code, options = {}, start = false) { | ||||
//公参 | //公参 | ||||
// #ifdef MP-ALIPAY | |||||
const Common = { | |||||
agentId: "52010106998", | |||||
channelId: "5201010200601130001", | |||||
channelType: "1", | |||||
staffId: "54623263cb4d4a289dccbc983b22a4af", | |||||
terminalId: "999999999999", | |||||
loginSource: getItem("loginSource"), | |||||
rbacSource: 'MINI_PROGRAM', | |||||
accessToken: getItem(StorageKeys.Token) | |||||
} | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
const Common = { | const Common = { | ||||
agentId: "52010106004", | |||||
agentId: agentId, | |||||
channelId: "5201010200601130001", | channelId: "5201010200601130001", | ||||
channelType: "1", | channelType: "1", | ||||
staffId: "54623263cb4d4a289dccbc983b22a4af", | staffId: "54623263cb4d4a289dccbc983b22a4af", | ||||
rbacSource: 'MINI_PROGRAM', | rbacSource: 'MINI_PROGRAM', | ||||
accessToken: getItem(StorageKeys.Token) | accessToken: getItem(StorageKeys.Token) | ||||
} | } | ||||
// #endif | |||||
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' |
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
import { agentId } from "@/utils/network/difference"; | |||||
import { | import { | ||||
request | request | ||||
} from "@/utils/network/request.js"; | } from "@/utils/network/request.js"; | ||||
if (code == 15) { //身份证 | if (code == 15) { //身份证 | ||||
var data = { | var data = { | ||||
source: "1", | source: "1", | ||||
agencyId: "52010106998", | |||||
agencyId: agentId, | |||||
imageType: imageType, | imageType: imageType, | ||||
fileName: tempImagePath, | fileName: tempImagePath, | ||||
url: uploadFileImage | url: uploadFileImage | ||||
} else if (code == 16) { //行驶证 | } else if (code == 16) { //行驶证 | ||||
var data = { | var data = { | ||||
source: "1", | source: "1", | ||||
agencyId: "52010106998", | |||||
agencyId: agentId, | |||||
imageType: imageType, | imageType: imageType, | ||||
fileName: tempImagePath, | fileName: tempImagePath, | ||||
imageUrl: uploadFileImage | imageUrl: uploadFileImage |