jiuyiUniapp/jiuyi2/unpackage/dist/dev/mp-weixin/pages/mine/coupon/index.js

56 lines
1.3 KiB
JavaScript

"use strict";
const components_public_apiMixins = require("../../../components/public/apiMixins.js");
const common_vendor = require("../../../common/vendor.js");
const JyCouponCard = () => "./components/jy-coupon-card/index.js";
const _sfc_main = {
components: {
JyCouponCard
},
mixins: [components_public_apiMixins.apiMixins],
data() {
return {
checkNum: []
};
},
mounted() {
this.init();
},
methods: {
init() {
this.getData({
api: "coupon",
fn: "list"
}, {
userId: null
}, true);
},
onReachBottomHandler() {
this.listProperty.params.pageNum++;
this.init();
},
onPullDownRefreshHandler() {
this.listProperty.params.pageNum = 1;
this.init();
}
}
};
if (!Array) {
const _component_JyCouponCard = common_vendor.resolveComponent("JyCouponCard");
_component_JyCouponCard();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f(_ctx.listProperty.list, (item, index, i0) => {
return {
a: index,
b: "893d6c70-0-" + i0,
c: common_vendor.p({
item
})
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-893d6c70"]]);
wx.createPage(MiniProgramPage);