|
@@ -48,7 +48,7 @@ var vm = new Vue({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created: function () {
|
|
created: function () {
|
|
- this.getType()
|
|
|
|
|
|
+ this.getType()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getType: function () {
|
|
getType: function () {
|
|
@@ -137,19 +137,37 @@ var vm = new Vue({
|
|
success: function (res) {
|
|
success: function (res) {
|
|
loading.clear()
|
|
loading.clear()
|
|
if (res.error_code == 0 && res.data.state == 1) {
|
|
if (res.error_code == 0 && res.data.state == 1) {
|
|
- _this.$toast({
|
|
|
|
- message: _this.someText.text + '成功',
|
|
|
|
- duration: 1500,
|
|
|
|
- forbidClick: true,
|
|
|
|
- onClose: function () {
|
|
|
|
- history.back()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ _this.pointsTaskSuccessTip()
|
|
} else {
|
|
} else {
|
|
_this.showToast(res.error_msg)
|
|
_this.showToast(res.error_msg)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 赚剑鱼币任务完成提示
|
|
|
|
+ pointsTaskSuccessTip: function() {
|
|
|
|
+ // 获取剑鱼币任务信息
|
|
|
|
+ const from = utils.getParam('from')
|
|
|
|
+ var point = utils.getParam('point') || 0
|
|
|
|
+ if(from && from === 'task'){
|
|
|
|
+ this.$toast({
|
|
|
|
+ message: `绑定邮箱成功,获得${point}剑鱼币。`,
|
|
|
|
+ duration: 1500,
|
|
|
|
+ forbidClick: true,
|
|
|
|
+ onClose: function () {
|
|
|
|
+ history.back()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$toast({
|
|
|
|
+ message: this.someText.text + '成功',
|
|
|
|
+ duration: 1500,
|
|
|
|
+ forbidClick: true,
|
|
|
|
+ onClose: function () {
|
|
|
|
+ history.back()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-})
|
|
|
|
|
|
+})
|