Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
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
刘怀志
intel_promotion_uniapp
Commits
b4b3ced7
Commit
b4b3ced7
authored
Aug 02, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口传参修改
parent
869f9c96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
20 deletions
+9
-20
index.vue
pages/shop/index.vue
+6
-15
index.vue
pages/spokesman/index.vue
+3
-5
No files found.
pages/shop/index.vue
View file @
b4b3ced7
...
...
@@ -130,8 +130,13 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
},
onShow
(){
console
.
log
(
'this.vuex_unit'
,
this
.
vuex_unit
)
if
(
this
.
vuex_unit
&&
this
.
vuex_unit
.
length
>
0
)
{
this
.
unitId
=
this
.
vuex_unit
[
0
].
businessId
if
(
this
.
vuex_unit
[
0
].
businessId
===
null
)
{
this
.
unitId
=
''
}
else
{
this
.
unitId
=
this
.
vuex_unit
[
0
].
businessId
}
}
else
{
this
.
unitId
=
''
}
...
...
@@ -181,20 +186,6 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
'nomore'
:
'loadmore'
const
baseApi
=
this
.
baseApi
;
console
.
log
(
"unitId"
,
this
.
unitId
)
if
(
this
.
unitList
&&
this
.
unitList
.
length
>
0
)
{
if
(
this
.
unitList
[
0
].
businessId
!==
null
){
console
.
log
(
1
)
this
.
unitId
=
this
.
unitList
[
0
].
businessId
}
else
{
console
.
log
(
2
)
this
.
unitId
=
''
}
}
else
{
console
.
log
(
3
)
this
.
unitId
=
''
}
console
.
log
(
"unitId"
,
this
.
unitId
)
this
.
$u
.
get
(
'/cmsnews/miniProgram/listByTop?page='
+
this
.
articlePage
+
'&rows='
+
this
.
articleRows
+
'&source=1'
+
'&unitId='
+
this
.
unitId
).
then
(
res
=>
{
if
(
this
.
articlePage
===
1
)
{
let
list
=
res
.
records
;
...
...
pages/spokesman/index.vue
View file @
b4b3ced7
...
...
@@ -69,13 +69,11 @@ export default {
this
.
status
=
this
.
page
*
this
.
rows
>=
this
.
total
?
'nomore'
:
'loadmore'
this
.
unitList
=
this
.
vuex_unit
console
.
log
(
"unitId"
,
this
.
unitId
)
console
.
log
(
this
.
unitList
[
0
].
businessId
)
if
(
this
.
unitList
&&
this
.
unitList
.
length
>
0
)
{
if
(
this
.
unitList
[
0
].
businessId
!==
null
){
this
.
unitId
=
this
.
unitList
[
0
].
businessId
}
else
{
if
(
this
.
unitList
[
0
].
businessId
===
null
)
{
this
.
unitId
=
''
}
else
{
this
.
unitId
=
this
.
unitList
[
0
].
businessId
}
}
else
{
this
.
unitId
=
''
...
...
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