Commit 836d4e1a by 胡悦

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

2 parents 6459c9fa 3a5638a7
<script>
import { mapState } from "vuex";
export default {
computed: {
...mapState("audio", ["isEnd", "isStart"]),
},
onLaunch: function () {
setTimeout(() => {
plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation('landscape-primary');
}, 300)
plus.screen.lockOrientation("landscape-primary");
}, 300);
uni.setKeepScreenOn({
keepScreenOn: true,
});
},
onShow: function () { },
onHide: function () { },
onShow: function () {},
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,
});
}
......
......@@ -26,7 +26,8 @@
"path": "pages/detail/detail",
"style": {
"navigationStyle": "custom",
"onReachBottonDistance":50
"onReachBottonDistance":50,
"disableSwipeBack":true
}
},
{
......
......@@ -102,7 +102,7 @@ export default {
drawStatus: false,
finishVisible: false,
defaulePen: require('../../assets/images/media/pen.png'),
activePen: require('../../assets/images/media/pen-active.png')
activePen: require('../../assets/images/media/pen-active.png'),
};
},
onLoad(options) {
......@@ -111,6 +111,16 @@ export default {
this.id = options.id;
this.getFindSoureDetail(options.id);
},
onBackPress(options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
if (this.type != "preview") this.$refs.finish.open()
return true;
}
// 其他情况允许正常返回
return false;
},
async onReachBottom() {
this.$refs.history.getQuotationList();
},
......
......@@ -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!