Browse Source

优化

master
ltlzx 4 years ago
parent
commit
706e1b2ac8
  1. 2
      api/serve/index.js
  2. 4
      pages/exchange/exchange-transaction.vue
  3. 1
      pages/exchange/open-position.vue

2
api/serve/index.js

@ -84,7 +84,7 @@ x.fn = x.prototype = {
let newMsg=options.url.replace(reg,'_');
console.info(newMsg)
if(Cache.get(newMsg).data){
if(newMsg!='_user_walletImage' && newMsg!='_user_withdrawalBalance' && newMsg!='_wallet_getBalance'){
if(newMsg!='_user_walletImage' && newMsg!='_user_withdrawalBalance' && newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'){
resolve(Cache.get(newMsg).data);
}
uni.request({

4
pages/exchange/exchange-transaction.vue

@ -206,9 +206,9 @@
>
{{ newPrice.price }}
</view>
<view class="fn-xs" v-if="newPrice.price">
<!-- <view class="fn-xs" v-if="newPrice.price">
{{ omitTo(newPrice.price * price_cny, 2) }}
</view>
</view> -->
</sell-and-buy>
</view>
</view>

1
pages/exchange/open-position.vue

@ -1228,6 +1228,7 @@ export default {
this.buyList = res.data.swapBuyList;
this.tradeList = res.data.swapTradeList;
this.newPrice = this.tradeList[0] || {};
console.info(this.newPrice)
this.form.entrust_price = this.newPrice.price;
this.linkSocket(data.symbol);
});

Loading…
Cancel
Save