瀏覽代碼

提交

yxb
yangteng 11 月之前
父節點
當前提交
f00c0ec865

+ 8
- 7
datas/9901Jump.js 查看文件

if(type=="7" || type=="8" || type=="9"){ if(type=="7" || type=="8" || type=="9"){
redirectUrl="/pages/order/order" redirectUrl="/pages/order/order"
handleType="aftersale" handleType="aftersale"
if(type=="7"){
afterType=7
}else if(type=="8"){
afterType=8
}else if(type=="9"){
afterType=9
}
if(data['after']){ if(data['after']){
orderType=2 orderType=2
// plateNum 车牌号码和颜色编号 例:浙A0P73H_0 // plateNum 车牌号码和颜色编号 例:浙A0P73H_0
// orderNo 订单编号 // orderNo 订单编号
// afterType 售后办理类型 1.挂失 2.解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货 // afterType 售后办理类型 1.挂失 2.解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货
// orderType 订单类型 1.新办 2.售后 // orderType 订单类型 1.新办 2.售后
if(type=="7"){
afterType=7
}else if(type=="8"){
afterType=8
}else if(type=="9"){
afterType=9
}
}else{ }else{
orderType=1 orderType=1
} }
} }
// 售后业务 // 售后业务

+ 23
- 0
functional-pages/request-payment.js 查看文件

/*
* @Author: gaorf30153 gaorf30153@hundsun.com
* @Date: 2024-06-26 08:41:43
* @LastEditors: gaorf30153 gaorf30153@hundsun.com
* @LastEditTime: 2024-06-26 08:59:33
* @FilePath: \wxminipro\miniprogram\functional-pages\request-payment.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
exports.beforeRequestPayment = function (paymentArgs, callback) {
// 自定义的参数,此处应为从插件传递过来的 paymentArgs
console.log(paymentArgs)
var error = null
var requestPaymentArgs = {
//该对象为下单所需参数,以后端接口返回的为准!!
timeStamp: paymentArgs.timeStamp,
nonceStr: paymentArgs.nonceStr,
package: paymentArgs.package,
signType: paymentArgs.signType,
paySign: paymentArgs.paySign,
}
callback(error, requestPaymentArgs) //重点:返回requestPaymentArgs
console.log(requestPaymentArgs)
}

+ 1
- 1
manifest.json 查看文件

"requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"], "requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"],
"plugins": { "plugins": {
"issuer-plugin": { "issuer-plugin": {
"version": "dev-8bba8ec1b7471c53bb8895ca64dba8cf",
"version": "dev-86239f0e47ce1f289fa33faad042e339",
"provider": "wxa2d9acdd1054e69b" "provider": "wxa2d9acdd1054e69b"
} }
} }

+ 38
- 0
static/etc/kcBle/kcBleAPI.js 查看文件

function disconnectDeviceBluetooth(callBack) { function disconnectDeviceBluetooth(callBack) {
_kcService2.default.disconnectDeviceBluetooth(callBack); _kcService2.default.disconnectDeviceBluetooth(callBack);
} }
var timeId
var receive_data=""
var timeOut=require("./timeOut")
function getObuSN(e) {
receive_data = "", timeId = setTimeout(t => {
e.call(this, {
code: -1,
err_msg: "获取合同序列号超时",
data: null,
msg: ""
}), receive_data = ""
}, timeOut.sendTime()), service.getSystemInfo(e => {
fireFlag = e.fireFlag, receive_data = ""
}, t => {
clearTimeout(timeId), e.call(this, {
code: 0,
err_msg: "获取合同序列号成功",
data: t.data.substr(20, 16),
msg: ""
})
})
}
function getSystemInfo(e) {
receive_data = "", timeId = setTimeout(t => {
e.call(this, {
code: Code.timeOutCode(),
err_msg: "读系统信息超时",
data: null,
msg: ""
}), receive_data = ""
}, timeOut.sendTime()), service.getSystemInfo(e => {
fireFlag = e.fireFlag, receive_data = ""
}, t => {
clearTimeout(timeId), e.call(this, t)
})
}
module.exports = { module.exports = {
reallyScanConnect: reallyScanConnect, reallyScanConnect: reallyScanConnect,
connectDevice: connectDevice, connectDevice: connectDevice,
scanBle: scanBle, scanBle: scanBle,
closBluetooth: closBluetooth, closBluetooth: closBluetooth,
disconnectDeviceBluetooth: disconnectDeviceBluetooth, disconnectDeviceBluetooth: disconnectDeviceBluetooth,
getObuSN:getObuSN,
getSystemInfo:getSystemInfo
}; };

+ 6
- 0
static/etc/kcBle/timeOut.js 查看文件

export function connectTimeOut() {
return 2e4
}
export function sendTime() {
return 2e4
}

+ 9
- 0
subpackage/carPark/etc/etcDeviceInfo.vue 查看文件

const tools = require("../../../static/etcUtil/tools.js"); const tools = require("../../../static/etcUtil/tools.js");
const datas = require("../../../static/etcUtil/datas.js"); const datas = require("../../../static/etcUtil/datas.js");
const bluetoothUtil = require("../../../static/etcUtil/index.js"); const bluetoothUtil = require("../../../static/etcUtil/index.js");
let kcApi = require("../../../static/etc/kcBle/kcBleAPI.js");
let jyApiEtc = require("../../../static/etc/JYAPI-ETC/jy-bluetooth-obu-wechatmp.js"); //前装-金溢 let jyApiEtc = require("../../../static/etc/JYAPI-ETC/jy-bluetooth-obu-wechatmp.js"); //前装-金溢
const card = reactive({ const card = reactive({
cardNo: "", cardNo: "",
*/ */
const getObuId = () => { const getObuId = () => {
tools.showLoadingAlert("执行指令"); tools.showLoadingAlert("执行指令");
if(datas.getData("deviceName").includes("K")){
console.log("进来得")
kcApi.getDeviceInfo(function(res){
console.log("kc====",res)
})
}
return
// if (datas.getData("deviceName").includes("JY")) { // if (datas.getData("deviceName").includes("JY")) {
// jyApiEtc.getSystemInfo(function(res) { // jyApiEtc.getSystemInfo(function(res) {
// console.log("获取OBU===", res) // console.log("获取OBU===", res)

Loading…
取消
儲存