diff --git a/pages/home/info/index.js b/pages/home/info/index.js index b021378..09db639 100644 --- a/pages/home/info/index.js +++ b/pages/home/info/index.js @@ -422,9 +422,11 @@ Page({ }, 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 () { wx.navigateTo({ diff --git a/pages/withdrawal/vcheckout/index.js b/pages/withdrawal/vcheckout/index.js index 09fb6f8..2d94f75 100644 --- a/pages/withdrawal/vcheckout/index.js +++ b/pages/withdrawal/vcheckout/index.js @@ -3,6 +3,7 @@ import { getBalanceInfo, getWithdrawalList, getBankCardList, paymentOrder } from import { $wuxDialog } from '../../../components/index' const util = require('../../../utils/util') const math = require('../../../utils/math') +const storage = require('../../../utils/storage') const app = getApp() Page({ @@ -126,12 +127,16 @@ Page({ 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({ resetOnClose: true, title: '温馨提示', content: '您还没有进行企业信息认证,无法提现,现在去进行企业信息认证?', buttons: [{ + text: '取消' + }, { text: '确定', type: 'primary', onTap(e) {