Commit 6c7563bc by 李伟康

fix(日报模块): 升级版本至2.26.4并修复各类问题

- 更新manifest.json至对应版本并统一格式化配置
- 修复DailyPopup组件matchEffect触发时的筛选逻辑
- 修正subform.js中的表单值提取与多选框处理逻辑
- 调整env.js中的目标索引值从1改为3
1 parent 702a633e
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1 const index = 3
/** /**
* *
0本地 0本地
......
{ {
"name": "展业助手", "name" : "展业助手",
"appid": "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description": "", "description" : "",
"versionName": "2.26.3", "versionName" : "2.26.4",
"versionCode": 2263, "versionCode" : 2264,
"transformPx": false, "transformPx" : false,
"sassImplementationName": "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus": { "app-plus" : {
"cache": { "cache" : {
"mode": "noCache" "mode" : "noCache"
}, },
"webview": { "webview" : {
"cacheMode": "noCache" "cacheMode" : "noCache"
}, },
"bounce": "none", "bounce" : "none",
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"compatible": { "compatible" : {
"ignoreVersion": true "ignoreVersion" : true
}, },
"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" : {},
"VideoPlayer": {}, "VideoPlayer" : {},
"AudioPlayer": {}, "AudioPlayer" : {},
"SQLite": {}, "SQLite" : {},
"Maps": {}, "Maps" : {},
"Geolocation": {} "Geolocation" : {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"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\"/>",
...@@ -58,88 +58,90 @@ ...@@ -58,88 +58,90 @@
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>" "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>"
], ],
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"targetSdkVersion": 30, "targetSdkVersion" : 30,
"minSdkVersion": 21, "minSdkVersion" : 21,
"excludePermissions": ["<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>"] "excludePermissions" : [
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>"
]
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": { "ios" : {
"dSYMs": false, "dSYMs" : false,
"UIBackgroundModes": "audio" "UIBackgroundModes" : "audio"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": { "sdkConfigs" : {
"ad": {}, "ad" : {},
"speech": {}, "speech" : {},
"geolocation": { "geolocation" : {
"baidu": { "baidu" : {
"__platform__": ["android"], "__platform__" : [ "android" ],
"appkey_ios": "", "appkey_ios" : "",
"appkey_android": "rfN7u5gCi0KyCGIWWBYGXlmKrVQsKH8z" "appkey_android" : "rfN7u5gCi0KyCGIWWBYGXlmKrVQsKH8z"
} }
}, },
"maps": {} "maps" : {}
}, },
"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"
} }
}, },
"plugins": { "plugins" : {
"audio": { "audio" : {
"mp3": { "mp3" : {
"description": "Android平台录音支持MP3格式文件" "description" : "Android平台录音支持MP3格式文件"
} }
} }
} }
}, },
"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
} }
} }
} }
...@@ -53,7 +53,9 @@ export default { ...@@ -53,7 +53,9 @@ export default {
filterScene = item.baseSceneCode&& item.baseSceneCode?.length ? hasCommonElement(item.baseSceneCode, STORE_BASE_SCENE_CODE) : true filterScene = item.baseSceneCode&& item.baseSceneCode?.length ? hasCommonElement(item.baseSceneCode, STORE_BASE_SCENE_CODE) : true
flag = filterBrand && brandId && filterScene flag = filterBrand && brandId && filterScene
if(item.matchEffect ) flag = !filterBrand && !filterScene if(item.matchEffect ) {
flag = !flag
}
return flag return flag
}) })
this.updateParams(params, options || []) this.updateParams(params, options || [])
......
...@@ -531,8 +531,7 @@ function extractSelectStorageValueFromRowField(field = {}) { ...@@ -531,8 +531,7 @@ function extractSelectStorageValueFromRowField(field = {}) {
} }
return obj return obj
} }
const v = field[field.key]
const v = field.value
if (v === undefined || v === null || v === '') { if (v === undefined || v === null || v === '') {
return undefined return undefined
} }
...@@ -650,7 +649,7 @@ function resolveStorageFieldValue(field = {}, fieldValue) { ...@@ -650,7 +649,7 @@ function resolveStorageFieldValue(field = {}, fieldValue) {
return { value, storageType: 'JSON' } return { value, storageType: 'JSON' }
} }
if (field.type === 'multipleSelect') { if (field.type === 'multipleSelect') {
const value = buildMultipleSelectSubmitValue(field, fieldValue) const value = buildSelectSubmitValue(field, fieldValue)
if (value === undefined || value == null || (Array.isArray(value) && !value.length)) { if (value === undefined || value == null || (Array.isArray(value) && !value.length)) {
return { value: undefined, storageType: 'JSON' } return { value: undefined, storageType: 'JSON' }
} }
...@@ -940,7 +939,6 @@ export function buildAppCarBrandDisplayString(carInfo = {}) { ...@@ -940,7 +939,6 @@ export function buildAppCarBrandDisplayString(carInfo = {}) {
/** 从 App 形态 FormField 解析引擎 valueMap 用的值 */ /** 从 App 形态 FormField 解析引擎 valueMap 用的值 */
export function resolveAppRowFieldEngineValue(field = {}) { export function resolveAppRowFieldEngineValue(field = {}) {
if (!field?.key) return undefined if (!field?.key) return undefined
if (field.type === 'carBrandSelect') { if (field.type === 'carBrandSelect') {
const meta = field[field.key] const meta = field[field.key]
if (meta && typeof meta === 'object') { if (meta && typeof meta === 'object') {
...@@ -967,7 +965,16 @@ export function resolveAppRowFieldEngineValue(field = {}) { ...@@ -967,7 +965,16 @@ export function resolveAppRowFieldEngineValue(field = {}) {
if (isRemoteMultipleSelectField(field)) { if (isRemoteMultipleSelectField(field)) {
return resolveMultipleSelectEngineValueFromAppField(field) return resolveMultipleSelectEngineValueFromAppField(field)
} }
if(field.type == 'multipleSelect'){
const meta = field[field.key]
if (meta != null && meta.length) {
return {
id: meta.join('/'),
name: field.value
}
}
return field.value
}
return field.value return field.value
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!