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 @@ ...@@ -32,7 +32,7 @@
<view class="password-warn" v-if="passwordInfo.warn">{{ passwordInfo.warn }}</view> <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="password-body flex flex-direction-column" :class="passwordInfo.type == 'reset' ? 'reset' : ''">
<view class="uni-input-wrapper passwordInput"> <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> </view>
<!-- <input class="password-input" type="number" v-model="passwords.passwordsNumber" max-length="6" /> --> <!-- <input class="password-input" type="number" v-model="passwords.passwordsNumber" max-length="6" /> -->
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
name: 'Password', name: 'Password',
data() { data() {
return { return {
focused: false,
showError: false, showError: false,
showPassword: true, showPassword: true,
inputType: 'password', inputType: 'password',
...@@ -126,7 +127,9 @@ export default { ...@@ -126,7 +127,9 @@ export default {
const { phone } = uni.$storage.get('userInfo') const { phone } = uni.$storage.get('userInfo')
this.phone = phone this.phone = phone
this.getUserInfo() this.getUserInfo()
// this.passwordInfo = this.typeList[2] this.$nextTick(() => {
this.focused = true
})
}, },
filters: { filters: {
formatPhone(phone) { formatPhone(phone) {
...@@ -158,17 +161,26 @@ export default { ...@@ -158,17 +161,26 @@ export default {
staffPhone: this.phone staffPhone: this.phone
} }
if (this.passwords.passwordsNumber.length != 6) { if (this.passwords.passwordsNumber.length != 6) {
uni.showToast('请输入6位数字密码') uni.showToast({
title: '请输入6位数字密码',
icon: 'none'
})
return return
} }
// 设置密码 // 设置密码
if (this.passwordInfo.type === 'set') { if (this.passwordInfo.type === 'set') {
if (this.passwords.passwordsNumberAgain.length != 6) { if (this.passwords.passwordsNumberAgain.length != 6) {
uni.showToast('请输入6位确认数字密码') uni.showToast({
title: '请输入6位确认数字密码',
icon: 'none'
})
return return
} }
if (this.passwords.passwordsNumber != this.passwords.passwordsNumberAgain) { if (this.passwords.passwordsNumber != this.passwords.passwordsNumberAgain) {
uni.showToast('两次密码不一致') uni.showToast({
title: '两次密码不一致',
icon: 'none'
})
this.showError = true this.showError = true
return return
} }
...@@ -219,11 +231,19 @@ export default { ...@@ -219,11 +231,19 @@ export default {
title: '登录成功', title: '登录成功',
icon: 'none' icon: 'none'
}) })
this.passwordInfo.type === 'reset' && if (this.passwordInfo.type === 'reset') {
if (result.loginStatus != 1) {
// 返回状态不对就要验证码错误
return uni.showToast({
title: '验证码错误',
icon: 'none'
})
}
uni.showToast({ uni.showToast({
title: '重置密码成功', title: '重置密码成功',
icon: 'none' icon: 'none'
}) })
}
this.$emit('close') this.$emit('close')
} }
}, },
...@@ -349,13 +369,13 @@ export default { ...@@ -349,13 +369,13 @@ export default {
position: fixed; position: fixed;
left: 50%; left: 50%;
top: 50%; top: 50%;
background: #fff; background: #f5f8ff;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
border-radius: 48rpx; border-radius: 48rpx;
display: flex; display: flex;
.dailog-right { .dailog-right {
position: relative; position: relative;
padding: 128rpx 112rpx; padding: 128rpx 72rpx;
width: 1060rpx; width: 1060rpx;
.dailog-close { .dailog-close {
position: absolute; position: absolute;
...@@ -503,7 +523,10 @@ export default { ...@@ -503,7 +523,10 @@ export default {
color: #323436; color: #323436;
font-size: 28rpx; font-size: 28rpx;
} }
.uni-input-placeholder {
color: #ccc;
font-size: 36rpx;
}
.placeholder { .placeholder {
color: #ccced1; color: #ccced1;
font-size: 28rpx; font-size: 28rpx;
......
{ {
"name": "gl-tape", "name": "gl_tape",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "gl_tape",
"dependencies": { "dependencies": {
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
...@@ -998,9 +999,9 @@ ...@@ -998,9 +999,9 @@
} }
}, },
"node_modules/semver": { "node_modules/semver": {
"version": "5.0.3", "version": "5.7.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
"integrity": "sha512-5OkOBiw69xqmxOFIXwXsiY1HlE+om8nNptg1ZIf95fzcnfgOv2fLm7pmmGbRJsjJIqPpW5Kwy4wpDBTz5wQlUw==", "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
"bin": { "bin": {
"semver": "bin/semver" "semver": "bin/semver"
} }
...@@ -1034,14 +1035,14 @@ ...@@ -1034,14 +1035,14 @@
} }
}, },
"node_modules/spritesmith": { "node_modules/spritesmith": {
"version": "3.4.1", "version": "3.5.1",
"resolved": "https://registry.npmjs.org/spritesmith/-/spritesmith-3.4.1.tgz", "resolved": "https://registry.npmjs.org/spritesmith/-/spritesmith-3.5.1.tgz",
"integrity": "sha512-NQZ8c7bZKbtqc0n0V+vVpurV72BwziOXw8AAU/nOdrjcjgCVoy+XUoopbrAYaNfJJgK730U98SB579+YtzfUJw==", "integrity": "sha512-FrzGx9cD5SkH3Kxuk24vJJLBYHLyDskUJ2t6DSWfWkCd8+yFQAfBGVE7F0IhOpKu+aq1CZ9rgXnpaa4luIQgGg==",
"dependencies": { "dependencies": {
"concat-stream": "~1.5.1", "concat-stream": "~1.5.1",
"layout": "~2.2.0", "layout": "~2.2.0",
"pixelsmith": "^2.3.0", "pixelsmith": "^2.3.0",
"semver": "~5.0.3", "semver": "~5.7.2",
"through2": "~2.0.0" "through2": "~2.0.0"
}, },
"engines": { "engines": {
......
...@@ -193,16 +193,16 @@ export default { ...@@ -193,16 +193,16 @@ export default {
}, },
/**回店客户 */ /**回店客户 */
async reception ({ item }) { async reception ({ item }) {
const result = await this.$permision.requestAndroidPermission( // const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO" // "android.permission.RECORD_AUDIO"
); // );
if (result !== 1) { // if (result !== 1) {
uni.showToast({ // uni.showToast({
title: "为了记录语音通话,请打开录音权限", // title: "为了记录语音通话,请打开录音权限",
icon: "none", // icon: "none",
}); // });
return // return
} // }
let customer = { let customer = {
customerName: item.customerName, customerName: item.customerName,
carModel: item.carSeriesName, carModel: item.carSeriesName,
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
finishContene="当前操作是为强制退出接待,若完成客户接待请点击「下一步」。" finishContene="当前操作是为强制退出接待,若完成客户接待请点击「下一步」。"
@previewCancel="cancel" @previewCancel="cancel"
@previewClose="previewOff = false" @previewClose="previewOff = false"
class="container"
> >
<template slot="module"> <template slot="module">
<view class="module-box"> <view class="module-box">
...@@ -459,6 +460,11 @@ export default { ...@@ -459,6 +460,11 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container {
&::after{
background-image: url('@/assets/images/common/home-bg-1.webp');
}
}
.module-box { .module-box {
position: relative; position: relative;
width: 100%; width: 100%;
......
...@@ -33,7 +33,8 @@ export default { ...@@ -33,7 +33,8 @@ export default {
}, },
receptionTrack: {}, //接待记录埋点 receptionTrack: {}, //接待记录埋点
boutiqueDefaultCarBrandId: '', boutiqueDefaultCarBrandId: '',
viewKey: Date.now() viewKey: Date.now(),
boutiqueCarList:[]
}; };
}, },
mutations: { mutations: {
......
...@@ -10,7 +10,6 @@ class LogCat { ...@@ -10,7 +10,6 @@ class LogCat {
// BufferedReader = plus.android.importClass('java.io.BufferedReader') // BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream') // FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader') // InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath = '' LogPath = ''
constructor(folderName = '_zyzs_log') { constructor(folderName = '_zyzs_log') {
if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) { if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
...@@ -76,3 +75,83 @@ class LogCat { ...@@ -76,3 +75,83 @@ class LogCat {
} }
} }
export default 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 { ...@@ -4,7 +4,7 @@ export default class RecordsWorker {
async work(deviceId, data, ws) { async work(deviceId, data, ws) {
try { try {
const records = await uni.$dbManager.getRecords() const records = await uni.$dbManager.getRecords()
const msg = `记录获取成功 records -> ${records}` const msg = `记录获取成功 records -> ${JSON.stringify(records)}`
uni.$logger.local.info(msg) uni.$logger.local.info(msg)
ws.send({ code: 200, msg }) ws.send({ code: 200, msg })
} catch (error) { } catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!