Commit e326563d authored by lijiongliang's avatar lijiongliang

首页添加图标

parent 9c9f96a9
......@@ -33,6 +33,14 @@
</view>
</view>
</view>
<view class="banner-other">
<view @click="goShopH5(1)">
<image src="../static/index/2.png"></image>
</view>
<view @click="goShopH5(2)">
<image src="../static/index/1.png"></image>
</view>
</view>
<u-gap bgColor="transparent" height="20"></u-gap>
</view>
......@@ -90,6 +98,18 @@
};
},
methods: {
goShopH5(index){
let url;
if(index == 1){
url = 'https://pro.m.jd.com/mall/active/3L2hs3R3aibYmosCRzA2Rp5z8pTR/index.html?babelChannel=ttt1'
}else{
url = 'https://jarvis.m.jd.com/start?source=2'
}
// uni.setStorageSync('h5url',url)
util.redirectToH5({page:url})
},
// 跳转 其他小程序页面
goJdShop(index){
let sku;
if(index == 1){
......@@ -404,6 +424,7 @@
.banner{
width:100%;
margin-top:70rpx;
position: relative;
.banner-img,
.banner-btn{
margin: 0 auto;
......@@ -442,6 +463,23 @@
}
}
.banner-other{
position: absolute;
right:-22rpx;top:-90rpx;
>view{
&:first-child{
width: 172rpx;height:140rpx;
}
&:last-child{
margin-top:20rpx;
margin-left:34rpx;
width: 120rpx;height:112rpx;
}
image{
width:100%;height:100%;
}
}
}
}
.bg-img{
......
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