Commit 328898cc by 前端

记录

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