Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scmMiniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
af4fd6ee
authored
Sep 27, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
dcb49802
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
assets/css/index/notice.scss
pages/index/index.vue
pages/mine/index.vue
pages/question/list.vue
util/api.js
assets/css/index/notice.scss
View file @
af4fd6ee
...
@@ -23,6 +23,15 @@
...
@@ -23,6 +23,15 @@
padding-top
:
36rpx
;
padding-top
:
36rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#404547
;
color
:
#404547
;
image
{
max-width
:
100%
;
}
img
{
max-width
:
100%
;
}
.rich_pages
{
max-width
:
100%
;
}
}
}
.share
{
.share
{
position
:
fixed
;
position
:
fixed
;
...
...
pages/index/index.vue
View file @
af4fd6ee
...
@@ -109,10 +109,6 @@ export default {
...
@@ -109,10 +109,6 @@ export default {
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getData
();
this
.
getData
();
this
.
list
=
[];
this
.
page
=
1
;
this
.
currentIndex
=
0
;
this
.
changeTab
(
0
);
},
},
onReachBottom
()
{
onReachBottom
()
{
if
(
this
.
flag
)
return
;
if
(
this
.
flag
)
return
;
...
@@ -120,11 +116,13 @@ export default {
...
@@ -120,11 +116,13 @@ export default {
this
.
getAskCustomerProblemList
();
this
.
getAskCustomerProblemList
();
},
},
onShow
()
{
onShow
()
{
this
.
list
=
[];
this
.
page
=
1
;
this
.
getAskCustomerProblemList
();
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
this
.
request
(
API
.
GetNotice
,
'GET'
,
{
limit
:
2
,
notice_type
:
1
},
tru
e
).
then
(
res
=>
{
this
.
request
(
API
.
GetNotice
,
'GET'
,
{
limit
:
2
,
notice_type
:
1
},
fals
e
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
this
.
noticeData
=
res
.
data
.
data
;
this
.
noticeData
=
res
.
data
.
data
;
}
}
...
...
pages/mine/index.vue
View file @
af4fd6ee
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
this
.
request
(
API
.
UserInfo
,
'POST'
,
{},
tru
e
).
then
(
res
=>
{
this
.
request
(
API
.
UserInfo
,
'POST'
,
{},
fals
e
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
this
.
userData
=
res
.
data
;
this
.
userData
=
res
.
data
;
this
.
isLogin
=
true
;
this
.
isLogin
=
true
;
...
...
pages/question/list.vue
View file @
af4fd6ee
...
@@ -102,14 +102,11 @@ export default {
...
@@ -102,14 +102,11 @@ export default {
is_login
:
true
is_login
:
true
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{},
onShow
()
{
this
.
list
=
[];
this
.
list
=
[];
this
.
page
=
1
;
this
.
page
=
1
;
this
.
currentIndex
=
0
;
this
.
getAskCustomerProblemList
();
this
.
changeTab
(
0
);
},
onShow
()
{
},
},
methods
:
{
methods
:
{
inputChange
()
{
inputChange
()
{
...
...
util/api.js
View file @
af4fd6ee
const
API_BASE
=
'http
://supplyapi.liexin
.com'
const
API_BASE
=
'http
s://api.ichunt
.com'
const
API
=
{
const
API
=
{
/**
/**
...
...
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