|
|
@@ -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()
|