|
@@ -17,7 +17,7 @@
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div class="flex justify-between">
|
|
<div class="flex justify-between">
|
|
- <img src="https://file.rongcyl.cn/festatic/bkm/activity.png" class="area" />
|
|
|
|
|
|
+ <img src="https://file.rongcyl.cn/festatic/bkm/activity.png" class="area" @click="activity" />
|
|
<img
|
|
<img
|
|
src="https://file.rongcyl.cn/festatic/bkm/task.png"
|
|
src="https://file.rongcyl.cn/festatic/bkm/task.png"
|
|
class="area"
|
|
class="area"
|
|
@@ -33,26 +33,26 @@
|
|
<div class="flex justify-between m-2 co">
|
|
<div class="flex justify-between m-2 co">
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/center.png" class="center" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/center.png" class="center" />
|
|
<div class="clicks flex-1 overflow-scroll flex flex-nowrap">
|
|
<div class="clicks flex-1 overflow-scroll flex flex-nowrap">
|
|
- <div class="ml-2 mt-2 inline-block relative" v-for="c in click" :key="c">
|
|
|
|
|
|
+ <div class="ml-2 mt-2 inline-block relative" v-for="c in couponList" :key="c.id" @click="receive(c)">
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/click.png" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/click.png" />
|
|
<div class="absolute top-4 left-0 text-center right-0">
|
|
<div class="absolute top-4 left-0 text-center right-0">
|
|
- <div class="bold fs12">闯关9-2</div>
|
|
|
|
- <div class="fs11 text-zinc-600">闯关9-2</div>
|
|
|
|
|
|
+ <div class="bold fs12">{{ c.name }}</div>
|
|
|
|
+ <div class="fs11 text-zinc-600">{{ c.desc }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <img src="https://file.rongcyl.cn/festatic/bkm/more.png" class="more" />
|
|
|
|
|
|
+ <!-- <img src="https://file.rongcyl.cn/festatic/bkm/more.png" class="more" /> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between m-2">
|
|
<div class="flex justify-between m-2">
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/c1.png" class="c" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/c1.png" class="c" />
|
|
- <img src="https://file.rongcyl.cn/festatic/bkm/c2.png" class="c" />
|
|
|
|
|
|
+ <img src="https://file.rongcyl.cn/festatic/bkm/c2.png" @click="$navigateTo('/pages/vip/vip')" class="c" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/c3.png" class="c" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/c3.png" class="c" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/c4.png" class="c" />
|
|
<img src="https://file.rongcyl.cn/festatic/bkm/c4.png" class="c" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="tabs">
|
|
<div class="tabs">
|
|
- <div class="tab" :class="{ active: type == 0 }" @click="type = 0">全部</div>
|
|
|
|
|
|
+ <div class="tab" :class="{ active: type == 0 }" @click="type = 0">热门</div>
|
|
<div class="tab" :class="{ active: type == 5 }" @click="type = 5">FIRST赏</div>
|
|
<div class="tab" :class="{ active: type == 5 }" @click="type = 5">FIRST赏</div>
|
|
<div class="tab" :class="{ active: type == 2 }" @click="type = 2">LAST赏</div>
|
|
<div class="tab" :class="{ active: type == 2 }" @click="type = 2">LAST赏</div>
|
|
|
|
|
|
@@ -70,28 +70,30 @@
|
|
/>
|
|
/>
|
|
<img :src="item.icon" />
|
|
<img :src="item.icon" />
|
|
<div class="mt-1">{{ item.name }}</div>
|
|
<div class="mt-1">{{ item.name }}</div>
|
|
- <div class="flex justify-between" style="font-size: 13px; margin-top: 12rpx">
|
|
|
|
- <div
|
|
|
|
- style="
|
|
|
|
- border-radius: 3px;
|
|
|
|
- height: 20px;
|
|
|
|
- line-height: 20px;
|
|
|
|
- text-align: center;
|
|
|
|
- background: #fc5b20;
|
|
|
|
- color: #fff;
|
|
|
|
- padding: 0 8rpx;
|
|
|
|
- "
|
|
|
|
- >
|
|
|
|
- 创意热销
|
|
|
|
- </div>
|
|
|
|
|
|
+ <!-- <div class="flex justify-between" style="font-size: 13px; margin-top: 12rpx">
|
|
|
|
+
|
|
|
|
+ <img src="https://file.rongcyl.cn/festatic/bkm/imgv2/raffle/tag2.png" style="height: 35rpx; width: 80rpx" />
|
|
<div>
|
|
<div>
|
|
<span style="font-size: 14px; margin-right: 4px; color: #fc5b20" class="bold">{{ item.totalNum }}</span>
|
|
<span style="font-size: 14px; margin-right: 4px; color: #fc5b20" class="bold">{{ item.totalNum }}</span>
|
|
<span style="color: #666666">销量</span>
|
|
<span style="color: #666666">销量</span>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div style="color: #fc5b20; margin-top: 12rpx">
|
|
|
|
- <span class="fs14">¥</span>
|
|
|
|
- <span class="bold fs16">{{ item.price }}</span>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
+ <div class="flex justify-between">
|
|
|
|
+ <div style="color: #fc5b20; margin-top: 12rpx">
|
|
|
|
+ <span class="fs14">¥</span>
|
|
|
|
+ <span class="bold fs16">{{ item.price }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.subType">
|
|
|
|
+ <div class="tag" v-if="item.subType.includes('110')">欧王</div>
|
|
|
|
+ <div class="tag" v-if="item.subType.includes('120')">连击</div>
|
|
|
|
+ <div class="tag" v-if="item.subType.includes('112')">免单</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ style="margin-top: 12rpx; color: #a79e9e; font-size: 12px"
|
|
|
|
+ v-if="!item.subType && (type == 5 || type == 2)"
|
|
|
|
+ >
|
|
|
|
+ 剩余 {{ item.balaceNum }}/ {{ item.totalNum }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -130,17 +132,19 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { raffleListApi } from '@/api/drawCard'
|
|
import { raffleListApi } from '@/api/drawCard'
|
|
|
|
+import { couponCenter, couponReceive } from '@/api/coupon'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- click: 6,
|
|
|
|
list: [],
|
|
list: [],
|
|
type: 0,
|
|
type: 0,
|
|
|
|
+ couponList: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ this.getCouponList()
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
type() {
|
|
type() {
|
|
@@ -149,11 +153,33 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ activity() {
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '敬请期待',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ receive(item) {
|
|
|
|
+ if (item.status == 1) return
|
|
|
|
+ couponReceive({ couponId: item.id }).then(res => {
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '领取成功',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ })
|
|
|
|
+ this.getCouponList()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getCouponList() {
|
|
|
|
+ couponCenter().then(res => {
|
|
|
|
+ this.couponList = res.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getList() {
|
|
getList() {
|
|
let params = {
|
|
let params = {
|
|
limit: 999,
|
|
limit: 999,
|
|
page: 1,
|
|
page: 1,
|
|
type: this.type || '',
|
|
type: this.type || '',
|
|
|
|
+ isHot: this.type == 0,
|
|
}
|
|
}
|
|
raffleListApi(params).then(res => {
|
|
raffleListApi(params).then(res => {
|
|
let list = res.data.list
|
|
let list = res.data.list
|
|
@@ -194,7 +220,19 @@ export default {
|
|
width: 82px;
|
|
width: 82px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.tag {
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ margin-top: 12rpx;
|
|
|
|
+ height: 20px;
|
|
|
|
+ line-height: 20px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ background: #fc5b20;
|
|
|
|
+ color: #fff;
|
|
|
|
+ padding: 0 8rpx;
|
|
|
|
+ font-size: 13px;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+}
|
|
.more {
|
|
.more {
|
|
width: 28px;
|
|
width: 28px;
|
|
height: 98px;
|
|
height: 98px;
|