11 changed files with 826 additions and 636 deletions
@ -1,243 +1,250 @@ |
|||||
{ |
{ |
||||
"pages": [ |
"pages": [ |
||||
{ |
{ |
||||
"path": "pages/startPage/index" |
"path": "pages/startPage/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/base/index", |
"path": "pages/base/index", |
||||
"style": { |
"style": { |
||||
"app-plus": { |
"app-plus": { |
||||
"bounce": "none" |
"bounce": "none" |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/index/index" |
"path": "pages/index/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/currency/index" |
"path": "pages/currency/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/currency/list" |
"path": "pages/currency/list" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/exchange/exchangeHis" |
"path": "pages/exchange/exchangeHis" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/exchange/contractHis" |
"path": "pages/exchange/contractHis" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/exchange/his" |
"path": "pages/exchange/his" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/login/index" |
"path": "pages/login/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/purchase/index" |
"path": "pages/purchase/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/purchase/bill" |
"path": "pages/purchase/bill" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/reg/index" |
"path": "pages/reg/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/forget-password" |
"path": "pages/safe/forget-password" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/notice/detail" |
"path": "pages/notice/detail" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/accountSettings/accountSettings" |
"path": "pages/accountSettings/accountSettings" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/recharge" |
"path": "pages/assets/recharge" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/paypal" |
"path": "pages/assets/paypal" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/draw" |
"path": "pages/assets/draw" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/address-list" |
"path": "pages/assets/address-list" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/edit-address" |
"path": "pages/assets/edit-address" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/invite/index" |
"path": "pages/invite/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/invite/level" |
"path": "pages/invite/level" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/commission/index" |
"path": "pages/commission/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/commission/revoke" |
"path": "pages/commission/revoke" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/auth/index" |
"path": "pages/auth/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/auth/primary" |
"path": "pages/auth/primary" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/auth/senior" |
"path": "pages/auth/senior" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/index" |
"path": "pages/safe/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/login-password" |
"path": "pages/safe/login-password" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/phone" |
"path": "pages/safe/phone" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/google" |
"path": "pages/safe/google" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/transaction-password" |
"path": "pages/safe/transaction-password" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/safe/email" |
"path": "pages/safe/email" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/notice/index" |
"path": "pages/notice/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/notice/msg-detail" |
"path": "pages/notice/msg-detail" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/option/index" |
"path": "pages/option/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/transfer/index" |
"path": "pages/transfer/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/transfer/bill" |
"path": "pages/transfer/bill" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/bill" |
"path": "pages/assets/bill" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/exchange/index" |
"path": "pages/exchange/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/account-bill" |
"path": "pages/assets/account-bill" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/assets/currency-bill" |
"path": "pages/assets/currency-bill" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/help/index" |
"path": "pages/help/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/help/detail" |
"path": "pages/help/detail" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/help/sort" |
"path": "pages/help/sort" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/list/list" |
"path": "pages/list/list" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/option/delivery-detail" |
"path": "pages/option/delivery-detail" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/income/index" |
"path": "pages/income/index" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/send-ad" |
"path": "pages/otc/send-ad" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/order" |
"path": "pages/otc/order" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/ad" |
"path": "pages/otc/ad" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/detail" |
"path": "pages/otc/detail" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/pays" |
"path": "pages/otc/pays" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/bind-pay" |
"path": "pages/otc/bind-pay" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/otc/bill" |
"path": "pages/otc/bill" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/service/service" |
"path": "pages/service/service" |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/service/index", |
"path": "pages/service/index", |
||||
"style": { |
"style": { |
||||
"navigationBarTitleText": "咨询客服", |
"navigationBarTitleText": "咨询客服", |
||||
"navigationStyle": "default", |
"navigationStyle": "default", |
||||
"app-plus": { |
"app-plus": { |
||||
"titleNView": { |
"titleNView": { |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/service/otc", |
"path": "pages/service/otc", |
||||
"style": { |
"style": { |
||||
"navigationBarTitleText": "otc", |
"navigationBarTitleText": "otc", |
||||
"navigationStyle": "default", |
"navigationStyle": "default", |
||||
"app-plus": { |
"app-plus": { |
||||
"titleNView": { |
"titleNView": { |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/upgrade/index", |
"path": "pages/upgrade/index", |
||||
"style": { |
"style": { |
||||
"navigationStyle": "custom", |
"navigationStyle": "custom", |
||||
"app-plus": { |
"app-plus": { |
||||
"animationType": "fade-in", |
"animationType": "fade-in", |
||||
"background": "transparent", |
"background": "transparent", |
||||
"backgroundColor": "rgba(0,0,0,0)", |
"backgroundColor": "rgba(0,0,0,0)", |
||||
"popGesture": "none" |
"popGesture": "none" |
||||
} |
} |
||||
} |
} |
||||
} |
}, |
||||
], |
{ |
||||
"globalStyle": { |
"path": "pages/assets/records", |
||||
"app-plus": { |
"style": { |
||||
"titleNView": false |
"navigationBarTitleText": "", |
||||
}, |
"enablePullDownRefresh": false |
||||
"navigationBarTextStyle": "black", |
} |
||||
"navigationBarTitleText": "XUSexchange", |
} |
||||
"navigationBarBackgroundColor": "#007AFF", |
], |
||||
"backgroundColor": "#FFFFFF" |
"globalStyle": { |
||||
}, |
"app-plus": { |
||||
"easycom": { |
"titleNView": false |
||||
"autoscan": true, |
}, |
||||
"custom": { |
"navigationBarTextStyle": "black", |
||||
"^van-(.*)": "@/wxcomponents/vant/$1/index.vue", |
"navigationBarTitleText": "XUSCoins", |
||||
"v-button": "@/layout/vButton.vue", |
"navigationBarBackgroundColor": "#007AFF", |
||||
"v-input": "@/layout/vInput.vue", |
"backgroundColor": "#FFFFFF" |
||||
"v-header": "@/layout/vHeader.vue", |
}, |
||||
"v-code": "@/layout/vCode.vue", |
"easycom": { |
||||
"v-country": "@/layout/vCountry.vue", |
"autoscan": true, |
||||
"v-link": "@/layout/vLink.vue", |
"custom": { |
||||
"v-notice-bar": "@/layout/vNoticeBar.vue", |
"^van-(.*)": "@/wxcomponents/vant/$1/index.vue", |
||||
"v-lang": "@/layout/vLang.vue", |
"v-button": "@/layout/vButton.vue", |
||||
"v-qr": "@/layout/vQr.vue", |
"v-input": "@/layout/vInput.vue", |
||||
"v-scroll": "@/layout/vScroll.vue", |
"v-header": "@/layout/vHeader.vue", |
||||
"v-paging": "@/layout/vPaging.vue", |
"v-code": "@/layout/vCode.vue", |
||||
"v-curve": "@/layout/vCurve.vue", |
"v-country": "@/layout/vCountry.vue", |
||||
"v-dropdwon": "@/layout/vDropdwon.vue", |
"v-link": "@/layout/vLink.vue", |
||||
"v-picker": "@/layout/vPicker.vue", |
"v-notice-bar": "@/layout/vNoticeBar.vue", |
||||
"v-page": "@/layout/vPage.vue", |
"v-lang": "@/layout/vLang.vue", |
||||
"not-data": "@/layout/notData.vue", |
"v-qr": "@/layout/vQr.vue", |
||||
"special-Banner": "@/layout/specialBanner.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