Commit 122ffcee by 李伟康

commit 付款方式、凭证埋点

1 parent a9382c62
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
* @LastEditTime: 2024-04-18 11:24:22 * @LastEditTime: 2024-04-18 11:24:22
--> -->
<template> <template>
<view class="information-entry" v-if="showPayPage"> <view
class="information-entry"
v-if="showPayPage"
>
<view class="nav-bar"> <view class="nav-bar">
<view <view
class="back" class="back"
...@@ -71,7 +74,7 @@ ...@@ -71,7 +74,7 @@
</view> </view>
</template> </template>
<script> <script>
import {uploadFile} from "@/utils/ossUploadFile/uploadFile.js"; import { uploadFile } from "@/utils/ossUploadFile/uploadFile.js";
import utils from "@/utils/utils"; import utils from "@/utils/utils";
const INFO_LIST = [ const INFO_LIST = [
{ {
...@@ -133,6 +136,7 @@ export default { ...@@ -133,6 +136,7 @@ export default {
success: async (res) => { success: async (res) => {
// await upload(res.tempFilePath) // await upload(res.tempFilePath)
let url = await uploadFile(res.tempFilePaths[0]) let url = await uploadFile(res.tempFilePaths[0])
uni.$logger.local.info(`上传付款凭证:${res.tempFilePaths[0]}`)
// this.$set( // this.$set(
// this.infoList[index], // this.infoList[index],
// "imgUrl", // "imgUrl",
...@@ -142,6 +146,7 @@ export default { ...@@ -142,6 +146,7 @@ export default {
this.setBooks(utils.deepClone(this.infoList)) this.setBooks(utils.deepClone(this.infoList))
}, },
fail: (err) => { fail: (err) => {
uni.$logger.local.error(`上传付款凭证失败:${typeof err == 'string' ? err : err.toString()}`)
console.log(err); console.log(err);
}, },
}); });
......
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
this.payInfo = newval.find(i => i.paymentType == 1) || {} this.payInfo = newval.find(i => i.paymentType == 1) || {}
this.accountInfo = newval.find(i => i.paymentType == 2) || {} this.accountInfo = newval.find(i => i.paymentType == 2) || {}
this.handleSwitchTab(newval[0]) this.handleSwitchTab(newval[0])
uni.$logger.local.info(`付款方式:${newval[0]?.title}`)
} }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!