11 changed files with 826 additions and 636 deletions
@ -1,243 +1,250 @@ |
|||
{ |
|||
"pages": [ |
|||
{ |
|||
"path": "pages/startPage/index" |
|||
}, |
|||
{ |
|||
"path": "pages/base/index", |
|||
"style": { |
|||
"app-plus": { |
|||
"bounce": "none" |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/index/index" |
|||
}, |
|||
{ |
|||
"path": "pages/currency/index" |
|||
}, |
|||
{ |
|||
"path": "pages/currency/list" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/exchangeHis" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/contractHis" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/his" |
|||
}, |
|||
{ |
|||
"path": "pages/login/index" |
|||
}, |
|||
{ |
|||
"path": "pages/purchase/index" |
|||
}, |
|||
{ |
|||
"path": "pages/purchase/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/reg/index" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/forget-password" |
|||
}, |
|||
{ |
|||
"path": "pages/notice/detail" |
|||
}, |
|||
{ |
|||
"path": "pages/accountSettings/accountSettings" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/recharge" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/paypal" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/draw" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/address-list" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/edit-address" |
|||
}, |
|||
{ |
|||
"path": "pages/invite/index" |
|||
}, |
|||
{ |
|||
"path": "pages/invite/level" |
|||
}, |
|||
{ |
|||
"path": "pages/commission/index" |
|||
}, |
|||
{ |
|||
"path": "pages/commission/revoke" |
|||
}, |
|||
{ |
|||
"path": "pages/auth/index" |
|||
}, |
|||
{ |
|||
"path": "pages/auth/primary" |
|||
}, |
|||
{ |
|||
"path": "pages/auth/senior" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/index" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/login-password" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/phone" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/google" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/transaction-password" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/email" |
|||
}, |
|||
{ |
|||
"path": "pages/notice/index" |
|||
}, |
|||
{ |
|||
"path": "pages/notice/msg-detail" |
|||
}, |
|||
{ |
|||
"path": "pages/option/index" |
|||
}, |
|||
{ |
|||
"path": "pages/transfer/index" |
|||
}, |
|||
{ |
|||
"path": "pages/transfer/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/index" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/account-bill" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/currency-bill" |
|||
}, |
|||
{ |
|||
"path": "pages/help/index" |
|||
}, |
|||
{ |
|||
"path": "pages/help/detail" |
|||
}, |
|||
{ |
|||
"path": "pages/help/sort" |
|||
}, |
|||
{ |
|||
"path": "pages/list/list" |
|||
}, |
|||
{ |
|||
"path": "pages/option/delivery-detail" |
|||
}, |
|||
{ |
|||
"path": "pages/income/index" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/send-ad" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/order" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/ad" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/detail" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/pays" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/bind-pay" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/service/service" |
|||
}, |
|||
{ |
|||
"path": "pages/service/index", |
|||
"style": { |
|||
"navigationBarTitleText": "咨询客服", |
|||
"navigationStyle": "default", |
|||
"app-plus": { |
|||
"titleNView": { |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/service/otc", |
|||
"style": { |
|||
"navigationBarTitleText": "otc", |
|||
"navigationStyle": "default", |
|||
"app-plus": { |
|||
"titleNView": { |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/upgrade/index", |
|||
"style": { |
|||
"navigationStyle": "custom", |
|||
"app-plus": { |
|||
"animationType": "fade-in", |
|||
"background": "transparent", |
|||
"backgroundColor": "rgba(0,0,0,0)", |
|||
"popGesture": "none" |
|||
} |
|||
} |
|||
} |
|||
], |
|||
"globalStyle": { |
|||
"app-plus": { |
|||
"titleNView": false |
|||
}, |
|||
"navigationBarTextStyle": "black", |
|||
"navigationBarTitleText": "XUSexchange", |
|||
"navigationBarBackgroundColor": "#007AFF", |
|||
"backgroundColor": "#FFFFFF" |
|||
}, |
|||
"easycom": { |
|||
"autoscan": true, |
|||
"custom": { |
|||
"^van-(.*)": "@/wxcomponents/vant/$1/index.vue", |
|||
"v-button": "@/layout/vButton.vue", |
|||
"v-input": "@/layout/vInput.vue", |
|||
"v-header": "@/layout/vHeader.vue", |
|||
"v-code": "@/layout/vCode.vue", |
|||
"v-country": "@/layout/vCountry.vue", |
|||
"v-link": "@/layout/vLink.vue", |
|||
"v-notice-bar": "@/layout/vNoticeBar.vue", |
|||
"v-lang": "@/layout/vLang.vue", |
|||
"v-qr": "@/layout/vQr.vue", |
|||
"v-scroll": "@/layout/vScroll.vue", |
|||
"v-paging": "@/layout/vPaging.vue", |
|||
"v-curve": "@/layout/vCurve.vue", |
|||
"v-dropdwon": "@/layout/vDropdwon.vue", |
|||
"v-picker": "@/layout/vPicker.vue", |
|||
"v-page": "@/layout/vPage.vue", |
|||
"not-data": "@/layout/notData.vue", |
|||
"special-Banner": "@/layout/specialBanner.vue" |
|||
} |
|||
} |
|||
"pages": [ |
|||
{ |
|||
"path": "pages/startPage/index" |
|||
}, |
|||
{ |
|||
"path": "pages/base/index", |
|||
"style": { |
|||
"app-plus": { |
|||
"bounce": "none" |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/index/index" |
|||
}, |
|||
{ |
|||
"path": "pages/currency/index" |
|||
}, |
|||
{ |
|||
"path": "pages/currency/list" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/exchangeHis" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/contractHis" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/his" |
|||
}, |
|||
{ |
|||
"path": "pages/login/index" |
|||
}, |
|||
{ |
|||
"path": "pages/purchase/index" |
|||
}, |
|||
{ |
|||
"path": "pages/purchase/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/reg/index" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/forget-password" |
|||
}, |
|||
{ |
|||
"path": "pages/notice/detail" |
|||
}, |
|||
{ |
|||
"path": "pages/accountSettings/accountSettings" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/recharge" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/paypal" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/draw" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/address-list" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/edit-address" |
|||
}, |
|||
{ |
|||
"path": "pages/invite/index" |
|||
}, |
|||
{ |
|||
"path": "pages/invite/level" |
|||
}, |
|||
{ |
|||
"path": "pages/commission/index" |
|||
}, |
|||
{ |
|||
"path": "pages/commission/revoke" |
|||
}, |
|||
{ |
|||
"path": "pages/auth/index" |
|||
}, |
|||
{ |
|||
"path": "pages/auth/primary" |
|||
}, |
|||
{ |
|||
"path": "pages/auth/senior" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/index" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/login-password" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/phone" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/google" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/transaction-password" |
|||
}, |
|||
{ |
|||
"path": "pages/safe/email" |
|||
}, |
|||
{ |
|||
"path": "pages/notice/index" |
|||
}, |
|||
{ |
|||
"path": "pages/notice/msg-detail" |
|||
}, |
|||
{ |
|||
"path": "pages/option/index" |
|||
}, |
|||
{ |
|||
"path": "pages/transfer/index" |
|||
}, |
|||
{ |
|||
"path": "pages/transfer/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/exchange/index" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/account-bill" |
|||
}, |
|||
{ |
|||
"path": "pages/assets/currency-bill" |
|||
}, |
|||
{ |
|||
"path": "pages/help/index" |
|||
}, |
|||
{ |
|||
"path": "pages/help/detail" |
|||
}, |
|||
{ |
|||
"path": "pages/help/sort" |
|||
}, |
|||
{ |
|||
"path": "pages/list/list" |
|||
}, |
|||
{ |
|||
"path": "pages/option/delivery-detail" |
|||
}, |
|||
{ |
|||
"path": "pages/income/index" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/send-ad" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/order" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/ad" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/detail" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/pays" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/bind-pay" |
|||
}, |
|||
{ |
|||
"path": "pages/otc/bill" |
|||
}, |
|||
{ |
|||
"path": "pages/service/service" |
|||
}, |
|||
{ |
|||
"path": "pages/service/index", |
|||
"style": { |
|||
"navigationBarTitleText": "咨询客服", |
|||
"navigationStyle": "default", |
|||
"app-plus": { |
|||
"titleNView": { |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/service/otc", |
|||
"style": { |
|||
"navigationBarTitleText": "otc", |
|||
"navigationStyle": "default", |
|||
"app-plus": { |
|||
"titleNView": { |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/upgrade/index", |
|||
"style": { |
|||
"navigationStyle": "custom", |
|||
"app-plus": { |
|||
"animationType": "fade-in", |
|||
"background": "transparent", |
|||
"backgroundColor": "rgba(0,0,0,0)", |
|||
"popGesture": "none" |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/assets/records", |
|||
"style": { |
|||
"navigationBarTitleText": "", |
|||
"enablePullDownRefresh": false |
|||
} |
|||
} |
|||
], |
|||
"globalStyle": { |
|||
"app-plus": { |
|||
"titleNView": false |
|||
}, |
|||
"navigationBarTextStyle": "black", |
|||
"navigationBarTitleText": "XUSCoins", |
|||
"navigationBarBackgroundColor": "#007AFF", |
|||
"backgroundColor": "#FFFFFF" |
|||
}, |
|||
"easycom": { |
|||
"autoscan": true, |
|||
"custom": { |
|||
"^van-(.*)": "@/wxcomponents/vant/$1/index.vue", |
|||
"v-button": "@/layout/vButton.vue", |
|||
"v-input": "@/layout/vInput.vue", |
|||
"v-header": "@/layout/vHeader.vue", |
|||
"v-code": "@/layout/vCode.vue", |
|||
"v-country": "@/layout/vCountry.vue", |
|||
"v-link": "@/layout/vLink.vue", |
|||
"v-notice-bar": "@/layout/vNoticeBar.vue", |
|||
"v-lang": "@/layout/vLang.vue", |
|||
"v-qr": "@/layout/vQr.vue", |
|||
"v-scroll": "@/layout/vScroll.vue", |
|||
"v-paging": "@/layout/vPaging.vue", |
|||
"v-curve": "@/layout/vCurve.vue", |
|||
"v-dropdwon": "@/layout/vDropdwon.vue", |
|||
"v-picker": "@/layout/vPicker.vue", |
|||
"v-page": "@/layout/vPage.vue", |
|||
"not-data": "@/layout/notData.vue", |
|||
"special-Banner": "@/layout/specialBanner.vue" |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,123 @@ |
|||
<template> |
|||
<v-page> |
|||
<v-header> |
|||
<template #title> |
|||
<view v-if="type=='draw'"> |
|||
{{ $t("assets.c8") }} |
|||
</view> |
|||
<view v-if="type=='recharge'"> |
|||
{{ $t('assets.f4') }} |
|||
</view> |
|||
</template> |
|||
</v-header> |
|||
<view class="layout-main"> |
|||
<view class="bg-panel-3" style="height: 100%;"> |
|||
<view class="rounded-md m-b-lg" v-if="list.length" style="padding-bottom: 100px !important;"> |
|||
<view class=""> |
|||
<table class="w-max"> |
|||
<thead class="p-x-md"> |
|||
<tr class="fn-sm p-x-md"> |
|||
<th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th> |
|||
<th class="p-b-md fn-left">{{ $t("assets.d0") }}</th> |
|||
<th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr class="color-light trChange p-x-md rounded-md" v-for="item in list" :key="item.id"> |
|||
<td class="p-y-xs p-l-md rounded-tl-sm rounded-bl-sm fn-sm"> |
|||
{{ item.datetime | parseTime }} |
|||
</td> |
|||
<td v-if="type=='draw'"> |
|||
<view>{{ item.status_text }}</view> |
|||
</td> |
|||
<td v-if="type=='recharge'"> |
|||
<view v-if="item.status==0">{{$t('assets.d1')}}</view> |
|||
<view v-if="item.status==1" class="color-buy">{{$t('assets.d2')}}</view> |
|||
<view v-if="item.status==2" class="color-sell">{{$t('assets.d3')}}</view> |
|||
</td> |
|||
<td class="fn-right p-r-md rounded-tr-sm rounded-br-sm"> |
|||
{{ item.amount }} |
|||
<span class="color-default">({{ item.coin_name }})</span> |
|||
</td> |
|||
</tr> |
|||
<!-- <tr v-if="loadMore"> |
|||
<td colspan="3" class="fn-center p-xs link-active" @click="more"> |
|||
{{ $t("assets.d4") }} |
|||
</td> |
|||
</tr> --> |
|||
</tbody> |
|||
</table> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</v-page> |
|||
</template> |
|||
|
|||
<script> |
|||
import Wallet from "@/api/wallet"; |
|||
import formData from "@/utils/class/date"; |
|||
export default { |
|||
data() { |
|||
return { |
|||
type: '', |
|||
list: [], |
|||
page: 1, |
|||
loadMore: true |
|||
} |
|||
}, |
|||
filters: { |
|||
parseTime(val) { |
|||
return formData.parseTime(val); |
|||
}, |
|||
}, |
|||
methods: { |
|||
// 获取提币记录 |
|||
getWithdrawRecords() { |
|||
let data = { |
|||
page: this.page, |
|||
}; |
|||
Wallet.withdrawalRecord(data).then((res) => { |
|||
if (res.data.current_page == 1) this.list = []; |
|||
let list = [...this.list, ...res.data.data];//无法响应 |
|||
this.list.splice(0,this.list.length,...list); |
|||
// this.list.push(...list); |
|||
console.log('length---------------',this.list.length, '页数:',res.data.current_page); |
|||
if (res.data.data.length < res.data.per_page) this.loadMore = false; |
|||
}); |
|||
}, |
|||
// 获取充值记录 |
|||
depositHistory() { |
|||
let data = { |
|||
page: this.page, |
|||
}; |
|||
Wallet.depositHistory(data).then((res) => { |
|||
if (res.data.current_page == 1) this.list = []; |
|||
this.list = [...this.list, ...res.data.data]; |
|||
if (res.data.data.length < res.data.per_page) this.loadMore = false; |
|||
}); |
|||
}, |
|||
more() { |
|||
this.page++; |
|||
if(this.type=='draw'){ |
|||
this.getWithdrawRecords(); |
|||
}else if(this.type=='recharge'){ |
|||
this.depositHistory(); |
|||
} |
|||
}, |
|||
}, |
|||
onLoad(e) { |
|||
console.log('---------',e); |
|||
this.type = e.type; |
|||
if(e.type=='draw'){ |
|||
this.getWithdrawRecords(); |
|||
}else if(e.type=='recharge'){ |
|||
this.depositHistory(); |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style> |
|||
|
|||
</style> |
|||
Loading…
Reference in new issue