Commit 87758d7d by 前端

删除上传文件

1 parent 72efc9e7
<script>
import { mapState } from "vuex";
export default {
computed: {
...mapState("audio", ["isEnd", "isStart"]),
},
onLaunch: function () {
plus.screen.lockOrientation('landscape-primary')
plus.screen.lockOrientation("landscape-primary");
uni.setKeepScreenOn({
keepScreenOn: true,
});
},
onShow: function () {},
onHide: function () {},
onShow: function () {
console.log("app显示");
},
onHide: function () {
// if (this.isStart && !this.isEnd) {
// console.log("录音");
// const recorderManager = uni.getRecorderManager();
// recorderManager.stop();
// recorderManager.start({
// duration: 10000,
// });
// }
},
};
</script>
......
const target = ["ip", "dev", "uat", "prod", "preRelease"];
const index = 1;
const index = 2;
/**
*
0本地
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 11:19:26
* @LastEditTime: 2024-04-10 16:15:05
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -36,6 +36,19 @@ export default {
]),
...mapState(["user.customerInfo"]),
},
created() {
console.log("created");
},
onHide() {
console.log("隐藏");
// recorderManager.stop();
// recorderManager.start({
// duration: 10000,
// });
},
onShow() {
console.log("显示");
},
methods: {
...mapMutations("audio", [
"setReceptionStatus",
......@@ -87,9 +100,10 @@ export default {
};
this.setBooks([]);
console.log(params);
uni.$api.commonApi.saveRecCustomer(params).then((res) => {
console.log(res);
});
if (customerName && phoneNumber && salesUuid && carModel)
uni.$api.commonApi.saveRecCustomer(params).then((res) => {
console.log(res);
});
this.$store.dispatch("clearCustomerInfo");
this.endReasonType = 0;
this.setReceptionStatus(1);
......@@ -106,7 +120,7 @@ export default {
});
recorderManager.onStop(async (res) => {
if (!this.isEnd) {
recorderManager.start({
uni.getRecorderManager().start({
duration: 600000,
});
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:51
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 12:58:39
* @LastEditTime: 2024-04-10 15:08:59
* @FilePath: \gl_tape\utils\ossUploadFile\uploadFile.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -56,12 +56,12 @@ const uploadFile = function (filePath) {
if (res.statusCode != 200) {
reject(new Error("上传错误:" + JSON.stringify(res)));
}
// uni.removeSavedFile({
// filePath,
// complete: function (res) {
// console.log(res);
// }
// });
uni.removeSavedFile({
filePath,
complete: function (res) {
console.log(res);
},
});
resolve(aliyunServerURL + aliyunFileKey);
},
fail: function (err) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!