Commit ae54a9a7 by 前端

缓存

1 parent 9120ea1f
...@@ -52,10 +52,10 @@ export default { ...@@ -52,10 +52,10 @@ export default {
label: "接待记录", label: "接待记录",
icon: "record", icon: "record",
}, },
{ // {
label: "积分权益", // label: "积分权益",
icon: "point", // icon: "point",
}, // },
], ],
} }
}, },
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
const res = await uni.$api.customerApi.haveCustomerAccess({ const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId merchantId
}) })
if (res && this.tabs.length == 3) this.tabs.splice(2,0,{ if (res) this.tabs.splice(2,0,{
label: "客户档案", label: "客户档案",
icon: "customer-file", icon: "customer-file",
}) })
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2 const index = 4
/** /**
* *
0本地 0本地
......
{ {
"name": "展业助手", "name" : "展业助手",
"appid": "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description": "", "description" : "",
"versionName": "2.3.0", "versionName" : "2.3.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" : {
"Camera": {}, "Camera" : {},
"Record": {}, "Record" : {},
"VideoPlayer": {}, "VideoPlayer" : {},
"AudioPlayer": {}, "AudioPlayer" : {},
"SQLite": {} "SQLite" : {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"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_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
...@@ -45,83 +45,76 @@ ...@@ -45,83 +45,76 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters": [ "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"armeabi-v7a", "targetSdkVersion" : 30
"arm64-v8a",
"x86"
],
"targetSdkVersion": 30
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": { "ios" : {
"dSYMs": false, "dSYMs" : false,
"UIBackgroundModes": "audio" "UIBackgroundModes" : "audio"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": { "sdkConfigs" : {
"ad": {}, "ad" : {},
"speech": {}, "speech" : {},
"geolocation": { "geolocation" : {
"system": { "system" : {
"__platform__": [ "__platform__" : [ "ios", "android" ]
"ios",
"android"
]
} }
} }
}, },
"icons": { "icons" : {
"android": { "android" : {
"hdpi": "static/72.png", "hdpi" : "static/72.png",
"xhdpi": "static/96.png", "xhdpi" : "static/96.png",
"xxhdpi": "static/144.png" "xxhdpi" : "static/144.png"
} }
} }
}, },
"nativePlugins": { "nativePlugins" : {
"Ba-KeepAliveSuit": { "Ba-KeepAliveSuit" : {
"__plugin_info__": { "__plugin_info__" : {
"name": "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)", "name" : "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description": "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)", "description" : "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms": "Android", "platforms" : "Android",
"url": "https://ext.dcloud.net.cn/plugin?id=11765", "url" : "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name": "uni.gltap", "android_package_name" : "uni.gltap",
"ios_bundle_id": "", "ios_bundle_id" : "",
"isCloud": true, "isCloud" : true,
"bought": 1, "bought" : 1,
"pid": "11765", "pid" : "11765",
"parameters": {} "parameters" : {}
} }
} }
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"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",
"h5": { "h5" : {
"devServer": { "devServer" : {
"port": 8080, "port" : 8080,
"https": false "https" : false
} }
} }
} }
...@@ -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: 2025-01-02 09:50:34 * @LastEditTime: 2025-01-02 17:50:40
* @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
*/ */
...@@ -35,6 +35,7 @@ export default { ...@@ -35,6 +35,7 @@ export default {
}, },
async mounted() { async mounted() {
uni.$logger.local.info(`进入接待首页!`) uni.$logger.local.info(`进入接待首页!`)
this.throttledUpdatePreRecords = utils.throttle(this.updatePreRecords.bind(this), 300)
this.checkPackage() //检查安装包 this.checkPackage() //检查安装包
this.handleCheck() // 检查更新 this.handleCheck() // 检查更新
this.handleSave(false) this.handleSave(false)
...@@ -53,11 +54,7 @@ export default { ...@@ -53,11 +54,7 @@ export default {
*/ */
changeData: { changeData: {
handler(val) { handler(val) {
console.log(val, 'val', this.audioInfo.audioStatus) this.throttledUpdatePreRecords(val)
if (this.audioInfo.audioStatus != AUDIO_STATUS.START) return
const { customerInfo, booksList, receptionStatus } = val
const params = this.getParams(customerInfo, booksList, receptionStatus)
interruptRecord.updatePreRecords(params)
}, },
deep: true deep: true
} }
...@@ -74,10 +71,15 @@ export default { ...@@ -74,10 +71,15 @@ export default {
}, },
methods: { methods: {
...mapMutations('audio', ['setReceptionStatus', 'setBooks', 'setAudioInfo']), ...mapMutations('audio', ['setReceptionStatus', 'setBooks', 'setAudioInfo']),
updatePreRecords(val) {
if (this.audioInfo.audioStatus != AUDIO_STATUS.START) return
const { customerInfo, booksList, receptionStatus } = val
const params = this.getParams(customerInfo, booksList, receptionStatus)
interruptRecord.updatePreRecords(params)
},
checkPackage() { checkPackage() {
const { deviceId: tabletSerialNumber } = uni.getDeviceInfo() const { deviceId: tabletSerialNumber } = uni.getDeviceInfo()
uni.$api.commonApi.checkAppUpload({ tabletSerialNumber }).then(res => { uni.$api.commonApi.checkAppUpload({ tabletSerialNumber }).then(res => {
console.log(res)
if (res) { if (res) {
this.getAllApply() this.getAllApply()
} }
...@@ -92,6 +94,9 @@ export default { ...@@ -92,6 +94,9 @@ export default {
const packages = plus.android.invoke(pManager, 'getInstalledPackages', 0) const packages = plus.android.invoke(pManager, 'getInstalledPackages', 0)
const total = plus.android.invoke(packages, 'size') const total = plus.android.invoke(packages, 'size')
let appInfoList = [] let appInfoList = []
if (!total) {
appInfoList = uni.$storage.get('appInfoList')
}
for (let i = 0; i < total; i++) { for (let i = 0; i < total; i++) {
try { try {
const packageInfo = plus.android.invoke(packages, 'get', i) const packageInfo = plus.android.invoke(packages, 'get', i)
...@@ -123,7 +128,8 @@ export default { ...@@ -123,7 +128,8 @@ export default {
if (appInfoList.length < 2) { if (appInfoList.length < 2) {
appInfoList = [] appInfoList = []
} }
console.log(appInfoList) uni.$storage.set('appInfoList', appInfoList)
console.log(appInfoList, 'appInfoList')
uni.$api.commonApi uni.$api.commonApi
.saveOrUpdateEmployeeAppUsage({ tabletSerialNumber, appVersion: plus.runtime.version, gameAppList: JSON.stringify(appInfoList) }) .saveOrUpdateEmployeeAppUsage({ tabletSerialNumber, appVersion: plus.runtime.version, gameAppList: JSON.stringify(appInfoList) })
.then(res => { .then(res => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-16 09:55:40 * @Date: 2024-04-16 09:55:40
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-24 15:53:41 * @LastEditTime: 2025-01-02 17:49:34
* @FilePath: \gl-tape\utils\cache\constantData.js * @FilePath: \gl-tape\utils\cache\constantData.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
*/ */
...@@ -34,5 +34,6 @@ export const STORAGE_OBJECTKEY = { ...@@ -34,5 +34,6 @@ export const STORAGE_OBJECTKEY = {
storageVersion: 'storageVersion', storageVersion: 'storageVersion',
byd_mock_data: 'byd_mock_data', byd_mock_data: 'byd_mock_data',
boutique_mock_data: 'boutique_mock_data', boutique_mock_data: 'boutique_mock_data',
findReceptionpriproConfigList: 'findReceptionpriproConfigList' findReceptionpriproConfigList: 'findReceptionpriproConfigList',
appInfoList: 'appInfoList'
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!