Commit 60e84991 authored by youjie's avatar youjie

优化下单

parent edc941fa
......@@ -240,7 +240,9 @@
</text>
</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>
</view>
</view>
......@@ -566,6 +568,10 @@
}
}, err => {
uni.hideLoading();
uni.showToast({
title: err.message,
icon: 'none',
})
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