first commit
This commit is contained in:
131
unpackage/dist/dev/mp-alipay/pages/wallet/incomeList.js
vendored
Normal file
131
unpackage/dist/dev/mp-alipay/pages/wallet/incomeList.js
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
"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 money = require("../../money.js");
|
||||
if (!Array) {
|
||||
const _easycom_zxz_uni_data_select2 = common_vendor.resolveComponent("zxz-uni-data-select");
|
||||
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_zxz_uni_data_select2 + _easycom_up_tag2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_zxz_uni_data_select = () => "../../uni_modules/zxz-uni-data-select/components/zxz-uni-data-select/zxz-uni-data-select.js";
|
||||
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_zxz_uni_data_select + _easycom_up_tag + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "incomeList",
|
||||
setup(__props) {
|
||||
let range = common_vendor.computed(() => {
|
||||
return money.moneyJson.map((item, index) => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.id
|
||||
};
|
||||
});
|
||||
});
|
||||
const changeSele = (e) => {
|
||||
paging.value.reload();
|
||||
};
|
||||
common_vendor.ref({});
|
||||
const paging = common_vendor.ref(null);
|
||||
let dataList = common_vendor.ref([]);
|
||||
let dataFrom = common_vendor.reactive({
|
||||
type: ""
|
||||
});
|
||||
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,
|
||||
...dataFrom
|
||||
};
|
||||
api_api.getUsersPointRecord(params).then((res) => {
|
||||
paging.value.complete(res);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(changeSele),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).type = $event),
|
||||
c: common_vendor.p({
|
||||
clear: true,
|
||||
filterable: true,
|
||||
localdata: common_vendor.unref(range),
|
||||
modelValue: common_vendor.unref(dataFrom).type
|
||||
}),
|
||||
d: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(money.moneyJson).find((val) => val.id == item.type).name),
|
||||
b: common_vendor.t(item.recordName || "-"),
|
||||
c: item.incomeDate
|
||||
}, item.incomeDate ? {
|
||||
d: common_vendor.t(item.incomeDate || "-")
|
||||
} : {}, {
|
||||
e: common_vendor.t(item.createTime),
|
||||
f: item.pointType == 2
|
||||
}, item.pointType == 2 ? {
|
||||
g: "c5decf36-2-" + i0 + ",c5decf36-0",
|
||||
h: common_vendor.p({
|
||||
size: "mini",
|
||||
text: "增值收益",
|
||||
type: "warning",
|
||||
plain: true,
|
||||
plainFill: true
|
||||
})
|
||||
} : {}, {
|
||||
i: item.pointType == 1
|
||||
}, item.pointType == 1 ? {
|
||||
j: "c5decf36-3-" + i0 + ",c5decf36-0",
|
||||
k: common_vendor.p({
|
||||
size: "mini",
|
||||
text: "基础收益",
|
||||
plain: true,
|
||||
plainFill: true
|
||||
})
|
||||
} : {}, {
|
||||
l: common_vendor.t(item.points),
|
||||
m: index
|
||||
});
|
||||
}),
|
||||
e: () => ({
|
||||
r: paging,
|
||||
k: "paging"
|
||||
}),
|
||||
f: common_vendor.o(queryList),
|
||||
g: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
|
||||
h: common_vendor.p({
|
||||
["use-page-scroll"]: true,
|
||||
modelValue: common_vendor.unref(dataList)
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c5decf36"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
my.createPage(MiniProgramPage);
|
||||
Reference in New Issue
Block a user