diff --git a/yudao-ui-app/pages/member_renew/index.vue b/yudao-ui-app/pages/member_renew/index.vue index 00b61550a..08721485f 100644 --- a/yudao-ui-app/pages/member_renew/index.vue +++ b/yudao-ui-app/pages/member_renew/index.vue @@ -113,7 +113,6 @@ import store from '@/store/index'; const res = await memberGradeInfo() this.memberData = res.data this.form.userPhone = store.state.app.userInfo.mobile - this.form.userName = store.state.app.userInfo.nickName } finally{ uni.hideLoading(); } @@ -132,24 +131,28 @@ import store from '@/store/index'; * */ goPay() { - if(this.activeIndex.length){ - this.$set(this, 'pay_close', true); - const orderInfos = this.activeIndex.map((item) => { - return { - ...this.memberData[item], - gearId:this.memberData[item].id - } - }) - this.payInfo = { - userPhone: store.state.app.userInfo.mobile, - userName: this.form.userName, - orderInfos - } - }else{ - this.$util.Tips({ - title: '请选择档次套餐' - }) - } + this.$refs.uForm.validate().then(res => { + if (this.activeIndex.length) { + this.$set(this, 'pay_close', true); + const orderInfos = this.activeIndex.map((item) => { + return { + ...this.memberData[item], + gearId: this.memberData[item].id, + } + }) + this.payInfo = { + userPhone: store.state.app.userInfo.mobile, + userName: this.form.userName, + orderInfos + } + }else{ + this.$util.Tips({ + title: '请选择档次套餐' + }) + } + }).catch(errors => { + // uni.$u.toast('请检查手机号输入') + }) }, /** * 事件回调 @@ -217,7 +220,7 @@ import store from '@/store/index'; padding: 0 30rpx; background: #fff !important; } - + ::v-deep .u-form-item__body__right__message{ margin-top: 10rpx; color: #fff;