Commit 328898cc by 前端

记录

1 parent 898261cc
......@@ -14,8 +14,11 @@ export default {
computed: {
...mapState("audio", ["isEnd", "isStart"]),
},
onLoad() {},
onLoad() {
},
onLaunch: async function () {
this.setAPPVersion()
setTimeout(() => {
plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("landscape-primary");
......@@ -24,6 +27,19 @@ export default {
keepScreenOn: true,
});
},
methods: {
setAPPVersion() {
let version = plus.runtime.version;
let storageVersion = uni.$storage.get("storageVersion")
console.log(storageVersion,version)
if(storageVersion != version) {
uni.$storage.rm('userInfo');
uni.$storage.rm('noSignInUuid');
}
uni.$storage.set("storageVersion",version)
},
},
onShow: async function () {
const systemInfo = await uni.$api.systemApi.getMockData();
if (systemInfo.isCheckedUpdate) {
......
......@@ -195,7 +195,7 @@ export default {
}
},
mounted () {
this.init()
this.init();
this.getRecordNum()
},
methods: {
......@@ -229,9 +229,9 @@ export default {
}
const { shopMerchantId, sceneType, phone } = uni.$storage.get("userInfo");
let recordFailList = recordFailListAll.filter(i => {
console.log(i.bussinessType, sceneType)
return i.merchantId == shopMerchantId && i.bussinessType == (sceneType == 0 ? 1 : 2) && i.loginPhone == phone
})
console.log(recordFailList);
this.recordFailList = recordFailList.reverse();
},
getRecordFail () {
......
......@@ -49,7 +49,7 @@ import { index } from "./env";
// }
Vue.prototype.$permision = permision;
import sentryInit from "@/utils/sentryConfig/sentryInit";
if (index == 5) {
if (index == 3) {
const sentry = sentryInit();
Vue.prototype.$sendSentry = function (e) {
sentry.captureException(e);
......
......@@ -21,7 +21,7 @@ export default {
voicePath: "",
timer: null,
times: 0,
timeout: 240,
timeout: 3,
reaction: 1,
};
},
......@@ -214,6 +214,7 @@ export default {
return;
}
if (this.audioInfo.audioStatus == "abnormal") {
this.setAudioInfo({ audioStatus: "end" });
this.handleSave();
return;
}
......@@ -222,7 +223,6 @@ export default {
}
let finish_timer = null;
this.setAudioInfo({ audioStatus: "end" });
//直接退出
uni.showLoading({
mask: true,
......@@ -249,9 +249,6 @@ export default {
// console.log(this.times);
this.times++;
if (this.times >= this.timeout) {
this.$refs.tipBox?.open();
}
if (this.times >= this.timeout) {
//关闭录音
this.closeAudio();
clearInterval(this.timer);
......
......@@ -19,7 +19,8 @@ export const STORAGE_OBJECTkEY = {
employeeList: "employeeList",
recordList: "recordList",
recordSuccessList: "recordSuccessList",
historyList: "historyList"
historyList: "historyList",
storageVersion: "storageVersion",
};
// export const IMG_VERSION = async () => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!