| | |
| | | <image |
| | | class="no-icon" |
| | | v-if="navIndex == 1" |
| | | src="@/static/img/used.png" |
| | | src="@/pages/subComponents/static/img/used.png" |
| | | ></image> |
| | | <image |
| | | class="no-icon" |
| | | v-if="navIndex == 2" |
| | | src="@/static/img/overdue.png" |
| | | src="@/pages/subComponents/static/img/overdue.png" |
| | | ></image> |
| | | <view |
| | | class="receive" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/components/uview-components/uview-ui'; |
| | | |
| | | import { getMemberCoupons } from "@/api/members.js"; |
| | | |
| | | export default { |
| | |
| | | title: "加载中", |
| | | }); |
| | | let index = this.tabCurrentIndex; |
| | | console.log(this.navList[index].params) |
| | | getMemberCoupons(this.navList[index].params).then((res) => { |
| | | uni.stopPullDownRefresh(); |
| | | if (res.data.success) { |
| | |
| | | * 立即使用优惠券 |
| | | */ |
| | | useItNow(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/navigation/search/searchPage?promotionsId=${item.couponId}&promotionType=COUPON`, |
| | | }); |
| | | |
| | | console.log('优惠卷详情--------------------->',JSON.stringify(item)) |
| | | // uni.navigateTo({ |
| | | // url: `/pages/navigation/search/searchPage?promotionsId=${item.couponId}&promotionType=COUPON`, |
| | | // }); |
| | | if(item.scopeType ==='PORTION_GOODS'){ |
| | | //获取优惠卷对应的商品 |
| | | //指定跳转到商品详情页面进行购买 |
| | | } |
| | | uni.navigateTo({ |
| | | url: `/pages/commodity-square/coups-goods-list?promotionsId=${item.couponId}&promotionType=COUPON` |
| | | }); |
| | | }, |
| | | |
| | | /** |