【优化】优化细节及打包版本号0.7.4。

This commit is contained in:
jianweie
2024-05-22 20:32:03 +08:00
parent f3f2561b10
commit cdde285c83
6 changed files with 181 additions and 182 deletions

View File

@@ -11,7 +11,7 @@
}, },
onLaunch() { onLaunch() {
//版本设置 //版本设置
const version = '0.7.3' const version = '0.7.4'
// 开发环境才提示,生产环境不会提示 // 开发环境才提示,生产环境不会提示
if (process.env.NODE_ENV === 'development') { 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;'); 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;');

View File

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

View File

@@ -139,8 +139,7 @@
<view :class="[{ 'active': index == primaryClassificationIndex }, 'menu-box classification-box']" <view :class="[{ 'active': index == primaryClassificationIndex }, 'menu-box classification-box']"
v-for="(item, index) in menus" :key="index" @click="hanldePrimaryClassificationChange(index)"> 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-if="index != 0" :src="item.imageUrl"></image>
<image class="img" v-else <image class="img" v-else :src="$globalConstVars.apiFilesUrl+'/static/images/empty/noImage.jpg'">
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> </image>
<view class="name">{{ item.name }}</view> <view class="name">{{ item.name }}</view>
</view> </view>
@@ -178,8 +177,7 @@
v-for="(item, index) in secondaryClassification" :key="index" v-for="(item, index) in secondaryClassification" :key="index"
@tap="handleMenuTapNew(item.id)"> @tap="handleMenuTapNew(item.id)">
<view class="tit-box"> <view class="tit-box">
<image class="tip" v-if="index == 1" <image class="tip" v-if="index == 1" :src="$globalConstVars.apiFilesUrl+'/static/images/empty/noImage.jpg'">
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> </image>
<text>{{ item.name }}</text> <text>{{ item.name }}</text>
</view> </view>
@@ -418,7 +416,6 @@ export default {
}, },
handleMenuTapNew(id) { handleMenuTapNew(id) {
const _this = this; const _this = this;
_this.scrollLeftSticky = 0;
let menu = _this.menus[_this.primaryClassificationIndex].child.filter((res) => res.id == id); let menu = _this.menus[_this.primaryClassificationIndex].child.filter((res) => res.id == id);
_this.needCurrentCateId = menu[0].id; _this.needCurrentCateId = menu[0].id;
_this.currentCateId = menu[0].id; _this.currentCateId = menu[0].id;

View File

@@ -18,7 +18,7 @@
"AppPcUrl": "https://pc.test.pro.coreshop.cn/", //PC端访问地址 "AppPcUrl": "https://pc.test.pro.coreshop.cn/", //PC端访问地址
"AppH5Url": "https://h5.test.pro.coreshop.cn/", //H5端访问地址 "AppH5Url": "https://h5.test.pro.coreshop.cn/", //H5端访问地址
"AppInterFaceUrl": "https://api.test.pro.coreshop.cn/", //接口请求地址 "AppInterFaceUrl": "https://api.test.pro.coreshop.cn/", //接口请求地址
"AppVersion": "CoreShopProfessional v0.7.3" "AppVersion": "CoreShopProfessional v0.7.4"
}, },
//redis为必须启动项请保持redis为正常可用 //redis为必须启动项请保持redis为正常可用
"RedisConfig": { "RedisConfig": {

View File

@@ -24,7 +24,7 @@ layui.define(['all'], function (exports) {
refreshCurrPage: true, // 当跳转页面 url 与当前页 url 相同时,是否自动执行刷新 refreshCurrPage: true, // 当跳转页面 url 与当前页 url 相同时,是否自动执行刷新
name: '核心商城系统', name: '核心商城系统',
version: 'CoreShopProfessional v0.7.3', version: 'CoreShopProfessional v0.7.4',
name: 'layuiAdmin', name: 'layuiAdmin',
tableName: 'CoreShop', // 本地存储表名 tableName: 'CoreShop', // 本地存储表名
MOD_NAME: 'admin', // 模块事件名 MOD_NAME: 'admin', // 模块事件名

View File

@@ -25,7 +25,7 @@
"AppPcUrl": "https://pc.test.pro.coreshop.cn/", //PC端访问地址 "AppPcUrl": "https://pc.test.pro.coreshop.cn/", //PC端访问地址
"AppH5Url": "https://h5.test.pro.coreshop.cn/", //H5端访问地址 "AppH5Url": "https://h5.test.pro.coreshop.cn/", //H5端访问地址
"AppInterFaceUrl": "https://api.test.pro.coreshop.cn/", //接口请求地址 "AppInterFaceUrl": "https://api.test.pro.coreshop.cn/", //接口请求地址
"AppVersion": "CoreShopProfessional v0.7.3" "AppVersion": "CoreShopProfessional v0.7.4"
}, },
//redis为必须启动项请保持redis为正常可用 //redis为必须启动项请保持redis为正常可用
"RedisConfig": { "RedisConfig": {