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
bcbf0195
Commit
bcbf0195
authored
Jun 12, 2020
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
cccb9582
03966cb7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
14 deletions
+11
-14
App.vue
App.vue
+6
-9
index.vue
pages/coupon/index/index.vue
+1
-0
list.vue
pages/coupon/list/list.vue
+3
-2
index.vue
pages/index/index.vue
+1
-3
No files found.
App.vue
View file @
bcbf0195
...
...
@@ -19,12 +19,11 @@ export default {
},
methods
:
{
init
()
{
console
.
log
(
uni
.
getStorageSync
(
"basedata"
));
// if (uni.getStorageSync("basedata")) {
// this.basedata = uni.getStorageSync("basedata");
// this.formatTabbar();
// this.formatNavigation();
// } else {
if
(
uni
.
getStorageSync
(
"basedata"
))
{
this
.
basedata
=
uni
.
getStorageSync
(
"basedata"
);
this
.
formatTabbar
();
this
.
formatNavigation
();
}
else
{
this
.
request2
(
{
url
:
"/api/Mall/GetHome"
,
...
...
@@ -33,15 +32,13 @@ export default {
(
res
)
=>
{
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
this
.
basedata
=
res
.
data
;
console
.
log
(
"赋值:"
)
console
.
log
(
res
.
data
.
mall
.
setting
.
mallStyle
.
main
)
this
.
$uiConfig
.
mainColor
=
res
.
data
.
mall
.
setting
.
mallStyle
.
main
this
.
$uiConfig
.
secondary
=
res
.
data
.
mall
.
setting
.
mallStyle
.
secondary
this
.
formatTabbar
();
this
.
formatNavigation
();
}
);
//
}
}
},
formatPlat
()
{
let
modelmes
=
uni
.
getSystemInfoSync
().
model
;
...
...
pages/coupon/index/index.vue
View file @
bcbf0195
...
...
@@ -338,6 +338,7 @@ export default {
color
:
#000
;
}
.couponStyle
.item
.detail
.coupond
.date
{
font-family
:
'23'
;
margin-top
:
5px
;
font-size
:
12px
;
color
:
#777
;
...
...
pages/coupon/list/list.vue
View file @
bcbf0195
...
...
@@ -38,7 +38,7 @@
</view>
<view
class=
"item_b"
>
<Text
v-if=
'x.IndateType==1'
>
领券后
{{
x
.
IndateDay
}}
天过期
</Text>
<Text
v-if=
'x.IndateType==2'
>
有效日期
{{
x
.
StartDate
}}
-
{{
x
.
EndDate
}}
</Text>
<Text
v-if=
'x.IndateType==2'
>
有效日期
:
{{
x
.
StartDate
}}
-
{{
x
.
EndDate
}}
</Text>
<!--
<Text
class=
"top_title"
>
{{
x
.
UseTypeStr
}}
</Text>
-->
<Text
class=
'top_title'
v-if=
'x.UseType==1'
>
适用类别:
<Text
v-for=
"(item, index) in x.ProductList"
:key=
"index"
>
{{
item
.
Relevance
}}
</Text>
</Text>
<Text
class=
'top_title'
v-if=
'x.UseType==2'
>
适用商品:
<Text
v-for=
"(item, index) in x.ProductList"
:key=
"index"
>
{{
item
.
Relevance
}}
</Text>
</Text>
...
...
@@ -237,6 +237,7 @@ export default {
}
.couponlistStyle
.item_b
{
font-family
:
'213'
;
width
:
100%
;
height
:
60px
;
display
:
flex
;
...
...
@@ -244,7 +245,7 @@ export default {
padding
:
10px
;
background-color
:
#fff
;
justify-content
:
space-around
;
font-size
:
1
4
px
;
font-size
:
1
2
px
;
position
:
relative
;
}
...
...
pages/index/index.vue
View file @
bcbf0195
...
...
@@ -166,11 +166,9 @@ export default {
},
},
(
res
)
=>
{
console
.
log
(
res
,
'resIndex'
);
this
.
indexPageData
=
res
.
data
.
home_pages
.
navs
[
0
].
template
.
data
;
this
.
myPageData
=
res
.
data
;
// wx.setStorageSync("indexdata", this.myPageData);
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
if
(
res
.
data
.
home_pages
.
title
!=
""
)
{
uni
.
setNavigationBarTitle
({
title
:
res
.
data
.
home_pages
.
title
,
...
...
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