Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
632c9163
Commit
632c9163
authored
Jun 29, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1e384fd2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
48 deletions
+5
-48
advmanager.vue
src/pages/activity/advmanager.vue
+1
-1
makeAd.vue
src/pages/activity/makeAd.vue
+2
-43
myadvert.vue
src/pages/activity/myadvert.vue
+2
-4
No files found.
src/pages/activity/advmanager.vue
View file @
632c9163
...
...
@@ -119,7 +119,7 @@ export default {
if
(
type
==
0
){
this
.
addatas
=
res
.
Data
.
PageData
}
else
{
this
.
addatas
=
this
.
addatas
.
concat
(
res
.
D
d
ata
.
PageData
)
this
.
addatas
=
this
.
addatas
.
concat
(
res
.
Data
.
PageData
)
}
this
.
total
=
res
.
Data
.
Count
}
...
...
src/pages/activity/makeAd.vue
View file @
632c9163
...
...
@@ -611,18 +611,6 @@
},
save
(
imgUrl
)
{
this
.
isLoading
=
true
;
// let msg = {
// ID: this.dataId,
// BaseAdvertisingID: this.templateId,
// content: JSON.stringify(this.nodes),
// AdvertisingPicUrl: '',
// SecretKey: '',
// fileName: '',
// fileSize: '',
// TCID: 0,
// IsAssociated: 0,
// }
let
msg
=
{
ID
:
this
.
dataId
,
AdvertisingPicUrl
:
''
,
...
...
@@ -630,49 +618,21 @@
Content
:
JSON
.
stringify
(
this
.
nodes
),
SecretKey
:
""
}
let
that
=
this
let
blob
=
that
.
base64ToBlob
(
imgUrl
)
// let newArr = [];
// newArr.push(blob);
// var fileName = `${that.uuid(10,10)}.png`
// // var path = `/Adv/user/${that.user.EmployeeId}/${fileName}`;
// var path = `/Adv/user/template/${fileName}`;
UploadViittoBlobFile
(
"Edu"
,
blob
,(
res
)
=>
{
this
.
isLoading
=
false
;
console
.
log
(
671
,
res
);
if
(
res
.
Code
===
1
){
msg
.
AdvertisingPicUrl
=
res
.
FileUrl
new
browserMD5File
(
blob
,
function
(
err
,
md5
)
{
msg
.
SecretKey
=
md5
;
saveMakeAd
(
msg
).
then
(
res
=>
{
console
.
log
(
651
,
res
)
})
// msg.fileName = fileName;
// msg.fileSize = blob.size;
// that.apipost("Advertising_post_Set", msg, x => {
// that.isLoading = false;
// that.outerVisible = false;
// if (x.data.resultCode == 1) {
// that.$message.success('保存成功!')
// if (msg.ID == 0) {
// that.dataId = x.data.data.result
// }
// } else
// that.$message.success(x.data.message)
// }, err => {})
})
}
},
'ad'
)
})
...
...
@@ -742,7 +702,6 @@
}
getAdvertisingList
(
this
.
adMsg
).
then
(
res
=>
{
if
(
res
.
Code
===
1
){
console
.
log
(
397
,
res
)
res
.
Data
.
PageData
.
forEach
(
x
=>
{
x
.
src
=
`
${
x
.
SamplePicturesUrl
}
?x-oss-process=image/resize,w_200`
x
.
id
=
x
.
ID
...
...
@@ -750,7 +709,7 @@
if
(
type
==
0
){
this
.
addatas
=
res
.
Data
.
PageData
}
else
{
this
.
addatas
=
this
.
addatas
.
concat
(
res
.
D
d
ata
.
PageData
)
this
.
addatas
=
this
.
addatas
.
concat
(
res
.
Data
.
PageData
)
}
this
.
total
=
res
.
Data
.
Count
if
(
res
.
Data
.
PageData
.
length
==
0
)
{
...
...
src/pages/activity/myadvert.vue
View file @
632c9163
...
...
@@ -91,12 +91,10 @@ export default {
if
(
type
==
0
){
this
.
addatas
=
res
.
Data
.
PageData
}
else
{
this
.
addatas
=
this
.
addatas
.
concat
(
res
.
D
d
ata
.
PageData
)
this
.
addatas
=
this
.
addatas
.
concat
(
res
.
Data
.
PageData
)
}
this
.
total
=
res
.
Data
.
pageCount
}
console
.
log
(
98
,
res
)
})
},
}
...
...
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