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
c8e53b5b
Commit
c8e53b5b
authored
Mar 26, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页接口变更
parent
e11175e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
43 deletions
+19
-43
index.vue
take-order/pages/photo/index.vue
+19
-43
No files found.
take-order/pages/photo/index.vue
View file @
c8e53b5b
...
...
@@ -5,8 +5,8 @@
<view
class=
"topTitle"
><text>
{{
dataItem
.
title
}}
</text></view>
<view
class=
"ph-pr-content"
>
<view
v-for=
"(item,ikey) in dataItem.data"
:class=
"param[dataItem.type] === item.
_
id ? 'select-item-view' : 'item-view'"
@
click=
"itemClick(dataItem.type, item
)"
:key=
"item._
id"
>
:class=
"param[dataItem.type] === item.id ? 'select-item-view' : 'item-view'"
@
click=
"itemClick(dataItem.type, item
, ikey)"
:key=
"item.
id"
>
<text
class=
"itemTitle"
>
{{
item
.
name
}}
</text>
</view>
</view>
...
...
@@ -59,8 +59,7 @@
},
onLoad
(
e
)
{
getApp
().
trackPage
(
'选择产品页'
)
this
.
getclassifyList
()
this
.
getRelationDictionaryV2
()
},
onShareAppMessage
(
res
)
{
let
shareObj
=
{
...
...
@@ -72,69 +71,46 @@
}
return
shareObj
},
methods
:
{
getclassifyList
:
function
()
{
let
that
=
this
this
.
$u
.
cloudApi
.
getClassifyDictionary
().
then
(
res
=>
{
console
.
log
(
'获取产品数据:'
)
methods
:
{
getRelationDictionaryV2
:
function
()
{
this
.
$u
.
cloudApi
.
getRelationDictionaryV2
().
then
(
res
=>
{
console
.
log
(
'V2:'
)
console
.
log
(
res
)
if
(
res
.
result
&&
res
.
result
.
data
)
{
that
.
classifyList
=
res
.
result
.
data
that
.
param
.
classifyId
=
that
.
classifyList
[
0
].
_id
that
.
$u
.
cloudApi
.
getRelationDictionary
({
"classify_id"
:
that
.
param
.
classifyId
,
"field"
:
"system_id"
}).
then
(
res1
=>
{
that
.
systemList
=
res1
.
result
})
if
(
res
&&
res
.
result
)
{
this
.
classifyList
=
res
.
result
this
.
param
.
classifyId
=
res
.
result
[
0
].
id
this
.
systemList
=
res
.
result
[
0
].
child
}
})
},
//选择 点击
itemClick
:
function
(
type
,
item
)
{
itemClick
:
function
(
type
,
item
,
ikey
)
{
switch
(
type
)
{
case
'classifyId'
:
this
.
param
=
{
classifyId
:
item
.
_
id
,
classifyId
:
item
.
id
,
systemId
:
''
,
brandId
:
''
}
this
.
selectedAll
=
false
this
.
systemList
=
[]
this
.
systemList
=
this
.
classifyList
[
ikey
].
child
this
.
brandList
=
[]
this
.
$u
.
cloudApi
.
getRelationDictionary
({
"classify_id"
:
this
.
param
.
classifyId
,
"field"
:
"system_id"
}).
then
(
res
=>
{
this
.
systemList
=
res
.
result
})
break
case
'systemId'
:
this
.
param
=
{
classifyId
:
this
.
param
.
classifyId
,
systemId
:
item
.
_
id
,
systemId
:
item
.
id
,
brandId
:
''
}
this
.
selectedAll
=
false
this
.
brandList
=
[]
this
.
$u
.
cloudApi
.
getRelationDictionary
({
"classify_id"
:
this
.
param
.
classifyId
,
"system_id"
:
this
.
param
.
systemId
,
"field"
:
"brand_id"
}).
then
(
res
=>
{
console
.
log
(
'获取品牌数据:'
,
res
)
this
.
brandList
=
res
.
result
})
this
.
brandList
=
this
.
systemList
[
ikey
].
child
break
case
'brandId'
:
this
.
param
.
brandId
=
item
.
_
id
this
.
param
.
brandId
=
item
.
id
this
.
selectedAll
=
true
this
.
brandName
=
item
.
name
break
...
...
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