Commit 87758d7d by 前端

删除上传文件

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