更新页面显示效果

This commit is contained in:
qianlile
2021-09-06 11:54:30 +08:00
parent 7b673421ad
commit c708b0f16f
18 changed files with 433 additions and 140 deletions

View File

@@ -2,7 +2,12 @@
Page({
data: {
userInfo:{},
isLogin:false
isLogin:false,
items:[
{ flag:'info',name:'公司简介',icon:'/icons/jianjie.png' },
{ flag:'join',name:'加入我们',icon:'/icons/join.png' },
{ flag:'address',name:'联系方式',icon:'/icons/about.png' }
]
},
getUserInfo(){
@@ -40,6 +45,16 @@ Page({
console.log(e);
},
lookMore(e){
console.log(e);
wx.navigateTo({
url: '/pages/aboutUs/index',
success(res){
res.eventChannel.emit('getInfo',e.currentTarget.dataset.info)
}
})
},
/**
* 生命周期函数--监听页面加载
*/

View File

@@ -7,13 +7,13 @@
</view>
<view wx:if="{{ isLogin === true }}" class="other">
<view class="username">{{ userInfo.nickName }}</view>
<view class="phone">
<!-- <view class="phone">
<van-button color="linear-gradient(to right, #4bb0ff, #6149f6)"
open-type='getPhoneNumber' bindgetphonenumber='getPhoneNumber'
round size="small">
绑定手机
</van-button>
</view>
</view> -->
<!-- <view class="phone">
<van-tag type="success">手机</van-tag>
<text>12345678900</text>
@@ -27,9 +27,7 @@
<view class="tips">
<van-cell-group inset>
<van-cell title="公司简介" size="large" icon='/icons/jianjie.png' is-link/>
<van-cell title="关于我们" size="large" icon='/icons/about.png' is-link/>
<van-cell title="加入我们" size="large" icon='/icons/join.png' is-link/>
<van-cell wx:for="{{ items }}" title="{{item.name}}" size="large" icon='{{ item.icon }}' bindtap="lookMore" data-info='{{ item }}' is-link/>
<van-cell title="意见反馈" size="large" icon='/icons/suggest.png' is-link
url='/pages/feedBack/feedBack' link-type='navigateTo'
/>