feat: 修改api地址
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<s-pages title="变现记录" :pink_bg="true">
|
||||
<s-pages :title="pageTitle" :pink_bg="true">
|
||||
<card_mescroll ref="cardPages" @upCallback="getList" :height="height">
|
||||
<view class="bg24 radius12 m-x-42 p-y-28 p-x-40" v-if="detailList.length">
|
||||
<view
|
||||
@@ -41,6 +41,8 @@
|
||||
let detailList = ref([]);
|
||||
let height = ref('100%');
|
||||
const tokenLoading = ref(false);
|
||||
const recordType = ref(1);
|
||||
const pageTitle = ref('变现记录');
|
||||
let sysInfo = uni.getSystemInfoSync();
|
||||
height.value = sysInfo.windowHeight - sysInfo.statusBarHeight - uni.upx2px(88) + 'px';
|
||||
let cardPages = ref(null);
|
||||
@@ -124,6 +126,7 @@
|
||||
const res = await api.walletLiquidationRecordPage({
|
||||
pageNo: mescroll.num,
|
||||
pageSize: mescroll.size,
|
||||
type: recordType.value,
|
||||
});
|
||||
if (res.code === 0) {
|
||||
const data = res.data?.list || [];
|
||||
@@ -135,7 +138,14 @@
|
||||
}
|
||||
};
|
||||
|
||||
onLoad(() => {});
|
||||
onLoad((options) => {
|
||||
const nextType = Number(options?.type || 1);
|
||||
recordType.value = nextType === 2 ? 2 : 1;
|
||||
pageTitle.value = recordType.value === 2 ? '无双变现记录' : '变现记录';
|
||||
uni.setNavigationBarTitle({
|
||||
title: pageTitle.value,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user