Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-28 18:12:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73c8c84b8c604c7bbf8faeecf72ffd3bbec0133a
73c8c84b
1 parent
2a1ed50a
fix(订单页面): 仅对买车订单显示评价按钮
根据业务需求,卖车订单不需要评价功能。添加条件判断,只在viewMode为'buy'时显示评价按钮。
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/pages/myOrders/index.vue
src/pages/myOrders/index.vue
View file @
73c8c84
...
...
@@ -135,7 +135,8 @@
<nut-button type="default" size="small" @click="viewOrderDetail(order.id)">
查看详情
</nut-button>
<nut-button type="primary" size="small" @click="rateOrder(order.id)" class="ml-2" color="orange" plain>
<!-- 只有买车订单才显示评价按钮,卖车订单不显示 -->
<nut-button v-if="viewMode === 'buy'" type="primary" size="small" @click="rateOrder(order.id)" class="ml-2" color="orange" plain>
{{ order.details.review ? '查看评价' : '评价' }}
</nut-button>
</template>
...
...
Please
register
or
login
to post a comment