前台 做市商 出售 立即发布操作 添加参数isTeacher

master
CherrysChang 4 years ago
parent 2ce819570f
commit f1bc15c42d
  1. 2
      src/api/ad.js
  2. 5
      src/components/announce/announce-sell-btn.vue
  3. 7
      src/components/announce/announce-table-sell.vue
  4. 5
      src/pages/marketAnnounce.vue

@ -84,6 +84,7 @@ export function getAdSellBlish({
unitName, unitName,
minLimit, minLimit,
remark, remark,
isTeacher,
}) { }) {
return request({ return request({
url: adUrl + '/publishSellAd', url: adUrl + '/publishSellAd',
@ -98,6 +99,7 @@ export function getAdSellBlish({
unitName, unitName,
minLimit, minLimit,
remark, remark,
isTeacher,
}, },
}); });
} }

@ -121,6 +121,10 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
isTeacher: {
type: Boolean,
default: false,
},
}, },
data() { data() {
return { return {
@ -323,6 +327,7 @@ export default {
unitName: this.ansellcoinName.unitName, unitName: this.ansellcoinName.unitName,
minLimit: this.sammlPrice, minLimit: this.sammlPrice,
remark: this.textXuan, remark: this.textXuan,
isTeacher: this.isTeacher,
}).then(res => { }).then(res => {
// console.log(res); // console.log(res);
// //

@ -13,6 +13,7 @@
</ul> </ul>
<AnnounceSellBtn <AnnounceSellBtn
:ansellcoinName="coinName" :ansellcoinName="coinName"
:is-teacher="isTeacher"
v-if="sellCoinname" v-if="sellCoinname"
></AnnounceSellBtn> ></AnnounceSellBtn>
</div> </div>
@ -28,6 +29,12 @@ export default {
components: { components: {
AnnounceSellBtn, AnnounceSellBtn,
}, },
props: {
isTeacher: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
list: [], list: [],

@ -33,7 +33,10 @@
</div> </div>
<!-- 出售 --> <!-- 出售 -->
<div v-show="ifCommentInput"> <div v-show="ifCommentInput">
<AnnounceTableSell v-if="hackReset"></AnnounceTableSell> <AnnounceTableSell
v-if="hackReset"
:is-teacher="true"
></AnnounceTableSell>
</div> </div>
</main> </main>

Loading…
Cancel
Save