|
@@ -60,6 +60,7 @@ var vm = new Vue({
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
+ this.getHasWeekMonthData()
|
|
|
this.getUserRoot()
|
|
|
if (firstTime) {
|
|
|
firstTime = `${firstTime}_${firstTime}`
|
|
@@ -188,15 +189,13 @@ var vm = new Vue({
|
|
|
getHasWeekMonthData: function () {
|
|
|
var _this = this
|
|
|
$.ajax({
|
|
|
- url: '/bigmember/report/starttime',
|
|
|
+ url: '/subscribepay/report/starttime',
|
|
|
type: 'POST',
|
|
|
success: function(res) {
|
|
|
// 如果是商机管理、大会员、超级订阅会员有筛选权限
|
|
|
- if (res.error_msg == '' && res.data) {
|
|
|
- if (res.data.week_starttime != 0 && res.data.month_starttime != 0) {
|
|
|
- window.isUserWeekMonthStatus = true
|
|
|
- _this.checkShowFreeLink()
|
|
|
- }
|
|
|
+ if (res != 0) {
|
|
|
+ window.isUserWeekMonthStatus = true
|
|
|
+ _this.checkShowFreeLink()
|
|
|
}
|
|
|
}
|
|
|
})
|