Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
57d941e9af
2 changed files with 11 additions and 4 deletions
  1. 8
      pages/home/info/index.js
  2. 7
      pages/withdrawal/vcheckout/index.js

8
pages/home/info/index.js

@ -422,9 +422,11 @@ Page({
}, },
goEnterpriseInfo: function () { goEnterpriseInfo: function () {
wx.navigateTo({
url: '/pages/home/enterprise/enterprise'
})
if(app.globalData.userInfo.isEnterpriseAuth){
wx.navigateTo({ url: '/pages/home/enterprise/enterprise' })
} else {
wx.navigateTo({ url: '/pages/home/certificate/index' })
}
}, },
toTab5: function () { toTab5: function () {
wx.navigateTo({ wx.navigateTo({

7
pages/withdrawal/vcheckout/index.js

@ -3,6 +3,7 @@ import { getBalanceInfo, getWithdrawalList, getBankCardList, paymentOrder } from
import { $wuxDialog } from '../../../components/index' import { $wuxDialog } from '../../../components/index'
const util = require('../../../utils/util') const util = require('../../../utils/util')
const math = require('../../../utils/math') const math = require('../../../utils/math')
const storage = require('../../../utils/storage')
const app = getApp() const app = getApp()
Page({ Page({
@ -126,12 +127,16 @@ Page({
return return
} }
// 这里进行企业认证的校验; // 这里进行企业认证的校验;
if(!app.globalData.userInfo.isEnterpriseAuth){
var enterpriseAuthTip = storage.get('EnterpriseAuth' + app.globalData.userInfo.userId)
if(!app.globalData.userInfo.isEnterpriseAuth && !enterpriseAuthTip){
storage.put('EnterpriseAuth' + app.globalData.userInfo.userId, 1)
$wuxDialog().open({ $wuxDialog().open({
resetOnClose: true, resetOnClose: true,
title: '温馨提示', title: '温馨提示',
content: '您还没有进行企业信息认证,无法提现,现在去进行企业信息认证?', content: '您还没有进行企业信息认证,无法提现,现在去进行企业信息认证?',
buttons: [{ buttons: [{
text: '取消'
}, {
text: '确定', text: '确定',
type: 'primary', type: 'primary',
onTap(e) { onTap(e) {

Loading…
Cancel
Save