| | |
| | | <view class="list-item-row" @click="show2 = true"> |
| | | <view class="list-item-row-label">用车时间<b>*</b></view> |
| | | <view class="list-item-row-val"> |
| | | <text :style="{ color: form.startDate ? '#111111' : '' }">{{form.startDate ? form.startDate + ' 至 ' + form.endDate + ' (' + form.priceNum1 + '天) ' : '请选择'}}</text> |
| | | <text :style="{ color: form.startDate ? '#111111' : '' }">{{form.startDate ? form.startDate + ' 至 ' + form.endDate + ' (' + form.totalDays + '天) ' : '请选择'}}</text> |
| | | <u-icon name="arrow-right" color="#111111" size="16"></u-icon> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="list-item-cate"> |
| | | <view :class="item.id === form.carType ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in ff" :key="index" @click="form.carType = item.id">{{item.name}}</view> |
| | | </view> |
| | | <view class="list-item-row"> |
| | | <view class="list-item-row-label">天数</view> |
| | | <view class="list-item-row" v-if="form.carType==0"> |
| | | <view class="list-item-row-label">用车天数</view> |
| | | <view class="list-item-row-val"> |
| | | <input type="number" v-model="form.priceNum1" disabled placeholder="请输入" /> |
| | | <input type="number" v-model="form.totalDays" disabled placeholder="" /> |
| | | <text>天</text> |
| | | </view> |
| | | </view> |
| | | <view class="list-item-row" v-if="form.carType==1"> |
| | | <view class="list-item-row-label">用车次数<b>*</b></view> |
| | | <view class="list-item-row-val"> |
| | | <input type="number" v-model="form.priceNum1" placeholder="请输入" /> |
| | | <text>次</text> |
| | | </view> |
| | | </view> |
| | | <view class="list-item-row"> |
| | |
| | | <text>元</text> |
| | | </view> |
| | | </view> |
| | | <view class="footer-bottom"> |
| | | <div class="footer-bottom-btn" @click="submit"> |
| | | <text>立即下单</text> |
| | | <text>(服务完成后付款)</text> |
| | | <view class="footer-bottom"> |
| | | <div class="footer-bottom-btn" @click="submit" > |
| | | <text>{{form.id?'确认修改':'立即下单'}}</text> |
| | | <text v-if="!form.id">(服务完成后付款)</text> |
| | | </div> |
| | | </view> |
| | | <view style="width: 100%; height: env(safe-area-inset-bottom);"></view> |
| | |
| | | categoryName: '', |
| | | wayInfoDTOList: [], |
| | | priceNum1: '', |
| | | totalDays:null, |
| | | priceNum2: 1, |
| | | transportNum: '', |
| | | transportTypeId: '', |
| | |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.info = res.data |
| | | console.log(res.data.totalDays) |
| | | for (const key in this.form) { |
| | | this.form[key] = res.data[key] |
| | | } |
| | |
| | | this.form.endDate = res.endDate |
| | | this.form.lat = res.lat |
| | | this.form.lgt = res.lgt |
| | | this.form.priceNum1 = res.days |
| | | this.form.totalDays = res.days |
| | | this.form.priceNum1=res.days |
| | | this.form.categoryId = res.categoryId |
| | | this.form.categoryName = res.categoryName |
| | | this.form.location = res.location |
| | |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg','AA97cHjvlPiNO4viMkVe4JifCf9TD5b5Eb7s6El3VS8'], |
| | | success(res) { |
| | | if(that.form.carType == 0){ |
| | | that.form.priceNum1 = that.form.totalDays |
| | | } |
| | | that.$u.api.release({ |
| | | ...that.form, |
| | | price: Number(that.form.price) * 100, |
| | |
| | | this.form.startDate = e[0] |
| | | this.form.endDate = e[e.length - 1] |
| | | let time = this.form.startDate == this.form.endDate ? 1 : 0 |
| | | this.form.priceNum1 = e.length - time; |
| | | this.form.totalDays = e.length - time; |
| | | this.show2 = false |
| | | }, |
| | | addAddr() { |