...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" inactive-color="#969799" active-color="#3E554E"
|
|
|
bar-width="90" bar-height="3" gutter="163" :current="Tabcurrent" @change="change"></u-tabs-swiper>
|
|
|
</view>
|
|
|
|
|
|
<swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
|
|
|
<swiper-item class="swiper-item">
|
|
|
<!-- 第一部分 -->
|
...
|
...
|
@@ -183,7 +184,6 @@ |
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
isMyYouHui:false,
|
...
|
...
|
@@ -232,36 +232,6 @@ |
|
|
url: "../../home/home"
|
|
|
})
|
|
|
},
|
|
|
//请求我的优惠卷接口
|
|
|
// First_rqs_MyYouhuiData() {
|
|
|
// let data = {
|
|
|
// status: this.status,
|
|
|
// page: this.page,
|
|
|
// }
|
|
|
// this.$rqs("/api/coupon/getUserCoupon2", data).then(res => {
|
|
|
// console.log(res, "+++++++");
|
|
|
// //整理后台返回数据
|
|
|
// this.houtaiYouhuiArry = res.data.data; //houtaiYouhuiArry是后台数据
|
|
|
// let current_page = res.data.data.current_page //当前页 page1 可以
|
|
|
// let last_page = res.data.data.last_page //最后页 值是2
|
|
|
// let houtaiYouhuiData = res.data.data.data //渲染的数据
|
|
|
// houtaiYouhuiData.forEach(item => {
|
|
|
// item.price = parseInt(item.price);
|
|
|
// item.bottom_price = parseInt(item.bottom_price)
|
|
|
// let d = new Date(item.end_time * 1000);
|
|
|
// item.end_time = (d.getFullYear()) + "." + (d.getMonth() + 1) + "." + (d
|
|
|
// .getDate()) + '到期'
|
|
|
// })
|
|
|
// // price = parseInt(price)
|
|
|
// console.log(houtaiYouhuiData);
|
|
|
// console.log(houtaiYouhuiData);
|
|
|
// console.log(houtaiYouhuiData);
|
|
|
// this.houtaiYouhuiData = houtaiYouhuiData; //赋值操作
|
|
|
// })
|
|
|
// },
|
|
|
shouQuan() {
|
|
|
|
|
|
},
|
|
|
//后台接口调用
|
|
|
youHujuanDataOne(s, p) {
|
|
|
console.log(p);
|
...
|
...
|
|