优化代码

This commit is contained in:
TOP糯米 2023-03-16 14:51:19 +08:00
parent 0ff138613f
commit f7abec5e77
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
>
<get-action
:order="v"
@postPrice="postPrice(v.id)"
@postPrice="showPostPriceModal(v.id)"
@getOrder="getOrder({ id: v.id, listType: v.listType })"
/>
</view>
@ -58,7 +58,7 @@
<text class="text">刷新列表</text>
</view>
</view>
<get-post-price v-show="showPriceModal" @close="showPriceModal = false" @post="rcvPostPrice" />
<get-post-price v-show="showPriceModal" @close="showPriceModal = false" @post="postPrice" />
</app-layout>
</template>
@ -177,14 +177,14 @@ export default {
/**
* 报价
*/
postPrice(id) {
showPostPriceModal(id) {
this.$store.commit("order/setPostId", id);
this.showPriceModal = true;
},
/**
* 确认价格
*/
rcvPostPrice(e) {
postPrice(e) {
this.showPriceModal = false;
this.getOrder({
id: e.id,