|
@@ -10,6 +10,14 @@
|
|
</u-checkbox>
|
|
</u-checkbox>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
|
+ <u-form-item label="训练服" prop="payTypeName">
|
|
|
|
+<!-- <text>{{form.payTypeName}}</text> -->
|
|
|
|
+ <u-checkbox-group>
|
|
|
|
+ <u-checkbox v-model="clothingChecked" name="clothingChecked" @change="clothingCheckboxChange">
|
|
|
|
+ 100元训练服
|
|
|
|
+ </u-checkbox>
|
|
|
|
+ </u-checkbox-group>
|
|
|
|
+ </u-form-item>
|
|
<!-- <u-form-item v-if="payTypeReasonShow" label="备注" prop="payTypeReason" required>
|
|
<!-- <u-form-item v-if="payTypeReasonShow" label="备注" prop="payTypeReason" required>
|
|
<u-input v-model="form.payTypeReason" placeholder="请输入支付备注" />
|
|
<u-input v-model="form.payTypeReason" placeholder="请输入支付备注" />
|
|
</u-form-item> -->
|
|
</u-form-item> -->
|
|
@@ -220,6 +228,7 @@
|
|
talkerShow: false,
|
|
talkerShow: false,
|
|
talkerList: [],
|
|
talkerList: [],
|
|
payTypeShow: false,
|
|
payTypeShow: false,
|
|
|
|
+ clothingChecked: false,
|
|
payTypeList: [],
|
|
payTypeList: [],
|
|
/*payTypeList: [
|
|
/*payTypeList: [
|
|
{
|
|
{
|
|
@@ -296,6 +305,9 @@
|
|
this.form.payTypeId.splice(itemIndex, 1)
|
|
this.form.payTypeId.splice(itemIndex, 1)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ clothingCheckboxChange(data){
|
|
|
|
+ console.log(data)
|
|
|
|
+ },
|
|
handleInputBlur(e) {
|
|
handleInputBlur(e) {
|
|
this.getQrCodeData(e)
|
|
this.getQrCodeData(e)
|
|
},
|
|
},
|
|
@@ -344,7 +356,8 @@
|
|
this.form.discountCouponId = res.data.couponList[0].id
|
|
this.form.discountCouponId = res.data.couponList[0].id
|
|
this.form.content = res.data.couponList[0].content
|
|
this.form.content = res.data.couponList[0].content
|
|
} else {
|
|
} else {
|
|
- this.form.content = '无可用优惠券'
|
|
|
|
|
|
+ this.form.discountCouponId = ""
|
|
|
|
+ this.form.content = '无可用优惠券'
|
|
}
|
|
}
|
|
this.form.orderNo = res.data.orderNo
|
|
this.form.orderNo = res.data.orderNo
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -406,6 +419,7 @@
|
|
NET.request(API.getVenueListInfo, {
|
|
NET.request(API.getVenueListInfo, {
|
|
...uni.getStorageSync('locationData'),
|
|
...uni.getStorageSync('locationData'),
|
|
}, 'POST').then(res => {
|
|
}, 'POST').then(res => {
|
|
|
|
+ console.log(res.data)
|
|
this.venueList = res.data
|
|
this.venueList = res.data
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
this.$refs.uTips.show({
|
|
this.$refs.uTips.show({
|
|
@@ -464,6 +478,7 @@
|
|
},
|
|
},
|
|
// 提交表单
|
|
// 提交表单
|
|
submitForm() {
|
|
submitForm() {
|
|
|
|
+ this.form.suitFee = this.clothingChecked
|
|
console.log(this.form);
|
|
console.log(this.form);
|
|
let message = ''
|
|
let message = ''
|
|
if(this.form.payTypeId.length == 0) {
|
|
if(this.form.payTypeId.length == 0) {
|