将线路规划插件增加微信平台下判断,防止其他模式下发布失败的问题。

This commit is contained in:
jianweie code
2024-04-23 14:30:20 +08:00
parent be1b390d2f
commit 535c88b819
3 changed files with 178 additions and 173 deletions

View File

@@ -4,7 +4,7 @@
*/
//接口请求地址如果需要不部署接口端的情况下测试uni-app可以直接替换为官方测试接口https://api.demo.coreshop.cn
export const apiBaseUrl = process.env.NODE_ENV === 'development' ? 'https://api.nsts.mvccms.cn' : 'https://api.nsts.mvccms.cn';
export const apiBaseUrl = process.env.NODE_ENV === 'development' ? 'https://api.test.pro.coreshop.cn' : 'https://api.test.pro.coreshop.cn';
//项目静态资源请求地址如果使用官方的静态文件地址可以直接替换为https://files.cdn.coreshop.cn
export const apiFilesUrl = 'https://files.cdn.coreshop.cn';

View File

@@ -1,23 +1,23 @@
{
"name": "核心商城系统",
"appid": "__UNI__EAACF14",
"description": "核心商城系统CoreShop是基于uni-app框架开发的商城应用程序",
"versionName": "1.0",
"versionCode": 1,
"transformPx": false,
"app-plus": {
"name" : "核心商城系统",
"appid" : "__UNI__EAACF14",
"description" : "核心商城系统CoreShop是基于uni-app框架开发的商城应用程序",
"versionName" : "1.0",
"versionCode" : 1,
"transformPx" : false,
"app-plus" : {
/* 5+App */
"modules": {
"Payment": {},
"VideoPlayer": {},
"Maps": {}
"modules" : {
"Payment" : {},
"VideoPlayer" : {},
"Maps" : {}
},
/* */
"distribute": {
"distribute" : {
/* */
"android": {
"android" : {
/* android */
"permissions": [
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
@@ -43,140 +43,142 @@
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters": [ "armeabi-v7a", "arm64-v8a", "x86" ]
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
},
"ios": {},
"ios" : {},
/* ios */
"sdkConfigs": {
"payment": {
"weixin": {
"appid": "wx11d95cdaee6058f6"
"sdkConfigs" : {
"payment" : {
"weixin" : {
"appid" : "wx11d95cdaee6058f6"
}
},
"ad": {},
"maps": {
"amap": {
"appkey_ios": "91b94ecb48605c4e048aa1971459eca7",
"appkey_android": "91b94ecb48605c4e048aa1971459eca7"
"ad" : {},
"maps" : {
"amap" : {
"appkey_ios" : "91b94ecb48605c4e048aa1971459eca7",
"appkey_android" : "91b94ecb48605c4e048aa1971459eca7"
}
},
"oauth": {
"univerify": {}
"oauth" : {
"univerify" : {}
},
"share": {}
"share" : {}
},
"icons": {
"android": {
"hdpi": "",
"xhdpi": "",
"xxhdpi": "",
"xxxhdpi": ""
"icons" : {
"android" : {
"hdpi" : "",
"xhdpi" : "",
"xxhdpi" : "",
"xxxhdpi" : ""
},
"ios": {
"appstore": "",
"ipad": {
"app": "",
"app@2x": "",
"notification": "",
"notification@2x": "",
"proapp@2x": "",
"settings": "",
"settings@2x": "",
"spotlight": "",
"spotlight@2x": ""
"ios" : {
"appstore" : "",
"ipad" : {
"app" : "",
"app@2x" : "",
"notification" : "",
"notification@2x" : "",
"proapp@2x" : "",
"settings" : "",
"settings@2x" : "",
"spotlight" : "",
"spotlight@2x" : ""
},
"iphone": {
"app@2x": "",
"app@3x": "",
"notification@2x": "",
"notification@3x": "",
"settings@2x": "",
"settings@3x": "",
"spotlight@2x": "",
"spotlight@3x": ""
"iphone" : {
"app@2x" : "",
"app@3x" : "",
"notification@2x" : "",
"notification@3x" : "",
"settings@2x" : "",
"settings@3x" : "",
"spotlight@2x" : "",
"spotlight@3x" : ""
}
}
}
},
"splashscreen": {
"waiting": true
"splashscreen" : {
"waiting" : true
}
},
/* SDK */
"quickapp": {},
"quickapp" : {},
/* */
"mp-weixin": {
"appid": "wx6fc139d4de0b470f",
"setting": {
"urlCheck": true,
"postcss": true,
"minified": true,
"es6": true,
"checkSiteMap": false
"mp-weixin" : {
"appid" : "wx6fc139d4de0b470f",
"setting" : {
"urlCheck" : true,
"postcss" : true,
"minified" : true,
"es6" : true,
"checkSiteMap" : false
},
"plugins": {
"chooseLocation": {
"version": "1.0.10",
"provider": "wx76a9a06e5b4e693e" //这个appid不要改用默认是的[wx76a9a06e5b4e693e],这是组件自己的appid不是你小程序的appid
"plugins" : {
"chooseLocation" : {
"version" : "1.0.10",
"provider" : "wx76a9a06e5b4e693e" //这个appid不要改用默认是的[wx76a9a06e5b4e693e],这是组件自己的appid不是你小程序的appid
}
},
"permission": {
"scope.userFuzzyLocation": {
"desc": "你的位置信息将用于小程序定位"
"permission" : {
"scope.userFuzzyLocation" : {
"desc" : "你的位置信息将用于小程序定位"
},
"scope.userLocation": {
"desc": "你的位置信息将用于小程序定位"
"scope.userLocation" : {
"desc" : "你的位置信息将用于小程序定位"
}
},
"optimization": {
"subPackages": true
"optimization" : {
"subPackages" : true
},
"requiredPrivateInfos": [ "getFuzzyLocation", "chooseAddress" ]
"requiredPrivateInfos" : [ "getFuzzyLocation", "chooseAddress" ]
},
"h5": {
"title": "南山田舍",
"domain": "https://h5.demo.coreshop.cn",
"router": {
"base": "./",
"mode": "hash"
"h5" : {
"title" : "南山田舍",
"domain" : "https://h5.demo.coreshop.cn",
"router" : {
"base" : "./",
"mode" : "hash"
},
"template": "index.html",
"devServer": {
"port": 80,
"disableHostCheck": true,
"https": true
"template" : "index.html",
"devServer" : {
"port" : 80,
"disableHostCheck" : true,
"https" : true
},
"sdkConfigs": {
"maps": {
"qqmap": {
"key": "AEIBZ-H5TRI-A6VGA-5KRNA-QKKK6-JGB33"
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : "AEIBZ-H5TRI-A6VGA-5KRNA-QKKK6-JGB33"
}
}
},
"optimization": {
"treeShaking": {
"enable": false
"optimization" : {
"treeShaking" : {
"enable" : false
}
}
},
"mp-toutiao": {
"setting": {
"es6": true,
"postcss": true,
"minified": true
"mp-toutiao" : {
"setting" : {
"es6" : true,
"postcss" : true,
"minified" : true
},
"appid": ""
"appid" : ""
},
"mp-qq": {
"setting": {
"es6": true,
"postcss": true,
"minified": true
"mp-qq" : {
"setting" : {
"es6" : true,
"postcss" : true,
"minified" : true
},
"optimization": {
"subPackages": true
"optimization" : {
"subPackages" : true
}
},
"mp-alipay": {},
"mp-baidu": {}
"mp-alipay" : {
"appid" : "2021004107611929"
},
"mp-baidu" : {}
}

View File

@@ -269,13 +269,16 @@
"navigationBarTitleText": "门店列表"
}
}
],
]
// #ifdef MP-WEIXIN
,
"plugins": {
"routePlan": {
"version": "1.0.18",
"provider": "wx50b5593e81dd937a"
}
}
// #endif
},
{
"root": "pages/search",