Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
433c0819
Commit
433c0819
authored
Feb 24, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6f3b618e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
index.vue
pages/index/index.vue
+46
-2
No files found.
pages/index/index.vue
View file @
433c0819
...
...
@@ -217,7 +217,16 @@
</
template
>
</view>
</template>
<view
class=
"contract_nav"
v-if=
"mall_Info.mall&&mall_Info.mall.id==5"
>
<button
class=
"Ma_nav-item"
show-message-card=
"true"
:send-message-path=
"currentParent"
open-type=
"contact"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1644833656000_313.png"
/>
</button>
</view>
<view
v-if=
"showtabs == true"
>
<tabbar></tabbar>
</view>
...
...
@@ -346,6 +355,8 @@ export default {
AppletID
:
0
,
//判断小程序的id,相亲:11
page_idt
:
0
,
//首页组件分享参数
boxpaddingbottom
:
0
,
//底部的高度
mall_Info
:{},
currentParent
:
''
};
},
components
:
{
...
...
@@ -638,9 +649,15 @@ export default {
this
.
getstartModel
(
nowtime
);
}
}
that
.
mall_Info
=
uni
.
getStorageSync
(
"basedata"
);
uni
.
showNavigationBarLoading
();
},
created
()
{},
created
()
{
let
pages
=
getCurrentPages
();
//获取加载的页面
let
currentPage
=
pages
[
pages
.
length
-
1
];
//获取当前页面的对象
this
.
currentParent
=
currentPage
.
route
;
//当前页面url
},
// #ifdef MP-WEIXIN
onShareTimeline
()
{
setTimeout
(()
=>
{
...
...
@@ -689,11 +706,13 @@ export default {
path
=
"user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
Up
;
}
console
.
log
(
path
);
return
{
title
:
title
,
query
:
path
,
imageUrl
:
""
,
};
},
onShareAppMessage
(
res
)
{
setTimeout
(()
=>
{
...
...
@@ -1726,4 +1745,29 @@ export default {
font-size: 36rpx;
color: #8f8f94;
} */
.contract_nav
{
position
:
fixed
;
bottom
:
15%
;
right
:
10
rpx
;
height
:
auto
;
width
:
80px
;
z-index
:
99999999999
;
display
:
flex
;
flex-direction
:
column
;
}
.Ma_nav-item
{
width
:
80px
;
height
:
80px
;
border-radius
:
50px
;
margin-top
:
12px
;
border
:
none
;
outline
:
none
;
background
:
transparent
;
padding
:
0px
;
}
.Ma_nav-item
::after
{
border
:
none
;
}
.contract_nav
.Ma_nav-item
img
{
width
:
80px
;
height
:
80px
;
}
</
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