소스 검색

2023年12月27日20:24:57

yxb
wq 1 년 전
부모
커밋
9a65912aa2

+ 8
- 0
pages.json 파일 보기

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

+ 4
- 0
pages/index/index.vue 파일 보기

commonQuestion(); commonQuestion();


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

+ 35
- 29
subpackage/after-sale/ETC-log-off/upload-card.vue 파일 보기

uni.$on('bluetoothLink', function (status) { uni.$on('bluetoothLink', function (status) {
queryCardSignCancellation(1, 1, 1).then((item : any) => { queryCardSignCancellation(1, 1, 1).then((item : any) => {
instructAction(item).then(value => { 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)
}) })
}) })
}) })
); );
console.log("打印指令状态"); console.log("打印指令状态");
console.log(status); 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); 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 파일 보기

<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>

Loading…
취소
저장