|
@@ -1,6 +1,9 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="subPage flex-h">
|
3
|
|
- <div class="flex-item" style="margin:20px;">
|
|
3
|
+ <div class="img">
|
|
4
|
+ <img v-if="templateList.length" :src="templateList[templateActiveIndex].TplImg" width="100%" alt="">
|
|
5
|
+ </div>
|
|
6
|
+ <div class="flex-item">
|
4
|
7
|
<nav class="flex-h">
|
5
|
8
|
<a class="flex-item" :class="{'active': activeIndex === 0}" @click="activeIndex = 0">基础信息</a>
|
6
|
9
|
<a class="flex-item" :class="{'active': activeIndex === 1}" @click="activeIndex = 1">奖品信息</a>
|
|
@@ -290,7 +293,7 @@
|
290
|
293
|
:disabled="!editAll || isread"
|
291
|
294
|
size="mini"
|
292
|
295
|
type="success"
|
293
|
|
- @click="addPrizeItemPhone(scope.$index)">编辑</el-button>
|
|
296
|
+ @click="addPrizeItemPhone(scope.$index)">内定设置</el-button>
|
294
|
297
|
</template>
|
295
|
298
|
</el-table-column>
|
296
|
299
|
</el-table>
|
|
@@ -309,9 +312,6 @@
|
309
|
312
|
@click="rebackList">取消</el-button>
|
310
|
313
|
</div>
|
311
|
314
|
</div>
|
312
|
|
- <div class="img" style="margin-left:0px;margin-right:20px;">
|
313
|
|
- <img v-if="templateList.length" :src="templateList[templateActiveIndex].TplImg" width="100%" alt="">
|
314
|
|
- </div>
|
315
|
315
|
<el-dialog
|
316
|
316
|
:title="editPrizeOff ? '编辑奖品' : '新增奖品'"
|
317
|
317
|
:visible.sync="centerDialogVisible"
|
|
@@ -347,7 +347,7 @@
|
347
|
347
|
<span style="line-height:40px;font-size:11px;color:#ccc;">(选择“否”即为“谢谢参与”奖项)</span>
|
348
|
348
|
</div>
|
349
|
349
|
</li>
|
350
|
|
- <li class="flex-h" style="width:50%;float:left;" v-if="addPrizeInfo.PrizeType === 'third' && addPrizeInfo.IsReality === 1">
|
|
350
|
+ <li class="flex-h" style="width:50%;float:left;" v-if="addPrizeInfo.PrizeType === 'third'">
|
351
|
351
|
<span>奖品名称:<em>*</em></span>
|
352
|
352
|
<div class="flex-item">
|
353
|
353
|
<div style="width: 200px;">
|
|
@@ -848,11 +848,11 @@ export default {
|
848
|
848
|
this.$router.push({ name: 'listOfLotteryActivities' })
|
849
|
849
|
},
|
850
|
850
|
submitLuckdrawData () { // 提交活动信息
|
|
851
|
+ if (!this.checkData()) {
|
|
852
|
+ return false
|
|
853
|
+ }
|
851
|
854
|
if (this.submitOff) {
|
852
|
855
|
this.submitOff = false
|
853
|
|
- if (!this.checkData()) {
|
854
|
|
- return false
|
855
|
|
- }
|
856
|
856
|
this.postData.ShareAddNum = this.postData.ShareAddNum - 0
|
857
|
857
|
this.postData.LuckdrawNum = this.postData.LuckdrawNum - 0
|
858
|
858
|
if (!this.postData.IsInternalDefault) {
|
|
@@ -865,6 +865,7 @@ export default {
|
865
|
865
|
if (this.postData.Prizes[a].VerificationStart === '') {
|
866
|
866
|
delete this.postData.Prizes[a].VerificationStart
|
867
|
867
|
delete this.postData.Prizes[a].VerificationEnd
|
|
868
|
+ this.postData.Prizes[a].ValidDays = this.postData.Prizes[a].ValidDays - 0
|
868
|
869
|
} else {
|
869
|
870
|
delete this.postData.Prizes[a].ValidDays
|
870
|
871
|
}
|