|
@@ -37,7 +37,10 @@
|
|
</FontZoom>
|
|
</FontZoom>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="item" @click="maskPay">
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="ifShowMetaMask"
|
|
|
|
+ class="item"
|
|
|
|
+ @click="maskPay">
|
|
<a class="maskLink" :href="maskUrlLink" v-if="Number(usdAmountData.rechargeAmountValue) > 0"></a>
|
|
<a class="maskLink" :href="maskUrlLink" v-if="Number(usdAmountData.rechargeAmountValue) > 0"></a>
|
|
<img src="../../static/payment/icon_meta_mask.png" />
|
|
<img src="../../static/payment/icon_meta_mask.png" />
|
|
<span>MetaMask</span>
|
|
<span>MetaMask</span>
|
|
@@ -306,8 +309,8 @@ import FontZoom from '../../components/FontZoom.vue';
|
|
import FontZoomMobile from '../../components/FontZoomMobile.vue';
|
|
import FontZoomMobile from '../../components/FontZoomMobile.vue';
|
|
import QrCode from '../../components/qrcode.vue';
|
|
import QrCode from '../../components/qrcode.vue';
|
|
import { postRequest } from '../../http/index';
|
|
import { postRequest } from '../../http/index';
|
|
-import { maskUrl, setStorage, storageKey } from '../../utils/help';
|
|
|
|
-import { Dialog, Toast } from 'vant';
|
|
|
|
|
|
+import { maskUrl, setStorage, storageKey, OSDetect } from '../../utils/help';
|
|
|
|
+import { Dialog } from 'vant';
|
|
import Api from '../../http/api';
|
|
import Api from '../../http/api';
|
|
import Report from '../../log-center/log';
|
|
import Report from '../../log-center/log';
|
|
|
|
|
|
@@ -332,6 +335,7 @@ export default {
|
|
maskUrlLink: ``,
|
|
maskUrlLink: ``,
|
|
usdAmountData: {},
|
|
usdAmountData: {},
|
|
Report: Report,
|
|
Report: Report,
|
|
|
|
+ ifShowMetaMask: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
head() {
|
|
head() {
|
|
@@ -346,6 +350,7 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.saleInfo()
|
|
this.saleInfo()
|
|
|
|
+ this.showMetaMask()
|
|
this.reportView(Report.pageSource.nftPaymentPage)
|
|
this.reportView(Report.pageSource.nftPaymentPage)
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
@@ -383,6 +388,11 @@ export default {
|
|
}, 600)
|
|
}, 600)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ showMetaMask() {
|
|
|
|
+ if (OSDetect() === 'ios') {
|
|
|
|
+ this.ifShowMetaMask = true;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getCurrencyInfoByCode() {
|
|
getCurrencyInfoByCode() {
|
|
let where = this.salePlans && this.salePlans.currencyCode;
|
|
let where = this.salePlans && this.salePlans.currencyCode;
|
|
if (!where) return;
|
|
if (!where) return;
|