Commit 88ea08ec by 李伟康

commit 修改支付凭证

1 parent e87507e2
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</view> </view>
</template> </template>
<script> <script>
import upload 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 = [
{ {
...@@ -104,7 +104,6 @@ export default { ...@@ -104,7 +104,6 @@ export default {
watchBooksList: { watchBooksList: {
immediate: true, immediate: true,
handler (newValue) { handler (newValue) {
console.log(newValue, '===')
if (newValue.length) this.infoList = newValue if (newValue.length) this.infoList = newValue
else this.infoList = JSON.parse(JSON.stringify(INFO_LIST)) else this.infoList = JSON.parse(JSON.stringify(INFO_LIST))
}, },
...@@ -133,7 +132,7 @@ export default { ...@@ -133,7 +132,7 @@ export default {
count: 1, count: 1,
success: async (res) => { success: async (res) => {
// await upload(res.tempFilePath) // await upload(res.tempFilePath)
let url = await upload(res.tempFilePaths[0]) let url = await uploadFile(res.tempFilePaths[0])
// this.$set( // this.$set(
// this.infoList[index], // this.infoList[index],
// "imgUrl", // "imgUrl",
......
...@@ -235,6 +235,8 @@ export default { ...@@ -235,6 +235,8 @@ export default {
}, 1500); }, 1500);
}, },
back() { back() {
const detailRef = this.$refs.detail
if(detailRef.showPayPage) return detailRef.showPayPage = false
if (!this.id) return uni.navigateBack(); if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.home.finishRef.open(); if (this.type != "preview") return this.$refs.home.finishRef.open();
this.backHome(); this.backHome();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!