Browse Source

合并

master
j1ack 3 years ago
parent
commit
6f3269b9ca
  1. 2
      components/KeyValueRow/KeyValueRow.vue
  2. 14
      components/entrustOrderList/entrustOrderList.vue
  3. 4
      components/transaction/transaction.vue
  4. 4
      manifest.json
  5. 35
      pages/home/index.vue
  6. 2
      pages/me/donateRecord.vue
  7. 2
      pages/me/myTeam.vue
  8. 7
      pages/mine/mineDetails.vue
  9. 10
      pages/mine/mineRecord.vue
  10. 4
      pages/recharge/rechargeRecord.vue
  11. 7
      pages/withdrawal/withdrawalRecord.vue
  12. 2
      utils/index.js
  13. 12
      utils/language/en_US.js
  14. 12
      utils/language/vi_VN.js

2
components/KeyValueRow/KeyValueRow.vue

@ -11,7 +11,7 @@
<view class="value" <view class="value"
:style="{ color: rightColor, fontSize: size || rightSize, lineHeight: lineHeight || lineHeightValue }">{{ :style="{ color: rightColor, fontSize: size || rightSize, lineHeight: lineHeight || lineHeightValue }">{{
value value
}} USDT</view> }}</view>
</view> </view>
</template> </template>

14
components/entrustOrderList/entrustOrderList.vue

@ -18,7 +18,7 @@
<text :class="item.direction" >{{item.direction}}</text> <text :class="item.direction" >{{item.direction}}</text>
<text class="time">{{item.timestr}}</text> <text class="time">{{item.timestr}}</text>
<text class="closeTimeTitle" v-show="type === 2 || type === 3">{{ i18n.CloseTime }}</text> <text class="closeTimeTitle" v-show="type === 2 || type === 3">{{ i18n.CloseTime }}</text>
<text class="closeTime" v-show="type === 2 || type === 3">{{item.timestr2}}</text> <text class="closeTime" v-show="type === 2">{{item.timestr2}}</text>
<view class="closeBtn" v-show="type === 0 || type === 1" @click="closeItem(item,index)">{{ <view class="closeBtn" v-show="type === 0 || type === 1" @click="closeItem(item,index)">{{
i18n.close i18n.close
}}</view> }}</view>
@ -32,8 +32,8 @@
<view class="value">{{item.openedPrice}}</view> <view class="value">{{item.openedPrice}}</view>
<view class="title">{{ i18n.Bond }}</view> <view class="title">{{ i18n.Bond }}</view>
<view class="value">{{item.bondAmount}}</view> <view class="value">{{item.bondAmount}}</view>
<view class="title" v-show="type !== 3">{{ i18n.StyPrice }}</view> <view class="title" v-show="type !== 3&&type !== 0">{{ i18n.StyPrice }}</view>
<view class="value" v-show="type !== 3">{{item.winStopPrice}}</view> <view class="value" v-show="type !== 3&&type !== 0">{{item.winStopPrice}}</view>
</view> </view>
<!-- 公共的 --> <!-- 公共的 -->
<view class="center"> <view class="center">
@ -41,8 +41,8 @@
<view class="value">{{item.hand}} * {{item.leverage}}</view> <view class="value">{{item.hand}} * {{item.leverage}}</view>
<view class="title">{{ i18n.Fee }}</view> <view class="title">{{ i18n.Fee }}</view>
<view class="value">{{item.fee}}</view> <view class="value">{{item.fee}}</view>
<view class="title" v-show="type !== 3">{{ i18n.StsPrice }}</view> <view class="title" v-show="type !== 3&&type !== 0">{{ i18n.StsPrice }}</view>
<view class="value" v-show="type !== 3">{{item.lossStopPrice}}</view> <view class="value" v-show="type !== 3&&type !== 0">{{item.lossStopPrice}}</view>
</view> </view>
<!-- Current Entrust Position--> <!-- Current Entrust Position-->
<view class="right" v-show="type === 0 || type === 1"> <view class="right" v-show="type === 0 || type === 1">
@ -53,7 +53,7 @@
<view class="title" v-show="type === 1">{{ i18n.do }}</view> <view class="title" v-show="type === 1">{{ i18n.do }}</view>
<view class="value" style="color:#00E8A2;" v-show="type === 1" @click="getStopLimit(item)"> <view class="value" style="color:#00E8A2;" v-show="type === 1" @click="getStopLimit(item)">
Stop/Limit</view> Stop/Limit</view>
<view class="title">{{ i18n.ExpectProfit }}</view> <view class="title"v-show="type === 1&&type === 2">{{ i18n.ExpectProfit }}</view>
<view class="value" v-show="type === 1" <view class="value" v-show="type === 1"
:style="parseFloat(getItem(item.direction=='buy'?(marketDetail.close-item.openedPrice)*item.hand:(item.openedPrice-marketDetail.close)*item.hand))>=0?'color:#00E8A2':'color:#F4506A'"> :style="parseFloat(getItem(item.direction=='buy'?(marketDetail.close-item.openedPrice)*item.hand:(item.openedPrice-marketDetail.close)*item.hand))>=0?'color:#00E8A2':'color:#F4506A'">
{{getItem(item.direction=='buy'?(marketDetail.close-item.openedPrice)*item.hand:(item.openedPrice-marketDetail.close)*item.hand)}} {{getItem(item.direction=='buy'?(marketDetail.close-item.openedPrice)*item.hand:(item.openedPrice-marketDetail.close)*item.hand)}}
@ -283,7 +283,7 @@
i].addTime) i].addTime)
} }
if (this.list[i].closedTime) { if (this.list[i].closedTime) {
this.list[i].timestr2 = this.$index.getformatyymmddhhmmss(this.list[ this.list[i].timestr2 = this.$index.formatyymmddhhmmss(this.list[
i].closedTime) i].closedTime)
} }

4
components/transaction/transaction.vue

@ -189,8 +189,10 @@
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })
setTimeout(()=>{
uni.$emit("upData",true)
},800)
//使uni.$emit //使uni.$emit
uni.$emit("upData",true)
}); });
}, },
} }

4
manifest.json

@ -46,7 +46,9 @@
/* ios */ /* ios */
"ios" : {}, "ios" : {},
/* SDK */ /* SDK */
"sdkConfigs" : {} "sdkConfigs" : {
"ad" : {}
}
}, },
"nativePlugins" : { "nativePlugins" : {
"HF-Step" : { "HF-Step" : {

35
pages/home/index.vue

@ -191,7 +191,7 @@
this.getSept() this.getSept()
// this.startStep() // this.startStep()
// this.resStartStep() // this.resStartStep()
this.updateSteps(); this.updateSteps('show');
// #endif // #endif
// #ifdef H5 // #ifdef H5
this.stepsNum=0; this.stepsNum=0;
@ -208,7 +208,7 @@
}, },
methods: { methods: {
// //
updateSteps(){ updateSteps(soucre){
var today=this.$index.formatyymmdd(new Date().getTime()); var today=this.$index.formatyymmdd(new Date().getTime());
var stepsNum_date= uni.getStorageSync("stepsNum_date"); var stepsNum_date= uni.getStorageSync("stepsNum_date");
@ -223,10 +223,18 @@
}else{ }else{
if(this.stepsNum==0){ if(this.stepsNum==0){
this.stepsNum=stepsNum_date.stepsNum; this.stepsNum=stepsNum_date.newStepsNum;
} }
if(parseInt(this.stepsNum)>parseInt(stepsNum_date.stepsNum)){ if(parseInt(this.stepsNum)>parseInt(stepsNum_date.stepsNum)){
isUpdate=true;
uni.setStorageSync("stepsNum_date",{
stepsNum:stepsNum_date.stepsNum,
date:today,
newStepsNum:this.stepsNum
});
if(soucre){
isUpdate=true;
}
} }
} }
@ -242,7 +250,8 @@
console.log(res,'res更新') console.log(res,'res更新')
uni.setStorageSync("stepsNum_date",{ uni.setStorageSync("stepsNum_date",{
stepsNum:this.stepsNum, stepsNum:this.stepsNum,
date:today date:today,
newStepsNum:this.stepsNum
}); });
}) })
} }
@ -332,11 +341,14 @@
uni.$u.toast(res.errMsg); uni.$u.toast(res.errMsg);
} else { } else {
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.openURL(res.url); console.log(res.url)
plus.runtime.openUrl(res.url)
// #endif // #endif
// #ifdef H5 // #ifdef H5
window.location.href = res.url var href = res.url
window.open(href, '_blank');
// #endif // #endif
} }
}) })
}, },
@ -360,11 +372,12 @@
api.noticeRead({ api.noticeRead({
noticeId: this.noticeId noticeId: this.noticeId
}).then(res => { }).then(res => {
this.noticeId = null;
this.popupShow = false
this.getNoReadNotice()
console.log(res, '已经读了吗')
}) })
this.noticeId = null;
this.popupShow = false
this.getNoReadNotice()
console.log(res, '已经读了吗')
}, },
go(url) { go(url) {
uni.navigateTo({ uni.navigateTo({

2
pages/me/donateRecord.vue

@ -6,7 +6,7 @@
<view class="card" v-for="(item, index) in userInfoObj" :key="index"> <view class="card" v-for="(item, index) in userInfoObj" :key="index">
<u-icon class="icon" :name="'../../static/me/img_donate.png'" size="64rpx" width="64rpx"></u-icon> <u-icon class="icon" :name="'../../static/me/img_donate.png'" size="64rpx" width="64rpx"></u-icon>
<view class="content"> <view class="content">
<key-value-row class="title" :keyName="item.title" :value="item.amount" :leftColor="'#fff'" <key-value-row class="title" :keyName="item.title" :value="item.amount+' USDT'" :leftColor="'#fff'"
:rightColor="'#F2FE8D'"> :rightColor="'#F2FE8D'">
</key-value-row> </key-value-row>
<view class="date">{{item.timestr}}</view> <view class="date">{{item.timestr}}</view>

2
pages/me/myTeam.vue

@ -30,7 +30,7 @@
</view> </view>
</view> </view>
<u-subsection :list="list" activeColor="#00E8A2" inactiveColor="#fff" :current="curNow" <u-subsection :list="list" activeColor="#00E8A2" inactiveColor="#fff" :current="curNow"
@change="sectionChange" bgColor="#211F32"></u-subsection> @change="sectionChange" bgColor="#211F32" fontSize="30"></u-subsection>
<view class="container"> <view class="container">
<table class="table"> <table class="table">
<thead class="thead"> <thead class="thead">

7
pages/mine/mineDetails.vue

@ -5,7 +5,12 @@
<view slot="right" class="right" @click="goto('mineRecord')">{{ i18n.Record }} <view slot="right" class="right" @click="goto('mineRecord')">{{ i18n.Record }}
</view> </view>
</navigation> </navigation>
<!-- #ifdef APP-PLUS -->
<view class="content"> <view class="content">
<!-- #endif -->
<!-- #ifdef H5 -->
<view class="content" style="margin-top: 100rpx;">
<!-- #endif -->
<view class="card"> <view class="card">
<view class="top"> <view class="top">
<u-icon :name="baseURL+'/coins/'+detail.mineDetails.baseCoin+'.png'" size="80rpx" width="80rpx"> <u-icon :name="baseURL+'/coins/'+detail.mineDetails.baseCoin+'.png'" size="80rpx" width="80rpx">
@ -38,7 +43,7 @@
</view> </view>
<u-button class="button" color="#00E8A2" throttleTime="500" :disabled="lockBTCBtned" @click="Lock"> <u-button class="button" color="#00E8A2" throttleTime="500" :disabled="lockBTCBtned" @click="Lock">
{{ i18n.LockBTCBtn.replace('BTC',detail.mineDetails.baseCoin) }}{ {{ i18n.LockBTCBtn.replace('BTC',detail.mineDetails.baseCoin) }}
</u-button> </u-button>
</view> </view>

10
pages/mine/mineRecord.vue

@ -2,10 +2,16 @@
<view class="main"> <view class="main">
<!-- nav --> <!-- nav -->
<navigation>{{ i18n.MinePool }}</navigation> <navigation>{{ i18n.MinePool }}</navigation>
<u-empty :show="userInfoObj.length === 0" marginTop="350rpx" :text="i18n.NoData" textColor="#818197" <u-empty :show="userInfoObj.length === 0" :text="i18n.NoData" textColor="#818197"
textSize="36rpx" icon="../../static/mine/img_data.png"></u-empty> textSize="36rpx" icon="../../static/mine/img_data.png"></u-empty>
<!-- 列表 --> <!-- 列表 -->
<view class="content" v-if="userInfoObj.length > 0"> <!-- #ifdef APP-PLUS -->
<view class="content" v-if="userInfoObj.length > 0">
<!-- #endif -->
<!-- #ifdef H5 -->
<view class="content" style="margin-top: 120rpx;" v-if="userInfoObj.length > 0">
<!-- #endif -->
<view class="dataBody" v-for="(item, index) in userInfoObj" :key="index"> <view class="dataBody" v-for="(item, index) in userInfoObj" :key="index">
<key-value-row :keyName="i18n.BaseCoin" :value="item.amount+item.baseCoin"></key-value-row> <key-value-row :keyName="i18n.BaseCoin" :value="item.amount+item.baseCoin"></key-value-row>
<key-value-row :keyName="i18n.ProfitCoin" :value="item.profitCoin"></key-value-row> <key-value-row :keyName="i18n.ProfitCoin" :value="item.profitCoin"></key-value-row>

4
pages/recharge/rechargeRecord.vue

@ -175,6 +175,10 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/ .digitalShowMore .KeyValueRow .value{
position: static !important;
word-break: break-all !important;
}
.main { .main {
.head { .head {

7
pages/withdrawal/withdrawalRecord.vue

@ -33,7 +33,7 @@
<view class="dataBody" v-if="form.type === 'crypto'"> <view class="dataBody" v-if="form.type === 'crypto'">
<view style="padding:20rpx 32rpx;"> <view style="padding:20rpx 32rpx;">
<key-value-row :keyName="i18n.OrderID" :value="item.orderNo"></key-value-row> <key-value-row :keyName="i18n.OrderID" :value="item.orderNo"></key-value-row>
<key-value-row :keyName="i18n.Fees" :value="item.tranFee"></key-value-row> <key-value-row :keyName="i18n.Fees" :value="item.tranFee+''+item.coinCode"></key-value-row>
<key-value-row :keyName="i18n.Time" :value="item.addTimeStr"></key-value-row> <key-value-row :keyName="i18n.Time" :value="item.addTimeStr"></key-value-row>
</view> </view>
<view style="border-top: 2rpx solid #323045;padding:0rpx 32rpx; margin-bottom: 20rpx;"> <view style="border-top: 2rpx solid #323045;padding:0rpx 32rpx; margin-bottom: 20rpx;">
@ -63,14 +63,13 @@
<view class="dataBody" v-if="form.type === 'online'"> <view class="dataBody" v-if="form.type === 'online'">
<view style="padding:20rpx 32rpx;"> <view style="padding:20rpx 32rpx;">
<key-value-row :keyName="i18n.OrderID" :value="item.orderNo"></key-value-row> <key-value-row :keyName="i18n.OrderID" :value="item.orderNo"></key-value-row>
<key-value-row :keyName="i18n.Fees" :value="item.tranFee"></key-value-row> <key-value-row :keyName="i18n.Fees" :value="item.tranFee+''+item.coinCode"></key-value-row>
<key-value-row :keyName="i18n.Time" :value="item.addTimeStr"></key-value-row> <key-value-row :keyName="i18n.Time" :value="item.addTimeStr"></key-value-row>
</view> </view>
<show-more class="onLineShowMore" style="border-top: 2rpx solid #323045;margin-bottom: 20rpx;"> <show-more class="onLineShowMore" style="border-top: 2rpx solid #323045;margin-bottom: 20rpx;">
<view style="padding:20rpx 32rpx;"> <view style="padding:20rpx 32rpx;">
<key-value-row :keyName="i18n.USDTRate" :value="item.usdtRate"></key-value-row> <key-value-row :keyName="i18n.USDTRate" :value="item.usdtRate"></key-value-row>
<!-- --> <key-value-row :keyName="i18n.USDT" :value="item.usdtAmount"></key-value-row>
<key-value-row :keyName="i18n.USDT" :value="item.usdt"></key-value-row>
</view> </view>
<view style="border-top: 2rpx solid #323045;padding:20rpx 32rpx;"> <view style="border-top: 2rpx solid #323045;padding:20rpx 32rpx;">
<key-value-row :keyName="i18n.CardNo" :value="item.acctId"> <key-value-row :keyName="i18n.CardNo" :value="item.acctId">

2
utils/index.js

@ -97,7 +97,7 @@ var utils = {
var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes() var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
// return Y + '-' + M + '-' + D + ' ' + h + ':' + m + ':' + s; // return Y + '-' + M + '-' + D + ' ' + h + ':' + m + ':' + s;
return D + '-' + M + ' ' + h + ':' + m + ':' + s; return D + '/' + M + '/' + Y + ' ' + h + ':' + m + ':' + s;
}, },
formathhmm: function(time) { formathhmm: function(time) {

12
utils/language/en_US.js

@ -181,7 +181,7 @@ export default {
CopySuccess: 'Copy success', CopySuccess: 'Copy success',
ScanQR: 'Scan the QR code above to get the deposit address', ScanQR: 'Scan the QR code above to get the deposit address',
message: `Minimum deposit amount: {rechargeMinAmount} {enname}. Deposit less than the minimum amount will not be posted and cannot be returned message: `Minimum deposit amount: {rechargeMinAmount} {enname}. Deposit less than the minimum amount will not be posted and cannot be returned
This address is your latest deposit address. When the system receives deposit, it will be automatically credited to the accountThe transfer needs to be confirmed by the entire blockchain network. When it reaches 10 network confirmations, your {enname} will be automatically deposit into the account`, This address is your latest deposit address. When the system receives deposit, it will be automatically credited to the account.The transfer needs to be confirmed by the entire blockchain network. When it reaches 10 network confirmations, your {enname} will be automatically deposit into the account.`,
selectAmount: 'Please select the amount to deposit', selectAmount: 'Please select the amount to deposit',
EnterNumber: 'Enter 100-1000000', EnterNumber: 'Enter 100-1000000',
@ -250,16 +250,16 @@ export default {
MinimumWithdrawAmount: 'Minimum withdraw amount:', MinimumWithdrawAmount: 'Minimum withdraw amount:',
HandlingFee: 'Handling Fee:', HandlingFee: 'Handling Fee:',
message1: 'Please double check and enter the correct wallet address for withdraw', message1: 'Please double check and enter the correct wallet address for withdraw.',
message2: 'Sending non-corresponding digital currency to the wallet address will cause permanent loss', message2: 'Sending non-corresponding digital currency to the wallet address will cause permanent loss.',
message3: 'Withdraw fees will be deducted from the amount of withdrawals', message3: 'Withdraw fees will be deducted from the amount of withdrawals.',
withdraw: 'withdraw', withdraw: 'withdraw',
ChooseAddress: 'Choose address', ChooseAddress: 'Choose address',
Edit: 'Edit', Edit: 'Edit',
OK: 'OK', OK: 'OK',
message4: '·The address book can be used to manage your frequently used addresses. There is no need to perform multiple verifications when initiating withdrawals from addresses in the address book', message4: '·The address book can be used to manage your frequently used addresses. There is no need to perform multiple verifications when initiating withdrawals from addresses in the address book.',
message5: '·APIAutomatic withdrawal is supported. When using API to withdraw, only addresses in the web address book are allowed to initiate withdrawals', message5: '·APIAutomatic withdrawal is supported. When using API to withdraw, only addresses in the web address book are allowed to initiate withdrawals.',
myOmniAddress: 'my omni usdt address', myOmniAddress: 'my omni usdt address',
AddAddress: 'Add address', AddAddress: 'Add address',
DeleteAddress: 'Delete address', DeleteAddress: 'Delete address',

12
utils/language/vi_VN.js

@ -177,7 +177,7 @@ export default {
CopySuccess: 'Sao chép thành công', CopySuccess: 'Sao chép thành công',
ScanQR: 'Quét mã QR ở trên để lấy địa chỉ gửi tiền', ScanQR: 'Quét mã QR ở trên để lấy địa chỉ gửi tiền',
message: `Số tiền gửi tối thiểu: {rechargeMinAmount} {enname}. Tiền gửi ít hơn số tiền tối thiểu sẽ không được đăng và không được trả lại message: `Số tiền gửi tối thiểu: {rechargeMinAmount} {enname}. Tiền gửi ít hơn số tiền tối thiểu sẽ không được đăng và không được trả lại
Địa chỉ này địa chỉ gửi tiền mới nhất của bạn. Khi hệ thống nhận được tiền gửi, sẽ tự động được ghi vào tài khoản Việc chuyển tiền cần được xác nhận bởi toàn bộ mạng lưới blockchain. Khi đạt đến 10 xác nhận của mạng, {enname} của bạn sẽ được tự động gửi vào tài khoản`, Địa chỉ này địa chỉ gửi tiền mới nhất của bạn. Khi hệ thống nhận được tiền gửi, sẽ tự động được ghi vào tài khoản. Việc chuyển tiền cần được xác nhận bởi toàn bộ mạng lưới blockchain. Khi đạt đến 10 xác nhận của mạng, {enname} của bạn sẽ được tự động gửi vào tài khoản.`,
selectAmount: 'Vui lòng chọn số tiền gửi', selectAmount: 'Vui lòng chọn số tiền gửi',
EnterNumber: 'Nhập 100-1000000', EnterNumber: 'Nhập 100-1000000',
@ -246,16 +246,16 @@ export default {
MinimumWithdrawAmount: 'Số tiền rút tối thiểu :', MinimumWithdrawAmount: 'Số tiền rút tối thiểu :',
HandlingFee: 'Phí xử lý :', HandlingFee: 'Phí xử lý :',
message1: 'Vui lòng kiểm tra kỹ và nhập địa chỉ ví chính xác để rút tiền', message1: 'Vui lòng kiểm tra kỹ và nhập địa chỉ ví chính xác để rút tiền.',
message2: 'Gửi tiền kỹ thuật số không tương ứng đến địa chỉ ví sẽ gây ra mất mát vĩnh viễn', message2: 'Gửi tiền kỹ thuật số không tương ứng đến địa chỉ ví sẽ gây ra mất mát vĩnh viễn.',
message3: 'Phí rút tiền sẽ được trừ vào số tiền rút', message3: 'Phí rút tiền sẽ được trừ vào số tiền rút.',
withdraw: 'rút', withdraw: 'rút',
ChooseAddress: 'Chọn địa chỉ', ChooseAddress: 'Chọn địa chỉ',
Edit: 'Chỉnh sửa', Edit: 'Chỉnh sửa',
OK: 'ĐƯỢC RỒI', OK: 'ĐƯỢC RỒI',
message4: '· Sổ địa chỉ có thể được sử dụng để quản lý các địa chỉ thường dùng của bạn. Không cần thực hiện nhiều xác minh khi bắt đầu rút tiền từ các địa chỉ trong sổ địa chỉ', message4: '· Sổ địa chỉ có thể được sử dụng để quản lý các địa chỉ thường dùng của bạn. Không cần thực hiện nhiều xác minh khi bắt đầu rút tiền từ các địa chỉ trong sổ địa chỉ.',
message5: '· Hỗ trợ rút tiền tự động APIA. Khi sử dụng API để rút tiền, chỉ các địa chỉ trong sổ địa chỉ web mới được phép thực hiện rút tiền', message5: '· Hỗ trợ rút tiền tự động APIA. Khi sử dụng API để rút tiền, chỉ các địa chỉ trong sổ địa chỉ web mới được phép thực hiện rút tiền.',
myOmniAddress: 'địa chỉ usdt omni của tôi', myOmniAddress: 'địa chỉ usdt omni của tôi',
AddAddress: 'Thêm địa chỉ', AddAddress: 'Thêm địa chỉ',
DeleteAddress: 'Xóa địa chỉ', DeleteAddress: 'Xóa địa chỉ',

Loading…
Cancel
Save