Files
frontend-app/unpackage/dist/dev/mp-weixin/pages/LuckyWheel/LuckyWheel.js
T
2025-05-10 18:17:24 +08:00

97 lines
2.9 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
lightImages: ["/static/turntable/zz.png", "/static/turntable/turntable.png"],
prizes: [
{
name: "积分",
image: "/static/turntable/record.png",
pro: "50积分"
},
{
name: "积分",
image: "/static/turntable/record.png",
pro: "100积分"
},
{
name: "优惠券",
image: "/static/turntable/record.png",
pro: "15元优惠券"
},
{
name: "家用电器",
image: "/static/turntable/record.png",
pro: "微波炉"
},
{
name: "谢谢参与",
image: "/static/turntable/record.png",
pro: "15元优惠券"
},
{
name: "办公用品",
image: "/static/turntable/record.png",
pro: "机械键盘"
},
{
name: "生活用品",
image: "/static/turntable/record.png",
pro: "化妆刷"
}
]
};
},
onLoad() {
},
methods: {
startWheel() {
this.$refs.luckyWheel.run(2);
},
Click() {
common_vendor.index.__f__("log", "at pages/LuckyWheel/LuckyWheel.vue:68", "用户点击了转盘");
this.$refs.luckyWheel.run(2);
},
Done(prize) {
common_vendor.index.__f__("log", "at pages/LuckyWheel/LuckyWheel.vue:72", "抽奖结束,中奖奖品:", prize);
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_dengbo_lotteryWheel2 = common_vendor.resolveComponent("dengbo-lotteryWheel");
(_easycom_up_image2 + _easycom_dengbo_lotteryWheel2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_dengbo_lotteryWheel = () => "../../uni_modules/dengbo-lotteryWheel/components/dengbo-lotteryWheel/dengbo-lotteryWheel.js";
if (!Math) {
(_easycom_up_image + _easycom_dengbo_lotteryWheel)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_assets._imports_0,
b: common_vendor.o($options.startWheel),
c: common_vendor.p({
src: "/static/turntable/zz.png",
width: "40",
height: "40",
mode: "widthFix"
}),
d: common_vendor.sr("luckyWheel", "29af0044-0"),
e: common_vendor.o($options.Click),
f: common_vendor.o($options.Done),
g: common_vendor.p({
prizes: $data.prizes,
size: 626,
duration: 5e3,
lightImgs: $data.lightImages,
customStyle: "borderRadius: 50%;"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/LuckyWheel/LuckyWheel.js.map