junyuanz лет назад: 5
Родитель
Сommit
2439ee6681
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      pages/projects/project-detail/project-detail.js

+ 8 - 8
pages/projects/project-detail/project-detail.js

@@ -498,21 +498,21 @@ Page({
           }
         },
         fail: function (res) {
-        	var url = 'v1/update/poster/' + this.data.productId
+        	var url = 'v1/update/poster/' + that.data.productId
 			    var params = {
 			      type: 'project'
 			    }
-			    var success = function (res) {
+			    var success = function (res2) {
 			      wx.getImageInfo({
-			        src: res.data.qrcode_url,
-			        success: function (res) {
-			          that.posterImage.qcode = res
+			        src: res2.data.qrcode_url,
+			        success: function (res2) {
+			          that.posterImage.qcode = res2
 			          that.posterLoading++
 			          if (that.posterLoading === 4) {
 			            that.createCtx()
 			          }
 			        },
-			        fail: function (res) {
+			        fail: function (res2) {
 			          that.qcodeError = true
 			          if (that.data.posterPopup) {
 			            that.setData({
@@ -529,8 +529,8 @@ Page({
 			      })
 			      wx.getImageInfo({
 			        src: res.data.wx_head,
-			        success: function (res) {
-			          that.posterImage.head = res
+			        success: function (res2) {
+			          that.posterImage.head = res2
 			          that.posterLoading++
 			          if (that.posterLoading === 4) {
 			            that.createCtx()