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