|
@@ -165,7 +165,7 @@
|
|
|
transform: rotate(-5deg);
|
|
|
} */
|
|
|
.recordListBox {
|
|
|
- max-height: 200px;
|
|
|
+ max-height: 300px;
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
@@ -206,20 +206,9 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog v-model="dialogRecordList" title="中奖记录" width="40%" center>
|
|
|
<div class="recordListBox">
|
|
|
- <!-- <div class="recordItem title">
|
|
|
- <div style="width: 30%;text-align: center;">姓名</div>
|
|
|
- <div style="width: 30%;text-align: center;">奖品</div>
|
|
|
- <div style="width: 40%;text-align: center;">获奖时间</div>
|
|
|
- </div> -->
|
|
|
- <!-- <el-empty description="暂无数据" v-if="recordList.length==0" :image-size="20"></el-empty> -->
|
|
|
- <div class="recordItem">
|
|
|
- <div style="width: 100%;text-align: center;">恭喜,你中了10积分</div>
|
|
|
+ <div class="recordItem" v-for="item in recordList">
|
|
|
+ <div style="width: 100%;text-align: center;">{{item}}</div>
|
|
|
</div>
|
|
|
- <!-- <div class="recordItem" v-for="(item, index) in recordList">
|
|
|
- <div style="width: 100%;text-align: center;">{{item.userName}}</div>
|
|
|
- <div style="width: 30%;text-align: center;">{{item.prizeName}}</div>
|
|
|
- <div style="width: 40%;text-align: center;">{{item.createTime}}</div>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -372,36 +361,21 @@
|
|
|
|
|
|
};
|
|
|
|
|
|
- //抽奖记录
|
|
|
- // async function getRecordList() {
|
|
|
- // const postData = {
|
|
|
- // actId: state.actId,
|
|
|
- // };
|
|
|
- // let res = await httpAjax('get', '/mall-prize/prize/user/list', postData);
|
|
|
- // if (res.errno === 0) {
|
|
|
- // console.log('抽奖记录',res.data);
|
|
|
- // state.recordList = res.data;
|
|
|
- // } else {
|
|
|
- // state.isRunning = false;
|
|
|
- // ElementPlus.ElMessage({
|
|
|
- // showClose: true,
|
|
|
- // message: res.errmsg,
|
|
|
- // type: 'error',
|
|
|
- // });
|
|
|
- // }
|
|
|
-
|
|
|
- // };
|
|
|
-
|
|
|
- //获奖名单
|
|
|
+ //中奖记录
|
|
|
async function getRecordList() {
|
|
|
- const postData = {
|
|
|
+ let postData = {
|
|
|
actId: state.actId,
|
|
|
};
|
|
|
- let res = await httpAjax('get', '/mall-prize/prize/winners', postData);
|
|
|
+ postData = JSON.stringify(postData)
|
|
|
+ postData = encryptECB(postData)
|
|
|
+ postData = postData.replace(/[\t\r\f\n\s]*/g, '');
|
|
|
+ ElementPlus.ElLoading.service();
|
|
|
+ let res = await httpAjax('post', '/mall-prize/continuousClicks', postData);
|
|
|
+ ElementPlus.ElLoading.service().close();
|
|
|
if (res.errno === 0) {
|
|
|
state.recordList = res.data;
|
|
|
+ state.dialogRecordList = true;
|
|
|
} else {
|
|
|
- state.isRunning = false;
|
|
|
ElementPlus.ElMessage({
|
|
|
showClose: true,
|
|
|
message: res.errmsg,
|
|
@@ -466,7 +440,6 @@
|
|
|
}
|
|
|
const showRecordList = () => {
|
|
|
getRecordList();
|
|
|
- state.dialogRecordList = true;
|
|
|
}
|
|
|
const start = () => {
|
|
|
// ElementPlus.ElMessage({
|