|
@@ -188,6 +188,7 @@ var task = new Vue({
|
|
|
},
|
|
|
data: {
|
|
|
platform: 'app',
|
|
|
+ power: {},
|
|
|
conf: {
|
|
|
before: 0, // 单位: s
|
|
|
clock: '10:00:00',
|
|
@@ -432,7 +433,7 @@ var task = new Vue({
|
|
|
disabled = true
|
|
|
} else if (anchor1.className === 'received') {
|
|
|
if (anchor2.className === 'unreceived') {
|
|
|
- buttonText = '已领取1个月,继续任务,可再领一个月超级订阅'
|
|
|
+ buttonText = '已领取1个月,继续任务,可再领1个月超级订阅'
|
|
|
disabled = true
|
|
|
}
|
|
|
}
|
|
@@ -451,6 +452,7 @@ var task = new Vue({
|
|
|
created: function () {
|
|
|
this.platform = utils.isWeiXinBrowser ? 'wx' : 'app'
|
|
|
this.ajaxActiveStatus()
|
|
|
+ this.getPower()
|
|
|
this.ajaxProgress()
|
|
|
this.getMissionList()
|
|
|
},
|
|
@@ -461,6 +463,18 @@ var task = new Vue({
|
|
|
this.stickyTopEvents()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getPower: function () {
|
|
|
+ var _this = this
|
|
|
+ $.ajax({
|
|
|
+ type: 'post',
|
|
|
+ url: '/bigmember/use/isAdd',
|
|
|
+ success: function (res) {
|
|
|
+ if (res && res.data) {
|
|
|
+ Object.assign(_this.power, res.data)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
clickEvents: function () {
|
|
|
var _this = this
|
|
|
$('.j-header.jy-app-header').on('click', function () {
|
|
@@ -736,7 +750,7 @@ var task = new Vue({
|
|
|
if (coupons.length === 1) {
|
|
|
var item = coupons[0]
|
|
|
if (!item.IsReceive && item.IsUser) {
|
|
|
- return this.toBuyVip()
|
|
|
+ return this.toBuyVip(item.query)
|
|
|
}
|
|
|
}
|
|
|
var idArr = []
|
|
@@ -778,19 +792,23 @@ var task = new Vue({
|
|
|
var priceArr = [
|
|
|
{
|
|
|
price: 38,
|
|
|
- text: '/月/省'
|
|
|
+ text: '/月/省',
|
|
|
+ query: 'cycle=0'
|
|
|
},
|
|
|
{
|
|
|
price: 99,
|
|
|
- text: '/季/省'
|
|
|
+ text: '/季/省',
|
|
|
+ query: 'cycle=1'
|
|
|
},
|
|
|
{
|
|
|
price: 380,
|
|
|
- text: '/年/省'
|
|
|
+ text: '/年/省',
|
|
|
+ query: 'cycle=2'
|
|
|
},
|
|
|
{
|
|
|
price: 599,
|
|
|
- text: '/月/全国'
|
|
|
+ text: '/月/全国',
|
|
|
+ query: 'cycle=0&count=-1'
|
|
|
},
|
|
|
]
|
|
|
var arr = list.sort(function (a, b) {
|
|
@@ -803,6 +821,7 @@ var task = new Vue({
|
|
|
if (priceArr[i].price - full >= 0) {
|
|
|
var pay = priceArr[i].price - reduce
|
|
|
item.tipText = prefix + priceArr[i].text + ':券后<span class="num">' + pay + '</span>元'
|
|
|
+ item.query = priceArr[i].query
|
|
|
break
|
|
|
}
|
|
|
}
|
|
@@ -921,6 +940,7 @@ var task = new Vue({
|
|
|
} else {
|
|
|
this.shareShow = true
|
|
|
}
|
|
|
+ this.doShareAjax()
|
|
|
break
|
|
|
}
|
|
|
}
|
|
@@ -1044,16 +1064,24 @@ var task = new Vue({
|
|
|
})
|
|
|
},
|
|
|
receiveFuli3: function () {
|
|
|
- if (this.activeState !== 'activating') {
|
|
|
- return this.activeNotStartToast()
|
|
|
+ if (this.activeState === 'activating') {
|
|
|
+ if (this.power.memberStatus > 0) {
|
|
|
+ if (utils.isWeiXinBrowser) {
|
|
|
+ location.href = '/big/wx/page/landingPage'
|
|
|
+ } else {
|
|
|
+ location.href = '/jyapp/big/page/main_root'
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
if (utils.isWeiXinBrowser) {
|
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=super_membership_day'
|
|
|
} else {
|
|
|
location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=super_membership_day'
|
|
|
}
|
|
|
},
|
|
|
- doCopy: function () {
|
|
|
+ doShareAjax: function () {
|
|
|
if (this.activeState === 'activating') {
|
|
|
var _this = this
|
|
|
$.ajax({
|
|
@@ -1061,16 +1089,12 @@ var task = new Vue({
|
|
|
type: 'post',
|
|
|
success: function (res) {
|
|
|
if (res.data) {
|
|
|
- _this.$toast('复制成功')
|
|
|
_this.ajaxProgress()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- } else {
|
|
|
- // this.$toast('活动尚未开始,敬请期待')
|
|
|
- this.activeNotStartToast()
|
|
|
}
|
|
|
- this.copyText('快来和我一起参与吧!剑鱼超级会员节,百万补贴限量抢,快速获取商机信息》\n' + this.copyLinkText)
|
|
|
+ // this.copyText('快来和我一起参与吧!剑鱼超级会员节,百万补贴限量抢,快速获取商机信息》\n' + this.copyLinkText)
|
|
|
},
|
|
|
copyText: function (text) {
|
|
|
const input = document.createElement('textarea') // js创建一个input输入框
|
|
@@ -1167,8 +1191,13 @@ var task = new Vue({
|
|
|
location.href = '/jyapp/big/page/landingPage'
|
|
|
}
|
|
|
},
|
|
|
- toBuyVip: function () {
|
|
|
- location.href = '/jy_mobile/common/order/create/svip?type=buy'
|
|
|
+ toBuyVip: function (query) {
|
|
|
+ var baseUrl = '/jy_mobile/common/order/create/svip?type=buy'
|
|
|
+ if (query) {
|
|
|
+ location.href = baseUrl + '&' + query
|
|
|
+ } else {
|
|
|
+ location.href = baseUrl
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|