Commit a44ca151 by 胡悦

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

2 parents ae9160fa a5890455
{ {
"name": "生意助手", "name" : "展业助手",
"appid": "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description": "", "description" : "",
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": "100", "versionCode" : "100",
"transformPx": false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus": { "app-plus" : {
"bounce": "none", "bounce" : "none",
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"screenOrientation": "landscape", "screenOrientation" : "landscape",
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules": {}, "modules" : {},
/* 应用发布信息 */ /* 应用发布信息 */
"distribute": { "distribute" : {
/* android打包配置 */ /* android打包配置 */
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
...@@ -46,34 +46,43 @@ ...@@ -46,34 +46,43 @@
] ]
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": {}, "ios" : {
"dSYMs" : false
},
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": { "sdkConfigs" : {
"ad": {} "ad" : {}
},
"icons" : {
"android" : {
"hdpi" : "static/72.png",
"xhdpi" : "static/96.png",
"xxhdpi" : "static/144.png"
}
} }
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp": {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin": { "mp-weixin" : {
"appid": "wx79d1ff39bee3d047", "appid" : "wx79d1ff39bee3d047",
"setting": { "setting" : {
"urlCheck": false "urlCheck" : false
}, },
"usingComponents": true "usingComponents" : true
}, },
"mp-alipay": { "mp-alipay" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true "usingComponents" : true
}, },
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
}, },
"vueVersion": "2" "vueVersion" : "2"
} }
...@@ -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-09 16:26:16 * @LastEditTime: 2024-04-09 17:47:43
* @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
*/ */
...@@ -12,10 +12,11 @@ import { mapMutations, mapState } from "vuex"; ...@@ -12,10 +12,11 @@ import { mapMutations, mapState } from "vuex";
export default { export default {
data() { data() {
return { return {
tipVisible: false,
voicePath: "", voicePath: "",
timer: null, timer: null,
times: 0, times: 0,
timeout: 600, //十分钟提示 timeout: 30, //十分钟提示
reaction: 10, reaction: 10,
}; };
}, },
...@@ -34,6 +35,16 @@ export default { ...@@ -34,6 +35,16 @@ export default {
}, },
methods: { methods: {
...mapMutations("audio", ["setAudioStart", "setAudioList", "setAudioEnd"]), ...mapMutations("audio", ["setAudioStart", "setAudioList", "setAudioEnd"]),
//关闭提示
tipCancel() {
this.times = 0;
this.tipVisible = false;
},
//结束提示
tipConfirm() {
this.times = 0;
this.tipVisible = false;
},
//检查缓存录音 //检查缓存录音
checkVoice() { checkVoice() {
const file = uni.$storage.get("storageFile"); const file = uni.$storage.get("storageFile");
...@@ -92,7 +103,7 @@ export default { ...@@ -92,7 +103,7 @@ export default {
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.times++; this.times++;
if (this.times >= this.timeout) { if (this.times >= this.timeout) {
console.log("弹框"); this.tipVisible = true;
} }
if (this.times >= this.reaction + this.timeout) { if (this.times >= this.reaction + this.timeout) {
//结束接待 //结束接待
...@@ -101,7 +112,6 @@ export default { ...@@ -101,7 +112,6 @@ export default {
}, 1000); }, 1000);
}, },
handleTouchStart() { handleTouchStart() {
console.log("点击");
this.times = 0; this.times = 0;
}, },
}, },
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: huyue * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 20:36:46 * @LastEditTime: 2024-04-09 17:57:46
--> -->
<template> <template>
<uni-popup <uni-popup
...@@ -143,6 +143,7 @@ export default { ...@@ -143,6 +143,7 @@ export default {
url: `/pages/informationEntry/informationEntry`, url: `/pages/informationEntry/informationEntry`,
}); });
this.close(); this.close();
this.$parent.stopAudio();
}, },
}, },
}; };
......
...@@ -6,46 +6,58 @@ ...@@ -6,46 +6,58 @@
* @LastEditTime: 2024-04-09 16:51:00 * @LastEditTime: 2024-04-09 16:51:00
--> -->
<template> <template>
<view class="detail-box"> <view class="detail-box" @click="handleTouchStart()">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="back">
class="back" <uni-icons type="left" :size="32"></uni-icons>
@click="back"
>
<uni-icons
type="left"
:size="32"
></uni-icons>
</view> </view>
</view> </view>
<tool-box <tool-box :type="type" @choose="choose" @finish="open" />
:type="type" <view :class="['view', { showView: id == 1 }]">
@choose="choose" <media_1
@finish="open" :views="mediaList"
:penSwitch="type != 'preview' && drawStatus"
/> />
<view :class="['view',{showView:id == 1}]">
<media_1 :views="mediaList" :penSwitch="type != 'preview' && drawStatus" />
</view> </view>
<view :class="['view',{showView:id == 2}]"> <view :class="['view', { showView: id == 2 }]">
<media_2 :views="mediaList" :penSwitch="type != 'preview' && drawStatus" /> <media_2
:views="mediaList"
:penSwitch="type != 'preview' && drawStatus"
/>
</view> </view>
<view :class="['view',{showView:id == 3}]"> <view :class="['view', { showView: id == 3 }]">
<media_3 :views="mediaList" :penSwitch="type != 'preview' && drawStatus" /> <media_3
:views="mediaList"
:penSwitch="type != 'preview' && drawStatus"
/>
</view> </view>
<view :class="['view',{showView:id == 4}]"> <view :class="['view', { showView: id == 4 }]">
<media_4 :views="mediaList" :penSwitch="type != 'preview' && drawStatus" /> <media_4
:views="mediaList"
:penSwitch="type != 'preview' && drawStatus"
/>
</view> </view>
<view :class="['view',{showView:id == 5}]"> <view :class="['view', { showView: id == 5 }]">
<media_5 :views="mediaList" :penSwitch="type != 'preview' && drawStatus" /> <media_5
:views="mediaList"
:penSwitch="type != 'preview' && drawStatus"
/>
</view> </view>
<view :class="['view',{showView:id == 6}]"> <view :class="['view', { showView: id == 6 }]">
<media_6 :views="mediaList" /> <media_6 :views="mediaList" />
</view> </view>
<pay-pop ref="pay"></pay-pop> <pay-pop ref="pay"></pay-pop>
<view class="pen-box"> <view class="pen-box">
<glsx-image src="media" /> <glsx-image src="media" />
</view> </view>
<!-- 完成接待弹窗 --> <MessageBox
v-if="tipVisible"
@cancel="tipCancel"
@confirm="tipConfirm"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
<MessageBox <MessageBox
v-if="messageBoxVisible" v-if="messageBoxVisible"
@cancel="done" @cancel="done"
...@@ -57,61 +69,73 @@ ...@@ -57,61 +69,73 @@
</view> </view>
</template> </template>
<script> <script>
import payPop from './components/payPop.vue'; import payPop from "./components/payPop.vue";
import ToolBox from './components/ToolBox.vue' import ToolBox from "./components/ToolBox.vue";
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import Media_1 from './components/Media_1.vue' import Media_1 from "./components/Media_1.vue";
import Media_2 from './components/Media_2.vue' import Media_2 from "./components/Media_2.vue";
import Media_3 from './components/Media_3.vue' import Media_3 from "./components/Media_3.vue";
import Media_4 from './components/Media_4.vue' import Media_4 from "./components/Media_4.vue";
import Media_5 from './components/Media_5.vue' import Media_5 from "./components/Media_5.vue";
import Media_6 from './components/Media_6.vue' import Media_6 from "./components/Media_6.vue";
import GlsxImage from '../../components/GlsxImage.vue'; import GlsxImage from "../../components/GlsxImage.vue";
export default { export default {
components: { ToolBox, payPop, Media_1, Media_2, Media_3, Media_4, Media_5, Media_6, GlsxImage }, components: {
ToolBox,
payPop,
Media_1,
Media_2,
Media_3,
Media_4,
Media_5,
Media_6,
GlsxImage,
},
mixins: [myClick], mixins: [myClick],
data () { data() {
return { return {
type: 'preview', type: "preview",
id: '', id: "",
mediaList: [], mediaList: [],
drawStatus: false, drawStatus: false,
messageBoxVisible: false messageBoxVisible: false,
}; };
}, },
onLoad (options) { onLoad(options) {
this.type = options.type this.type = options.type;
this.id = options.id this.id = options.id;
this.getFindSoureDetail(options.id) this.getFindSoureDetail(options.id);
}, },
methods: { methods: {
open () { open() {
// this.$refs.pay.show() // this.$refs.pay.show()
this.messageBoxVisible = true this.messageBoxVisible = true;
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose(e) {
this.id = e.id this.id = e.id;
this.getFindSoureDetail(e.id) this.getFindSoureDetail(e.id);
}, },
async getFindSoureDetail (id) { async getFindSoureDetail(id) {
try { try {
this.mediaList = await uni.$api.commonApi.getFindSoureDetail({ id }) || [] this.mediaList =
} catch (error) { (await uni.$api.commonApi.getFindSoureDetail({ id })) || [];
} catch (error) {}
} },
back() {
uni.navigateBack();
}, },
back () { back() {
uni.navigateBack() uni.navigateBack();
}, },
// 完成接待 // 完成接待
done() { done() {
uni.navigateBack() uni.navigateBack();
}, },
// 选择付款方式 // 选择付款方式
toPay() { toPay() {
this.$refs.pay.show() this.$refs.pay.show();
} },
}, },
}; };
</script> </script>
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* @Description: 首页 * @Description: 首页
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:39:40 * @Date: 2024-04-07 14:39:40
* @LastEditors: huyue * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 15:23:43 * @LastEditTime: 2024-04-09 17:48:55
--> -->
<template> <template>
<view class="container"> <view class="container" @click="handleTouchStart()">
<view class="left-side"> <view class="left-side">
<!-- 左侧内容 --> <!-- 左侧内容 -->
<view class="user-info"> <view class="user-info">
...@@ -68,6 +68,14 @@ ...@@ -68,6 +68,14 @@
content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」" content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」"
confirmBtnText="预览素材" confirmBtnText="预览素材"
></MessageBox> ></MessageBox>
<MessageBox
v-if="tipVisible"
@cancel="tipCancel"
@confirm="tipConfirm"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
</view> </view>
</view> </view>
</template> </template>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-09 18:20:53 * @LastEditTime: 2024-04-09 18:27:28
--> -->
<template> <template>
<view class="information-entry"> <view class="information-entry">
...@@ -65,6 +65,14 @@ ...@@ -65,6 +65,14 @@
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
<MessageBox
v-if="tipVisible"
@cancel="tipCancel"
@confirm="tipConfirm"
content="系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
</view> </view>
</template> </template>
<script> <script>
...@@ -84,7 +92,9 @@ const INFO_LIST = [ ...@@ -84,7 +92,9 @@ const INFO_LIST = [
title: "客户延保合同", title: "客户延保合同",
}, },
]; ];
import myClick from "@/mixin/click";
export default { export default {
mixins: [myClick],
data() { data() {
return { return {
infoList: INFO_LIST, infoList: INFO_LIST,
...@@ -130,6 +140,12 @@ export default { ...@@ -130,6 +140,12 @@ export default {
title: text, title: text,
}); });
}, },
watch: {
infoList: {
hander(val) {},
deep: true,
},
},
methods: { methods: {
// 上传图 // 上传图
choose(index) { choose(index) {
...@@ -160,6 +176,7 @@ export default { ...@@ -160,6 +176,7 @@ export default {
submit() { submit() {
console.log(this.formData) console.log(this.formData)
this.messageBoxVisible = false this.messageBoxVisible = false
this.stopAudio();
}, },
// 选择车型与销售 // 选择车型与销售
showPop(key) { showPop(key) {
......
static/72.png

3.75 KB

static/96.png

5.62 KB

Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!