diff --git a/packageB/wallet/add_bank.vue b/packageB/wallet/add_bank.vue index 28aaa98..3029db7 100644 --- a/packageB/wallet/add_bank.vue +++ b/packageB/wallet/add_bank.vue @@ -115,6 +115,16 @@ export default { }); return; } + //正则判断银行卡不低于13位 + const regBank = /^[1-9]\d{12,}$/; + if(!regBank.test(this.form.bank_user_name)){ + uni.showToast({ + title: '请输入正确的银行卡号', + icon: "none", + duration: 1500, + }); + return; + } uni.$u.http .post("/api/school.newactivity.settle_log/save", { name: this.form.name, diff --git a/packageB/wallet/bank.vue b/packageB/wallet/bank.vue index 11b6732..e0274b0 100644 --- a/packageB/wallet/bank.vue +++ b/packageB/wallet/bank.vue @@ -31,19 +31,19 @@ 1、提现金额: - 本平台的提现操作默认将您当前“可提现金额”的全部款项一次性提现,暂不支持部分提现。 + 本平台的提现操作默认将您当前“可提现金额”的全部款项一次性提现,暂不支持部分提现。 2、到账时间: - 我们将在您提交有效提现申请后的T+3个工作日内处理您的请求(T为申请日)。工作日不含周末及法定节假日,我们会尽快处理,但具体到账时间以收款银行的实际处理速度为准。 + 我们将在您提交有效提现申请后的T+3个工作日内处理您的请求(T为申请日)。工作日不含周末及法定节假日,我们会尽快处理,但具体到账时间以收款银行的实际处理速度为准。 3、关于手续费: - 若您的提现账户为跨行或跨区域的对公账户,银行在处理转账时可能会收取额外的手续费。该费用由银行直接扣除,非本平台收取,具体扣费金额以您的最终实际到账金额为准。 + 若您的提现账户为跨行或跨区域的对公账户,银行在处理转账时可能会收取额外的手续费。该费用由银行直接扣除,非本平台收取,具体扣费金额以您的最终实际到账金额为准。 4、信息准确性: - 请务必确保您填写的持卡人姓名、银行卡号、开户银行等信息完全正确。因您填写信息错误导致的任何资金损失、提现延迟或失败,全部责任由您自行承担。 + 请务必确保您填写的持卡人姓名、银行卡号、开户银行等信息完全正确。因您填写信息错误导致的任何资金损失、提现延迟或失败,全部责任由您自行承担。 5、联系客服: diff --git a/pages/my/index.vue b/pages/my/index.vue index 8a09ebd..ac243fc 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -12,7 +12,8 @@ style="display: flex;align-items: center;;margin-bottom: 20rpx;font-weight: 800;font-size: 34rpx;color: #181818;"> {{ userName }} - + @@ -157,8 +158,9 @@ subdesc='以了解详细内容。如您同意,请点击“同意并继续”并开始使用我们的服务。' top_img='https://naweigetetest2.hschool.com.cn/dyqc/dyqclogo.png' color="#C9935C" hideTabBar="true" :onNeed='false' :other="other" :title_style="'padding-top:60rpx;'" - open_type='agreePrivacyAuthorization'> + open_type='agreePrivacyAuthorization' @agree_call="miniLogin()"> + 为您授权登陆,授权成功后可参加多种户外活动 @@ -188,14 +190,14 @@ ...mapActions(['number']), data() { return { - shop_auth_info:{}, + shop_auth_info: {}, settleInfo: {}, tabBarShow: null, topHeight: '', hotList: [], showPopup: false, userName: '请登录', - bio:'', + bio: '', actives: 0, pushActives: 0, show: false, @@ -340,9 +342,9 @@ let openidInfo = uni.getStorageSync('openidInfo'); let _this = this; - if (!openidInfo) { - _this.miniLogin(); - } + // if (!openidInfo) { + // _this.miniLogin(); + // } this.number(); this.getinit(); this.getHotList(); @@ -408,7 +410,7 @@ }); }, iszhuliren() { - if(this.shop_auth_info.auth_status==1){ + if (this.shop_auth_info.auth_status == 1) { uni.$u.toast('您已是主理人!'); return; } @@ -642,8 +644,7 @@ // 获取手机号 getPhoneNumber(e) { var _this = this; - _this.miniLogin() - console.log('e.detail', e.detail) + //_this.miniLogin() if (!e.detail.iv) { uni.showToast({ title: '授权失败,请重新授权', @@ -663,23 +664,32 @@ // }) // _this.miniLogin(); // return false; - // } + // } + var openidInfo = uni.getStorageSync('openidInfo'); - if (!openidInfo) { + //console.log(333) + //if (!openidInfo) { _this.miniLogin(); - uni.showToast({ - title: '未获取到信息,请重新点击授权', - icon: 'none', - duration: 2000 - }) + uni.showLoading({ + title: '获取信息中...' + }); + setTimeout(() => { + uni.hideLoading(); + _this.decodeMobile({ + encryptedData: e.detail.encryptedData, + iv: e.detail.iv, + sessionKey: openidInfo.session_key, + }, openidInfo); + }, 2000) + // uni.showToast({ + // title: '未获取到信息,请重新点击授权', + // icon: 'none', + // duration: 2000 + // }) // this.$api.toast('未获取到信息,请重新点击授权'); return false; - } - _this.decodeMobile({ - encryptedData: e.detail.encryptedData, - iv: e.detail.iv, - sessionKey: openidInfo.session_key, - }, openidInfo); + //} + }, //解析手机号 decodeMobile(data, openidInfo) { @@ -760,7 +770,7 @@ this.pushActives = res.data.activity_info.release_num; this.settleInfo = res.data.settle_info; - + this.shop_auth_info = res.data.shop_auth_info; uni.setStorageSync("niName", res.data.user_info.nickname) @@ -830,7 +840,7 @@ // }) // console.log(this.token) if (!this.token) { - this.miniLogin() + //this.miniLogin() this.showPopup = true } else { uni.navigateTo({ diff --git a/uni_modules/lsl-protocol-popup/components/lsl-protocol-popup/lsl-protocol-popup.vue b/uni_modules/lsl-protocol-popup/components/lsl-protocol-popup/lsl-protocol-popup.vue index 25f7f8c..0c3ec62 100644 --- a/uni_modules/lsl-protocol-popup/components/lsl-protocol-popup/lsl-protocol-popup.vue +++ b/uni_modules/lsl-protocol-popup/components/lsl-protocol-popup/lsl-protocol-popup.vue @@ -230,6 +230,7 @@ // 授权手机号 getphonenumber(e){ console.log('// 授权手机号',e) + this.$emit('agree_call'); this.close(); // if(this.open_type.indexOf('getPhoneNumber')>=0){ // if(e.detail.errMsg == 'getPhoneNumber:ok'){