Explorar el Código

2023年12月27日20:24:57

yxb
wq hace 1 año
padre
commit
9a65912aa2

+ 8
- 0
pages.json Ver fichero

@@ -860,6 +860,14 @@
"navigationBarTitleText": "储值卡转记账卡-选择详情",
"enablePullDownRefresh": false
}
},
{
"path" : "account-opening-template/account-opening-template",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
}
]
},

+ 4
- 0
pages/index/index.vue Ver fichero

@@ -349,6 +349,10 @@
commonQuestion();

// doSomething();//代办事项
// uni.navigateTo({
// url: "/subpackage/after-sale/account-opening-template/account-opening-template"
// })
})
const qq = () => {
uni.navigateToMiniProgram({

+ 35
- 29
subpackage/after-sale/ETC-log-off/upload-card.vue Ver fichero

@@ -90,14 +90,8 @@
uni.$on('bluetoothLink', function (status) {
queryCardSignCancellation(1, 1, 1).then((item : any) => {
instructAction(item).then(value => {
if (value.orderStatus === 1) {
instructAction(item)
} else {
queryConfirmSignCancellation(0).then((val : any) => {
console.log(val)
navTo("/subpackage/after-sale/ETC-log-off/log-off-result");
})
}
console.log('orderStatus=======', value.orderStatus)
})
})
})
@@ -151,28 +145,40 @@
);
console.log("打印指令状态");
console.log(status);
if (status === "9000") {
var form = {
command: data.command,
response: res.toString(),
cosRecordId: data.cosRecordId,
cardId: form.cardId,
cosType: 9 //1- 开卡. 2- 修改卡内信息 4- 卡签绑定 9- 销卡
};
const options = {
type: 2,
data: form,
method: "POST",
showLoading: true,
};
return new Promise(async (resolve, reject) => {
const res = await request(writeCardBack, options);
const data = stringToJson(res.bizContent);
var formes = {
command: data.command,
response: res.toString(),
cosRecordId: data.cosRecordId,
cardId: form.cardId,
cosType: 9 //1- 开卡. 2- 修改卡内信息 4- 卡签绑定 9- 销卡
};
const options = {
type: 2,
data: formes,
method: "POST",
showLoading: true,
};
return new Promise(async (resolve, reject) => {
const res = await request(writeCardBack, options);
const data = stringToJson(res.bizContent);
console.log('data--------------', data)
if (status === "9000") {
if (data.orderStatus === 1) {
instructAction(data)
} else {
queryConfirmSignCancellation(0).then((val : any) => {
console.log(val)
navTo("/subpackage/after-sale/ETC-log-off/log-off-result");
})
}
resolve(data);
}).catch((error) => {
reject(error);
});
}
} else {
reject("指令执行失败!");
}
}).catch((error) => {
console.log('指令执行失败', error)
reject(error);
});
});
};


+ 41
- 0
subpackage/after-sale/account-opening-template/account-opening-template.vue Ver fichero

@@ -0,0 +1,41 @@
<template>
<div></div>
</template>
<script setup lang='ts'>
const tools = require("../../../static/etcUtil/tools.js");

function downAuth() {
tools.showLoadingAlert("加载中");
console.log(uni.env.USER_DATA_PATH + '/' + '授权书.docx')
uni.downloadFile({
url: this.data.wordUrl,
filePath: uni.env.USER_DATA_PATH + '/' + '授权书.docx',
success(res) {
const filePath = res.filePath
uni.openDocument({
filePath: filePath,
fileType: 'docx',
showMenu: true, //关键点
success: function(res) {
tools.showToastAlert("打开文档成功");
},
fail: function(err) {
tools.showToastAlert("打开文档失败");
uni.navigateBack()
}
});
},
fail: function(err) {
tools.showToastAlert("下载文档失败");
console.log("err", err)
uni.navigateBack()
},
complete(res) {
tools.hideLoadingAlert();
}
});
}
</script>
<style lang='scss' scoped>

</style>

Cargando…
Cancelar
Guardar