|
@@ -29,6 +29,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
);
|
|
);
|
|
let aData = common_vendor.reactive({ discounts: [] });
|
|
let aData = common_vendor.reactive({ discounts: [] });
|
|
let list = common_vendor.ref([]);
|
|
let list = common_vendor.ref([]);
|
|
|
|
+ const openid = common_vendor.index.getStorageSync("openid");
|
|
common_vendor.computed(() => {
|
|
common_vendor.computed(() => {
|
|
return aData.authCheck.includes("2") ? true : false;
|
|
return aData.authCheck.includes("2") ? true : false;
|
|
});
|
|
});
|
|
@@ -42,29 +43,37 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
checked: false
|
|
checked: false
|
|
};
|
|
};
|
|
});
|
|
});
|
|
- console.log("---------------------", aData);
|
|
|
|
|
|
+ common_vendor.index.setStorageSync("activityData", JSON.stringify(aData));
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
console.log(err);
|
|
console.log(err);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
- const handledUpload = () => {
|
|
|
|
- common_vendor.index.getLocation({
|
|
|
|
- type: "gcj02",
|
|
|
|
- success: async (res) => {
|
|
|
|
- const { latitude, longitude } = res;
|
|
|
|
- const key = "7c607ea6b491804270ddcdd72daad58c";
|
|
|
|
- const url = `https://restapi.amap.com/v3/geocode/regeo?key=${key}&location=${longitude},${latitude}`;
|
|
|
|
- await common_vendor.index.request({ url });
|
|
|
|
- console.log("用户所在位置", res);
|
|
|
|
- },
|
|
|
|
- fail: (err) => {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "获取位置失败",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ const rewardData = common_vendor.ref([]);
|
|
|
|
+ const getRewardList = () => {
|
|
|
|
+ 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 getWinnerList = () => {
|
|
|
|
+ services_ams.auditSuccessList({ openid }).then((res) => {
|
|
|
|
+ cinnerData.value = res.rows;
|
|
|
|
+ console.log("获奖记录", rewardData);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+ const showWinerRecord = () => {
|
|
|
|
+ getWinnerList();
|
|
|
|
+ showWiner.value = true;
|
|
|
|
+ };
|
|
|
|
+ const handledUpload = () => {
|
|
|
|
+ showUpload.value = true;
|
|
|
|
+ };
|
|
common_vendor.onShow(() => {
|
|
common_vendor.onShow(() => {
|
|
getList();
|
|
getList();
|
|
});
|
|
});
|
|
@@ -73,12 +82,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
a: backImage.value,
|
|
a: backImage.value,
|
|
b: common_vendor.o(($event) => common_vendor.isRef(showDesc) ? showDesc.value = true : showDesc = true),
|
|
b: common_vendor.o(($event) => common_vendor.isRef(showDesc) ? showDesc.value = true : showDesc = true),
|
|
c: common_vendor.unref(pagesOne_winner_utils_source.imgObj).rule,
|
|
c: common_vendor.unref(pagesOne_winner_utils_source.imgObj).rule,
|
|
- d: common_vendor.o(($event) => _ctx.showWinner = true),
|
|
|
|
- e: common_vendor.unref(pagesOne_winner_utils_source.imgObj).record,
|
|
|
|
|
|
+ d: common_vendor.unref(pagesOne_winner_utils_source.imgObj).record,
|
|
|
|
+ e: common_vendor.o(showWinerRecord),
|
|
f: common_vendor.unref(pagesOne_winner_utils_source.imgObj).photo,
|
|
f: common_vendor.unref(pagesOne_winner_utils_source.imgObj).photo,
|
|
g: common_vendor.o(($event) => common_vendor.isRef(showExample) ? showExample.value = true : showExample = true),
|
|
g: common_vendor.o(($event) => common_vendor.isRef(showExample) ? showExample.value = true : showExample = true),
|
|
h: common_vendor.unref(pagesOne_winner_utils_source.imgObj).book,
|
|
h: common_vendor.unref(pagesOne_winner_utils_source.imgObj).book,
|
|
- i: common_vendor.o(($event) => common_vendor.isRef(showRecord) ? showRecord.value = true : showRecord = true),
|
|
|
|
|
|
+ i: common_vendor.o(showUploadRecord),
|
|
j: common_vendor.unref(pagesOne_winner_utils_source.gifObj).pointer,
|
|
j: common_vendor.unref(pagesOne_winner_utils_source.gifObj).pointer,
|
|
k: common_vendor.o(handledUpload),
|
|
k: common_vendor.o(handledUpload),
|
|
l: common_vendor.f(common_vendor.unref(list), (item, k0, i0) => {
|
|
l: common_vendor.f(common_vendor.unref(list), (item, k0, i0) => {
|