Commit 1542335e authored by Aivs's avatar Aivs

跳转第三方小程序

parent 6e38fb88
......@@ -16,7 +16,8 @@ Page({
banner: [],
channel: [],
coupon: [],
ad: []
ad: [],
gyhwshow:true
},
onShareAppMessage: function() {
......@@ -83,6 +84,17 @@ Page({
});
}
},
gonewshop(){
wx.navigateToMiniProgram({
appId: 'wx6df5f6815f4cba95', // 要跳转的小程序的appid
path: 'pages/common/blank-page/index', // 跳转的目标页面
});
},
closegot(){
this.setData({
gyhwshow:false
})
},
onLoad: function(options) {
console.log("options",options);
// 页面初始化 options为页面跳转所带来的参数
......
......@@ -235,4 +235,11 @@
<view class="txt">{{'更多'+item.name+'好物 >'}}</view>
</navigator>
</view> -->
<view class='back' wx:if='{{gyhwshow}}'>
<view class='goto'>
<view class='gotormd'>戈友商城已经迁移到戈有好物</view>
<view class='gototxt' bindtap='gonewshop'>跳转戈有好物</view>
</view>
<view class='closegot' bindtap='closegot'>X</view>
</view>
</view>
\ No newline at end of file
......@@ -867,4 +867,57 @@ page {
width: 64rpx;
height: 64rpx;
margin-top: 55rpx;
}
.back{
width:100%;
height: 100%;
background-color:rgba(0,0,0,0.5);
position: fixed;
top:0;
left:0;
}
.goto{
position: fixed;
top:50%;
left:50%;
transform: translate(-50%,-50%);
width:482rpx;
height:244rpx;
background:rgba(255,255,255,1);
border-radius:4px;
}
.gotormd{
font-size:30rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(51,51,51,1);
line-height:42px;
text-align: center;
border:1px solid rgba(217,217,217,1);
height:156rpx;
line-height: 156rpx;
}
.gototxt{
width:100%;
height:50rpx;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(237,14,27,1);
text-align: center;
line-height: 87rpx;
}
.closegot{
position: fixed;
width:60rpx;
height:60rpx;
border-radius: 50%;
border: 2px solid #fff;
color:#333;
font-size: 40rpx;
text-align: center;
line-height: 60rpx;
color:#fff;
top:70%;
left:50%;
}
\ No newline at end of file
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