Commit 60e84991 authored by youjie's avatar youjie

优化下单

parent edc941fa
...@@ -240,7 +240,9 @@ ...@@ -240,7 +240,9 @@
</text> </text>
</view> </view>
<view class="sum-detail">共计 {{orderMsg.RoomCount}}间房</view> <view class="sum-detail">共计 {{orderMsg.RoomCount}}间房</view>
<u-button :ripple="true" :hair-line="false" :custom-style="submit?btnStyle2:btnStyle" @click="buyRoom" <u-button :ripple="true" :hair-line="false"
:disabled="!this.orderMsg.TotalPrice||submit"
:custom-style="!this.orderMsg.TotalPrice||submit?btnStyle2:btnStyle" @click="buyRoom"
:loading="submit">立即购买</u-button> :loading="submit">立即购买</u-button>
</view> </view>
</view> </view>
...@@ -566,6 +568,10 @@ ...@@ -566,6 +568,10 @@
} }
}, err => { }, err => {
uni.hideLoading(); uni.hideLoading();
uni.showToast({
title: err.message,
icon: 'none',
})
this.submit = false; this.submit = false;
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment