浏览代码

feat: 新增剑鱼币绑定邮箱成功提示

zhangsiya 1 年之前
父节点
当前提交
d9a2c3dfdf

+ 28 - 10
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mail_bind.js

@@ -48,7 +48,7 @@ var vm = new Vue({
         }
     },
     created: function () {
-        this.getType()
+      this.getType()
     },
     methods: {
         getType: function () {
@@ -137,19 +137,37 @@ var vm = new Vue({
                 success: function (res) {
                     loading.clear()
                     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 {
                         _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()
+              }
+            })
+          }
+        }
     }
-})
+})

+ 1 - 1
src/jfw/modules/app/src/web/staticres/jyapp/me/js/phone_bind.js

@@ -470,7 +470,7 @@ var vm = new Vue({
             })
         },
         // 赚剑鱼币任务完成提示
-        pointsTaskSuccessTip () {
+        pointsTaskSuccessTip: function() {
           // 获取剑鱼币任务信息
           if(this.from === 'task' && this.type === 'bind'){
             var point = utils.getParam('point') || 0

+ 27 - 9
src/web/staticres/me/js/mail_bind.js

@@ -137,19 +137,37 @@ var vm = new Vue({
                 success: function (res) {
                     loading.clear()
                     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 {
                         _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()
+              }
+            })
+          }
+        }
     }
-})
+})

+ 1 - 1
src/web/staticres/me/js/phone_bind.js

@@ -401,7 +401,7 @@ var vm = new Vue({
             }
         },
       // 赚剑鱼币任务完成提示
-       pointsTaskSuccessTip () {
+       pointsTaskSuccessTip: function () {
         // 获取剑鱼币任务信息
         if(this.from === 'task' && this.type === 'bind'){
           var point = utils.getParam('point') || 0