Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
程默
mayi-mp-shop
Commits
291b6430
Commit
291b6430
authored
Mar 31, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
932d328e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
27 deletions
+17
-27
src/pages/home/index.vue
+11
-8
src/pages/index/index.vue
+0
-11
static/nativeComponents/SharePopup/index.js
+0
-2
static/nativeComponents/TimeLimitedDiscount/activityListItem/index.wxml
+2
-2
static/nativeComponents/TimeLimitedDiscount/index.js
+1
-1
static/nativeComponents/custom-tab-bar/index.js
+3
-3
No files found.
src/pages/home/index.vue
View file @
291b6430
...
...
@@ -239,13 +239,16 @@ export default {
}
else
{
app
.
globalData
.
spokesmanInfo
=
{};
let
footerVal
=
{...
app
.
globalData
.
footerVal
};
footerVal
.
componentData
.
list
.
forEach
(
res
=>
{
if
(
res
.
link
.
name
==
"分销员中心"
||
res
.
link
.
name
==
"分销商中心"
)
{
res
.
show
=
false
}
})
app
.
globalData
.
footerVal
=
footerVal
;
this
.
$mp
.
page
.
selectComponent
(
".custom-tab-bar"
).
init
();
console
.
log
(
'"分销员中心"'
,
footerVal
)
if
(
footerVal
.
componentData
)
{
footerVal
.
componentData
.
list
.
forEach
(
res
=>
{
if
(
res
.
link
.
name
==
"分销员中心"
||
res
.
link
.
name
==
"分销商中心"
)
{
res
.
show
=
false
}
})
app
.
globalData
.
footerVal
=
footerVal
;
this
.
$mp
.
page
.
selectComponent
(
".custom-tab-bar"
).
init
();
}
}
// 来源
if
(
options
.
from
==
"logout"
)
{
...
...
@@ -399,7 +402,7 @@ export default {
})
},
scrolls
(
el
){
this
.
setFooterShow
(
el
);
//
this.setFooterShow(el);
if
(
this
.
pageData
)
{
for
(
let
i
=
0
;
i
<
this
.
pageData
.
length
;
i
++
)
{
const
element
=
this
.
pageData
[
i
]
...
...
src/pages/index/index.vue
View file @
291b6430
...
...
@@ -315,17 +315,6 @@ export default {
this
.
init
();
},
onShow
(){
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
if
(
ss
&&
!
this
.
params
.
includes
(
"sessionid"
))
{
this
.
params
+=
`&sessionid=
${
ss
}
`
}
console
.
log
(
this
.
getTabBar
,
'312'
)
if
(
typeof
this
.
getTabBar
===
'function'
&&
this
.
getTabBar
())
{
this
.
getTabBar
().
setData
({
selected
:
this
.
index
})
}
},
methods
:
{
init
()
{
...
...
static/nativeComponents/SharePopup/index.js
View file @
291b6430
...
...
@@ -59,12 +59,10 @@ const componentOptions = {
},
showPopup
()
{
this
.
setData
({
showPop
:
true
});
this
.
getTabBar
().
setData
({
show
:
false
});
},
onClose
()
{
this
.
setData
({
showPop
:
false
});
this
.
getTabBar
().
setData
({
show
:
true
});
},
cancel
()
{
this
.
onClose
();
...
...
static/nativeComponents/TimeLimitedDiscount/activityListItem/index.wxml
View file @
291b6430
...
...
@@ -4,8 +4,8 @@
{{datas.singleItemActivityName}}
</view>
<view class="cover">
<image
mode="center
" src="{{datas.singleItemActivityCoverImage}}"></image>
</view>
<image
mode="aspectFit
" src="{{datas.singleItemActivityCoverImage}}"></image>
</view>
<view class="countDown flex" wx:if="{{countDownShow}}">
<van-count-down
use-slot
...
...
static/nativeComponents/TimeLimitedDiscount/index.js
View file @
291b6430
...
...
@@ -232,7 +232,7 @@ const componentOptions = {
new
Date
(
item
.
endTime
.
replace
(
/-/g
,
"/"
)).
getTime
()
-
new
Date
().
getTime
();
item
.
singleItemActivityCoverImage
=
DFSImg
(
item
.
singleItemActivityCoverImage
,
400
,
400
item
.
singleItemActivityCoverImage
,
400
,
400
,
1
);
item
.
isStart
=
new
Date
(
item
.
startTime
.
replace
(
/-/g
,
"/"
)).
getTime
()
>
...
...
static/nativeComponents/custom-tab-bar/index.js
View file @
291b6430
...
...
@@ -32,9 +32,9 @@ Component({
});
};
}
this
.
setData
({
mmm
:
Math
.
ceil
(
app
.
globalData
.
footerVal
.
componentData
.
list
.
length
/
2
-
1
)
});
//
this.setData({
//
mmm: Math.ceil(app.globalData.footerVal.componentData.list.length / 2 - 1)
//
});
},
attached
()
{
this
.
init
()
...
...
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