| | |
| | | <view class="list-item-row"> |
| | | <view class="list-item-row-label">费用标准<b>*</b></view> |
| | | <view class="list-item-row-val"> |
| | | <input type="number" @blur="getPrice" v-model="form.price" placeholder="请输入" /> |
| | | <input type="digit" @blur="getPrice" v-model="form.price" placeholder="请输入" /> |
| | | <text>{{form.priceUnit}}</text> |
| | | </view> |
| | | </view> |
| | |
| | | ], |
| | | dw: [['个', '斤']], |
| | | carArr: [], |
| | | viewStatus: false |
| | | viewStatus: true |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | this.getCategoryLists() |
| | | }, |
| | | methods: { |
| | | handleInputPrice(e) { |
| | | try{ |
| | | this.form.price = Number(this.form.price).toFixed(3) |
| | | }catch(e){ |
| | | this.form.price =null |
| | | } |
| | | }, |
| | | confirmDw(e) { |
| | | this.form.transportUnit = e.value[0] |
| | | this.show4 = false |
| | |
| | | } |
| | | if (!that.form.id) { |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg'], |
| | | tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg','AA97cHjvlPiNO4viMkVe4JifCf9TD5b5Eb7s6El3VS8'], |
| | | success(res) { |
| | | that.$u.api.release({ |
| | | ...that.form, |
| | |
| | | } |
| | | }) |
| | | } else { |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['3YSC7gouRlSjHXz4CrWOGFzPmGwEBtFj4snwdfMvKHk'], |
| | | success(res) { |
| | | // uni.requestSubscribeMessage({ |
| | | // tmplIds: ['3YSC7gouRlSjHXz4CrWOGFzPmGwEBtFj4snwdfMvKHk','AA97cHjvlPiNO4viMkVe4JifCf9TD5b5Eb7s6El3VS8'], |
| | | // success(res) { |
| | | that.$u.api.updateOrder({ |
| | | ...that.form, |
| | | price: Number(that.form.price) * 100, |
| | |
| | | }, 1500) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | // } |
| | | // }) |
| | | } |
| | | }, |
| | | uploadImg() { |
| | |
| | | getPrice() { |
| | | if (this.form.price && this.form.priceNum1 && this.form.priceNum2) { |
| | | this.$u.api.getTotal({ |
| | | price: Number(this.form.price) * 100, |
| | | price: Number(this.form.price).toFixed(2) * 100, |
| | | priceUnit: this.form.priceUnit, |
| | | priceNum1: this.form.priceNum1, |
| | | priceNum2: this.form.priceNum2, |
| | |
| | | if ([2].includes(type)) { |
| | | this.form.latitude = res.latitude |
| | | this.form.longitude = res.longitude |
| | | this.form.address = res.address |
| | | this.form.address = res.name || res.address |
| | | } else if (type === 3) { |
| | | this.form.locationEnd = res.address |
| | | this.form.locationEnd = res.name || res.address |
| | | this.form.latEnd = res.latitude |
| | | this.form.lgtEnd = res.longitude |
| | | } else if (type === 4) { |
| | | this.form.wayInfoDTOList[0].lat = res.latitude |
| | | this.form.wayInfoDTOList[0].lgt = res.longitude |
| | | this.form.wayInfoDTOList[0].location = res.address |
| | | } else if (type === 4) { |
| | | this.form.wayInfoDTOList[index].lat = res.latitude |
| | | this.form.wayInfoDTOList[index].lgt = res.longitude |
| | | this.form.wayInfoDTOList[index].location = res.name || res.address |
| | | } |
| | | } |
| | | }); |
| | |
| | | } |
| | | } |
| | | .list-item-row-val { |
| | | width: 100%; |
| | | // width: 100%; |
| | | padding: 30rpx 0; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | text { |
| | | // width: 80%; |
| | | flex-shrink: 0; |
| | | font-weight: 400; |
| | | font-size: 30rpx; |