1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

后端小改动

This commit is contained in:
程序员小墨 2023-03-17 01:47:20 +08:00
parent 8e99eaafa2
commit 5b98be9bf9
9 changed files with 132 additions and 5 deletions

View File

@ -5,6 +5,11 @@ startup.cmd -m standalone
----- -----
Nacos CPU 跑满问题 我提的 GitHub issue
https://github.com/alibaba/nacos/issues/10080
-----
Nacos 2.2.0.1 需要配置 Nacos 2.2.0.1 需要配置
nacos.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg= nacos.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
参考: 参考:

View File

@ -2,7 +2,7 @@ spring:
datasource: datasource:
url: jdbc:mysql://192.168.2.29:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false url: jdbc:mysql://192.168.2.29:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
username: root username: root
password: root password: 123456
cloud: cloud:
nacos: nacos:
discovery: discovery:

View File

@ -2,7 +2,7 @@ spring:
datasource: datasource:
url: jdbc:mysql://192.168.2.29:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false url: jdbc:mysql://192.168.2.29:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
username: root username: root
password: root password: 123456
cloud: cloud:
nacos: nacos:
discovery: discovery:

View File

@ -28,7 +28,8 @@
"pages/order/fill-tracking-no/index", "pages/order/fill-tracking-no/index",
"pages/order/delivery-detail/index", "pages/order/delivery-detail/index",
"pages/order/invoice/index", "pages/order/invoice/index",
"pages/usercenter/name-edit/index" "pages/usercenter/name-edit/index",
"pages/home/index"
], ],
"tabBar": { "tabBar": {
"custom": true, "custom": true,
@ -37,6 +38,10 @@
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"borderStyle": "black", "borderStyle": "black",
"list": [ "list": [
{
"pagePath": "pages/home/index",
"text": "首页"
},
{ {
"pagePath": "pages/home/home", "pagePath": "pages/home/home",
"text": "首页" "text": "首页"
@ -55,7 +60,9 @@
} }
] ]
}, },
"requiredPrivateInfos": ["chooseAddress"], "requiredPrivateInfos": [
"chooseAddress"
],
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading": "requiredComponents",
"usingComponents": {}, "usingComponents": {},
"window": { "window": {
@ -70,4 +77,4 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示" "desc": "你的位置信息将用于小程序位置接口的效果展示"
} }
} }
} }

View File

@ -2,6 +2,11 @@ export default [
{ {
icon: 'home', icon: 'home',
text: '首页', text: '首页',
url: 'pages/home/index',
},
{
icon: 'home',
text: '首页2',
url: 'pages/home/home', url: 'pages/home/home',
}, },
{ {

View File

@ -0,0 +1,71 @@
Page({
/**
* 页面的初始数据
*/
data: {
pageLoading: true,
userInfo: null,
displayUsername: "",
userGroup: "unknown",
menuItemDict: "",
debugObject: {},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,4 @@
{
"navigationBarTitleText": "首页",
"______navigationStyle": "custom"
}

View File

@ -0,0 +1,20 @@
<view style="text-align: center; color: #b9b9b9" wx:if="{{pageLoading}}">
<t-loading theme="circular" size="40rpx" text="加载中..." inherit-color />
</view>
<view>
<!-- <image src="../../image/home.jpg" style="width: 100vw; height: 41.5vw;"></image> -->
<view style="display: block; padding-left: 30px; padding-top: 12px;">
<text>欢迎你,{{ displayUsername }}</text>
</view>
<!-- <view id="menu-view">
<view class="menu-item" v-for="menuItem in filterMenuItems" :key="menuItem.id">
<view :class="{ 'add-dot': menuItem.addDot }" style="display: inline-block;">
<image :src="'../../image/icon/' + menuItem.image" class="item-image" ontap='switchTo(menuItem.switchFunc, menuItem.url)'></image>
</view>
<view>{{ menuItem.title }}</view>
</view>
</view>
<button type="primary" size="mini" ontap="toggleDot('code', true)">显示小红点</button>
<button type="primary" size="mini" ontap="toggleDot('code', false)">隐藏小红点</button>
<button type="warn" size="mini" ontap="magicButton">魔法按钮</button> -->
</view>

View File

@ -0,0 +1,15 @@
#menu-view {
display: flex;
text-align: center;
flex-wrap: wrap;
}
.menu-item {
width: 25%;
margin-top: 50px;
}
.item-image {
width: 70px;
height: 70px;
}