uniapp 购买记录状态

pull/3/head
Jruome 2023-05-29 21:16:34 +08:00
parent f98f1d5083
commit 9531301224
1 changed files with 23 additions and 20 deletions

View File

@ -113,7 +113,6 @@ import store from '@/store/index';
const res = await memberGradeInfo() const res = await memberGradeInfo()
this.memberData = res.data this.memberData = res.data
this.form.userPhone = store.state.app.userInfo.mobile this.form.userPhone = store.state.app.userInfo.mobile
this.form.userName = store.state.app.userInfo.nickName
} finally{ } finally{
uni.hideLoading(); uni.hideLoading();
} }
@ -132,12 +131,13 @@ import store from '@/store/index';
* *
*/ */
goPay() { goPay() {
if(this.activeIndex.length){ this.$refs.uForm.validate().then(res => {
if (this.activeIndex.length) {
this.$set(this, 'pay_close', true); this.$set(this, 'pay_close', true);
const orderInfos = this.activeIndex.map((item) => { const orderInfos = this.activeIndex.map((item) => {
return { return {
...this.memberData[item], ...this.memberData[item],
gearId:this.memberData[item].id gearId: this.memberData[item].id,
} }
}) })
this.payInfo = { this.payInfo = {
@ -150,6 +150,9 @@ import store from '@/store/index';
title: '请选择档次套餐' title: '请选择档次套餐'
}) })
} }
}).catch(errors => {
// uni.$u.toast('')
})
}, },
/** /**
* 事件回调 * 事件回调