From 2416e88962617b322a3b6e2d1e6d80d44736d08a Mon Sep 17 00:00:00 2001 From: "1054425342@qq.com" <1054425342@qq.com> Date: Wed, 3 Sep 2025 11:06:40 +0800 Subject: [PATCH] fix --- components/GPT/index.vue | 9 +- pages.json | 13 + subPackages/orderQy/confrimWriteOff.vue | 900 ++++++++++++++++++++++++ subPackages/orderQy/writeOffCode.vue | 487 +++++++++++++ 4 files changed, 1406 insertions(+), 3 deletions(-) create mode 100644 subPackages/orderQy/confrimWriteOff.vue create mode 100644 subPackages/orderQy/writeOffCode.vue diff --git a/components/GPT/index.vue b/components/GPT/index.vue index 0119ce4..ed55cd5 100644 --- a/components/GPT/index.vue +++ b/components/GPT/index.vue @@ -208,10 +208,10 @@ export default { setMsgData(audioParams) console.log('开始',audioParams); this.audio(audioParams, (txt)=> { - const index = this.msgList.findIndex(it => it.request_id == e.request_id && it.type == 'reply') - console.log(1111111, txt, index) + console.log(1111111, txt, index) if (index > -1) { + console.log(11111111, this.msgList[index].content, txt) this.msgList[index].content += txt this.$nextTick(() => { this.scrollToBottom() @@ -235,6 +235,7 @@ export default { } else { const tmp = { ...e, + content: txt, pending: false } this.msgList.push(tmp) @@ -322,10 +323,12 @@ export default { audioText(text, cb) { return new Promise(async (resolve, reject) => { + if (!this.audioStatus) { reject() } + cb && cb(text) const url = await this.loadAudioUrl(text) if (!this.audioStatus) { reject() } console.log('开始播放文字', text) - cb && cb(text) + this.audioCtx = wx.createInnerAudioContext(); this.audioCtx.src = 'data:audio/wav;base64,' + url this.audioCtx.play() diff --git a/pages.json b/pages.json index a366c4a..20a1471 100644 --- a/pages.json +++ b/pages.json @@ -249,6 +249,19 @@ "navigationBarTitleText": "确认订单" } }, + { + "path": "orderQy/confrimWriteOff", + "style": { + "navigationBarTitleText": "核销订单" + } + }, + { + "path": "orderQy/writeOffCode", + "style": { + "navigationBarTitleText": "核销码" + } + }, + { "path": "memorialAlbum/index", "style": { diff --git a/subPackages/orderQy/confrimWriteOff.vue b/subPackages/orderQy/confrimWriteOff.vue new file mode 100644 index 0000000..adcc026 --- /dev/null +++ b/subPackages/orderQy/confrimWriteOff.vue @@ -0,0 +1,900 @@ + + + + + diff --git a/subPackages/orderQy/writeOffCode.vue b/subPackages/orderQy/writeOffCode.vue new file mode 100644 index 0000000..2edc86c --- /dev/null +++ b/subPackages/orderQy/writeOffCode.vue @@ -0,0 +1,487 @@ + + + + +