Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
9f27ab19
Commit
9f27ab19
authored
Aug 26, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
479853e6
66d06b4e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1008 additions
and
12 deletions
+1008
-12
index.vue
components/pagetitle/index.vue
+4
-4
index.vue
pages/pintuan/index.vue
+117
-0
tuangood.vue
pages/pintuan/tuangood.vue
+879
-0
user-center.vue
pages/user-center/user-center.vue
+8
-8
search.png
static/images/icon/search.png
+0
-0
No files found.
components/pagetitle/index.vue
View file @
9f27ab19
...
@@ -52,13 +52,13 @@ export default {
...
@@ -52,13 +52,13 @@ export default {
return
{};
return
{};
},
},
methods
:
{
methods
:
{
clickTitleHandler
(
e
)
{
clickTitleHandler
()
{
if
(
if
(
this
.
ts
.
link
&&
this
.
ts
.
link
&&
this
.
ts
.
link
.
new_link_
url
&&
this
.
ts
.
link
.
url
&&
this
.
ts
.
link
.
new_link_
url
!=
""
this
.
ts
.
link
.
url
!=
""
)
{
)
{
uni
.
navigateTo
({
url
:
this
.
ts
.
link
.
new_link_
url
});
uni
.
navigateTo
({
url
:
this
.
ts
.
link
.
url
});
}
}
}
}
}
}
...
...
pages/pintuan/index.vue
0 → 100644
View file @
9f27ab19
<
template
>
<view>
<view
:style=
"
{ height: contentHeight + 'px' }" style="voerflow: hidden; overflow-y: auto;">
<view
class=
"head-pin-box"
>
<view
class=
"left"
>
<image
src=
"../../static/images/icon/search.png"
mode=
"widthfix"
style=
"width:20px;height:20px;"
/>
</view>
<view
class=
"middle"
></view>
<view
class=
"right"
>
<u-tabs
name=
"name"
:list=
"myPageData.home_pages.navs"
:is-scroll=
"true"
:active-color=
"mainColor"
:current=
"active"
:bar-width=
"80"
:font-size=
"32"
:bold=
"false"
@
change=
"changeHandler"
></u-tabs>
</view>
</view>
</view>
<tabbars></tabbars>
</view>
</
template
>
<
script
>
import
tabbars
from
"@/components/tabbar/index"
;
export
default
{
components
:
{
tabbars
,
},
data
()
{
return
{
contentHeight
:
0
,
pageTitle
:
"拼团"
,
advertisement
:{},
banners
:[]
};
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
c
=
this
.
$uiConfig
.
is_bang
?
80
:
52
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
console
.
log
(
this
.
contentHeight
);
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
// this.init();
// this.getStyle();
uni
.
showNavigationBarLoading
();
},
methods
:
{
init
()
{
let
h
=
this
.
apiheader
();
this
.
request
(
{
url
:
""
,
header
:
h
,
data
:
{
r
:
"plugin/pintuan/api/v2/index/index"
,
status
:
this
.
current
+
1
,
page
:
this
.
page
,
},
},
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
}
}
);
},
},
};
</
script
>
<
style
>
.head-pin-box
{
height
:
80
rpx
;
display
:
flex
;
align-items
:
center
;
padding
:
0
20
rpx
;
}
.head-pin-box
.left
{
height
:
100%
;
width
:
90
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.head-pin-box
.middle
{
width
:
2
rpx
;
background
:
#ddd
;
height
:
45
rpx
;
margin
:
0
20
rpx
;
}
.head-pin-box
.right
{
height
:
100%
;
flex
:
1
;
}
</
style
>
\ No newline at end of file
pages/pintuan/tuangood.vue
View file @
9f27ab19
This diff is collapsed.
Click to expand it.
pages/user-center/user-center.vue
View file @
9f27ab19
...
@@ -195,17 +195,17 @@ export default {
...
@@ -195,17 +195,17 @@ export default {
onLoad
()
{
onLoad
()
{
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
u
=
wx
.
getStorageSync
(
'basedata'
).
user_info
;
this
.
u
=
wx
.
getStorageSync
(
'basedata'
).
user_info
;
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
):{}
;
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
nav
=
uni
.
getMenuButtonBoundingClientRect
().
top
+
'px'
;
this
.
nav
=
uni
.
getMenuButtonBoundingClientRect
().
top
+
'px'
;
this
.
headStyle
.
background
=
`linear-gradient(to right, '#6E75EA',80%, '#B984EC')`
;
this
.
headStyle
.
background
=
`linear-gradient(to right, '#6E75EA',80%, '#B984EC')`
;
this
.
headStyle
.
paddingTop
=
this
.
nav
;
this
.
headStyle
.
paddingTop
=
this
.
nav
;
// if (!this.u
) {
if
(
!
this
.
mall_UserInfo
)
{
// this.u
= {
this
.
mall_UserInfo
=
{
//
nickname: '未登录',
nickname
:
'未登录'
,
//
avatarUrl: ''
avatarUrl
:
''
//
};
};
//
this.showAuth = true;
this
.
showAuth
=
true
;
//
}
}
},
},
mounted
()
{
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
currentPages
=
getCurrentPages
();
...
...
static/images/icon/search.png
0 → 100644
View file @
9f27ab19
683 Bytes
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