|
@@ -3,7 +3,7 @@
|
|
<view class="page" v-if="previewData">
|
|
<view class="page" v-if="previewData">
|
|
<template v-if="previewData.show_address !== false">
|
|
<template v-if="previewData.show_address !== false">
|
|
<view v-if="previewData.allZiti" class="address">
|
|
<view v-if="previewData.allZiti" class="address">
|
|
- <app-order-submit-row :show-nav="false" :no-padding="true">
|
|
|
|
|
|
+<!-- <app-order-submit-row :show-nav="false" :no-padding="true">
|
|
<view class="dir-left-nowrap px-12">
|
|
<view class="dir-left-nowrap px-12">
|
|
<view class="box-grow-1">
|
|
<view class="box-grow-1">
|
|
<app-input placeholder="请填写联系人" height="100"
|
|
<app-input placeholder="请填写联系人" height="100"
|
|
@@ -17,7 +17,7 @@
|
|
<view slot="footer">
|
|
<view slot="footer">
|
|
<image class="bottom-image" :src="appImg.common.address_bottom"></image>
|
|
<image class="bottom-image" :src="appImg.common.address_bottom"></image>
|
|
</view>
|
|
</view>
|
|
- </app-order-submit-row>
|
|
|
|
|
|
+ </app-order-submit-row> -->
|
|
</view>
|
|
</view>
|
|
<view v-else @click="navigateAddress" class="address">
|
|
<view v-else @click="navigateAddress" class="address">
|
|
<app-order-submit-row>
|
|
<app-order-submit-row>
|
|
@@ -91,7 +91,7 @@
|
|
:key="mchIndex"
|
|
:key="mchIndex"
|
|
class="mch-item">
|
|
class="mch-item">
|
|
|
|
|
|
- <view class="mch-name">{{mch.mch.name}}</view>
|
|
|
|
|
|
+ <!-- <view class="mch-name">{{mch.mch.name}}</view> -->
|
|
|
|
|
|
<!-- <view v-if="mch.show_delivery !== false" class="dir-left-nowrap cross-center delivery">
|
|
<!-- <view v-if="mch.show_delivery !== false" class="dir-left-nowrap cross-center delivery">
|
|
<view class="box-grow-1">配送方式</view>
|
|
<view class="box-grow-1">配送方式</view>
|
|
@@ -115,7 +115,7 @@
|
|
暂无门店,请选择其他配送方式
|
|
暂无门店,请选择其他配送方式
|
|
</app-order-submit-row>
|
|
</app-order-submit-row>
|
|
<app-order-submit-row v-else @click="navigateStore(mchIndex)" :show-nav="mch.mch.id == 0">
|
|
<app-order-submit-row v-else @click="navigateStore(mchIndex)" :show-nav="mch.mch.id == 0">
|
|
- <view slot="header" class="title">门店信息</view>
|
|
|
|
|
|
+ <!-- <view slot="header" class="title">门店信息</view> -->
|
|
<template v-if="mch.store">
|
|
<template v-if="mch.store">
|
|
<view class="dir-left-nowrap mb-12">
|
|
<view class="dir-left-nowrap mb-12">
|
|
<view class="box-grow-1">{{mch.store.name}}</view>
|
|
<view class="box-grow-1">{{mch.store.name}}</view>
|
|
@@ -136,7 +136,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="store-address">{{mch.store.address}}</view>
|
|
<view class="store-address">{{mch.store.address}}</view>
|
|
</template>
|
|
</template>
|
|
- <view v-else>请选择门店</view>
|
|
|
|
|
|
+ <view v-else>请选择场地</view>
|
|
</app-order-submit-row>
|
|
</app-order-submit-row>
|
|
</view>
|
|
</view>
|
|
<view v-else-if="mch.delivery.send_type == 'city' && mch.city" class="city">
|
|
<view v-else-if="mch.delivery.send_type == 'city' && mch.city" class="city">
|
|
@@ -287,9 +287,17 @@
|
|
@input="handleGoodsFormInput"
|
|
@input="handleGoodsFormInput"
|
|
@validate="handleGoodsFormValidate"
|
|
@validate="handleGoodsFormValidate"
|
|
:sign="`${mchIndex},${goodsIndex},${goodsItem.form.id}`"></app-diy-form>
|
|
:sign="`${mchIndex},${goodsIndex},${goodsItem.form.id}`"></app-diy-form>
|
|
|
|
+<!-- <view class="upload-form">
|
|
|
|
+ <view class="upload-form-title">
|
|
|
|
+ 上传报名表
|
|
|
|
+ </view>
|
|
|
|
+ <view class="Course-right">
|
|
|
|
+ <image src="../../static/image/share/img-share-right.png" mode=""></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+
|
|
</view><!-- mch item end -->
|
|
</view><!-- mch item end -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -352,6 +360,7 @@
|
|
payDataUrl: null,
|
|
payDataUrl: null,
|
|
showPayResult: true,
|
|
showPayResult: true,
|
|
payCancelUrl: null,
|
|
payCancelUrl: null,
|
|
|
|
+ date: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -423,12 +432,22 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleOrderFormInput(data, sign) {
|
|
handleOrderFormInput(data, sign) {
|
|
|
|
+ let that = this
|
|
|
|
+ uni.getStorage({
|
|
|
|
+ key: 'date',
|
|
|
|
+ success: function(res){
|
|
|
|
+ console.log(res.data)
|
|
|
|
+ that.date = res.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(this.date)
|
|
const result = [];
|
|
const result = [];
|
|
for (let i in data) {
|
|
for (let i in data) {
|
|
result[i] = {
|
|
result[i] = {
|
|
key: data[i].key,
|
|
key: data[i].key,
|
|
label: data[i].name,
|
|
label: data[i].name,
|
|
- value: data[i].value,
|
|
|
|
|
|
+ // value: data[i].value,
|
|
|
|
+ value: (data[i].label === '日期')||(data[i].label === '预约日期') ? `${this.date.date},${this.date.week}` :data[i].value,
|
|
required: data[i].is_required,
|
|
required: data[i].is_required,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
@@ -613,6 +632,15 @@
|
|
mask: true,
|
|
mask: true,
|
|
title: '提交中',
|
|
title: '提交中',
|
|
});
|
|
});
|
|
|
|
+ let formData = this.$store.state.orderSubmit.formData
|
|
|
|
+ let order_form = formData.list[0].order_form
|
|
|
|
+ for(let i=0; i<order_form.length; i++){
|
|
|
|
+ if(order_form[i].label === '预约日期' || order_form[i].label === '日期'){
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ console.log(formData)
|
|
this.$request({
|
|
this.$request({
|
|
url: this.submitUrl,
|
|
url: this.submitUrl,
|
|
method: 'post',
|
|
method: 'post',
|
|
@@ -1112,4 +1140,29 @@
|
|
background: $uni-general-color-two;
|
|
background: $uni-general-color-two;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // .upload-form{
|
|
|
|
+ // width: #{100%};
|
|
|
|
+ // height: #{101upx};
|
|
|
|
+ // background-color: #FFFFFF;
|
|
|
|
+ // padding: 0 13px;
|
|
|
|
+ // font-size: 30upx;
|
|
|
|
+ // font-family: Source Han Sans CN;
|
|
|
|
+ // font-weight: 500;
|
|
|
|
+ // color: #3D3D3D;
|
|
|
|
+ // display: flex;
|
|
|
|
+ // align-items: center;
|
|
|
|
+ // justify-content: space-between;
|
|
|
|
+ // margin-top: 20upx;
|
|
|
|
+ // .Course-right{
|
|
|
|
+ // width: 15upx;
|
|
|
|
+ // height: 28upx;
|
|
|
|
+ // display: flex;
|
|
|
|
+ // align-items: center;
|
|
|
|
+ // justify-content: center;
|
|
|
|
+ // image{
|
|
|
|
+ // width: 100%;
|
|
|
|
+ // height: 100%;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
</style>
|
|
</style>
|