mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:13:26 +08:00
【优化】优化细节及打包版本号0.7.4。
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
},
|
||||
onLaunch() {
|
||||
//版本设置
|
||||
const version = '0.7.3'
|
||||
const version = '0.7.4'
|
||||
// 开发环境才提示,生产环境不会提示
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.log(`\n %c \u6838\u5fc3\u5546\u57ce\u7cfb\u7edf\u0020\u0043\u006f\u0072\u0065\u0053\u0068\u006f\u0070 V${version} %c \u0068\u0074\u0074\u0070\u0073\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0063\u006f\u0072\u0065\u0073\u0068\u006f\u0070\u002e\u0063\u006e\u002f \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #f1f1f1; padding:5px 0;');
|
||||
|
||||
@@ -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,142 +43,144 @@
|
||||
"<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" : "wx6a73f5a508da7af2",
|
||||
"setting" : {
|
||||
"urlCheck" : true,
|
||||
"postcss" : true,
|
||||
"minified" : true,
|
||||
"es6" : true,
|
||||
"checkSiteMap" : false
|
||||
"mp-weixin": {
|
||||
"appid": "wx6a73f5a508da7af2",
|
||||
"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" ],
|
||||
"libVersion": "latest"
|
||||
|
||||
},
|
||||
"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" : {
|
||||
"appid" : "2021004107611929"
|
||||
"mp-alipay": {
|
||||
"appid": "2021004107611929"
|
||||
},
|
||||
"mp-baidu" : {}
|
||||
"mp-baidu": {}
|
||||
}
|
||||
|
||||
@@ -139,8 +139,7 @@
|
||||
<view :class="[{ 'active': index == primaryClassificationIndex }, 'menu-box classification-box']"
|
||||
v-for="(item, index) in menus" :key="index" @click="hanldePrimaryClassificationChange(index)">
|
||||
<image class="img" v-if="index != 0" :src="item.imageUrl"></image>
|
||||
<image class="img" v-else
|
||||
src="https://ts1.cn.mm.bing.net/th/id/R-C.3562db2b97df44ad0a2913367e923bc9?rik=F0gPEgEKbhChlw&riu=http%3a%2f%2fpic.962.net%2fup%2f2016-10%2f14760807179493223.gif&ehk=1QnaRGwQ3oUxW2TtYQHyQM5fm9qkakLLshGCLtGyzE0%3d&risl=&pid=ImgRaw&r=0">
|
||||
<image class="img" v-else :src="$globalConstVars.apiFilesUrl+'/static/images/empty/noImage.jpg'">
|
||||
</image>
|
||||
<view class="name">{{ item.name }}</view>
|
||||
</view>
|
||||
@@ -178,8 +177,7 @@
|
||||
v-for="(item, index) in secondaryClassification" :key="index"
|
||||
@tap="handleMenuTapNew(item.id)">
|
||||
<view class="tit-box">
|
||||
<image class="tip" v-if="index == 1"
|
||||
src="https://ts1.cn.mm.bing.net/th/id/R-C.3562db2b97df44ad0a2913367e923bc9?rik=F0gPEgEKbhChlw&riu=http%3a%2f%2fpic.962.net%2fup%2f2016-10%2f14760807179493223.gif&ehk=1QnaRGwQ3oUxW2TtYQHyQM5fm9qkakLLshGCLtGyzE0%3d&risl=&pid=ImgRaw&r=0">
|
||||
<image class="tip" v-if="index == 1" :src="$globalConstVars.apiFilesUrl+'/static/images/empty/noImage.jpg'">
|
||||
</image>
|
||||
<text>{{ item.name }}</text>
|
||||
</view>
|
||||
@@ -418,7 +416,6 @@ export default {
|
||||
},
|
||||
handleMenuTapNew(id) {
|
||||
const _this = this;
|
||||
_this.scrollLeftSticky = 0;
|
||||
let menu = _this.menus[_this.primaryClassificationIndex].child.filter((res) => res.id == id);
|
||||
_this.needCurrentCateId = menu[0].id;
|
||||
_this.currentCateId = menu[0].id;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"AppPcUrl": "https://pc.test.pro.coreshop.cn/", //PC端访问地址
|
||||
"AppH5Url": "https://h5.test.pro.coreshop.cn/", //H5端访问地址
|
||||
"AppInterFaceUrl": "https://api.test.pro.coreshop.cn/", //接口请求地址
|
||||
"AppVersion": "CoreShopProfessional v0.7.3"
|
||||
"AppVersion": "CoreShopProfessional v0.7.4"
|
||||
},
|
||||
//redis为必须启动项,请保持redis为正常可用
|
||||
"RedisConfig": {
|
||||
|
||||
@@ -24,7 +24,7 @@ layui.define(['all'], function (exports) {
|
||||
refreshCurrPage: true, // 当跳转页面 url 与当前页 url 相同时,是否自动执行刷新
|
||||
|
||||
name: '核心商城系统',
|
||||
version: 'CoreShopProfessional v0.7.3',
|
||||
version: 'CoreShopProfessional v0.7.4',
|
||||
name: 'layuiAdmin',
|
||||
tableName: 'CoreShop', // 本地存储表名
|
||||
MOD_NAME: 'admin', // 模块事件名
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"AppPcUrl": "https://pc.test.pro.coreshop.cn/", //PC端访问地址
|
||||
"AppH5Url": "https://h5.test.pro.coreshop.cn/", //H5端访问地址
|
||||
"AppInterFaceUrl": "https://api.test.pro.coreshop.cn/", //接口请求地址
|
||||
"AppVersion": "CoreShopProfessional v0.7.3"
|
||||
"AppVersion": "CoreShopProfessional v0.7.4"
|
||||
},
|
||||
//redis为必须启动项,请保持redis为正常可用
|
||||
"RedisConfig": {
|
||||
|
||||
Reference in New Issue
Block a user