|
@@ -163,7 +163,7 @@
|
|
|
<p>您未获得抽奖机会,请您先发布询价</p>
|
|
<p>您未获得抽奖机会,请您先发布询价</p>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <a type="button" @click="showNoPriseBox = false">确认</a>
|
|
|
|
|
|
|
+ <a type="button" @click="sureInquiry(false)">确认</a>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -184,7 +184,15 @@
|
|
|
<div class="no-prise get-prise" v-if="winningInfo.data">
|
|
<div class="no-prise get-prise" v-if="winningInfo.data">
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
:visible.sync="showGetPriseBox">
|
|
:visible.sync="showGetPriseBox">
|
|
|
- <div class="dialog-content">
|
|
|
|
|
|
|
+ <div class="dialog-content" v-if="winningInfo.data.name === ''">
|
|
|
|
|
+ <!--<div class="close" @click="showGetPriseBox = false">×</div>-->
|
|
|
|
|
+ <img src="/images/lottery/hua.png" class="hua" alt=""/>
|
|
|
|
|
+ <p>很遗憾,您没有中奖,下次还有机会!</p>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <a type="button" @click="closeGotPriseInfo(false)">确认</a>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="dialog-content" v-else>
|
|
|
<!--<div class="close" @click="showGetPriseBox = false">×</div>-->
|
|
<!--<div class="close" @click="showGetPriseBox = false">×</div>-->
|
|
|
<img src="/images/lottery/hua.png" class="hua" alt=""/>
|
|
<img src="/images/lottery/hua.png" class="hua" alt=""/>
|
|
|
<p>恭喜您抽中<span v-text="winningInfo.data.name"></span>,请添加客服微信使用兑换码兑换</p>
|
|
<p>恭喜您抽中<span v-text="winningInfo.data.name"></span>,请添加客服微信使用兑换码兑换</p>
|
|
@@ -323,6 +331,11 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 去询价
|
|
|
|
|
+ sureInquiry (type) {
|
|
|
|
|
+ this.showNoPriseBox = type
|
|
|
|
|
+ this.$router.push('/applyPurchase')
|
|
|
|
|
+ },
|
|
|
// 获取第3和第7奖品详情
|
|
// 获取第3和第7奖品详情
|
|
|
getDetail () {
|
|
getDetail () {
|
|
|
this.currentPrizes.forEach((item, index) => {
|
|
this.currentPrizes.forEach((item, index) => {
|
|
@@ -429,14 +442,18 @@
|
|
|
// 开始抽奖
|
|
// 开始抽奖
|
|
|
startLottery () {
|
|
startLottery () {
|
|
|
if (this.$store.state.option.user.logged) {
|
|
if (this.$store.state.option.user.logged) {
|
|
|
- if (!this.click) {
|
|
|
|
|
- return
|
|
|
|
|
|
|
+ if (this.restCount < 1) {
|
|
|
|
|
+ this.showNoPriseBox = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (!this.click) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.getOwnWiningInfo()
|
|
|
|
|
+ this.closeToast()
|
|
|
|
|
+ this.speed = 200
|
|
|
|
|
+ this.click = false
|
|
|
|
|
+ this.startRoll()
|
|
|
}
|
|
}
|
|
|
- this.getOwnWiningInfo()
|
|
|
|
|
- this.closeToast()
|
|
|
|
|
- this.speed = 200
|
|
|
|
|
- this.click = false
|
|
|
|
|
- this.startRoll()
|
|
|
|
|
} else {
|
|
} else {
|
|
|
this.showLoginBox = true
|
|
this.showLoginBox = true
|
|
|
}
|
|
}
|