添加了一些页面

This commit is contained in:
qianlile
2021-08-17 13:36:34 +08:00
parent 7c061bbb9b
commit a341927725
47 changed files with 2430 additions and 686 deletions

View File

@@ -3,17 +3,43 @@ var app = getApp();
Page({
data: {
userInfo: {},
mode: ['信息反馈', '联系客服', '关于我们']
mode: [
{ flag:'info',name:'关于我们' },
{ flag:'join',name:'加入我们' },
{ flag:'address',name:'联系方式' }
]
},
onLoad: function () {
},
getOut(){
wx.clearStorage({
wx.showModal({
cancelColor: '#ff0000',
cancelText: '取消',
confirmText: '确定',
content: '您确定要退出吗?',
showCancel: true,
success: (res) => {
wx.reLaunch({
url: '/pages/login/index',
})
if(res.confirm){
wx.clearStorage({
success: (res) => {
wx.reLaunch({
url: '/pages/login/index',
})
},
})
}
},
})
}
},
aboutus(e){
wx.navigateTo({
url: '/pages/aboutUs/index',
success(res){
res.eventChannel.emit('getInfo',e.currentTarget.dataset.data)
}
})
},
})

View File

@@ -8,9 +8,9 @@
</view>
</view>
<view class="wode_item_wrap">
<view class="wode_item" wx:for="{{mode}}">
{{item}}
<span class="arrow_wrap"></span>
<view class="wode_item" wx:for="{{mode}}" bindtap="aboutus" data-data='{{ item }}'>
{{item.name}}
<span class="arrow_wrap">></span>
</view>
</view>
<view class="wode_out" bindtap="getOut">退出</view>

View File

@@ -1,6 +1,6 @@
.personal_info {
padding: 20px 0;
background-color: #FFF;
background-color: skyblue;
}
.photo_wrap {
overflow:hidden;