瀏覽代碼

提交无产品情况提示

yxb
DESKTOP-2IO5MST\huting 1 年之前
父節點
當前提交
3c6f1abbf9

+ 4
- 1
pages/bluetooth/bluetooth.vue 查看文件

@@ -43,11 +43,14 @@
const tools = require("../../static/etcUtil/tools.js");
const datas = require("../../static/etcUtil/datas.js");
const bluetoothUtil = require("../../static/etcUtil/index.js");
// #ifdef MP-WEIXIN
let jlApi = require("../../static/etc/JLAPI/JLObuSDK.js"); //聚力SDK
let wjApi = require("../../static/etc/WJAPI/wjBleAPI");
let tdApi = require("../../static/etc/TDAPI/TDRObuSDK.js");
let zzApi = require("../../static/etc/WJAPI/wjBleAPI.js");
// #ifdef MP-ALIPAY
// #endif
// #ifdef MP-ALIPAY
// 这部分代码将仅在支付宝小程序平台下执行
jlApi = require("../../static/etc/JLObuSDK/JLObuSDK.js");
wjApi = require("../../static/etc/wjBle/WJBleAPI");

+ 1
- 0
pages/index/index.vue 查看文件

@@ -620,6 +620,7 @@
// #ifdef MP-WEIXIN
if (val == 1) {
navTo('/pages/recharge/recharge-pay', true)
// navTo('/pages/recharge/recharge', true)
} else if (val == 2) {
navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true)
}

+ 21
- 20
pages/recharge/recharge-weixin.vue 查看文件

@@ -226,30 +226,31 @@
success: (res) => {
if (res.confirm) {
//走蓝牙进行修复
// quanCheckActionTrue().then((val : any) => {
// console.log("圈层检测val", val)
// //如果 圈层检测正常
// if (val.chargeStatus === 1) {
console.log(`进行充值检测`);
czCheckAction().then((checkResult : any) => {
//判断订单逻辑如果有订单充值 则直接拿到订单去链接蓝牙
if (checkResult.orders && checkResult.orders.length > 0) {
//拿到订单,存起来
state.orderNum = checkResult.orders[0].orderNum;
setItem("orderNum", state.orderNum);
quanCheckActionTrue().then((val : any) => {
console.log("圈层检测val", val)
//如果 圈层检测正常
if (val.chargeStatus === 1) {
console.log(`进行充值检测`);
czCheckAction().then((checkResult : any) => {
//判断订单逻辑如果有订单充值 则直接拿到订单去链接蓝牙
if (checkResult.orders && checkResult.orders.length > 0) {
//拿到订单,存起来
state.orderNum = checkResult.orders[0].orderNum;
setItem("orderNum", state.orderNum);
// 检测用户是否存在有半条流水
getCardId()
} else {
console.log('没有可修复的流水')
}
});
} else {
// 检测用户是否存在有半条流水
// let fixFee = val.fixFee / 100
// console.log("fixFee", fixFee)
// go(fixFee)
getCardId()
} else {
console.log('没有可修复的流水')
}
});
// } else {
// // 检测用户是否存在有半条流水
// let fixFee = val.fixFee / 100
// console.log("fixFee", fixFee)
// go(fixFee)
// }
// });
} else if (res.cancel) {
console.log('用户点击取消');
}

+ 1
- 1
static/etcUtil/index.js 查看文件

@@ -238,7 +238,7 @@ function transCmd(cmdArr, type, func, callBack = null) {
case "TD":
console.log('TD执行内容====', cmdArr, type)
tdApi.transCmd(cmdArr, type, function(res) {
console.log('TD执行内容====', cmdArr, type)
console.log('TD执行内容====123', cmdArr, type)
if (res.code == 0) {
func(res.data);
} else {

+ 11
- 5
subpackage/after-sale/transfer-ownership/select-car-transfer.vue 查看文件

@@ -50,18 +50,24 @@
const flag = ref('0') //默认选择0

onLoad(() => {
quanCheckActionTrue().then((item: any) => {
state.list = item.data
quanCheckActionTrue().then((item : any) => {
console.log("过户", item)
let data = item.data
for (var k = 0; k < data.length; k++) {
if (data[k]['orderStatus'] != "99999") {
state.list.push(data[k])
}
}
})
});

const quanCheckActionTrue = () => {
let source = ""
// #ifdef MP-ALIPAY
source ="ALI"
source = "ALI"
// #endif
// #ifdef MP-WEIXIN
source ="WECHAT"
source = "WECHAT"
// #endif
var data = {
opId: getItem(StorageKeys.OpenId),
@@ -163,4 +169,4 @@


}
</style>
</style>

+ 2
- 2
subpackage/after-sale/transfer-ownership/transfer-verification.vue 查看文件

@@ -87,11 +87,11 @@
// 单选数据列表 保留卡签,卡签指向人,不保留卡签,卡签指向车
const radiolist1 = reactive([{
name: "保留卡签",
val: 'WITHVEHICLE',
val: 'WITHCUSTOMER',
},
{
name: "不保留卡签",
val: "WITHCUSTOMER",
val: "WITHVEHICLE",
}
]);


+ 32
- 13
subpackage/orders/choice-product.vue 查看文件

@@ -159,22 +159,41 @@
request(etcQueryProduct, options).then((res) => {
// console.log(res.bizContent);
const data = stringToJson(res.bizContent);
console.log(data);
state.dataArray = data.list ? data.list : [];
console.log("state.dataArray", state.dataArray);
for (var i = 0; i < state.dataArray.length; i++) {
const cardTypeArr = []
for (var j = 0; j < state.dataArray[i]['releaseProductStandards']['productStandards'].cardType.length; j++) {
if (state.dataArray[i]['releaseProductStandards']['productStandards'].cardType[j] == '2') {
cardTypeArr.push('储值卡')
} else if (state.dataArray[i]['releaseProductStandards']['productStandards'].cardType[j] == '1') {
cardTypeArr.push('记账卡')
} else if (state.dataArray[i]['releaseProductStandards']['productStandards'].cardType[j] == '3') {
cardTypeArr.push('预存卡')
console.log("产品列表", data.list);
if (data.list.length > 0) {
state.dataArray = data.list ? data.list : [];
console.log("state.dataArray", state.dataArray);
for (var i = 0; i < state.dataArray.length; i++) {
const cardTypeArr = []
for (var j = 0; j < state.dataArray[i]['releaseProductStandards']['productStandards'].cardType.length; j++) {
if (state.dataArray[i]['releaseProductStandards']['productStandards'].cardType[j] == '2') {
cardTypeArr.push('储值卡')
} else if (state.dataArray[i]['releaseProductStandards']['productStandards'].cardType[j] == '1') {
cardTypeArr.push('记账卡')
} else if (state.dataArray[i]['releaseProductStandards']['productStandards'].cardType[j] == '3') {
cardTypeArr.push('预存卡')
}
}
state.dataArray[i]['releaseProductStandards']['productStandards']['cardTypeArr'] = cardTypeArr.toString()
}
state.dataArray[i]['releaseProductStandards']['productStandards']['cardTypeArr'] = cardTypeArr.toString()
} else {
uni.showModal({
title: '提示',
content: '尊敬的用户:感谢您的关注!我们正紧锣密鼓地为您准备一款全新的产品。虽然目前尚未上线,但请您耐心等待,我们将以更好的姿态与更丰富的功能,为您呈现一份超出期待的产品。',
showCancel: false,
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
uni.switchTab({
url: '/pages/index/index'
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}

console.log("state.dataArray", state.dataArray)
});
}

Loading…
取消
儲存