Commit 2a4521a9 by 陈玉桐

fix

parent 6f4b9f2a
......@@ -162,7 +162,7 @@ export default {
this.timestamp = response.data.timestamp
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: this.appId, // 必填,公众号的唯一标识
timestamp: this.timestamp, // 必填,生成签名的时间戳
nonceStr: this.nonceStr, // 必填,生成签名的随机串
......@@ -231,8 +231,8 @@ export default {
wx.uploadImage({
localId: res.localIds[0], // 需要上传的图片的本地ID,由chooseImage接口获得
isShowProgressTips: 1, // 默认为1,显示进度提示
success: function (res) {
var serverId = res.serverId; // 返回图片的服务器端ID serverId
success: function (resServer) {
// 返回图片的服务器端ID serverId
me.loadingShow = true
request({
url: '/api/MarketingToolApi/Posters/addPoster',
......@@ -241,11 +241,10 @@ export default {
token: localStorage.getItem("token"),
activityId: me.activityId,
day: me.currentDay,
MediaId: res.serverId
MediaId: resServer.serverId
}
}).then(response => {
me.loadingShow = false
me.tipDialogText = '上传成功'
me.tipDialogShow = true
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment