diff --git a/src/api/ad.js b/src/api/ad.js index 70f1676..296aa47 100644 --- a/src/api/ad.js +++ b/src/api/ad.js @@ -84,6 +84,7 @@ export function getAdSellBlish({ unitName, minLimit, remark, + isTeacher, }) { return request({ url: adUrl + '/publishSellAd', @@ -98,6 +99,7 @@ export function getAdSellBlish({ unitName, minLimit, remark, + isTeacher, }, }); } diff --git a/src/components/announce/announce-sell-btn.vue b/src/components/announce/announce-sell-btn.vue index 23c1500..bef8cff 100644 --- a/src/components/announce/announce-sell-btn.vue +++ b/src/components/announce/announce-sell-btn.vue @@ -121,6 +121,10 @@ export default { type: Object, required: true, }, + isTeacher: { + type: Boolean, + default: false, + }, }, data() { return { @@ -323,6 +327,7 @@ export default { unitName: this.ansellcoinName.unitName, minLimit: this.sammlPrice, remark: this.textXuan, + isTeacher: this.isTeacher, }).then(res => { // console.log(res); // 提示用户 diff --git a/src/components/announce/announce-table-sell.vue b/src/components/announce/announce-table-sell.vue index b282953..e45cb83 100644 --- a/src/components/announce/announce-table-sell.vue +++ b/src/components/announce/announce-table-sell.vue @@ -13,6 +13,7 @@ @@ -28,6 +29,12 @@ export default { components: { AnnounceSellBtn, }, + props: { + isTeacher: { + type: Boolean, + default: false, + }, + }, data() { return { list: [], diff --git a/src/pages/marketAnnounce.vue b/src/pages/marketAnnounce.vue index b78b81d..c77228e 100644 --- a/src/pages/marketAnnounce.vue +++ b/src/pages/marketAnnounce.vue @@ -33,7 +33,10 @@
- +