|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<div class="bind-tips-wrapper">
|
|
|
- <img src="" class="icon-close" @click="close">
|
|
|
+ <img :src="require('@/assets/svg/icon-close.svg')" class="icon-close" @click="close">
|
|
|
<div class="top">
|
|
|
- <img src="" class="icon-give-box">
|
|
|
+ <img :src="require('@/assets/svg/icon-giveaways-notice.svg')" class="icon-give-box">
|
|
|
<div class="text">
|
|
|
oops, you failed to send giveaway
|
|
|
</div>
|
|
@@ -20,6 +20,7 @@ import { onMounted, ref } from "vue";
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { getChromeStorage } from '@/uilts/chromeExtension.js'
|
|
|
import { getQueryString } from '@/uilts/help.js'
|
|
|
+import { terminatedLuckdrop } from "@/http/redPacket";
|
|
|
|
|
|
let submitData = ref({});
|
|
|
|
|
@@ -43,20 +44,14 @@ const seSend = async () => {
|
|
|
}
|
|
|
|
|
|
const terminate = () => {
|
|
|
+ console.log(' submitData.value ', submitData.value.taskLuckdropId )
|
|
|
terminatedLuckdrop({
|
|
|
params: {
|
|
|
- luckdropId: submitData.id
|
|
|
+ luckdropId: submitData.value.taskLuckdropId
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- if(res.code == 0) {
|
|
|
- close();
|
|
|
- }
|
|
|
+ close();
|
|
|
});
|
|
|
- // window.parent.postMessage({ actionType: "IFRAME_RED_PACKET_REPLY_CLICK", data: {
|
|
|
- // postId: state.postId,
|
|
|
- // type: params.type,
|
|
|
- // taskLuckdropId: state.detail.taskLuckdropId
|
|
|
- // }}, "*");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -77,7 +72,7 @@ const callEventPageMethod = (actionType, data, callback) => {
|
|
|
|
|
|
onMounted(() => {
|
|
|
let params = getQueryString('params');
|
|
|
- submitData.value = params;
|
|
|
+ submitData.value = JSON.parse(params);
|
|
|
})
|
|
|
|
|
|
</script>
|
|
@@ -91,6 +86,8 @@ onMounted(() => {
|
|
|
border-radius: 20px;
|
|
|
padding: 15px;
|
|
|
position: relative;
|
|
|
+ box-shadow: 0px 4px 30px 0px #00000033;
|
|
|
+
|
|
|
|
|
|
.icon-close {
|
|
|
position: absolute;
|
|
@@ -98,6 +95,7 @@ onMounted(() => {
|
|
|
top: 14px;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.top {
|
|
@@ -130,6 +128,7 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.re-send {
|
|
@@ -140,6 +139,7 @@ onMounted(() => {
|
|
|
|
|
|
.terminate {
|
|
|
color: #1D9BF0;
|
|
|
+ border: 1px solid #ECECEC;
|
|
|
}
|
|
|
}
|
|
|
}
|