Browse Source

合并

master
j1ack 3 years ago
parent
commit
1e578ec94e
  1. 21
      components/entrustOrderList/entrustOrderList.vue
  2. 8
      components/transaction/transaction.vue
  3. 17
      manifest.json
  4. 10
      pages/charity/details.vue
  5. 4
      pages/markets/kLine.vue
  6. 4
      pages/me/index.vue
  7. 41
      pages/me/transfer.vue
  8. 29
      pages/withdrawal/chooseAddress.vue
  9. 2
      utils/constant.js
  10. 2
      utils/language/en_US.js
  11. 2
      utils/language/vi_VN.js
  12. 2
      utils/language/zh_TW.js

21
components/entrustOrderList/entrustOrderList.vue

@ -22,12 +22,6 @@
<view class="closeBtn" v-show="type === 0" @click="closeItem(item,index)">{{ <view class="closeBtn" v-show="type === 0" @click="closeItem(item,index)">{{
i18n.close i18n.close
}}</view> }}</view>
<text class="righttype3" v-show="type === 3">
<text class="title">{{ i18n.PL }}:{{" "}}</text>
<text class="value" style="color:#00E8A2;">
<!-- {{item.currentPl}} --> 0
</text>
</text>
</view> </view>
@ -69,8 +63,11 @@
{{item.status=='undone'?i18n.undone:item.status=='opened'?i18n.opened:item.status=='revoked'?i18n.revoked:i18n.closed}} {{item.status=='undone'?i18n.undone:item.status=='opened'?i18n.opened:item.status=='revoked'?i18n.revoked:i18n.closed}}
</view> --> </view> -->
<view class="title" v-show="type === 1">{{ i18n.ROE }}</view> <view class="title" v-show="type === 1">{{ i18n.ROE }}</view>
<view class="value" style="color:#00E8A2;" v-show="type === 1"> <view class="value" v-show="type === 1" :style="
{{getValue(item.profitAmount/item.bondAmount)}}% getValue(item.direction=='buy'
?(marketDetail.close-item.openedPrice)*item.hand/item.bondAmount:(item.openedPrice-marketDetail.close)*item.hand/item.bondAmount)>=0?'color:#00E8A2;':'color:#F4506A'">
<!-- {{getValue(item.profitAmount/item.bondAmount)}}% -->
{{getValue(item.direction=='buy'?(marketDetail.close-item.openedPrice)*item.hand/item.bondAmount:(item.openedPrice-marketDetail.close)*item.hand/item.bondAmount)}}%
</view> </view>
<view class="title" v-show="type === 1||type === 2">{{ i18n.ExpectProfit }}</view> <view class="title" v-show="type === 1||type === 2">{{ i18n.ExpectProfit }}</view>
@ -106,16 +103,16 @@
</view> </view>
</view> </view>
<!-- Revoked --> <!-- Revoked -->
<!-- <view class="right" v-show="type === 3"> <view class="right" v-show="type === 3">
<view class="title">{{ i18n.status }}</view> <!-- <view class="title">{{ i18n.status }}</view>
<view class="value" style="color:#F4506A;"> <view class="value" style="color:#F4506A;">
{{item.status=='undone'?i18n.undone:item.status=='opened'?i18n.opened:item.status=='revoked'?i18n.revoked:i18n.closed}} {{item.status=='undone'?i18n.undone:item.status=='opened'?i18n.opened:item.status=='revoked'?i18n.revoked:i18n.closed}}
</view> </view> -->
<view class="title">{{ i18n.PL }}</view> <view class="title">{{ i18n.PL }}</view>
<view class="value" style="color:#00E8A2;"> <view class="value" style="color:#00E8A2;">
0 0
</view> </view>
</view> --> </view>
</view> </view>
</view> </view>

8
components/transaction/transaction.vue

@ -115,6 +115,7 @@
data() { data() {
return { return {
newSymbol:'',
math:null, math:null,
priceSelectListShow: false, priceSelectListShow: false,
priceTypeValue: 0, priceTypeValue: 0,
@ -148,13 +149,18 @@
marketDetail: { marketDetail: {
deep: true, deep: true,
handler: function (n,i) { handler: function (n,i) {
this.coinPrice = n.close if(this.newSymbol!=n.symbol){
this.coinPrice = this.marketDetail.close
}
this.newSymbol=n.symbol
} }
} }
}, },
mounted() { mounted() {
this.leverageValue = this.contractConfig.leverage[0]; this.leverageValue = this.contractConfig.leverage[0];
this.coinPrice = this.marketDetail.close this.coinPrice = this.marketDetail.close
this.newSymbol=this.marketDetail.symbol
}, },
methods: { methods: {

17
manifest.json

@ -84,7 +84,22 @@
} }
} }
}, },
"nativePlugins" : {} "nativePlugins" : {
"HF-Step" : {
"__plugin_info__" : {
"name" : "原生计步器(Android和IOS)",
"description" : "计步器,原生计步器插件,安卓,IOS",
"platforms" : "Android,iOS",
"url" : "https://ext.dcloud.net.cn/plugin?id=6632",
"android_package_name" : "com.samehome",
"ios_bundle_id" : "com.samehome",
"isCloud" : true,
"bought" : 1,
"pid" : "6632",
"parameters" : {}
}
}
}
}, },
"h5" : { "h5" : {
"publicPath" : "/", "publicPath" : "/",

10
pages/charity/details.vue

@ -5,7 +5,7 @@
<view class="body"> <view class="body">
<view class="titleBody"> <view class="titleBody">
<!-- 海报 --> <!-- 海报 -->
<u--image class="img" :showLoading="true" :src="baseURL+detail.charityDetails.img" width="750rpx" <u--image class="img" :showLoading="true" :src="baseURL+imgDetail" width="750rpx"
height="762rpx"></u--image> height="762rpx"></u--image>
<!-- 文章标题 --> <!-- 文章标题 -->
<view class="title">{{detail.charityDetails.title}}</view> <view class="title">{{detail.charityDetails.title}}</view>
@ -117,6 +117,7 @@
name: "charityDetails", name: "charityDetails",
data() { data() {
return { return {
imgDetail:'',
id:'', id:'',
baseURL:'', baseURL:'',
DonatePopupShow: false, DonatePopupShow: false,
@ -131,7 +132,9 @@
}, },
radioValue: '', radioValue: '',
detail:{ detail:{
charityDetails:{}, charityDetails:{
img:null,
},
coins:[{}], coins:[{}],
}, },
}; };
@ -189,6 +192,9 @@
charityId:id charityId:id
}).then(res => { }).then(res => {
this.detail=res; this.detail=res;
this.imgDetail=res.charityDetails.img
this.coinInfo.coinCode=this.detail.coins[0].enname this.coinInfo.coinCode=this.detail.coins[0].enname
this.coinInfo.coinCode2=this.detail.coins[0].code this.coinInfo.coinCode2=this.detail.coins[0].code
}) })

4
pages/markets/kLine.vue

@ -94,11 +94,11 @@
<view class="btn"> <view class="btn">
<!-- open按钮 --> <!-- open按钮 -->
<u-button class="button" color="#00E8A2" throttleTime="500" @click="btnClick('buy')"> <u-button class="button" color="#00E8A2" throttleTime="500" @click="btnClick('buy')">
{{ i18n.open }} {{ i18n.LONG }}
</u-button> </u-button>
<!-- close按钮 --> <!-- close按钮 -->
<u-button class="button" color="#F4506A" throttleTime="500" @click="btnClick('sell')"> <u-button class="button" color="#F4506A" throttleTime="500" @click="btnClick('sell')">
{{ i18n.close }} {{ i18n.SHORT }}
</u-button> </u-button>
</view> </view>

4
pages/me/index.vue

@ -10,7 +10,7 @@
<view class="contentBody"> <view class="contentBody">
<!-- 用户头像和id --> <!-- 用户头像和id -->
<view class="userInfo"> <view class="userInfo">
<u-image class="headImg" :src="baseURL+userInfo.headImg" width="160rpx" height="160rpx" <u-image class="headImg" :src="baseURL+imgDetail" width="160rpx" height="160rpx"
radius="160rpx"></u-image> radius="160rpx"></u-image>
<view class="idAndAccount"> <view class="idAndAccount">
<view class="id">ID:{{userInfo.uid}}</view> <view class="id">ID:{{userInfo.uid}}</view>
@ -100,6 +100,7 @@
name: 'me', name: 'me',
data() { data() {
return { return {
imgDetail:'',
baseURL:'', baseURL:'',
// 退 // 退
showLogOut: false, showLogOut: false,
@ -132,6 +133,7 @@
// //
getUserInfo() { getUserInfo() {
api.userInfo().then(res => { api.userInfo().then(res => {
this.imgDetail=res.headImg
this.userInfo=res this.userInfo=res
}) })
}, },

41
pages/me/transfer.vue

@ -30,7 +30,7 @@
<view class="text">{{ i18n.To }}</view> <view class="text">{{ i18n.To }}</view>
<view class="input-item"> <view class="input-item">
<u-input class="input" v-model="i18toWays" color="#fff" fontSize="32rpx" border="none" <u-input class="input" v-model="i18toWays" color="#fff" fontSize="32rpx" border="none"
:placeholder="i18n.TradingAccount" :disabled="true"> :placeholder="i18n.OptionAccount" :disabled="true">
</u-input> </u-input>
<view class="downSelect" @click="accountPopupShowTo = true"></view> <view class="downSelect" @click="accountPopupShowTo = true"></view>
</view> </view>
@ -94,18 +94,17 @@
@touchmove.stop.prevent=""> @touchmove.stop.prevent="">
<radio-group class="radioGroup" > <radio-group class="radioGroup" >
<!-- v-for="(item, index) in 3" :key="index" --> <!-- v-for="(item, index) in 3" :key="index" -->
<label class="checkBox" @click="getAccount('exchange','form')"> <label class="checkBox" @click="getAccount('exchange','form'),getCoinOrAccount()">
<view class="name">{{i18n.Balanceaccount}}</view> <view class="name">{{i18n.Balanceaccount}}</view>
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.fromWays=='Balance account'"></radio> <radio color="#00E8A2" shape="square" :checked="transCoinInfo.fromWays=='Balance account'"></radio>
</label> </label>
<label class="checkBox" @click="getAccount('contract','form')"> <label class="checkBox" @click="getAccount('contract','form'),getCoinOrAccount()">
<view class="name">{{i18n.Contractaccount}}</view> <view class="name">{{i18n.Contractaccount}}</view>
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.fromWays=='Contract account'"></radio> <radio color="#00E8A2" shape="square" :checked="transCoinInfo.fromWays=='Contract account'"></radio>
</label> </label>
</radio-group> </radio-group>
</scroll-view> </scroll-view>
<u-button class="button" color="#00E8A2" throttleTime="500" @click="accountPopupShow=false">OK
<u-button class="button" color="#00E8A2" throttleTime="500" @click="getCoinOrAccount">OK
</u-button> </u-button>
</view> </view>
</u-popup> </u-popup>
@ -119,11 +118,11 @@
@touchmove.stop.prevent=""> @touchmove.stop.prevent="">
<radio-group class="radioGroup" > <radio-group class="radioGroup" >
<!-- v-for="(item, index) in 3" :key="index" --> <!-- v-for="(item, index) in 3" :key="index" -->
<label class="checkBox" @click="getAccount('contract','to')"> <label class="checkBox" @click="getAccount('contract','to'),getCoinOrAccount()">
<view class="name">{{i18n.Contractaccount}}</view> <view class="name">{{i18n.Contractaccount}}</view>
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.toWays=='Contract account'"></radio> <radio color="#00E8A2" shape="square" :checked="transCoinInfo.toWays=='Contract account'"></radio>
</label> </label>
<label class="checkBox" @click="getAccount('exchange','to')"> <label class="checkBox" @click="getAccount('exchange','to'),getCoinOrAccount()">
<view class="name">{{i18n.Balanceaccount}}</view> <view class="name">{{i18n.Balanceaccount}}</view>
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.toWays=='Balance account'"></radio> <radio color="#00E8A2" shape="square" :checked="transCoinInfo.toWays=='Balance account'"></radio>
</label> </label>
@ -131,7 +130,7 @@
</radio-group> </radio-group>
</scroll-view> </scroll-view>
<u-button class="button" color="#00E8A2" throttleTime="500" @click="getCoinOrAccount">OK <u-button class="button" color="#00E8A2" throttleTime="500" @click="accountPopupShowTo=false">OK
</u-button> </u-button>
</view> </view>
</u-popup> </u-popup>
@ -187,6 +186,14 @@
}, },
onLoad() { onLoad() {
this.baseURL = constant.BASE_URL this.baseURL = constant.BASE_URL
this.coinInfo.fromWays='exchange';
this.coinInfo.toWays='contract';
this.transCoinInfo.fromWays='Balance account';
this.i18fromWays=this.$t("me").Balanceaccount
this.transCoinInfo.toWays='Contract account';
this.i18toWays=this.$t("me").Contractaccount
this.getInfo() this.getInfo()
}, },
onShow() {}, onShow() {},
@ -213,12 +220,13 @@
if(e=='exchange'){ if(e=='exchange'){
this.transCoinInfo.fromWays='Balance account' this.transCoinInfo.fromWays='Balance account'
this.i18fromWays=this.$t("me").Balanceaccount this.i18fromWays=this.$t("me").Balanceaccount
}else{ }else{
console.log(123456)
this.transCoinInfo.fromWays='Contract account' this.transCoinInfo.fromWays='Contract account'
this.i18fromWays=this.$t("me").Contractaccount this.i18fromWays=this.$t("me").Contractaccount
} }
this.coinInfo.fromWays=e this.coinInfo.fromWays=e
this.getInfo()
}else{ }else{
if(e=='exchange'){ if(e=='exchange'){
this.transCoinInfo.toWays='Balance account' this.transCoinInfo.toWays='Balance account'
@ -267,13 +275,16 @@
fromWays:this.coinInfo.fromWays, fromWays:this.coinInfo.fromWays,
}).then(res => { }).then(res => {
this.coinWayInfo=res this.coinWayInfo=res
this.accountPopupShow = false
this.accountPopupShowTo = false
}) })
}, },
// //
getInfo(type) { getInfo(type) {
api.getTransferConfig({}).then(res => { this.coinWayInfo={};
this.info={};
api.getTransferConfig({
fromWays:this.coinInfo.fromWays
}).then(res => {
this.info = res this.info = res
// //
if(type){ if(type){
@ -283,13 +294,7 @@
this.coinInfo.coinCode=this.info.coinList[0].enname this.coinInfo.coinCode=this.info.coinList[0].enname
this.coinCode = this.info.coinList[0].enname this.coinCode = this.info.coinList[0].enname
this.coinCode2 = this.info.coinList[0].code this.coinCode2 = this.info.coinList[0].code
this.coinInfo.fromWays='exchange';
this.coinInfo.toWays='contract';
this.transCoinInfo.fromWays='Balance account';
this.i18fromWays=this.$t("me").Balanceaccount
this.transCoinInfo.toWays='Contract account';
this.i18toWays=this.$t("me").Contractaccount
}) })
}, },
USDTRadioChange(e) {}, USDTRadioChange(e) {},

29
pages/withdrawal/chooseAddress.vue

@ -2,10 +2,23 @@
<view class="main"> <view class="main">
<!-- nav --> <!-- nav -->
<navigation>{{ i18n.ChooseAddress }} <navigation>{{ i18n.ChooseAddress }}
<!-- #ifdef H5 -->
<view slot="right" class="right" @click="editFlag = !editFlag;">{{ <view slot="right" class="right" @click="editFlag = !editFlag;">{{
editFlag ? i18n.OK : i18n.Edit editFlag ? i18n.OK : i18n.Edit
}} }}
</view> </view>
<!-- #endif -->
<!-- #ifdef APP-PLUS -->
<view slot="right" class="right2" @click="editFlag = !editFlag;">{{
editFlag ? i18n.OK : i18n.Edit
}}
</view>
<!-- #endif -->
</navigation> </navigation>
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
@ -234,6 +247,22 @@
} }
.right2{
width: 82rpx;
height: 56rpx;
line-height: 56rpx;
position: absolute;
right: 32rpx;
top: 70%;
transform: translateY(-50%);
font-size: 24rpx;
background: rgba(246, 166, 9, 0.1);
border-radius: 8px;
color: #FFBC1F;
}
.content { .content {
margin-top: 200rpx; margin-top: 200rpx;
padding: 40rpx; padding: 40rpx;

2
utils/constant.js

@ -1,5 +1,5 @@
const IS_TEST = true; const IS_TEST = false;
const H5_BASE_URL = '/api'; const H5_BASE_URL = '/api';
const BASE_URL = IS_TEST?'https://sapi.payairs.com':'https://api.gream.ltd'; const BASE_URL = IS_TEST?'https://sapi.payairs.com':'https://api.gream.ltd';
const H5_MARKET_URL = '/market'; const H5_MARKET_URL = '/market';

2
utils/language/en_US.js

@ -448,7 +448,7 @@ export default {
SelectCurrency: 'Select currency', SelectCurrency: 'Select currency',
PleaseChooseCoin: 'Please choose coin', PleaseChooseCoin: 'Please choose coin',
From: 'From', From: 'From',
OptionAccount: 'Option account', OptionAccount: 'Choose account',
To: 'To', To: 'To',
TradingAccount: 'Trading account', TradingAccount: 'Trading account',
TransferNumber: 'Transfer number', TransferNumber: 'Transfer number',

2
utils/language/vi_VN.js

@ -437,7 +437,7 @@ export default {
SelectCurrency: 'Chọn đơn vị tiền tệ', SelectCurrency: 'Chọn đơn vị tiền tệ',
PleaseChooseCoin: 'Vui lòng chọn đơn vị tiền tệ', PleaseChooseCoin: 'Vui lòng chọn đơn vị tiền tệ',
From: 'chuyển ra ngoài', From: 'chuyển ra ngoài',
OptionAccount: 'Tài khoản Tùy chọn', OptionAccount: 'chọn tài khoản',
To: 'chuyển giao', To: 'chuyển giao',
TradingAccount: 'tài khoản giao dịch', TradingAccount: 'tài khoản giao dịch',
TransferNumber: 'Số tiền chuyển khoản', TransferNumber: 'Số tiền chuyển khoản',

2
utils/language/zh_TW.js

@ -444,7 +444,7 @@ export default {
SelectCurrency: '選擇幣種', SelectCurrency: '選擇幣種',
PleaseChooseCoin: '請選擇幣種', PleaseChooseCoin: '請選擇幣種',
From: '轉出', From: '轉出',
OptionAccount: '期權賬戶', OptionAccount: '選擇帳戶',
To: '轉入', To: '轉入',
TradingAccount: '交易賬戶', TradingAccount: '交易賬戶',
TransferNumber: '轉帳金額', TransferNumber: '轉帳金額',

Loading…
Cancel
Save