提交法律援助和财税援助,调整我的页面
This commit is contained in:
@@ -13,6 +13,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
user: {},
|
||||
tenement: {},
|
||||
visible: false,
|
||||
},
|
||||
|
||||
@@ -62,6 +63,8 @@ Page({
|
||||
}
|
||||
this.init()
|
||||
this.getUnReadNumber()
|
||||
const tenement = wx.getStorageSync('tenement')
|
||||
this.setData({ tenement })
|
||||
},
|
||||
async init() {
|
||||
const tenement = wx.getStorageSync('tenement')
|
||||
@@ -131,5 +134,15 @@ Page({
|
||||
wx.navigateTo({
|
||||
url: '/pages/aid/finance/index',
|
||||
})
|
||||
},
|
||||
jumpToLaw() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/aid/law/index',
|
||||
})
|
||||
},
|
||||
jumpToEncyclopedia() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/encyclopedia/index',
|
||||
})
|
||||
}
|
||||
})
|
@@ -7,6 +7,7 @@
|
||||
"dot": "/components/dot/index",
|
||||
"navigator": "/components/navigator/index",
|
||||
"van-grid": "@vant/weapp/grid/index",
|
||||
"avatar": "/components/avatar/index",
|
||||
"van-grid-item": "@vant/weapp/grid-item/index"
|
||||
},
|
||||
"navigationBarTitleText": "我的",
|
||||
|
@@ -1,25 +1,39 @@
|
||||
<!--pages/my/index.wxml-->
|
||||
|
||||
<navigator title="我的" />
|
||||
<van-grid column-num="3">
|
||||
<van-grid-item icon="friends-o" text="财税援助" bind:click="jumpToFinance" />
|
||||
<van-grid-item icon="envelop-o" text="法律援助" />
|
||||
<van-grid-item icon="notes-o" text="电力百科" />
|
||||
</van-grid>
|
||||
<van-cell title="联系客服" value="" is-link bind:tap="connect" />
|
||||
<van-cell wx:if="{{!!user.isAdmin}}" title="二维码" value="" is-link bind:click="jumpToQrCode" />
|
||||
<van-cell wx:if="{{!!user.isAdmin}}" is-link bind:click="jumpToMember">
|
||||
<view slot="title">
|
||||
<view class="cellWrapper">
|
||||
<view class="text"> 成员管理 </view>
|
||||
<dot wx:if="{{dot > 0}}" number="{{dot}}" />
|
||||
|
||||
<view class="pageWrapper">
|
||||
<view class="userInfo">
|
||||
<avatar text="{{ user.nickName }}" />
|
||||
<view class="info">
|
||||
<view class="nickName"> {{ user.nickName }} </view>
|
||||
<view class="tenement"> {{ tenement.name }} </view>
|
||||
<view class="integration"> 积分: - </view>
|
||||
</view>
|
||||
</view>
|
||||
</van-cell>
|
||||
<van-cell title="发票抬头" value="" is-link bind:tap="jumpToUpdateInvoice" />
|
||||
<van-cell title="绑定企业" value="" is-link bind:tap="bindTenement" />
|
||||
<van-cell title="常见问题" value="" is-link bind:tap="jumpToQuestions" />
|
||||
<van-cell title="工作台" wx:if="{{user.workStatus}}" value="" is-link bind:tap="jumpToWorkBench" />
|
||||
<van-cell title="退出登录" value="" is-link bind:tap="logout" />
|
||||
<view style="margin-bottom: 20rpx;">
|
||||
<van-grid column-num="3">
|
||||
<van-grid-item icon="friends-o" text="财税援助" bind:click="jumpToFinance" />
|
||||
<van-grid-item icon="envelop-o" text="法律援助" bind:click="jumpToLaw" />
|
||||
<van-grid-item icon="notes-o" text="电力百科" bind:click="jumpToEncyclopedia" />
|
||||
</van-grid>
|
||||
</view>
|
||||
<van-cell title="联系客服" value="" is-link bind:tap="connect" icon="service-o" />
|
||||
<van-cell icon="qr" wx:if="{{!!user.isAdmin}}" title="二维码" value="" is-link bind:click="jumpToQrCode" />
|
||||
<van-cell icon="friends-o" wx:if="{{!!user.isAdmin}}" is-link bind:click="jumpToMember">
|
||||
<view slot="title">
|
||||
<view class="cellWrapper">
|
||||
<view class="text"> 成员管理 </view>
|
||||
<dot wx:if="{{dot > 0}}" number="{{dot}}" />
|
||||
</view>
|
||||
</view>
|
||||
</van-cell>
|
||||
<van-cell title="发票抬头" icon="discount-o" value="" is-link bind:tap="jumpToUpdateInvoice" icon="search">
|
||||
</van-cell>
|
||||
<van-cell title="绑定企业" icon="exchange" value="" is-link bind:tap="bindTenement" />
|
||||
<van-cell title="常见问题" icon="question-o" value="" is-link bind:tap="jumpToQuestions" />
|
||||
<van-cell title="工作台" icon="records-o" wx:if="{{user.workStatus}}" value="" is-link bind:tap="jumpToWorkBench" />
|
||||
<van-cell title="退出登录" icon="revoke" value="" is-link bind:tap="logout" />
|
||||
|
||||
<van-dialog id="van-dialog" />
|
||||
<van-dialog id="van-dialog" />
|
||||
</view>
|
@@ -4,3 +4,38 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.pageWrapper {
|
||||
padding: 24rpx;
|
||||
|
||||
background: linear-gradient(to bottom, var(--middle-green), #fff );
|
||||
}
|
||||
|
||||
.userInfo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 24rpx;
|
||||
background-color: #fff;
|
||||
margin-bottom: 24rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.userInfo .info {
|
||||
margin-left: 30rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.userInfo .info .nickName {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.userInfo .info .tenement {
|
||||
font-size: 28rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
|
||||
.integration {
|
||||
font-size: 28rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user