diff --git a/me/task/index.vue b/me/task/index.vue
index 91a811d..e37cc96 100644
--- a/me/task/index.vue
+++ b/me/task/index.vue
@@ -10,21 +10,21 @@
新人好礼送不停
-
+
{{ item.title}}
-
- {{ item.tip }}
+
+ {{ item.rewardDetail }}
- {{ item.subhead }}
+ {{ item.detail }}
- {{ item.btnText }}
- {{ item.btnText }}
- {{ item.btnText }}
+ {{ item.buttonTitle }}
+ {{ item.buttonTitle }}
+ {{ item.buttonTitle }}
查看奖品列表
@@ -41,6 +41,8 @@
data() {
return {
title: '',
+ page: 1,
+ limit: 999,
background: {
backgroundImage: 'linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%)'
},
@@ -51,49 +53,49 @@
{
title: '每日签到奖励', type: 2, url: '/pages/index/index', icon: '../../static/images/me/task_icon3.png', tip: '奖励8898金币', subhead: '每日付款满3笔即可获得', btnText:'立即看剧'
},
- // {
- // title: '每周打卡奖励', type: 3, url: '/me/invite/index', icon: '', tip: '', subhead: '签到满7天即可获得丰富好礼', btnText:'剩余23次'
- // },
- // {
- // title: '每月打卡奖励1', type: 4, url: '/me/invite/index', icon: '', tip: '', subhead: '当月签到满21天获得丰富好礼', btnText:'剩余233次'
- // },
- // {
- // title: '每月打卡奖励2', type: 5, url: '/me/invite/index', icon: '../../static/images/me/task_icon4.png', tip: '奖励金币', subhead: '当月签到满21天即可免费领取', btnText:'立即领取'
- // },
- // {
- // title: '观看视频奖励', type: 6, url: '/me/invite/index', icon: '../../static/images/me/task_icon3.png', tip: '奖励金币', subhead: '观看完整视频即可获得奖励', btnText:'观看视频'
- // },
+ {
+ title: '每周打卡奖励', type: 3, url: '/me/invite/index', icon: '', tip: '', subhead: '签到满7天即可获得丰富好礼', btnText:'剩余23次'
+ },
+ {
+ title: '每月打卡奖励1', type: 4, url: '/me/invite/index', icon: '', tip: '', subhead: '当月签到满21天获得丰富好礼', btnText:'剩余233次'
+ },
+ {
+ title: '每月打卡奖励2', type: 5, url: '/me/invite/index', icon: '../../static/images/me/task_icon4.png', tip: '奖励金币', subhead: '当月签到满21天即可免费领取', btnText:'立即领取'
+ },
+ {
+ title: '观看视频奖励', type: 6, url: '/me/invite/index', icon: '../../static/images/me/task_icon3.png', tip: '奖励金币', subhead: '观看完整视频即可获得奖励', btnText:'观看视频'
+ },
]
}
},
- onLoad() {
-
+ onShow() {
+ this.getvipdata()
},
methods: {
//
- goNav(url,type) {
+ goNav( item ) {
console.log(url)
if ( type == 2) {
uni.switchTab({
- url: url
+ url: item.buttonUrl
})
} else {
uni.navigateTo({
- url: url
- })
+ url: item.buttonUrl
+ })
}
},
getvipdata() {
let data = {
- userId: uni.getStorageSync('userId')
+ page: this.page,
+ limit: this.limit
}
- this.$u.api.userVip(data).then(res => {
- if (res.code == 0 && res.data && res.data.isVip == 2) {
- this.isVIP = true;
- this.vipData = res.data.endTime
+ this.$Request.getT('app/taskCenter/selectTaskCenter', data).then(res => {
+ if (res.code == 0 ) {
+ this.cellList = res.data.records
} else {
- this.isVIP = false
+
}
})