diff --git a/components/pop-ling-qu - 副本.vue b/components/pop-ling-qu - 副本.vue new file mode 100644 index 0000000..fe60cdb --- /dev/null +++ b/components/pop-ling-qu - 副本.vue @@ -0,0 +1,175 @@ + + + + + \ No newline at end of file diff --git a/components/pop-ling-qu.vue b/components/pop-ling-qu.vue index 04c95ab..829d2e9 100644 --- a/components/pop-ling-qu.vue +++ b/components/pop-ling-qu.vue @@ -1,6 +1,6 @@ @@ -70,6 +74,22 @@ }, close() { this.show = false + if(!this.result){ + return + } + const { + orderId, + id + } = this.result + this.$Request.postJson('app/discSpinning/receive', this.result).then(res => { + this.result = '' + console.log(res) + if (res.code == 0) { + this.$emit('close') + this.close() + } else { + } + }) } } } @@ -86,7 +106,7 @@ .money { font-weight: 700; - font-size: 72rpx; + font-size: 96rpx; letter-spacing: 2px; } @@ -98,29 +118,29 @@ background-repeat: no-repeat; background-position: center center; background-size: cover; - background-image: url("~static/images/zhuanpan/ling-qu.png"); + background-image: url("~static/images/zhuanpan/gift.png"); position: relative; @media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) { - background-image: url("~static/images/zhuanpan/ling-qu@2x.png"); + background-image: url("~static/images/zhuanpan/gift@2x.png"); } .title { position: absolute; - top: 238rpx; + top: 218rpx; text-align: center; left: 0; right: 0; font-weight: 700; - font-size: 58rpx; + font-size: 60rpx; color: #AF6920; letter-spacing: 4rpx; } .goods { position: absolute; - top: 326rpx; + top: 336rpx; text-align: center; left: 0; right: 0; @@ -135,7 +155,12 @@ color: #fff; font-weight: bold; } - + .close{ + position: absolute; + bottom: 0; + left: 0; + right: 0; + } .btn-box { position: absolute; top: 574rpx; diff --git a/me/choujiang/choujiang.vue b/me/choujiang/choujiang.vue index b64fe95..f10b1ee 100644 --- a/me/choujiang/choujiang.vue +++ b/me/choujiang/choujiang.vue @@ -76,7 +76,7 @@ --> - + @@ -530,6 +530,10 @@ this.freeNum=res.count||0 } }, + lingquClose(){ + this.getCount() + this.getRedPack() + }, showLingPop(data){ this.$refs.refLingqu.open(data) } diff --git a/static/images/zhuanpan/gift.png b/static/images/zhuanpan/gift.png new file mode 100644 index 0000000..d91aba1 Binary files /dev/null and b/static/images/zhuanpan/gift.png differ diff --git a/static/images/zhuanpan/gift@2x.png b/static/images/zhuanpan/gift@2x.png new file mode 100644 index 0000000..6ba8ec3 Binary files /dev/null and b/static/images/zhuanpan/gift@2x.png differ