Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
德宏大魔王
uni-starter
提交
233c20ab
U
uni-starter
项目概览
德宏大魔王
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
233c20ab
编写于
4月 07, 2021
作者:
L
linju
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
213
上级
a5944d62
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
396 addition
and
213 deletion
+396
-213
App.vue
App.vue
+10
-0
manifest.json
manifest.json
+3
-1
pages.json
pages.json
+17
-8
pages/settings/settings11.nvue
pages/settings/settings11.nvue
+110
-0
pages/ucenter/ucenter.vue
pages/ucenter/ucenter.vue
+241
-196
uni_modules/uni-login-page/pages/index/index.vue
uni_modules/uni-login-page/pages/index/index.vue
+9
-5
uni_modules/uni-quick-login/components/uni-quick-login/uni-quick-login.vue
...uick-login/components/uni-quick-login/uni-quick-login.vue
+6
-3
未找到文件。
App.vue
浏览文件 @
233c20ab
...
...
@@ -30,4 +30,14 @@
box-sizing
:
border-box
;
/* #endif */
}
/* #ifndef APP-NVUE */
view
,
scroll-view
,
text
,
image
,
switch
,
navigator
,
icons
{
display
:
flex
;
box-sizing
:
border-box
;
}
scroll-view
{
-webkit-overflow-scrolling
:
touch
;
}
/* #endif */
</
style
>
manifest.json
浏览文件 @
233c20ab
...
...
@@ -17,7 +17,8 @@
},
"modules"
:
{
"OAuth"
:
{},
"Share"
:
{}
"Share"
:
{},
"Fingerprint"
:
{}
},
"distribute"
:
{
"android"
:
{
...
...
@@ -34,6 +35,7 @@
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.USE_FINGERPRINT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
...
...
pages.json
浏览文件 @
233c20ab
...
...
@@ -22,15 +22,24 @@
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"navigationStyle"
:
"custom"
,
"backgroundColor"
:
"transparent"
,
"app-plus"
:
{
"titleNView"
:
{
"buttons"
:
[{
"text"
:
"帮助"
,
"type"
:
"none"
,
"fontSize"
:
"16px"
,
"width"
:
"60px"
}]
}
"animationType"
:
"fade-in"
,
"background"
:
"transparent"
,
"popGesture"
:
"none"
,
"titleNView"
:
false
//
"navigationBarTitleText"
:
""
,
//
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
//
"app-plus"
:
{
//
"titleNView"
:
{
//
"buttons"
:
[{
//
"text"
:
"帮助"
,
//
"type"
:
"none"
,
//
"fontSize"
:
"16px"
,
//
"width"
:
"60px"
//
}]
//
}
}
}
},
{
...
...
pages/settings/settings11.nvue
0 → 100644
浏览文件 @
233c20ab
<template>
<view class="content">
<uni-list class="content">
<uni-list-item v-for="(item , index) in agreeList" :key="index" :title="item.title" :to="item.to"
:clickable="true" @click="itemClick(item)" :showSwitch="item.showSwitch"
:switchChecked="item.isChecked"
:link="item.link"></uni-list-item>
</uni-list>
<button class="bottom-back" @click="clickLogout"><text class="bottom-back-text">退出登录</text></button>
</view>
</template>
<script>
import {
isOn,
setting
} from '@/common/dc-push/push.js';
import {
mapMutations
} from 'vuex';
export default {
data() {
return {
agreeList: [{
title: '个人资料',
to: '',
link:true
},
{
title: '修改密码',
to: '',
link:true
}, {
title: '注销用户',
event: '',
link:true
}, {
title: '推送功能',
name: 'push',
event: 'openSetting',
isChecked: false,
showSwitch: true,
},
{
title: "录入指纹",
name: 'fingerprint',
link:true
}, {
title: '清理缓存',
event: '',
link:true
}
]
}
},
onShow() {
let pushIsOn = isOn();
this.agreeList.forEach(item => {
item.name == 'push' ? (item.isChecked = pushIsOn) : '';
})
},
methods: {
...mapMutations({
logout: 'user/logout'
}),
clickLogout() {
this.logout();
uni.navigateBack();
},
itemClick(item) {
if (!item.to && item.event) {
this[item.event]();
}
},
/**
* 打开设置页面
*/
openSetting() {
setting();
}
}
}
</script>
<style>
.content {
width: 750rpx;
display: flex;
flex-direction: column;
/* align-items: center; */
flex: 1;
}
.bottom-back {
width: 750rpx;
height: 120rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: none;
border-width: 0;
border-radius: 0;
}
.bottom-back-text {
font-size: 40rpx;
color: #DD524D;
}
</style>
pages/ucenter/ucenter.
n
vue
→
pages/ucenter/ucenter.vue
浏览文件 @
233c20ab
...
...
@@ -7,17 +7,20 @@
<text
class=
"go-login-navigat-arrow navigat-arrow"
v-if=
"!login"
>

</text>
</view>
</view>
<uni-list class="center-list">
<template v-for="(sublist , index) in ucenterList">
<uni-list-item :title="item.title" :rightText="item.rightText" :to="item.to"
v-for="(item, subIndex) in sublist" :key="(index + '_' + subIndex)" @click="ucenterListClick(item)" :clickable="true"></uni-list-item>
<!-- #ifdef APP-NVUE -->
<cell class="center-list-cell"></cell>
<!-- #endif -->
<!-- #ifndef APP-PLUS -->
<view class="center-list-cell"></view>
<!-- #endif -->
</template>
<uni-grid
class=
"grid"
:column=
"5"
:showBorder=
"false"
:square=
"true"
>
<uni-grid-item
class=
"item"
v-for=
"(
{text,icon},index) in gridList" @click.native="tapGrid(index)">
<uni-icons
class=
"icon"
color=
"#5d5e64"
:type=
"icon"
size=
"28"
></uni-icons>
<text
class=
"text"
>
{{
text
}}
</text>
</uni-grid-item>
</uni-grid>
<uni-list
class=
"center-list"
v-for=
"(sublist , index) in ucenterList"
>
<uni-list-item
v-for=
"item in sublist"
:title=
"item.title"
link
:rightText=
"item.rightText"
:clickable=
"true"
:to=
"item.to"
@
click=
"ucenterListClick(item)"
></uni-list-item>
</uni-list>
</view>
</
template
>
...
...
@@ -32,36 +35,57 @@
data
()
{
return
{
avatarUrl
:
'
/static/logo.png
'
,
gridList
:
[{
"
text
"
:
"
文字1
"
,
"
icon
"
:
"
chat
"
},
{
"
text
"
:
"
文字2
"
,
"
icon
"
:
"
cloud-upload
"
},
{
"
text
"
:
"
文字3
"
,
"
icon
"
:
"
contact
"
},
{
"
text
"
:
"
文字4
"
,
"
icon
"
:
"
download
"
},
{
"
text
"
:
"
文字5
"
,
"
icon
"
:
"
paperplane
"
}
],
ucenterList
:
[
[{
title: '阅读过的文章'
title
:
'
阅读过的文章
'
,
to
:
'
/pages/agree-list/agree-list
'
},
{
title: '我的积分'
title
:
'
我的积分
'
,
to
:
'
/pages/agree-list/agree-list
'
}],
[{
title
:
'
政策与协议
'
,
to:'/pages/agree-list/agree-list'
to
:
'
/pages/agree-list/agree-list
'
},
{
title
:
'
关于
'
,
to
:
'
/pages/about/about
'
},
//#ifdef APP-PLUS
{
title: '检查更新',
rightText: `V${getApp().appVersion.finall.version}_${getApp().appVersion.finall.versionCode}`,
event:'checkVersion'
}
// {
// title: '检查更新',
// rightText: `V${getApp().appVersion.finall.version}_${getApp().appVersion.finall.versionCode}`,
// event:'checkVersion'
// }
//#endif
],
[
{
[{
title
:
'
反馈
'
,
to:'/pages/uni-feedback/uni-feedback'
},{
to
:
'
/pages/uni-feedback/uni-feedback
'
},
{
title
:
'
设置
'
,
to
:
'
/pages/settings/settings
'
}
]
}]
]
}
},
...
...
@@ -74,22 +98,22 @@
onReady
()
{
},
onShow()
{
onShow
()
{
console
.
log
(
this
.
userInfo
);
},
methods
:
{
...
mapMutations
({
logout:
'user/logout'
logout
:
'
user/logout
'
}),
/**
* 个人中心项目列表点击事件
*/
ucenterListClick(item)
{
if
(!item.to && item.event){
ucenterListClick
(
item
)
{
if
(
!
item
.
to
&&
item
.
event
)
{
this
[
item
.
event
]();
}
},
checkVersion()
{
checkVersion
()
{
checkUpdate
();
},
goLogin
()
{
...
...
@@ -98,13 +122,18 @@
uni
.
navigateTo
({
url
:
'
/uni_modules/uni-login-page/pages/index/index
'
});
}
else {
}
else
{
console
.
log
(
'
点击编辑信息
'
);
uni
.
navigateTo
({
url:
'./edit/edit'
url
:
'
./edit/edit
'
})
}
},
tapGrid
(
index
){
uni
.
showToast
({
title
:
'
你点击了,第
'
+
index
+
'
个
'
,
icon
:
'
none
'
});
}
}
}
...
...
@@ -190,11 +219,27 @@
}
.center-list
{
margin-bottom
:
30
rpx
;
background-color
:
#f9f9f9
;
}
.center-list-cell
{
width
:
750
rpx
;
background-color
:
#007AFF
;
height
:
40
rpx
;
}
.grid
{
background-color
:
#FFFFFF
;
margin
:
25
rpx
0
;
}
.uni-grid
.text
{
font-size
:
26
rpx
;
color
:
#817f82
;
}
.uni-grid
.item
/
deep
/
.uni-grid-item__box
{
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
uni_modules/uni-login-page/pages/index/index.
n
vue
→
uni_modules/uni-login-page/pages/index/index.vue
浏览文件 @
233c20ab
<
template
>
<view class="flex flex-column flex-1 w-750 bg-white">
<view class="flex-1 flex flex-column justify-start align-center">
<view
class=
"flex flex-column flex-1 w-750 bg-white"
:class=
"
{'hidden':!isShow}"
>
<view
v-if=
"isShow"
class=
"flex-1 flex flex-column justify-start align-center"
>
<view
class=
"w-630 flex flex-column"
>
<!-- 顶部文字 -->
<text
class=
"font-32 font-blod pt-5"
>
登陆后即可展示自己
</text>
...
...
@@ -33,7 +33,7 @@
</view>
<!-- 登录按钮弹窗 -->
<login-action-sheet
ref=
"loginActionSheet"
></login-action-sheet>
<uni-quick-login></uni-quick-login>
<uni-quick-login
@
univerifyEnd=
"isShow = 1"
></uni-quick-login>
</view>
</
template
>
...
...
@@ -41,6 +41,7 @@
export
default
{
data
()
{
return
{
isShow
:
false
,
link
:
[{
text
:
'
用户协议
'
,
to
:
'
/baidu.com
'
...
...
@@ -85,6 +86,9 @@
</
script
>
<
style
>
.hidden
,
page
{
background-color
:
transparent
;
}
@import
url("../../common/myStyle.css")
;
.lgnin-iknow
{
...
...
uni_modules/uni-quick-login/components/uni-quick-login/uni-quick-login.vue
浏览文件 @
233c20ab
<
template
>
<view
class=
"quick-login-box"
>
<view
class=
"quick-login-box"
v-if=
"isShow"
>
<view
class=
"item"
v-for=
"(
{text,logo,name},index) in providerList" :key="index" @click="login(name)">
<image
class=
"logo"
:src=
"logo"
mode=
"widthFix"
></image>
<text
class=
"login-title"
>
{{
text
}}
</text>
...
...
@@ -11,6 +11,7 @@
export
default
{
data
()
{
return
{
isShow
:
false
,
config
:
{
"
weixin
"
:
{
"
text
"
:
"
微信登陆
"
,
...
...
@@ -39,7 +40,7 @@
},
providerList
:
[],
univerifyStyle
:
{
"
fullScreen
"
:
fals
e
,
// 是否全屏显示,true表示全屏模式,false表示非全屏模式,默认值为false。
"
fullScreen
"
:
tru
e
,
// 是否全屏显示,true表示全屏模式,false表示非全屏模式,默认值为false。
"
backgroundColor
"
:
"
#ffffff
"
,
// 授权页面背景颜色,默认值:#ffffff
}
}
...
...
@@ -77,6 +78,8 @@
console
.
log
(
err
);
if
(
err
.
errCode
===
30002
){
console
.
log
(
'
你手动关闭了,一键登陆
'
);
this
.
isShow
=
1
this
.
$emit
(
'
univerifyEnd
'
)
}
}
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录