Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
df3402f7
Commit
df3402f7
authored
Oct 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无权限跳转
parent
503d5389
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
3 deletions
+151
-3
app.json
src/app.json
+3
-2
no_permission.png
src/assets/imgs/shop/no_permission.png
+0
-0
project.config.json
src/project.config.json
+8
-1
noPermission.js
src/subPackage/page/pages/noPermission/noPermission.js
+86
-0
noPermission.json
src/subPackage/page/pages/noPermission/noPermission.json
+4
-0
noPermission.wxml
src/subPackage/page/pages/noPermission/noPermission.wxml
+13
-0
noPermission.wxss
src/subPackage/page/pages/noPermission/noPermission.wxss
+37
-0
No files found.
src/app.json
View file @
df3402f7
...
...
@@ -55,14 +55,15 @@
"pages/categoryPro/categoryPro"
,
"pages/plus/plus"
,
"pages/friendShareList/friendShareList"
,
"pages/goToHome/goToHome"
"pages/goToHome/goToHome"
,
"pages/noPermission/noPermission"
]
}
],
"usingComponents"
:
{
"authorization-modal"
:
"/component/authorization-modal/authorization-modal"
},
"tabBar"
:{
"tabBar"
:
{
"custom"
:
false
,
"color"
:
"#BBBBBB"
,
"selectedColor"
:
"#333"
,
...
...
src/assets/imgs/shop/no_permission.png
0 → 100644
View file @
df3402f7
5.67 KB
src/project.config.json
View file @
df3402f7
...
...
@@ -39,7 +39,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
4
5
,
"current"
:
4
6
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -348,6 +348,13 @@
"pathName"
:
"pages/shopping/home/home"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"导购无权限"
,
"pathName"
:
"subPackage/page/pages/noPermission/noPermission"
,
"query"
:
""
,
"scene"
:
null
}
]
}
...
...
src/subPackage/page/pages/noPermission/noPermission.js
0 → 100644
View file @
df3402f7
// subPackage/page/pages/noPermission/noPermission.js
const
wxService
=
require
(
'../../../../utils/wxService'
)
let
intervalid
;
wxService
.
page
({
/**
* 页面的初始数据
*/
data
:
{
num
:
3
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
()
{
this
.
countdown
()
},
countdown
(){
const
{
num
}
=
this
.
data
if
(
num
<=
0
)
{
clearInterval
(
intervalid
)
return
}
intervalid
=
setTimeout
(()
=>
{
this
.
setData
({
num
:
num
-
1
},()
=>
{
this
.
countdown
();
this
.
goMall
()
});
},
1000
)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
goMall
()
{
clearInterval
(
intervalid
)
wxService
.
router
(
`/pages/userCenter/userCenter`
).
replace
()
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
clearTimeout
(
intervalid
)
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
\ No newline at end of file
src/subPackage/page/pages/noPermission/noPermission.json
0 → 100644
View file @
df3402f7
{
"navigationBarTitleText"
:
""
}
\ No newline at end of file
src/subPackage/page/pages/noPermission/noPermission.wxml
0 → 100644
View file @
df3402f7
<!--subPackage/page/pages/noPermission/noPermission.wxml-->
<view class="no-permission df">
<view class="permission-view">
<image class="permission-img" mode="widthFix" src="/assets/imgs/shop/no_permission.png"></image>
<view class="permission-tips">
<view>您还不是导购身份哦~</view>
<view>无法访问当前页面</view>
</view>
<view class="permission-num"><span class="num">{{num}}</span>秒后返回商城首页</view>
<view class="go-mall" bindtap="goMall">立即返回商城</view>
</view>
</view>
\ No newline at end of file
src/subPackage/page/pages/noPermission/noPermission.wxss
0 → 100644
View file @
df3402f7
/* subPackage/page/pages/noPermission/noPermission.wxss */
@import '/base/base.wxss';
.no-permission {
text-align: center;
}
.permission-view {
padding-top: 156rpx;
}
.permission-img {
width: 179rpx;
height: 179rpx;
}
.permission-tips {
padding-top: 82rpx;
color: rgba(51, 51, 51, 1);
font-size: 32rpx;
}
.permission-num {
padding: 216rpx 0 27rpx 0;
font-size: 26rpx;
color: #ccc;
}
.num {
color: rgba(224, 32, 32, 1);
}
.go-mall {
width: 550rpx;
height: 94rpx;
line-height: 94rpx;
border-radius: 6rpx;
background-color: rgba(0, 145, 255, 1);
color: rgba(255, 255, 255, 1);
font-size: 36rpx;
text-align: left;
text-align: center;
}
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