fix(销售页面): 将价格输入框类型改为digit并修改成功后的跳转逻辑
将价格输入框的type从text改为digit以限制输入为数字 创建车辆成功后改为返回上一页而不是跳转到首页
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -219,7 +219,7 @@ | ... | @@ -219,7 +219,7 @@ |
| 219 | </view> | 219 | </view> |
| 220 | <view class="form-item-right"> | 220 | <view class="form-item-right"> |
| 221 | <text class="price-symbol">¥</text> | 221 | <text class="price-symbol">¥</text> |
| 222 | - <input v-model="formData.price" placeholder="请输入" type="text" class="price-input" /> | 222 | + <input v-model="formData.price" placeholder="请输入" type="digit" class="price-input" /> |
| 223 | </view> | 223 | </view> |
| 224 | </view> | 224 | </view> |
| 225 | 225 | ||
| ... | @@ -230,7 +230,7 @@ | ... | @@ -230,7 +230,7 @@ |
| 230 | </view> | 230 | </view> |
| 231 | <view class="form-item-right"> | 231 | <view class="form-item-right"> |
| 232 | <text class="market-price-symbol">¥</text> | 232 | <text class="market-price-symbol">¥</text> |
| 233 | - <input v-model="formData.market_price" placeholder="请输入" type="text" | 233 | + <input v-model="formData.market_price" placeholder="请输入" type="digit" |
| 234 | class="market-price-input" /> | 234 | class="market-price-input" /> |
| 235 | </view> | 235 | </view> |
| 236 | </view> | 236 | </view> |
| ... | @@ -761,7 +761,7 @@ const createCar = async (data) => { | ... | @@ -761,7 +761,7 @@ const createCar = async (data) => { |
| 761 | icon: 'success', | 761 | icon: 'success', |
| 762 | duration: 2000, | 762 | duration: 2000, |
| 763 | complete: () => { | 763 | complete: () => { |
| 764 | - Taro.switchTab({ url: '/pages/index/index' }) | 764 | + Taro.navigateBack() |
| 765 | } | 765 | } |
| 766 | }) | 766 | }) |
| 767 | } | 767 | } | ... | ... |
-
Please register or login to post a comment