diff --git a/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js b/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js index 299889f9..521bb079 100644 --- a/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js +++ b/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js @@ -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'; diff --git a/CoreCms.Net.Uni-App/CoreShop/manifest.json b/CoreCms.Net.Uni-App/CoreShop/manifest.json index 89d9a6e2..97f47a6e 100644 --- a/CoreCms.Net.Uni-App/CoreShop/manifest.json +++ b/CoreCms.Net.Uni-App/CoreShop/manifest.json @@ -1,182 +1,184 @@ { - "name": "核心商城系统", - "appid": "__UNI__EAACF14", - "description": "核心商城系统(CoreShop)是基于uni-app框架开发的商城应用程序", - "versionName": "1.0", - "versionCode": 1, - "transformPx": false, - "app-plus": { - /* 5+App特有相关 */ - "modules": { - "Payment": {}, - "VideoPlayer": {}, - "Maps": {} - }, - /* 模块配置 */ - "distribute": { - /* 应用发布信息 */ - "android": { - /* android打包配置 */ - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters": [ "armeabi-v7a", "arm64-v8a", "x86" ] - }, - "ios": {}, - /* ios打包配置 */ - "sdkConfigs": { - "payment": { - "weixin": { - "appid": "wx11d95cdaee6058f6" - } + "name" : "核心商城系统", + "appid" : "__UNI__EAACF14", + "description" : "核心商城系统(CoreShop)是基于uni-app框架开发的商城应用程序", + "versionName" : "1.0", + "versionCode" : 1, + "transformPx" : false, + "app-plus" : { + /* 5+App特有相关 */ + "modules" : { + "Payment" : {}, + "VideoPlayer" : {}, + "Maps" : {} }, - "ad": {}, - "maps": { - "amap": { - "appkey_ios": "91b94ecb48605c4e048aa1971459eca7", - "appkey_android": "91b94ecb48605c4e048aa1971459eca7" - } + /* 模块配置 */ + "distribute" : { + /* 应用发布信息 */ + "android" : { + /* android打包配置 */ + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] + }, + "ios" : {}, + /* ios打包配置 */ + "sdkConfigs" : { + "payment" : { + "weixin" : { + "appid" : "wx11d95cdaee6058f6" + } + }, + "ad" : {}, + "maps" : { + "amap" : { + "appkey_ios" : "91b94ecb48605c4e048aa1971459eca7", + "appkey_android" : "91b94ecb48605c4e048aa1971459eca7" + } + }, + "oauth" : { + "univerify" : {} + }, + "share" : {} + }, + "icons" : { + "android" : { + "hdpi" : "", + "xhdpi" : "", + "xxhdpi" : "", + "xxxhdpi" : "" + }, + "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" : "" + } + } + } }, - "oauth": { - "univerify": {} - }, - "share": {} - }, - "icons": { - "android": { - "hdpi": "", - "xhdpi": "", - "xxhdpi": "", - "xxxhdpi": "" - }, - "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": "" - } + "splashscreen" : { + "waiting" : true } - } }, - "splashscreen": { - "waiting": true - } - }, - /* SDK配置 */ - "quickapp": {}, - /* 快应用特有相关 */ - "mp-weixin": { - "appid": "wx6fc139d4de0b470f", - "setting": { - "urlCheck": true, - "postcss": true, - "minified": true, - "es6": true, - "checkSiteMap": false + /* SDK配置 */ + "quickapp" : {}, + /* 快应用特有相关 */ + "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 + } + }, + "permission" : { + "scope.userFuzzyLocation" : { + "desc" : "你的位置信息将用于小程序定位" + }, + "scope.userLocation" : { + "desc" : "你的位置信息将用于小程序定位" + } + }, + "optimization" : { + "subPackages" : true + }, + "requiredPrivateInfos" : [ "getFuzzyLocation", "chooseAddress" ] }, - "plugins": { - "chooseLocation": { - "version": "1.0.10", - "provider": "wx76a9a06e5b4e693e" //这个appid不要改,用默认是的[wx76a9a06e5b4e693e],这是组件自己的appid,不是你小程序的appid - } - }, - "permission": { - "scope.userFuzzyLocation": { - "desc": "你的位置信息将用于小程序定位" - }, - "scope.userLocation": { - "desc": "你的位置信息将用于小程序定位" - } - }, - "optimization": { - "subPackages": true - }, - "requiredPrivateInfos": [ "getFuzzyLocation", "chooseAddress" ] - }, - "h5": { - "title": "南山田舍", - "domain": "https://h5.demo.coreshop.cn", - "router": { - "base": "./", - "mode": "hash" - }, - "template": "index.html", - "devServer": { - "port": 80, - "disableHostCheck": true, - "https": true - }, - "sdkConfigs": { - "maps": { - "qqmap": { - "key": "AEIBZ-H5TRI-A6VGA-5KRNA-QKKK6-JGB33" + "h5" : { + "title" : "南山田舍", + "domain" : "https://h5.demo.coreshop.cn", + "router" : { + "base" : "./", + "mode" : "hash" + }, + "template" : "index.html", + "devServer" : { + "port" : 80, + "disableHostCheck" : true, + "https" : true + }, + "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" : {} } diff --git a/CoreCms.Net.Uni-App/CoreShop/pages.json b/CoreCms.Net.Uni-App/CoreShop/pages.json index e2ed7d56..7b38afca 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages.json +++ b/CoreCms.Net.Uni-App/CoreShop/pages.json @@ -269,13 +269,16 @@ "navigationBarTitleText": "门店列表" } } - ], + ] + // #ifdef MP-WEIXIN + , "plugins": { "routePlan": { "version": "1.0.18", "provider": "wx50b5593e81dd937a" } } + // #endif }, { "root": "pages/search",