Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈玉桐
marketing
Commits
2a4521a9
Commit
2a4521a9
authored
Nov 13, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6f4b9f2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
tool.vue
src/views/tool.vue
+4
-5
No files found.
src/views/tool.vue
View file @
2a4521a9
...
...
@@ -162,7 +162,7 @@ export default {
this
.
timestamp
=
response
.
data
.
timestamp
wx
.
config
({
debug
:
fals
e
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
debug
:
tru
e
,
// 开启调试模式,调用的所有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
(
res
Server
)
{
// 返回图片的服务器端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
:
res
Server
.
serverId
}
}).
then
(
response
=>
{
me
.
loadingShow
=
false
me
.
tipDialogText
=
'上传成功'
me
.
tipDialogShow
=
true
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment