120 lines
4.2 KiB
JavaScript
120 lines
4.2 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
require("../../uni_modules/uview-plus/index.js");
|
|
const api_api = require("../../api/api.js");
|
|
require("../../store/index.js");
|
|
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
|
|
if (!Array) {
|
|
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
|
|
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
|
(_easycom_up_tag2 + _easycom_z_paging2)();
|
|
}
|
|
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
|
|
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
|
if (!Math) {
|
|
(_easycom_up_tag + _easycom_z_paging)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "withdrawList",
|
|
setup(__props) {
|
|
common_vendor.ref({});
|
|
const paging = common_vendor.ref(null);
|
|
let dataList = common_vendor.ref([]);
|
|
let isPagingRefNotFound = () => {
|
|
return !paging.value;
|
|
};
|
|
common_vendor.onPullDownRefresh(() => {
|
|
if (isPagingRefNotFound())
|
|
return;
|
|
paging.value.reload().catch(() => {
|
|
});
|
|
});
|
|
common_vendor.onPageScroll((e) => {
|
|
if (isPagingRefNotFound())
|
|
return;
|
|
paging.value.updatePageScrollTop(e.scrollTop);
|
|
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
|
|
});
|
|
common_vendor.onReachBottom(() => {
|
|
if (isPagingRefNotFound())
|
|
return;
|
|
paging.value.pageReachBottom();
|
|
});
|
|
const queryList = (pageNo, pageSize) => {
|
|
const params = {
|
|
current: pageNo,
|
|
pageSize
|
|
};
|
|
api_api.userExtractList(params).then((res) => {
|
|
paging.value.complete(res.records);
|
|
}).catch((res) => {
|
|
paging.value.complete(false);
|
|
});
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.t(item.type == 1 ? "提现人" : "提现公司"),
|
|
b: common_vendor.t(item.name),
|
|
c: common_vendor.t(item.bankName),
|
|
d: common_vendor.t(item.subbranchName),
|
|
e: common_vendor.t(item.bankCard),
|
|
f: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.createTime).getTime(), "yyyy-mm-dd hh:MM:ss")),
|
|
g: common_vendor.t(item.completeTime ? common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.completeTime).getTime(), "yyyy-mm-dd hh:MM:ss") : "-"),
|
|
h: common_vendor.t(item.handleMessage || "-"),
|
|
i: item.status == 0
|
|
}, item.status == 0 ? {
|
|
j: "0a6839b2-1-" + i0 + ",0a6839b2-0",
|
|
k: common_vendor.p({
|
|
size: "mini",
|
|
text: "申请中",
|
|
type: "warning",
|
|
plain: true,
|
|
plainFill: true
|
|
})
|
|
} : {}, {
|
|
l: item.status == 1
|
|
}, item.status == 1 ? {
|
|
m: "0a6839b2-2-" + i0 + ",0a6839b2-0",
|
|
n: common_vendor.p({
|
|
size: "mini",
|
|
type: "success",
|
|
text: "提现成功",
|
|
plain: true,
|
|
plainFill: true
|
|
})
|
|
} : {}, {
|
|
o: item.status == -1
|
|
}, item.status == -1 ? {
|
|
p: "0a6839b2-3-" + i0 + ",0a6839b2-0",
|
|
q: common_vendor.p({
|
|
size: "mini",
|
|
type: "error",
|
|
text: "失败",
|
|
plain: true,
|
|
plainFill: true
|
|
})
|
|
} : {}, {
|
|
r: common_vendor.t(item.points),
|
|
s: index
|
|
});
|
|
}),
|
|
b: () => ({
|
|
r: paging,
|
|
k: "paging"
|
|
}),
|
|
c: common_vendor.o(queryList),
|
|
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
|
|
e: common_vendor.p({
|
|
["use-page-scroll"]: true,
|
|
modelValue: common_vendor.unref(dataList)
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0a6839b2"]]);
|
|
_sfc_main.__runtimeHooks = 1;
|
|
my.createPage(MiniProgramPage);
|