"use strict"; const common_vendor = require("../../common/vendor.js"); const config_host = require("../../config/host.js"); const HeaderNav = () => "../../components/HeaderNav/Index.js"; const FooterNav = () => "../../components/FooterNav/Index.js"; const RightNav = () => "../../components/RightNav/Index.js"; const MzButton = () => "../../components/MzButton/Index.js"; const _sfc_main = { components: { HeaderNav, FooterNav, RightNav, MzButton }, data() { return { title: "Hello", loading: true, staticImage: { screenActiveImg: config_host.imghost + "/static/image/order-screen-active.png", orderCardBackground: config_host.imghost + "/static/image/order-card-background.png", wallpaperBgImage: config_host.imghost + "/static/image/background.png", couponsBackground: config_host.imghost + "/static/image/coupons-bg.png", couponsGrayBackground: config_host.imghost + "/static/image/coupons-gray-bg.png", couponsGQ: config_host.imghost + "/static/image/coupons-gq.png" }, indexBanner: [{ image: config_host.imghost + "/static/image/banner.png", url: "" }], user: { avatar: config_host.imghost + "/static/image/banner.png", nickname: "清晨的风", coupons: 221, id: 88685 }, isTop: false, pagePadding: 100, petImage: config_host.imghost + "/static/image/pet_avatar1.jpeg", couponsList: [{ price: "57", title: "满0.11减57元优惠券", cause: "满0.11使用", time: "有效期至2023.08.09", is_timeout: false }, { price: "58", title: "满0.02减58元优惠券", cause: "满0.02使用", time: "有效期至2023.08.01", is_timeout: true }, { price: "580", title: "满0.01减580元优惠券", cause: "满0.01使用", time: "有效期至2023.08.02", is_timeout: false }] }; }, onLoad() { }, methods: {}, onPageScroll(res) { if (res.scrollTop <= 20) { common_vendor.index.$emit("isTop", true); } else { common_vendor.index.$emit("isTop", false); } }, created() { } }; if (!Array) { const _component_HeaderNav = common_vendor.resolveComponent("HeaderNav"); const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon"); const _component_MzButton = common_vendor.resolveComponent("MzButton"); (_component_HeaderNav + _easycom_u_icon2 + _component_MzButton)(); } const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; if (!Math) { _easycom_u_icon(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.p({ title: "优惠在这", ["is-back"]: true }), b: common_vendor.f($data.couponsList, (item, k0, i0) => { return { a: common_vendor.t(item.price), b: common_vendor.t(item.cause), c: common_vendor.t(item.title), d: common_vendor.t(item.time), e: item.is_timeout, f: "55d755c4-1-" + i0, g: "55d755c4-2-" + i0, h: common_vendor.p({ title: "立即使用", ["button-width"]: "145rpx", ["button-color"]: item.is_timeout ? "#CACACA" : "#4DC3B8", ["font-color"]: "#fff", ["font-size"]: "26rpx", ["is-background"]: false, ["padding-tb"]: "2rpx", ["btn-style"]: { boxShadow: item.is_timeout ? "2rpx -5rpx 0rpx 0rpx rgba(199,199,199,0.35)" : "2rpx -5rpx 0rpx 0rpx rgba(77,195,184,0.35)" } }), i: "url(" + (item.is_timeout ? $data.staticImage.couponsGrayBackground : $data.staticImage.couponsBackground) + ")" }; }), c: $data.staticImage.couponsGQ, d: common_vendor.p({ size: "24rpx", color: "#999999", name: "arrow-right" }), e: "url(" + $data.staticImage.wallpaperBgImage + ")" }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/Project/pet_web/pages/UserCoupons/index.vue"]]); _sfc_main.__runtimeHooks = 1; wx.createPage(MiniProgramPage);