[添加转账,提现等新功能]

This commit is contained in:
zhangmanman
2021-07-20 09:01:00 +08:00
parent bc38362878
commit c661dd0e16
75 changed files with 1759 additions and 130 deletions

View File

@@ -26,10 +26,16 @@ Page({
type : 'silver'
},
{
id : 2,
id : 1,
src : '/static/img/user_card_02.png',
color : '#192b4c',
type : 'drill'
},
{
id : 2,
src : '/static/img/user_card_01.png',
color : '#ff8f00',
type : 'balance'
}
],
autoplay: false,
@@ -77,6 +83,12 @@ Page({
*/
userInfo() {
wx.$api.user.index().then(res=>{
// 是否设置过密码缓存
wx.setStorage({
key : 'hasPaypass',
data : res.data.info.has_paypass
})
this.setData({
infos : res.data.info,
order : res.data.order,
@@ -94,6 +106,30 @@ Page({
})
},
/**
* 处理账户积分跳转
*/
swiperNav(e) {
let newType = e.currentTarget.dataset.type
if(this.data.isUser){
if(newType == "balance"){
wx.navigateTo({
url: '/pages/myBalance/myBalance'
})
return
}
wx.navigateTo({
url: "/pages/account/account?type=" + newType
})
}else{
// 去登录
wx.navigateTo({
url: "/pages/login/login"
})
}
},
/**
* 处理未登录时的转跳
*/