Commit 19345869 by 前端

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

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