后端小改动
This commit is contained in:
parent
8e99eaafa2
commit
5b98be9bf9
5
TODOs.md
5
TODOs.md
@ -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.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
|
||||
参考:
|
||||
|
@ -2,7 +2,7 @@ spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://192.168.2.29:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
|
||||
username: root
|
||||
password: root
|
||||
password: 123456
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
|
@ -2,7 +2,7 @@ spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://192.168.2.29:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
|
||||
username: root
|
||||
password: root
|
||||
password: 123456
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
|
@ -28,7 +28,8 @@
|
||||
"pages/order/fill-tracking-no/index",
|
||||
"pages/order/delivery-detail/index",
|
||||
"pages/order/invoice/index",
|
||||
"pages/usercenter/name-edit/index"
|
||||
"pages/usercenter/name-edit/index",
|
||||
"pages/home/index"
|
||||
],
|
||||
"tabBar": {
|
||||
"custom": true,
|
||||
@ -37,6 +38,10 @@
|
||||
"backgroundColor": "#ffffff",
|
||||
"borderStyle": "black",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/home/index",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/home/home",
|
||||
"text": "首页"
|
||||
@ -55,7 +60,9 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"requiredPrivateInfos": ["chooseAddress"],
|
||||
"requiredPrivateInfos": [
|
||||
"chooseAddress"
|
||||
],
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"usingComponents": {},
|
||||
"window": {
|
||||
@ -70,4 +77,4 @@
|
||||
"desc": "你的位置信息将用于小程序位置接口的效果展示"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -2,6 +2,11 @@ export default [
|
||||
{
|
||||
icon: 'home',
|
||||
text: '首页',
|
||||
url: 'pages/home/index',
|
||||
},
|
||||
{
|
||||
icon: 'home',
|
||||
text: '首页2',
|
||||
url: 'pages/home/home',
|
||||
},
|
||||
{
|
||||
|
71
mini-program/pages/home/index.js
Normal file
71
mini-program/pages/home/index.js
Normal 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() {
|
||||
|
||||
}
|
||||
})
|
4
mini-program/pages/home/index.json
Normal file
4
mini-program/pages/home/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "首页",
|
||||
"______navigationStyle": "custom"
|
||||
}
|
20
mini-program/pages/home/index.wxml
Normal file
20
mini-program/pages/home/index.wxml
Normal 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>
|
15
mini-program/pages/home/index.wxss
Normal file
15
mini-program/pages/home/index.wxss
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user