|
|
@@ -321,7 +321,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="meta_domain_name_list_con_right">
|
|
|
- <!-- <div
|
|
|
+ <div
|
|
|
class="meta_domain_name_list_con_right_one"
|
|
|
v-if="item.sold && item.canAsk && !item.collectionId"
|
|
|
@click="offerShow(index)"
|
|
|
@@ -341,7 +341,7 @@
|
|
|
@click="consignment(index)"
|
|
|
>
|
|
|
仅展示
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="meta_domain_name_list_con_right_one" @click="buy(index)">
|
|
|
{{ item.sold ? '超链' : '购买' }}
|
|
|
</div>
|
|
|
@@ -446,6 +446,7 @@
|
|
|
<script>
|
|
|
import { mapState } from 'vuex';
|
|
|
import superLink from '@/mixins/superLink';
|
|
|
+import { Dialog } from 'vant';
|
|
|
export default {
|
|
|
name: 'domainName',
|
|
|
inject: ['bar', 'setKeeps', 'scrollWrapper', 'changeScroll', 'bodyScroll'],
|
|
|
@@ -606,13 +607,32 @@ export default {
|
|
|
this.$toast('请输入价格');
|
|
|
return;
|
|
|
}
|
|
|
- this.$router.push({
|
|
|
- path: '/offerPriceSubmit',
|
|
|
- query: {
|
|
|
- domainPrice: this.price,
|
|
|
- id: this.collectionId
|
|
|
- }
|
|
|
- });
|
|
|
+ console.log('aftgadfa', this.price);
|
|
|
+ if (this.price < 29.9) {
|
|
|
+ Dialog.confirm({
|
|
|
+ title: '提示',
|
|
|
+ message: '出价的价格不能低于当前市场的均价',
|
|
|
+ showCancelButton: false,
|
|
|
+ confirmButtonColor: '#626366'
|
|
|
+ }).then(() => {
|
|
|
+ this.price = 29.9;
|
|
|
+ this.$router.push({
|
|
|
+ path: '/offerPriceSubmit',
|
|
|
+ query: {
|
|
|
+ domainPrice: this.price,
|
|
|
+ id: this.collectionId
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/offerPriceSubmit',
|
|
|
+ query: {
|
|
|
+ domainPrice: this.price,
|
|
|
+ id: this.collectionId
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
buy(index) {
|
|
|
if (!this.list[index].sold) {
|