Commit 433c0819 authored by zhengke's avatar zhengke

修改

parent 6f3b618e
...@@ -217,7 +217,16 @@ ...@@ -217,7 +217,16 @@
</template> </template>
</view> </view>
</template> </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"> <view v-if="showtabs == true">
<tabbar></tabbar> <tabbar></tabbar>
</view> </view>
...@@ -346,6 +355,8 @@ export default { ...@@ -346,6 +355,8 @@ export default {
AppletID: 0, //判断小程序的id,相亲:11 AppletID: 0, //判断小程序的id,相亲:11
page_idt: 0, //首页组件分享参数 page_idt: 0, //首页组件分享参数
boxpaddingbottom: 0, //底部的高度 boxpaddingbottom: 0, //底部的高度
mall_Info:{},
currentParent:''
}; };
}, },
components: { components: {
...@@ -638,9 +649,15 @@ export default { ...@@ -638,9 +649,15 @@ export default {
this.getstartModel(nowtime); this.getstartModel(nowtime);
} }
} }
that.mall_Info = uni.getStorageSync("basedata");
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
}, },
created() {}, created() {
let pages = getCurrentPages(); //获取加载的页面
let currentPage = pages[pages.length - 1]; //获取当前页面的对象
this.currentParent = currentPage.route ;//当前页面url
},
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
onShareTimeline() { onShareTimeline() {
setTimeout(() => { setTimeout(() => {
...@@ -689,11 +706,13 @@ export default { ...@@ -689,11 +706,13 @@ export default {
path = "user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up; path = "user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + Up;
} }
console.log(path); console.log(path);
return { return {
title: title, title: title,
query: path, query: path,
imageUrl: "", imageUrl: "",
}; };
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
setTimeout(() => { setTimeout(() => {
...@@ -1726,4 +1745,29 @@ export default { ...@@ -1726,4 +1745,29 @@ export default {
font-size: 36rpx; font-size: 36rpx;
color: #8f8f94; color: #8f8f94;
} */ } */
.contract_nav {
position: fixed;
bottom: 15%;
right: 10rpx;
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> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment