|
@@ -63,7 +63,7 @@
|
|
|
<view class="form-line"></view>
|
|
<view class="form-line"></view>
|
|
|
<view class="form-phone">联系电话:
|
|
<view class="form-phone">联系电话:
|
|
|
<text class="list-text">{{cardPhone}}</text></view>
|
|
<text class="list-text">{{cardPhone}}</text></view>
|
|
|
- <view class="form-line" style="margin-top: 381rpx;"></view>
|
|
|
|
|
|
|
+ <view class="form-line"></view>
|
|
|
<!-- <view class="uni-list-cell-db" v-if="roomType==1">预计到店:
|
|
<!-- <view class="uni-list-cell-db" v-if="roomType==1">预计到店:
|
|
|
<picker style="margin-left: 70px;margin-top: -22px;"
|
|
<picker style="margin-left: 70px;margin-top: -22px;"
|
|
|
@change="bindPickerChange" :value="index" :range="array">
|
|
@change="bindPickerChange" :value="index" :range="array">
|
|
@@ -78,6 +78,20 @@
|
|
|
<text class="jiantou">〉</text>
|
|
<text class="jiantou">〉</text>
|
|
|
</picker>
|
|
</picker>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="uni-list-cell-db" v-if="payMount>0">请选择身份:
|
|
|
|
|
+ <picker style="float: right;" @change="bindPickerChangeShen" :value="indexS" :range="arrayShen">
|
|
|
|
|
+ <view class="uni-input" style="color: rgba(0, 0, 0, 1);" v-if="indexS==0||indexS==1||indexS==2||indexS==3">{{arrayShen[indexS]}}</view>
|
|
|
|
|
+ <text class="jiantou" style="margin-top: 0px;" v-else>〉</text>
|
|
|
|
|
+ </picker>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="uni-list-cell-db" v-if="payMount>0">申请理由:
|
|
|
|
|
+ <picker style="float: right;" @change="bindPickerChangeLi" :value="indexL" :range="arrayLi">
|
|
|
|
|
+ <view class="uni-input" style="color: rgba(0, 0, 0, 1);" v-if="indexL==0||indexL==1">{{arrayLi[indexL]}}</view>
|
|
|
|
|
+ <text class="jiantou" style="margin-top: 0px;" v-else>〉</text>
|
|
|
|
|
+ </picker>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="height: 20rpx;"></view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 第三层表单 -->
|
|
<!-- 第三层表单 -->
|
|
|
<view class="third_basic">
|
|
<view class="third_basic">
|
|
@@ -202,6 +216,12 @@
|
|
|
|
|
|
|
|
array2: [''],//钟点房
|
|
array2: [''],//钟点房
|
|
|
index2: 0,
|
|
index2: 0,
|
|
|
|
|
+ //选择身份
|
|
|
|
|
+ arrayShen:['学生','学生家长','朋友','老师'],
|
|
|
|
|
+ indexS:5,
|
|
|
|
|
+ //选择理由
|
|
|
|
|
+ arrayLi:['探视','交流'],
|
|
|
|
|
+ indexL:5,
|
|
|
mayTime:'',// 预计到店时间
|
|
mayTime:'',// 预计到店时间
|
|
|
typeName:'',//户型名
|
|
typeName:'',//户型名
|
|
|
textNum:0,//输入框当前字数
|
|
textNum:0,//输入框当前字数
|
|
@@ -415,6 +435,18 @@
|
|
|
var startDate=this.startDateZ
|
|
var startDate=this.startDateZ
|
|
|
var endDate=this.endDateZ
|
|
var endDate=this.endDateZ
|
|
|
}
|
|
}
|
|
|
|
|
+ if(this.indexS==5){
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ content:"请选择身份!"
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ if(this.indexL==5){
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ content:"请选择申请理由!"
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.payUrl=''
|
|
this.payUrl=''
|
|
|
let _self = this
|
|
let _self = this
|
|
|
this.$axios.defaults.headers.common['token'] = localStorage.getItem('token');
|
|
this.$axios.defaults.headers.common['token'] = localStorage.getItem('token');
|
|
@@ -431,7 +463,9 @@
|
|
|
"reservePhone": this.cardPhone,
|
|
"reservePhone": this.cardPhone,
|
|
|
"reserveName": this.cardName,
|
|
"reserveName": this.cardName,
|
|
|
"source":this.source,
|
|
"source":this.source,
|
|
|
- "sourceId":this.sourceId
|
|
|
|
|
|
|
+ "sourceId":this.sourceId,
|
|
|
|
|
+ "identityType":this.indexS,
|
|
|
|
|
+ "reason":this.indexL,
|
|
|
}
|
|
}
|
|
|
postOrder(data).then((res) => {
|
|
postOrder(data).then((res) => {
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
@@ -537,6 +571,15 @@
|
|
|
this.mayTime = this.startDate.substring(0,11)+this.array[this.index].substring(0,5)+":00"
|
|
this.mayTime = this.startDate.substring(0,11)+this.array[this.index].substring(0,5)+":00"
|
|
|
// console.log(this.mayTime)
|
|
// console.log(this.mayTime)
|
|
|
},
|
|
},
|
|
|
|
|
+ //选择身份
|
|
|
|
|
+ bindPickerChangeShen: function(e) {
|
|
|
|
|
+ console.log('picker发送选择改变,携带值为', e.detail.value)
|
|
|
|
|
+ this.indexS = e.detail.value
|
|
|
|
|
+ },
|
|
|
|
|
+ //申请理由
|
|
|
|
|
+ bindPickerChangeLi: function(e) {
|
|
|
|
|
+ this.indexL = e.detail.value
|
|
|
|
|
+ },
|
|
|
// 输入框
|
|
// 输入框
|
|
|
bindTextAreaBlur: function (e) {
|
|
bindTextAreaBlur: function (e) {
|
|
|
this.textNum=e.detail.cursor
|
|
this.textNum=e.detail.cursor
|