Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
c9948b00
Commit
c9948b00
authored
Mar 26, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化列表项参数
parent
2b1099d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
preview.vue
take-order/pages/photo/preview.vue
+15
-4
No files found.
take-order/pages/photo/preview.vue
View file @
c9948b00
...
...
@@ -12,6 +12,7 @@
<
script
>
import
qiniup
from
'@/components/upload/qiniup'
;
const
app
=
getApp
()
export
default
{
mixins
:
[
qiniup
],
data
()
{
...
...
@@ -25,19 +26,28 @@
fileMaps
:
[],
keys
:
[],
token
:
''
,
product
:
''
,
}
},
onLoad
(
e
)
{
// 获取照片选项对象
const
product
=
app
.
globalData
.
photo
.
product
this
.
product
=
`?brandId=
${
product
.
brandId
}
&brand=
${
product
.
brandName
}
&classifyId=
${
product
.
classifyId
}
&systemId=
${
product
.
systemId
}
`
if
(
app
.
globalData
.
photo
.
currentItem
)
{
// 获取规格Id
this
.
standardId
=
app
.
globalData
.
photo
.
currentItem
.
_id
}
getApp
().
trackPage
(
'照片预览页'
)
console
.
log
(
e
,
'e'
)
if
(
e
.
standardId
)
{
this
.
standardId
=
e
.
standardId
}
if
(
e
.
img
)
{
this
.
images
=
[
e
.
img
]
this
.
downloadImages
()
}
// if() {
// }
console
.
log
(
this
.
images
,
'this.images'
)
this
.
token
=
getApp
().
globalData
.
token
...
...
@@ -71,6 +81,7 @@
},
submitFile
()
{
let
self
=
this
if
(
self
.
keys
.
length
)
{
for
(
let
s
of
self
.
keys
)
{
self
.
$u
.
cloudApi
.
saveImage
({
...
...
@@ -82,7 +93,7 @@
if
(
res
.
result
)
{
// TODO 参数是否要来回传递
uni
.
navigateTo
({
url
:
'/pages/photo/list'
url
:
'/pages/photo/list'
+
self
.
product
})
}
else
{
uni
.
showToast
({
...
...
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