Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wx-shopping-mall
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
engine
wx-shopping-mall
Commits
1542335e
Commit
1542335e
authored
Aug 21, 2020
by
Aivs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转第三方小程序
parent
6e38fb88
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
1 deletion
+73
-1
index.js
pages/index/index.js
+13
-1
index.wxml
pages/index/index.wxml
+7
-0
index.wxss
pages/index/index.wxss
+53
-0
No files found.
pages/index/index.js
View file @
1542335e
...
@@ -16,7 +16,8 @@ Page({
...
@@ -16,7 +16,8 @@ Page({
banner
:
[],
banner
:
[],
channel
:
[],
channel
:
[],
coupon
:
[],
coupon
:
[],
ad
:
[]
ad
:
[],
gyhwshow
:
true
},
},
onShareAppMessage
:
function
()
{
onShareAppMessage
:
function
()
{
...
@@ -83,6 +84,17 @@ Page({
...
@@ -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
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
"options"
,
options
);
console
.
log
(
"options"
,
options
);
// 页面初始化 options为页面跳转所带来的参数
// 页面初始化 options为页面跳转所带来的参数
...
...
pages/index/index.wxml
View file @
1542335e
...
@@ -235,4 +235,11 @@
...
@@ -235,4 +235,11 @@
<view class="txt">{{'更多'+item.name+'好物 >'}}</view>
<view class="txt">{{'更多'+item.name+'好物 >'}}</view>
</navigator>
</navigator>
</view> -->
</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>
</view>
\ No newline at end of file
pages/index/index.wxss
View file @
1542335e
...
@@ -868,3 +868,56 @@ page {
...
@@ -868,3 +868,56 @@ page {
height: 64rpx;
height: 64rpx;
margin-top: 55rpx;
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
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