|
@@ -54,8 +54,8 @@
|
|
|
<u-form-item label="学员年龄" prop="age">
|
|
|
<u-input v-model="form.age" placeholder=" " disabled />
|
|
|
</u-form-item>
|
|
|
- <u-form-item label="学生生日" prop="birthday">
|
|
|
- <u-input v-model="form.birthday" placeholder=" " disabled />
|
|
|
+ <u-form-item label="学生生日" prop="birthday" >
|
|
|
+ <u-input v-model="form.birthday" placeholder=" " disabled @click="birthdayShow = true"/>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="手机号码" prop="phone">
|
|
|
<u-input v-model="form.phone" placeholder=" " disabled />
|
|
@@ -123,6 +123,8 @@
|
|
|
// 多选支付备注显示
|
|
|
payTypeReasonShow: false,
|
|
|
form: {
|
|
|
+ saleIsMeFlag:true,
|
|
|
+ isSignUp:0,
|
|
|
// 选中的支付方式
|
|
|
payTypeId: [],
|
|
|
// 备注
|
|
@@ -241,6 +243,8 @@
|
|
|
this.form.classId = uni.getStorageSync("defaultClass").classId
|
|
|
this.form.className = uni.getStorageSync("defaultClass").className
|
|
|
}
|
|
|
+ this.form.talkerId = uni.getStorageSync('userData').userId
|
|
|
+ this.form.talkerName = uni.getStorageSync('userData').nickName
|
|
|
},
|
|
|
onReady() {
|
|
|
this.form.coachName = uni.getStorageSync('userData').nickName
|
|
@@ -279,6 +283,13 @@
|
|
|
NET.request(API.getQrCodeInfo, {
|
|
|
orderNo
|
|
|
}, 'POST').then(res => {
|
|
|
+ if(res.data.payState==1){
|
|
|
+ this.$refs.uTips.show({
|
|
|
+ title: "订单未完成支付",
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.form.parentsName = res.data.parentsName
|
|
|
this.form.studentId = res.data.studentId
|
|
|
this.form.studentName = res.data.studentName
|
|
@@ -287,6 +298,8 @@
|
|
|
this.form.birthday = res.data.birthday
|
|
|
this.form.phone = res.data.phone
|
|
|
this.cardList = res.data.cards
|
|
|
+ this.form.venueId = res.data.venueId
|
|
|
+ this.form.venueName = res.data.venueName
|
|
|
if(this.cardList.length) {
|
|
|
this.form.cardId = this.cardList[0].id
|
|
|
this.form.cardName = this.cardList[0].cardNameTypeName
|
|
@@ -300,7 +313,7 @@
|
|
|
this.form.orderNo = res.data.orderNo
|
|
|
}).catch(error => {
|
|
|
this.$refs.uTips.show({
|
|
|
- title: error.message,
|
|
|
+ title: "订单无效",
|
|
|
type: 'warning',
|
|
|
})
|
|
|
})
|