mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 04:59:37 +08:00
描述:选择首页登录
This commit is contained in:
parent
a899b14e23
commit
d598ef54e7
@ -378,4 +378,11 @@ image {
|
||||
color: white;
|
||||
font-size: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ellipsisFont {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
white-space: nowrap;
|
||||
}
|
@ -155,6 +155,7 @@ Page({
|
||||
],
|
||||
bannerList: [],
|
||||
userDetail: {},
|
||||
parkName: '首页'
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@ -212,8 +213,13 @@ Page({
|
||||
|
||||
// 登录用户是否选择园区
|
||||
userIsPark() {
|
||||
let _this = this;
|
||||
let parkId = wx.getStorageSync('parkId');
|
||||
if (!parkId) {
|
||||
if (parkId) {
|
||||
_this.setData({
|
||||
parkName: wx.getStorageSync('parkName')
|
||||
})
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: '/pages/index/parkList/parkList',
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "中电郑州数据创新中心",
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"van-notify": "@vant/weapp/notify/index"
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
<view class="topHead">
|
||||
<image class="scanImg" src="{{IMG_NAME + '/profile/static/index/scan.png'}}" mode="aspectFill" bind:tap="jumpScan"></image>
|
||||
<view class="title">中电郑州数据创新中心</view>
|
||||
<view class="title ellipsisFont">{{parkName}}</view>
|
||||
</view>
|
||||
|
||||
<view class="loopView">
|
||||
|
@ -19,6 +19,8 @@
|
||||
}
|
||||
|
||||
.topHead .title{
|
||||
width: 320rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user