|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="mobile-modal" v-if="showSayPriceBox">
|
|
|
+ <div class="mobile-modal" v-if="showSayPriceBox" @click="setShowCurrencyList(false)">
|
|
|
<div class="mobile-modal-box">
|
|
|
<div class="mobile-modal-header">发布求购<i class="icon-guanbi iconfont" @click="cancel"></i></div>
|
|
|
<div class="publish-seek">
|
|
|
@@ -24,7 +24,7 @@
|
|
|
</div>
|
|
|
<div class="content-line">
|
|
|
<span>币种:</span>
|
|
|
- <a v-text="applyObj.currency" @click="showCurrencyList = !showCurrencyList"></a>
|
|
|
+ <a v-text="applyObj.currency" @click="setShowCurrencyList(!showCurrencyList, $event)"></a>
|
|
|
<img v-if="!showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-down.png" alt="">
|
|
|
<img v-if="showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-up.png" alt="">
|
|
|
<ul v-if="showCurrencyList">
|
|
|
@@ -152,6 +152,12 @@
|
|
|
setRemindText: function (str) {
|
|
|
this.$emit('remindAction', str)
|
|
|
},
|
|
|
+ setShowCurrencyList: function (flag, e) {
|
|
|
+ if (e) {
|
|
|
+ e.stopPropagation()
|
|
|
+ }
|
|
|
+ this.showCurrencyList = flag
|
|
|
+ },
|
|
|
goPublish: function () {
|
|
|
if (this.checkAll()) {
|
|
|
let inquiry = {}
|
|
|
@@ -213,7 +219,6 @@
|
|
|
},
|
|
|
setCurrency: function (type) {
|
|
|
this.applyObj.currency = type
|
|
|
- this.showCurrencyList = false
|
|
|
},
|
|
|
isValidDate: function (date) {
|
|
|
let now = new Date(formatDate(new Date(), 'yyyy-MM-dd')).getTime()
|