Commit e833fa1b by 前端

提示

1 parent a1c0dca7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53 * @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 09:57:40 * @LastEditTime: 2024-04-18 17:52:07
* @FilePath: \gl_tape\App.vue * @FilePath: \gl_tape\App.vue
* @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
--> -->
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
computed: { computed: {
...mapState("audio", ["isEnd", "isStart"]), ...mapState("audio", ["isEnd", "isStart"]),
}, },
onLaunch: function () { onLaunch: async function () {
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation(); //解除锁定屏幕方向 plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("landscape-primary"); plus.screen.lockOrientation("landscape-primary");
...@@ -24,11 +24,6 @@ export default { ...@@ -24,11 +24,6 @@ export default {
}); });
}, },
onShow: async function () { onShow: async function () {
const systemInfo = await uni.$api.systemApi.getMockData();
console.log(systemInfo.isCheckedUpdate, "systemInfo.isCheckedUpdate");
if (systemInfo.isCheckedUpdate) {
checkUpdate();
}
const userInfo = uni.$storage.get("userInfo") || {}; const userInfo = uni.$storage.get("userInfo") || {};
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) { if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm("userInfo"); uni.$storage.rm("userInfo");
...@@ -37,11 +32,25 @@ export default { ...@@ -37,11 +32,25 @@ export default {
url: "/pages/common/login", url: "/pages/common/login",
}); });
} }
// let version = '1.0.1' const systemInfo = await uni.$api.systemApi.getMockData();
let version = plus.runtime.version; if (systemInfo.isCheckedUpdate) {
uni.$api.commonApi.getAPPVersion().then((res) => { checkUpdate();
if (res != version && !systemInfo.isCheckedUpdate) this.$store.dispatch("openUpdateModal"); }
}); switch (uni.getSystemInfoSync().platform) {
case "android":
this.$permision.requestAndroidPermission("android.permission.RECORD_AUDIO");
this.$permision.requestAndroidPermission("android.permission.CAMERA");
break;
case "ios":
this.$permision.judgeIosPermission("record");
this.$permision.judgeIosPermission("camera");
break;
}
let version = plus.runtime.version;
uni.$api.commonApi.getAPPVersion().then((res) => {
if (res != version && !systemInfo.isCheckedUpdate) this.$store.dispatch("openUpdateModal");
});
}, },
onHide: function () { onHide: function () {
const recorderManager = uni.getRecorderManager(); const recorderManager = uni.getRecorderManager();
......
...@@ -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-16 18:48:06 * @LastEditTime: 2024-04-18 17:29:04
* @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
*/ */
...@@ -84,42 +84,42 @@ export default { ...@@ -84,42 +84,42 @@ export default {
async uploadVoice(tempFilePath) { async uploadVoice(tempFilePath) {
try { try {
const { shopMerchantId, phone } = uni.$storage.get("userInfo"), const { shopMerchantId, phone } = uni.$storage.get("userInfo"),
{ customerName, phoneNumber, salesUuid, carModel } = { customerName, phoneNumber, salesUuid, carModel } =
this.$store.state.user.customerInfo, this.$store.state.user.customerInfo,
receptionCustomerPaySourceList = this.booksList.map((item) => { receptionCustomerPaySourceList = this.booksList.map((item) => {
return { return {
id: item.id, id: item.id,
sourceType: item.id, sourceType: item.id,
sourceUrl: item.imgUrl, sourceUrl: item.imgUrl,
};
}),
params = {
carModel,
endReasonType: this.endReasonType, //原因 1.异常 0.正常
customerName,
phoneNumber,
loginPhone: phone,
salesUuid,
receptionStatus: this.receptionStatus, //接待结果 1.成交 0.战败
recordUrlList: tempFilePath,
receptionStartTime: this.receptionStartTime,
receptionEndTime: this.receptionEndTime,
receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId: shopMerchantId,
}; };
}), console.log(customerName, phoneNumber, salesUuid, carModel);
params = { if (customerName && phoneNumber && salesUuid && carModel)
carModel, uni.$api.commonApi.saveRecCustomer(params).then((res) => {
endReasonType: this.endReasonType, //原因 1.异常 0.正常 console.log(res, params);
customerName, });
phoneNumber, this.setBooks([]);
loginPhone: phone, this.$store.dispatch("clearCustomerInfo");
salesUuid, this.setReceptionStatus(1);
receptionStatus: this.receptionStatus, //接待结果 1.成交 0.战败 this.setReasonType(0);
recordUrlList: tempFilePath, uni.$storage.set("storageFile", "");
receptionStartTime: this.receptionStartTime,
receptionEndTime: this.receptionEndTime,
receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId: shopMerchantId,
};
console.log(customerName , phoneNumber,salesUuid ,carModel)
if (customerName && phoneNumber && salesUuid && carModel)
uni.$api.commonApi.saveRecCustomer(params).then((res) => {
console.log(res, params);
});
this.setBooks([]);
this.$store.dispatch("clearCustomerInfo");
this.setReceptionStatus(1);
this.setReasonType(0);
uni.$storage.set("storageFile", "");
} catch (error) { } catch (error) {
this.$store.dispatch("clearCustomerInfo"); this.$store.dispatch("clearCustomerInfo");
console.log(error) console.log(error);
} }
}, },
//开始录音 //开始录音
...@@ -128,6 +128,7 @@ export default { ...@@ -128,6 +128,7 @@ export default {
this.setAudioStart(true); this.setAudioStart(true);
this.setAudioList([]); this.setAudioList([]);
this.setAudioEnd(false); this.setAudioEnd(false);
this.initTime();
recorderManager.start({ recorderManager.start({
duration: 600000, duration: 600000,
}); });
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:39:40 * @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-16 18:31:54 * @LastEditTime: 2024-04-18 17:08:12
--> -->
<template> <template>
<view class="container" @click="handleTouchStart()"> <view class="container" @click="handleTouchStart()">
...@@ -86,14 +86,6 @@ ...@@ -86,14 +86,6 @@
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材" confirmBtnText="预览素材"
></MessageBox> ></MessageBox>
<MessageBox
ref="tipBox"
@cancel="tipCancel"
@confirm="tipConfirm"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
</view> </view>
</view> </view>
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
...@@ -107,6 +99,14 @@ ...@@ -107,6 +99,14 @@
/> />
</view> </view>
<MessageBox <MessageBox
ref="tipBox"
@cancel="tipCancel"
@confirm="tipConfirm"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
<MessageBox
:popupW="704" :popupW="704"
ref="finish" ref="finish"
content="当前操作视为强制退出接待,若需正常流程完成接待请点击“完成接待”" content="当前操作视为强制退出接待,若需正常流程完成接待请点击“完成接待”"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!