|
@@ -24,9 +24,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
let showRecord = common_vendor.ref(false);
|
|
|
let showDesc = common_vendor.ref(false);
|
|
|
const appid = common_vendor.index.getStorageSync("appid");
|
|
|
- const backImage = common_vendor.ref(
|
|
|
- "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/Group%201.png"
|
|
|
- );
|
|
|
+ const backImage = common_vendor.ref("");
|
|
|
let aData = common_vendor.reactive({ discounts: [] });
|
|
|
let list = common_vendor.ref([]);
|
|
|
const openid = common_vendor.index.getStorageSync("openid");
|
|
@@ -44,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
};
|
|
|
});
|
|
|
common_vendor.index.setStorageSync("activityData", JSON.stringify(aData));
|
|
|
+ backImage.value = res.data[0].activityImage;
|
|
|
}).catch((err) => {
|
|
|
console.log(err);
|
|
|
});
|
|
@@ -53,17 +52,16 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
console.log("openid", openid);
|
|
|
services_ams.rewardList({ openid }).then((res) => {
|
|
|
rewardData.value = res.rows;
|
|
|
- console.log("获奖记录", rewardData);
|
|
|
});
|
|
|
};
|
|
|
const showUploadRecord = () => {
|
|
|
getRewardList();
|
|
|
showRecord.value = true;
|
|
|
};
|
|
|
- const cinnerData = common_vendor.ref([]);
|
|
|
+ const winnerData = common_vendor.ref([]);
|
|
|
const getWinnerList = () => {
|
|
|
services_ams.auditSuccessList({ openid }).then((res) => {
|
|
|
- cinnerData.value = res.rows;
|
|
|
+ winnerData.value = res.rows;
|
|
|
console.log("获奖记录", rewardData);
|
|
|
});
|
|
|
};
|
|
@@ -90,7 +88,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
i: common_vendor.o(showUploadRecord),
|
|
|
j: common_vendor.unref(pagesOne_winner_utils_source.gifObj).pointer,
|
|
|
k: common_vendor.o(handledUpload),
|
|
|
- l: common_vendor.f(common_vendor.unref(list), (item, k0, i0) => {
|
|
|
+ l: common_vendor.t(common_vendor.unref(aData).startTime),
|
|
|
+ m: common_vendor.t(common_vendor.unref(aData).endTime),
|
|
|
+ n: common_vendor.f(common_vendor.unref(list), (item, k0, i0) => {
|
|
|
return {
|
|
|
a: common_vendor.t(item.cashbackAmount),
|
|
|
b: common_vendor.t(item.thresholdAmount),
|
|
@@ -98,28 +98,30 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
d: item.id
|
|
|
};
|
|
|
}),
|
|
|
- m: common_vendor.p({
|
|
|
+ o: common_vendor.p({
|
|
|
["bg-color"]: "transparent"
|
|
|
}),
|
|
|
- n: common_vendor.o(($event) => common_vendor.isRef(showExample) ? showExample.value = $event : showExample = $event),
|
|
|
- o: common_vendor.p({
|
|
|
+ p: common_vendor.o(($event) => common_vendor.isRef(showExample) ? showExample.value = $event : showExample = $event),
|
|
|
+ q: common_vendor.p({
|
|
|
show: common_vendor.unref(showExample)
|
|
|
}),
|
|
|
- p: common_vendor.o(($event) => common_vendor.isRef(showUpload) ? showUpload.value = $event : showUpload = $event),
|
|
|
- q: common_vendor.p({
|
|
|
+ r: common_vendor.o(($event) => common_vendor.isRef(showUpload) ? showUpload.value = $event : showUpload = $event),
|
|
|
+ s: common_vendor.p({
|
|
|
list: common_vendor.unref(list),
|
|
|
show: common_vendor.unref(showUpload)
|
|
|
}),
|
|
|
- r: common_vendor.o(($event) => common_vendor.isRef(showWiner) ? showWiner.value = $event : showWiner = $event),
|
|
|
- s: common_vendor.p({
|
|
|
+ t: common_vendor.o(($event) => common_vendor.isRef(showWiner) ? showWiner.value = $event : showWiner = $event),
|
|
|
+ v: common_vendor.p({
|
|
|
+ list: winnerData.value,
|
|
|
show: common_vendor.unref(showWiner)
|
|
|
}),
|
|
|
- t: common_vendor.o(($event) => common_vendor.isRef(showRecord) ? showRecord.value = $event : showRecord = $event),
|
|
|
- v: common_vendor.p({
|
|
|
+ w: common_vendor.o(($event) => common_vendor.isRef(showRecord) ? showRecord.value = $event : showRecord = $event),
|
|
|
+ x: common_vendor.p({
|
|
|
+ list: rewardData.value,
|
|
|
show: common_vendor.unref(showRecord)
|
|
|
}),
|
|
|
- w: common_vendor.o(($event) => common_vendor.isRef(showDesc) ? showDesc.value = $event : showDesc = $event),
|
|
|
- x: common_vendor.p({
|
|
|
+ y: common_vendor.o(($event) => common_vendor.isRef(showDesc) ? showDesc.value = $event : showDesc = $event),
|
|
|
+ z: common_vendor.p({
|
|
|
show: common_vendor.unref(showDesc)
|
|
|
})
|
|
|
};
|