Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
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
李伟
cust-app
Commits
a8b82e47
Commit
a8b82e47
authored
Dec 20, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接了banner相关接口,后续要改
parent
4b897d7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
index.vue
pages/tab/index.vue
+3
-4
index.vue
pageslogin/index/index.vue
+17
-14
No files found.
pages/tab/index.vue
View file @
a8b82e47
...
...
@@ -14,8 +14,7 @@
<!-- 轮播图 后面放banner里的图-->
<view
class=
"box"
>
<view
class=
"swiper"
>
<ls-swiper
:list=
"userData.imgList"
imgKey=
""
:loop=
"true"
:dots=
"true"
:autoplay=
"true"
:height=
"200"
/>
<ls-swiper
:list=
"bannerList"
imgKey=
""
:loop=
"true"
:dots=
"true"
:autoplay=
"true"
:height=
"200"
/>
</view>
</view>
<!-- 公告-->
...
...
@@ -128,7 +127,6 @@
<image
src=
"../../static/images/share.png"
class=
"simg"
mode=
"aspectFill"
></image>
将
{{
userData
.
gender
!=
'MALE'
?
'她'
:
'他'
}}
推荐给好友
</u-button>
<!--
<view
class=
"name"
>
将
{{
userData
.
gender
!=
'MALE'
?
'她'
:
'他'
}}
推荐给好友
</view>
-->
</view>
<view
class=
"fe"
>
<view
class=
""
style=
"height: 40rpx;display: flex;align-items: center;margin-top: 26rpx;"
>
...
...
@@ -280,7 +278,8 @@
rows
:
this
.
queryParam
.
rows
}
bannerList
(
query
).
then
(
res
=>
{
this
.
bannerList
=
res
.
data
.
rows
//将res.data.rows集合里的bannerPicture取出来,放到集合中
this
.
bannerList
=
res
.
data
.
rows
.
map
(
item
=>
item
.
bannerPicture
)
}).
catch
(
e
=>
{
console
.
log
(
e
)
})
...
...
pageslogin/index/index.vue
View file @
a8b82e47
...
...
@@ -43,17 +43,20 @@
};
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'itemobj'
))
{
uni
.
switchTab
({
url
:
'/pages/tab/index'
});
// this.falg = false
}
else
{
console
.
log
(
'[]'
);
setTimeout
(()
=>
{
this
.
falg
=
true
;
},
1000
);
}
uni
.
switchTab
({
url
:
'/pages/tab/index'
});
// if (uni.getStorageSync('itemobj')) {
// uni.switchTab({
// url: '/pages/tab/index'
// });
// // this.falg = false
// } else {
// console.log('[]');
// setTimeout(() => {
// this.falg = true;
// }, 1000);
// }
},
components
:
{
ELM
...
...
@@ -167,7 +170,7 @@
},
// 生成指定长度的随机字符串
generateRandomString
(
length
)
{
debugger
let
result
=
uni
.
getStorageSync
(
'touristopenid'
);
if
(
result
!=
null
&&
result
!=
""
)
{
...
...
@@ -176,7 +179,7 @@
result
=
''
;
}
const
characters
=
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
;
// 包含大小写字母和数字的所有字符集合
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
const
randomIndex
=
Math
.
floor
(
Math
.
random
()
*
characters
.
length
);
result
+=
characters
[
randomIndex
];
...
...
@@ -321,4 +324,4 @@
pointer-events
:
none
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
</
style
>
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