Commit 122ffcee by 李伟康

commit 付款方式、凭证埋点

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