Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
comment_app
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
comment_app
Commits
00e5c91d
Commit
00e5c91d
authored
Sep 19, 2020
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl
parent
061adb71
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
20 deletions
+10
-20
pages/login/login.vue
+6
-8
pages/main/main.vue
+0
-1
pages/service-apl-history/service-apl-history.vue
+1
-10
pages/user/user.vue
+3
-1
No files found.
pages/login/login.vue
View file @
00e5c91d
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<view
class=
"btn-row"
>
<view
class=
"btn-row"
>
<button
type=
"primary"
class=
"primary btn-login"
@
click=
"login"
>
登录
</button>
<button
style=
"background:#d81e06!important;"
type=
"primary"
class=
"primary btn-login"
@
click=
"login"
>
登录
</button>
</view>
</view>
...
@@ -465,13 +465,11 @@
...
@@ -465,13 +465,11 @@
// }
// }
},
},
onReady
()
{
// onReady() {
this
.
initPosition
();
// this.initPosition();
this
.
initProvider
();
// this.initProvider();
// #ifdef MP-WEIXIN
// this.isDevtools = uni.getSystemInfoSync().platform === 'devtools';
this
.
isDevtools
=
uni
.
getSystemInfoSync
().
platform
===
'devtools'
;
// }
// #endif
}
}
}
</
script
>
</
script
>
...
...
pages/main/main.vue
View file @
00e5c91d
...
@@ -56,7 +56,6 @@
...
@@ -56,7 +56,6 @@
/**
/**
* 如果需要强制登录,不显示取消按钮
* 如果需要强制登录,不显示取消按钮
*/
*/
showCancel
:
!
this
.
forcedLogin
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
/**
/**
...
...
pages/service-apl-history/service-apl-history.vue
View file @
00e5c91d
...
@@ -137,16 +137,7 @@
...
@@ -137,16 +137,7 @@
item
.
applyResult
=
'已拒绝'
;
item
.
applyResult
=
'已拒绝'
;
};
};
var
disableCategory
=
this
.
disableCategory
;
var
disableCategory
=
this
.
disableCategory
;
// for(var i=0;i
<
disableCategory
.
length
;
i
++
){
// if(disableCategory[i].id==item.disableCategory){
// item.disableCategoryName=disableCategory[i].name
// }
// }
// for(var j=0;j
<
this
.
disableLevel
.
length
;
j
++
){
// if(this.disableLevel[j].id==item.disableLevel){
// item.disableLevelName=this.disableLevel[j].name
// }
// }
});
});
if
(
this
.
page
>
1
)
{
if
(
this
.
page
>
1
)
{
...
...
pages/user/user.vue
View file @
00e5c91d
<
template
>
<
template
>
<view
class=
""
>
<view
class=
""
>
<view
class=
"center"
>
<view
class=
"center"
>
<view
class=
"logo"
@
click=
"bindLogin"
:hover-class=
"!
hasLogi
n ? 'logo-hover' : ''"
>
<view
class=
"logo"
@
click=
"bindLogin"
:hover-class=
"!
toke
n ? 'logo-hover' : ''"
>
<!--
<image
class=
"logo-img"
:src=
"token ? userinfo.avatar : avatarUrl"
></image>
-->
<!--
<image
class=
"logo-img"
:src=
"token ? userinfo.avatar : avatarUrl"
></image>
-->
<image
class=
"logo-img"
:src=
"avatarUrl"
></image>
<image
class=
"logo-img"
:src=
"avatarUrl"
></image>
<view
class=
"logo-title"
>
<view
class=
"logo-title"
>
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<text
class=
"go-login navigat-arrow"
v-if=
"!token"
>

</text>
<text
class=
"go-login navigat-arrow"
v-if=
"!token"
>

</text>
</view>
</view>
</view>
</view>
{{
user
.
name
}}
<!--
<view
class=
"center-list"
v-for=
"item in navList"
:key=
"item.id"
>
<!--
<view
class=
"center-list"
v-for=
"item in navList"
:key=
"item.id"
>
<view
class=
"center-list-item border-bottom"
v-for=
"item2 in item.barList"
:key=
"item2.id"
@
click=
"goDetailPage(item2)"
>
<view
class=
"center-list-item border-bottom"
v-for=
"item2 in item.barList"
:key=
"item2.id"
@
click=
"goDetailPage(item2)"
>
...
@@ -111,6 +112,7 @@
...
@@ -111,6 +112,7 @@
var
token
=
uni
.
getStorageSync
(
'token'
);
var
token
=
uni
.
getStorageSync
(
'token'
);
var
user
=
uni
.
getStorageSync
(
'user'
);
var
user
=
uni
.
getStorageSync
(
'user'
);
console
.
log
(
'token:'
,
token
);
console
.
log
(
'token:'
,
token
);
console
.
log
(
'user:'
,
user
);
this
.
user
=
user
;
this
.
user
=
user
;
this
.
token
=
token
;
this
.
token
=
token
;
},
},
...
...
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