|
@@ -2,7 +2,7 @@
|
|
<view>
|
|
<view>
|
|
<cu-custom bgColor="bg-blue" :isBack="true">
|
|
<cu-custom bgColor="bg-blue" :isBack="true">
|
|
<block slot="backText">返回</block>
|
|
<block slot="backText">返回</block>
|
|
- <block slot="content"> 抽奖结果</block>
|
|
|
|
|
|
+ <block slot="content"> 抽奖</block>
|
|
</cu-custom>
|
|
</cu-custom>
|
|
<view>
|
|
<view>
|
|
<view class="uni-container">
|
|
<view class="uni-container">
|
|
@@ -33,6 +33,7 @@
|
|
<uni-td align="center" :style="row.showFlag === '2'?'background-color: bisque;':''">
|
|
<uni-td align="center" :style="row.showFlag === '2'?'background-color: bisque;':''">
|
|
<view class="uni-group">
|
|
<view class="uni-group">
|
|
<button class="uni-button" size="mini" v-if="row.luckyDrawFlag !== '1'" @click="LuckyDraw(row.eventsId,row.number,row.id)" type="warn">抽奖</button>
|
|
<button class="uni-button" size="mini" v-if="row.luckyDrawFlag !== '1'" @click="LuckyDraw(row.eventsId,row.number,row.id)" type="warn">抽奖</button>
|
|
|
|
+ <button class="uni-button" size="mini" v-if="row.luckyDrawAgainFlag === '1'" @click="luckyDrawAgain(row.eventsId,row.number,row.id)" type="warn">重新抽奖</button>
|
|
</view>
|
|
</view>
|
|
</uni-td>
|
|
</uni-td>
|
|
</uni-tr>
|
|
</uni-tr>
|
|
@@ -99,7 +100,7 @@
|
|
url: '/pages/test/mobile/TestMobileForm?id='+id
|
|
url: '/pages/test/mobile/TestMobileForm?id='+id
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 删除
|
|
|
|
|
|
+ // 抽奖
|
|
LuckyDraw (id,number,awardId) {
|
|
LuckyDraw (id,number,awardId) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -152,6 +153,25 @@
|
|
currentChangeHandle (e) {
|
|
currentChangeHandle (e) {
|
|
this.tablePage.currentPage = e.current
|
|
this.tablePage.currentPage = e.current
|
|
this.refreshList()
|
|
this.refreshList()
|
|
|
|
+ },
|
|
|
|
+ luckyDrawAgain (id,number,awardId) {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '您确认要对该奖项进行重新抽奖吗?',
|
|
|
|
+ showCancel: true,
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ this.testMobileService.luckyDrawAgain(id,number,awardId).then(({data})=>{
|
|
|
|
+ console.log(data)
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: data.msg,
|
|
|
|
+ icon:"success"
|
|
|
|
+ })
|
|
|
|
+ this.refreshList(id)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|