Commit 6c88280a by 前端

Merge branch 'SAAS+V4.49' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.49

2 parents 6a1e99eb 4ff931b6
No preview for this file type
......@@ -32,7 +32,7 @@
<view class="password-warn" v-if="passwordInfo.warn">{{ passwordInfo.warn }}</view>
<view class="password-body flex flex-direction-column" :class="passwordInfo.type == 'reset' ? 'reset' : ''">
<view class="uni-input-wrapper passwordInput">
<input v-model="passwords.passwordsNumber" class="uni-password-input" placeholder="请输入6位密码" type="number" :password="showPassword" maxlength="6" @input="handleInput" />
<input ref="passwordInputs" id="passWord" :focus="focused" v-model="passwords.passwordsNumber" class="uni-password-input" placeholder="请输入6位密码" type="number" :password="showPassword" maxlength="6" @input="handleInput" />
</view>
<!-- <input class="password-input" type="number" v-model="passwords.passwordsNumber" max-length="6" /> -->
......@@ -70,6 +70,7 @@ export default {
name: 'Password',
data() {
return {
focused: false,
showError: false,
showPassword: true,
inputType: 'password',
......@@ -126,7 +127,9 @@ export default {
const { phone } = uni.$storage.get('userInfo')
this.phone = phone
this.getUserInfo()
// this.passwordInfo = this.typeList[2]
this.$nextTick(() => {
this.focused = true
})
},
filters: {
formatPhone(phone) {
......@@ -158,17 +161,26 @@ export default {
staffPhone: this.phone
}
if (this.passwords.passwordsNumber.length != 6) {
uni.showToast('请输入6位数字密码')
uni.showToast({
title: '请输入6位数字密码',
icon: 'none'
})
return
}
// 设置密码
if (this.passwordInfo.type === 'set') {
if (this.passwords.passwordsNumberAgain.length != 6) {
uni.showToast('请输入6位确认数字密码')
uni.showToast({
title: '请输入6位确认数字密码',
icon: 'none'
})
return
}
if (this.passwords.passwordsNumber != this.passwords.passwordsNumberAgain) {
uni.showToast('两次密码不一致')
uni.showToast({
title: '两次密码不一致',
icon: 'none'
})
this.showError = true
return
}
......@@ -219,11 +231,19 @@ export default {
title: '登录成功',
icon: 'none'
})
this.passwordInfo.type === 'reset' &&
if (this.passwordInfo.type === 'reset') {
if (result.loginStatus != 1) {
// 返回状态不对就要验证码错误
return uni.showToast({
title: '验证码错误',
icon: 'none'
})
}
uni.showToast({
title: '重置密码成功',
icon: 'none'
})
}
this.$emit('close')
}
},
......@@ -349,13 +369,13 @@ export default {
position: fixed;
left: 50%;
top: 50%;
background: #fff;
background: #f5f8ff;
transform: translate(-50%, -50%);
border-radius: 48rpx;
display: flex;
.dailog-right {
position: relative;
padding: 128rpx 112rpx;
padding: 128rpx 72rpx;
width: 1060rpx;
.dailog-close {
position: absolute;
......@@ -503,7 +523,10 @@ export default {
color: #323436;
font-size: 28rpx;
}
.uni-input-placeholder {
color: #ccc;
font-size: 36rpx;
}
.placeholder {
color: #ccced1;
font-size: 28rpx;
......
{
"name": "gl-tape",
"name": "gl_tape",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "gl_tape",
"dependencies": {
"dayjs": "^1.11.11",
"eslint-config-prettier": "^9.1.0",
......@@ -998,9 +999,9 @@
}
},
"node_modules/semver": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz",
"integrity": "sha512-5OkOBiw69xqmxOFIXwXsiY1HlE+om8nNptg1ZIf95fzcnfgOv2fLm7pmmGbRJsjJIqPpW5Kwy4wpDBTz5wQlUw==",
"version": "5.7.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
"integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
"bin": {
"semver": "bin/semver"
}
......@@ -1034,14 +1035,14 @@
}
},
"node_modules/spritesmith": {
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/spritesmith/-/spritesmith-3.4.1.tgz",
"integrity": "sha512-NQZ8c7bZKbtqc0n0V+vVpurV72BwziOXw8AAU/nOdrjcjgCVoy+XUoopbrAYaNfJJgK730U98SB579+YtzfUJw==",
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/spritesmith/-/spritesmith-3.5.1.tgz",
"integrity": "sha512-FrzGx9cD5SkH3Kxuk24vJJLBYHLyDskUJ2t6DSWfWkCd8+yFQAfBGVE7F0IhOpKu+aq1CZ9rgXnpaa4luIQgGg==",
"dependencies": {
"concat-stream": "~1.5.1",
"layout": "~2.2.0",
"pixelsmith": "^2.3.0",
"semver": "~5.0.3",
"semver": "~5.7.2",
"through2": "~2.0.0"
},
"engines": {
......
......@@ -193,16 +193,16 @@ export default {
},
/**回店客户 */
async reception ({ item }) {
const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
);
if (result !== 1) {
uni.showToast({
title: "为了记录语音通话,请打开录音权限",
icon: "none",
});
return
}
// const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO"
// );
// if (result !== 1) {
// uni.showToast({
// title: "为了记录语音通话,请打开录音权限",
// icon: "none",
// });
// return
// }
let customer = {
customerName: item.customerName,
carModel: item.carSeriesName,
......
......@@ -10,6 +10,7 @@
finishContene="当前操作是为强制退出接待,若完成客户接待请点击「下一步」。"
@previewCancel="cancel"
@previewClose="previewOff = false"
class="container"
>
<template slot="module">
<view class="module-box">
......@@ -459,6 +460,11 @@ export default {
</script>
<style scoped lang="scss">
.container {
&::after{
background-image: url('@/assets/images/common/home-bg-1.webp');
}
}
.module-box {
position: relative;
width: 100%;
......
......@@ -33,7 +33,8 @@ export default {
},
receptionTrack: {}, //接待记录埋点
boutiqueDefaultCarBrandId: '',
viewKey: Date.now()
viewKey: Date.now(),
boutiqueCarList:[]
};
},
mutations: {
......
......@@ -10,7 +10,6 @@ class LogCat {
// BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath = ''
constructor(folderName = '_zyzs_log') {
if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
......@@ -34,7 +33,7 @@ class LogCat {
path.mkdirs() //创建父路径
}
let fos = null
let bw = null
let bw = null
try {
fos = new this.FileOutputStream(fileName, true)
bw = new this.BufferedWriter(new this.OutputStreamWriter(fos))
......@@ -76,3 +75,83 @@ class LogCat {
}
}
export default LogCat
// import { getTime } from './util'
// import { serializeIfObject } from '../utils'
// class LogCat {
// // main = plus.android.runtimeMainActivity()
// // File = plus.android.importClass('java.io.File')
// // Environment = plus.android.importClass('android.os.Environment')
// // BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
// // FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
// // OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
// // BufferedReader = plus.android.importClass('java.io.BufferedReader')
// // FileInputStream = plus.android.importClass('java.io.FileInputStream')
// // InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
// LogPath = ''
// constructor(folderName = '_zyzs_log') {
// // if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
// // this.LogPath = this.main.getExternalFilesDir(null).getPath() + folderName
// // } else {
// // this.LogPath = this.main.getFilesDir().getPath() + folderName
// // }
// // console.log('日志文件存放路径->', this.LogPath)
// }
// writeLog(tag, messages) {
// return
// let msg = serializeIfObject(messages)
// let date = getTime('YYYY-MM-DD')
// let datetime = getTime()
// //文件名
// let fileName = this.LogPath + '/' + date + '.txt'
// //写入的内容
// let content = `${datetime} [${tag}] : ${msg}\n`
// console.log(content.replace(/\n/g, ''))
// let path = new this.File(this.LogPath)
// if (!path.exists()) {
// path.mkdirs() //创建父路径
// }
// let fos = null
// let bw = null
// try {
// fos = new this.FileOutputStream(fileName, true)
// bw = new this.BufferedWriter(new this.OutputStreamWriter(fos))
// //bw.write(log);
// bw.append(content)
// } catch (e) {
// console.log('e->', e)
// } finally {
// try {
// if (bw != null) {
// bw.close() //关闭缓冲流
// fos.close() //关闭文件输出流
// }
// } catch (closeEx) {
// console.log('closeEx->', closeEx)
// }
// }
// }
// // 删除日志
// removeLogFile(fileName) {
// let file = new this.File(fileName)
// let fos = new this.FileOutputStream(fileName, true)
// fos.close()
// file.delete()
// console.log('删除------' + fileName)
// }
// // 获取所有日志文件列表
// getLogFileList() {
// let file = new this.File(this.LogPath)
// let tempList = file.listFiles()
// if (!tempList || tempList.length === 0) return []
// const list = tempList.map(file => {
// return {
// name: file.getName(),
// path: file.getPath()
// }
// })
// return list
// }
// }
// export default LogCat
......@@ -4,7 +4,7 @@ export default class RecordsWorker {
async work(deviceId, data, ws) {
try {
const records = await uni.$dbManager.getRecords()
const msg = `记录获取成功 records -> ${records}`
const msg = `记录获取成功 records -> ${JSON.stringify(records)}`
uni.$logger.local.info(msg)
ws.send({ code: 200, msg })
} catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!