diff --git a/colorui/main.css b/colorui/main.css
index 253dce2..cbe1fe7 100644
--- a/colorui/main.css
+++ b/colorui/main.css
@@ -1046,7 +1046,7 @@ button.cuIcon.lg {
}
.cu-load.over::after {
- content: "没有更多了";
+ content: "No more data";
}
.cu-load.erro::before {
diff --git a/manifest.json b/manifest.json
index 48786e3..938f355 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "H5",
- "appid" : "__UNI__268C995",
+ "appid" : "__UNI__227C71A",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : 100,
diff --git a/pages/asset/index.vue b/pages/asset/index.vue
index 6690794..94825a7 100644
--- a/pages/asset/index.vue
+++ b/pages/asset/index.vue
@@ -92,6 +92,17 @@
+
+
+
+ Contract
+
+
+
+ {{ifcover?all.count_lh_usdt:'****'}} USDT
+
+
+
@@ -119,7 +130,7 @@
-
+
@@ -167,7 +178,7 @@
data() {
return {
statusBar: uni.getSystemInfoSync().statusBarHeight,
- tabList: ['总览', '现货','法币','理财'],
+ tabList: ['Overview', 'Spot','Fiat','Contract','Invest'],
current: 0,
userinfo: {},
@@ -239,6 +250,9 @@
case 4:
obj = that.qq
break;
+ case 5:
+ obj = that.all
+ break;
default:
obj = that.all
break;
@@ -276,13 +290,13 @@
break;
case 3:
if(that.ifHideCoin==true){
- if(that.lh.lh_arr){
+ if(that.lh && that.lh.lh_arr){
obj = that.lh.lh_arr.filter((item)=>{
return item.num != 0
})
}
}else{
- obj = that.lh.lh_arr
+ obj = (that.lh && that.lh.lh_arr) ? that.lh.lh_arr : []
}
break;
case 4:
@@ -317,13 +331,13 @@
this.tabList[0]=this.i18n.assets.index.title1
this.tabList[1]=this.i18n.assets.index.title2
this.tabList[2]=this.i18n.assets.index.title3
- this.tabList[3]=this.i18n.licai.text1
+ this.tabList[3]='Contract'
+ this.tabList[4]=this.i18n.licai.text1
if(uni.getStorageSync('ifHideCoin')){
this.ifHideCoin = uni.getStorageSync('ifHideCoin')
}
this.getWallet()
this.getUserInfo()
- this.calcProfit()
},
methods: {
formatNum(val) {
@@ -350,35 +364,8 @@
})
},
calcProfit() {
- // 从资金流水计算盈亏
- this.post('/wallet/index_detail', {
- page: 1,
- size: 200,
- }).then(res => {
- if (res.code == 1) {
- let profit = 0
- let pnl = 0
- let items = res.data.data || res.data || []
- items.forEach(item => {
- let price = Number(item.price || 0)
- let desc = (item.description || '').toLowerCase()
- if (desc.indexOf('profit') !== -1 || desc.indexOf('收益') !== -1 || desc.indexOf('盈') !== -1) {
- if (item.cart == 1) {
- profit += price
- } else {
- profit -= price
- }
- }
- if (item.cart == 1) {
- pnl += price
- } else {
- pnl -= price
- }
- })
- this.totalProfit = profit
- this.totalPnl = pnl
- }
- })
+ // totalPnl 固定为 0,不作计算
+ // totalProfit 由 getWallet 从后端同步
},
getWallet(){
this.post('/wallet/wallet_index').then((res) => {
@@ -389,6 +376,10 @@
this.fb = res.data.fb
this.lh = res.data.lh
this.qq = res.data.qq
+ // Account Total Profit 与合约交易利润实时同步
+ this.totalProfit = res.data.total_profit || 0
+ // Account Total P&L 固定为 0
+ this.totalPnl = 0
}
})
},
@@ -399,7 +390,7 @@
})
},
tabsChange(index) {
- if(index==3){
+ if(index==4){
uni.navigateTo({
url:'/pages/index/money/index'
})
diff --git a/pages/asset/transfer.vue b/pages/asset/transfer.vue
index 9455973..8227434 100644
--- a/pages/asset/transfer.vue
+++ b/pages/asset/transfer.vue
@@ -99,11 +99,11 @@
zhuanghu: [],
leftObj: {
id: 1,
- name: '现货账户'
+ name: 'Spot'
},
rightObj: {
- id: 1,
- name: '现货账户'
+ id: 3,
+ name: 'Contract'
},
currList: [],
@@ -126,34 +126,34 @@
if(e.id){
if(e.id==1||e.id==0){
this.leftObj.id = 1
- this.leftObj.name = this.i18n.assets.transfer.xh
- this.rightObj.id = 2
- this.rightObj.name = this.i18n.assets.transfer.fb
+ this.leftObj.name = 'Spot'
+ this.rightObj.id = 3
+ this.rightObj.name = 'Contract'
}
if(e.id==2){
this.leftObj.id = e.id
- this.leftObj.name = this.i18n.assets.transfer.fb
+ this.leftObj.name = 'Fiat'
this.rightObj.id = 1
- this.rightObj.name = this.i18n.assets.transfer.xh
+ this.rightObj.name = 'Spot'
}
if(e.id==3){
this.leftObj.id = e.id
- this.leftObj.name = this.i18n.assets.transfer.lh
+ this.leftObj.name = 'Contract'
this.rightObj.id = 1
- this.rightObj.name = this.i18n.assets.transfer.xh
+ this.rightObj.name = 'Spot'
}
if(e.id==4){
this.leftObj.id = e.id
- this.leftObj.name = this.i18n.assets.transfer.qq
+ this.leftObj.name = 'Quantitative'
this.rightObj.id = 1
- this.rightObj.name = this.i18n.assets.transfer.xh
+ this.rightObj.name = 'Spot'
}
}
if(e.rightid){
this.leftObj.id = 1
- this.leftObj.name = this.i18n.assets.transfer.xh
- this.rightObj.id = e.rightid
- this.rightObj.name = this.i18n.assets.transfer.qq
+ this.leftObj.name = 'Spot'
+ this.rightObj.id = Number(e.rightid)
+ this.rightObj.name = this.getAccountName(Number(e.rightid))
}
},
onShow() {
@@ -207,19 +207,33 @@
let rate = parseFloat(this.selectCurr.exchange) || 0
if (rate <= 0) return ''
if (this.rightObj.id == 3) {
- // 现货→合约:输入BTC/ETH数量,显示USDT等值
- return (this.inputNum * rate).toFixed(2) + ' USDT (合约)'
+ // Spot→Contract:输入BTC/ETH数量,显示USDT等值
+ return (this.inputNum * rate).toFixed(2) + ' USDT (Contract)'
} else {
- // 合约→现货:输入USDT数量,显示BTC/ETH等值
- return (this.inputNum / rate).toFixed(8) + ' ' + this.selectCurr.name + ' (现货)'
+ // Contract→Spot:输入USDT数量,显示BTC/ETH等值
+ return (this.inputNum / rate).toFixed(8) + ' ' + this.selectCurr.name + ' (Spot)'
}
},
+ // 根据来源账户过滤可选货币
+ filteredCurrList() {
+ if (!this.currList || this.currList.length === 0) return []
+ if (this.leftObj.id == 3) {
+ // 合约账户转出 → 只显示USDT
+ return this.currList.filter(c => {
+ return c.curr_id == 1 || (c.name || '').toUpperCase() === 'USDT'
+ })
+ }
+ // 现货账户转出 → 只显示 BTC / ETH / USDT
+ return this.currList.filter(c => {
+ return ['BTC', 'ETH', 'USDT'].includes((c.name || '').toUpperCase())
+ })
+ },
count_obj() {
let obj = [];
var that = this
switch (this.showPoup) {
case 'currency':
- obj = that.currList
+ obj = that.filteredCurrList
break;
case 'accountL':
obj = that.zhuanghu.filter((item) => {
@@ -232,13 +246,18 @@
})
break;
default:
- obj = that.currList
+ obj = that.filteredCurrList
break;
}
return obj
},
},
methods: {
+ // 账户ID → 英文名称映射
+ getAccountName(id) {
+ const map = {1:'Spot', 2:'Fiat', 3:'Contract', 4:'Quantitative'}
+ return map[id] || 'Account'
+ },
get_transfer() {
this.post('/wallet/get_transfer').then((res) => {
console.log('划转内容', res)
@@ -247,14 +266,19 @@
// 确保 BTC 和 ETH 始终出现在币种列表中
let names = currData.map(c => (c.name || '').toUpperCase())
if (!names.includes('BTC')) {
- currData.push({ curr_id: 'btc_static', name: 'BTC', num: 0, num_fb: 0, num_lh: 0, num_qq: 0 })
+ currData.push({ curr_id: 3, name: 'BTC', num: 0, num_fb: 0, num_lh: 0, num_qq: 0 })
}
if (!names.includes('ETH')) {
- currData.push({ curr_id: 'eth_static', name: 'ETH', num: 0, num_fb: 0, num_lh: 0, num_qq: 0 })
+ currData.push({ curr_id: 4, name: 'ETH', num: 0, num_fb: 0, num_lh: 0, num_qq: 0 })
}
this.currList = currData
this.transfer_text = res.data.transfer_text
- this.zhuanghu = res.data.zhuanghu
+ // 统一将账户名称英文化
+ const nameMap = {1:'Spot', 2:'Fiat', 3:'Contract', 4:'Quantitative'}
+ this.zhuanghu = (res.data.zhuanghu || []).map(item => ({
+ ...item,
+ name: nameMap[item.id] || item.name
+ }))
if (this.selectIndex) {
this.selectCurr = this.currList[this.selectIndex]
}
@@ -328,16 +352,23 @@
},
select(index) {
if (this.showPoup == 'accountL') {
- this.leftObj = this.count_obj[index]
+ let item = this.count_obj[index]
+ this.leftObj = { id: item.id, name: this.getAccountName(item.id) }
+ // 切换来源账户后清空已选币种
+ this.selectCurr = ''
+ this.selectIndex = ''
+ this.inputNum = ''
console.log(this.leftObj.name)
}
if (this.showPoup == 'accountR') {
- this.rightObj = this.count_obj[index]
+ let item = this.count_obj[index]
+ this.rightObj = { id: item.id, name: this.getAccountName(item.id) }
+ this.inputNum = ''
console.log(this.rightObj.name)
}
if (this.showPoup == 'currency') {
this.selectIndex = index
- this.selectCurr = this.currList[index]
+ this.selectCurr = this.filteredCurrList[index]
this.inputNum = ''
console.log(this.selectCurr)
}
diff --git a/pages/index/c2c.vue b/pages/index/c2c.vue
index d7999a1..853102f 100644
--- a/pages/index/c2c.vue
+++ b/pages/index/c2c.vue
@@ -326,19 +326,19 @@
XZ: '/static/imgs/quantify/xuanzhong@2x.png',
ispay: false, //支付方式弹窗
payid: 0, //选择的支付方式
- payname: '支付方式',
+ payname: 'Payment Method',
paylist: [{
id: 0,
- name: '全部'
+ name: 'All'
},
{
id: 1,
- name: '银行卡'
+ name: 'Bank Card'
}
],
isnum: false, //交易金额弹窗
payprice: '', //交易金额
- paypriceval: '交易金额', //交易金额文显
+ paypriceval: 'Transaction Amount',
number: '',
paypwd: '',
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 216d567..0c5e1be 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -891,4 +891,34 @@
.swiper-container ::v-deep .u-swiper-indicator {
display: none !important;
}
+
+ /* ========== PC 端适配 — 全宽拉伸 ========== */
+ @media screen and (min-width: 768px) {
+ .width-750 {
+ width: 100% !important;
+ max-width: 100% !important;
+ }
+
+ .notice-container {
+ width: calc(100% - 60px) !important;
+ max-width: 100% !important;
+ margin: 0 30px 8px 30px !important;
+ }
+
+ .follow-section {
+ width: calc(100% - 60px) !important;
+ max-width: 100% !important;
+ margin: 0 30px !important;
+ }
+
+ .function-area {
+ width: 100% !important;
+ max-width: 100% !important;
+ }
+
+ .swiper-container {
+ width: 100% !important;
+ max-width: 100% !important;
+ }
+ }
diff --git a/pages/index/orderRecord.vue b/pages/index/orderRecord.vue
index bcee4dd..f320253 100644
--- a/pages/index/orderRecord.vue
+++ b/pages/index/orderRecord.vue
@@ -88,32 +88,32 @@
show: false,
kindlist1: [{
id: 1,
- name: '买入'
+ name: 'Buy'
},
{
id: 2,
- name: '卖出'
+ name: 'Sell'
}
],
kindlist2: [{
id: 1,
- name: '待付款'
+ name: 'Pending Payment'
},
{
id: 2,
- name: '已付款'
+ name: 'Paid'
},
{
id: 3,
- name: '申诉中'
+ name: 'Appealing'
},
{
id: 4,
- name: '已完成'
+ name: 'Completed'
},
{
id: 5,
- name: '已取消'
+ name: 'Cancelled'
}
],
kind1: '',
diff --git a/pages/index/recharge.vue b/pages/index/recharge.vue
index 3381e2b..82c60fa 100644
--- a/pages/index/recharge.vue
+++ b/pages/index/recharge.vue
@@ -17,19 +17,6 @@
-
-
-
- {{i18n.fastRecord.text9}}
-
-
- {{i18n.fastRecord.tos2}}
-
-
-
@@ -210,7 +197,7 @@
data() {
return {
statusBar: uni.getSystemInfoSync().statusBarHeight,
- current: 2,
+ current: 1,
show: false,
bankshow:false,
diff --git a/pages/index/withdraw.vue b/pages/index/withdraw.vue
index 098ea61..20db659 100644
--- a/pages/index/withdraw.vue
+++ b/pages/index/withdraw.vue
@@ -268,9 +268,9 @@
code_m: '',
code_g: '',
flag: true,
- time: '获取验证码',
+ time: 0,
timeFlag: true,
- time2: '获取验证码',
+ time2: 0,
timeFlag2: true,
email: '',
mobile: '',
diff --git a/pages/login/forget.vue b/pages/login/forget.vue
index a8460b0..e599def 100644
--- a/pages/login/forget.vue
+++ b/pages/login/forget.vue
@@ -55,7 +55,7 @@
pwd2: '',
captcha: '',
flag: true,
- time: '获取验证码',
+ time: 0,
timeFlag: true,
theme: '',
diff --git a/pages/login/register.vue b/pages/login/register.vue
index 3734ae8..ee5fb04 100644
--- a/pages/login/register.vue
+++ b/pages/login/register.vue
@@ -47,16 +47,18 @@
{{i18n.regist.invitation}}
-
-
+
+
- {{i18n.regist.code}}
+ Verification Code
-
+
↻
@@ -93,6 +95,7 @@
password2: '',
code: '',
referral_code: '',
+ codeFromLink: false,
flag: true,
agreed: false,
theme: '',
@@ -106,9 +109,10 @@
}
},
onLoad(e) {
- // 代理专属注册链接: 自动填入邀请码
+ // 代理专属注册链接: 自动填入邀请码并锁定
if (e && e.code) {
this.referral_code = e.code
+ this.codeFromLink = true // 锁定,不允许用户修改
}
this.loadCaptcha()
},
@@ -263,8 +267,8 @@
}
.regCaptchaImg {
- width: 200rpx;
- height: 60rpx;
+ width: 240rpx;
+ height: 80rpx;
margin-left: 18rpx;
flex: 0 0 auto;
border-radius: 6rpx;
diff --git a/pages/my/aboutUs/applyAPI.vue b/pages/my/aboutUs/applyAPI.vue
index e4bbb2b..9c5b9bc 100644
--- a/pages/my/aboutUs/applyAPI.vue
+++ b/pages/my/aboutUs/applyAPI.vue
@@ -88,26 +88,26 @@
export default {
data() {
return {
- time: '获取验证码',
+ time: 0,
timeFlag: true,
- time2: '获取验证码',
+ time2: 0,
timeFlag2: true,
email: '',
mobile: '',
list: [{
id: 1,
- name: '只读',
+ name: 'Read Only',
type: false,
},
{
id: 2,
- name: '提现',
+ name: 'Withdraw',
type: false,
},
{
id: 3,
- name: '交易',
+ name: 'Trade',
type: false,
}
],
diff --git a/pages/my/safety/bind.vue b/pages/my/safety/bind.vue
index 712825a..346c14b 100644
--- a/pages/my/safety/bind.vue
+++ b/pages/my/safety/bind.vue
@@ -77,7 +77,7 @@
code: '',
kaiqiChina:true,
flag: true,
- time: '获取验证码',
+ time: 0,
timeFlag: true,
theme: '',
diff --git a/pages/my/safety/password.vue b/pages/my/safety/password.vue
index 69a48e5..c0330d4 100644
--- a/pages/my/safety/password.vue
+++ b/pages/my/safety/password.vue
@@ -2,51 +2,6 @@
-
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
- {{i18n.mine.safety.email}}
-
-
- {{email||i18n.mine.safety.nobangding}}
-
-
-
-
- {{i18n.mine.safety.mobile}}
-
-
-
- +{{seleCountry.value}}
-
- {{phone||i18n.mine.safety.nobangding}}
-
-
-
-
-
- {{i18n.mine.safety.code}}
-
-
-
- {{codeText}}
-
-
-
{{i18n.mine.safety.logpwd1}}
@@ -67,59 +22,43 @@
-
+
+
+
+ Verification Code
+
+
+
+
+ ↻
+
+
-
+