Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
9a99d539
Commit
9a99d539
authored
Aug 29, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' into feature-zyw-sc
parents
a5b6d782
33bbcb9f
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
76 additions
and
34 deletions
+76
-34
attention.js
src/component/attention/attention.js
+9
-1
attention.wxml
src/component/attention/attention.wxml
+6
-1
attention.wxss
src/component/attention/attention.wxss
+0
-9
bottomTabs.js
src/component/bottomTabs/bottomTabs.js
+4
-1
bottomTabs.wxml
src/component/bottomTabs/bottomTabs.wxml
+31
-2
bottomTabs.wxss
src/component/bottomTabs/bottomTabs.wxss
+2
-1
tabSort.js
src/component/tabSort/tabSort.js
+3
-1
tabSort.wxml
src/component/tabSort/tabSort.wxml
+1
-1
userCenter.js
src/pages/userCenter/userCenter.js
+5
-2
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+14
-14
project.config.json
src/project.config.json
+1
-1
No files found.
src/component/attention/attention.js
View file @
9a99d539
...
@@ -14,7 +14,7 @@ Component({
...
@@ -14,7 +14,7 @@ Component({
value
:
null
value
:
null
}
}
},
},
attached
()
{
attached
()
{
this
.
setData
({
this
.
setData
({
baseImgUrl
:
app
.
globalData
.
imageUrl
baseImgUrl
:
app
.
globalData
.
imageUrl
})
})
...
@@ -29,6 +29,14 @@ Component({
...
@@ -29,6 +29,14 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
// 组件加载成功时触发
handelLoad
(
e
)
{
console
.
log
(
'成功'
,
e
)
},
// 组件加载失败时触发
handelErr
(
e
)
{
console
.
log
(
'失败'
,
e
)
},
handelTo
(
e
)
{
handelTo
(
e
)
{
const
ev
=
e
.
currentTarget
.
dataset
;
const
ev
=
e
.
currentTarget
.
dataset
;
let
redirectId
=
ev
.
redirectId
let
redirectId
=
ev
.
redirectId
...
...
src/component/attention/attention.wxml
View file @
9a99d539
<!--component/attention/attention.wxml-->
<!--component/attention/attention.wxml-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<
!--<
view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<view class="attention-left">
<view class="attention-left">
<view class="left-title">关注舞象公众号</view>
<view class="left-title">关注舞象公众号</view>
<view class="left-tips">福利不错过!</view>
<view class="left-tips">福利不错过!</view>
</view>
</view>
<view class="attention-right">关注</view>
<view class="attention-right">关注</view>
</view>-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<official-account style="width:100%;height:168rpx;" bindload="handelLoad" binderror="handelErr">
</official-account>
</view>
</view>
\ No newline at end of file
src/component/attention/attention.wxss
View file @
9a99d539
/* component/attention/attention.wxss */
/* component/attention/attention.wxss */
/* .banner-ad {
margin: 0 auto;
width: 710rpx;
height: 155rpx;
border-radius: 10rpx;
background-color: rgba(246, 243, 242, 1);
box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.05);
} */
.attention {
.attention {
margin: 0 auto;
margin: 0 auto;
width: 710rpx;
width: 710rpx;
...
@@ -18,7 +10,6 @@
...
@@ -18,7 +10,6 @@
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: space-between;
justify-content: space-between;
padding: 0 60rpx;
box-sizing: border-box;
box-sizing: border-box;
color: #fff;
color: #fff;
background-repeat: no-repeat;
background-repeat: no-repeat;
...
...
src/component/bottomTabs/bottomTabs.js
View file @
9a99d539
...
@@ -9,7 +9,10 @@ Component({
...
@@ -9,7 +9,10 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
tabBar
:{
type
:
Object
,
value
:
null
}
},
},
attached
()
{
attached
()
{
...
...
src/component/bottomTabs/bottomTabs.wxml
View file @
9a99d539
<!--component/bottomTabs/bottomTabs.wxml-->
<!--component/bottomTabs/bottomTabs.wxml-->
<view class='bgc fixed-bottom0' style="background-image:url('/assets/imgs/7_1_0/bg.png')" wx:if="{{type == 1}}">
<view class='bgc fixed-bottom0' style="background-color:#FFF;background-image:url({{tabBar.num == 4 ? '': '/assets/imgs/7_1_0/bg.png'}});{{tabBar.num == 4 ? 'height: 108rpx':'height: 144rpx'}}" wx:if="{{tabBar.num == 4}}">
<!--
activeImageUrl: "http://testimg3.bigaka.com/group3/M00/00/1C/Cv6CBF1mT1OAERvZAAAE9OdIB14989.png"
desc: ""
imageUrl: "http://testimg3.bigaka.com/group3/M00/00/1C/Cv6CBF1mTzmAL7sKAAADJzlh7Tk417.png"
number: 0
redirectId: ""
type: 0
-->
<block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab">
<view
class="tab"
data-route="{{tab.route}}"
bindtap="handelToPage"
>
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.activeImageUrl}}' />
<image class='tab-img' wx:else src='{{tab.imageUrl}}' />
</view>
</block>
</view>
<view class="bottom-tab fixed-bottom0" style="height: 108rpx;" wx:if="{{tabBar.num == 5}}">
<block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab">
<block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab">
<view class="tab" data-route="{{tab.route}}" bindtap="handelToPage">
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.activeImageUrl}}' />
<image class='tab-img' wx:else src='{{tab.imageUrl}}' />
</view>
</block>
<!-- <block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab">
<view
<view
class="tab"
class="tab"
data-route="{{tab.route}}"
data-route="{{tab.route}}"
...
@@ -17,5 +46,5 @@
...
@@ -17,5 +46,5 @@
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.active}}' />
<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.active}}' />
<image class='tab-img' wx:else src='{{tab.inactive}}' />
<image class='tab-img' wx:else src='{{tab.inactive}}' />
</view>
</view>
</block>
</block>
-->
</view>
</view>
src/component/bottomTabs/bottomTabs.wxss
View file @
9a99d539
...
@@ -15,12 +15,13 @@
...
@@ -15,12 +15,13 @@
}
}
.bgc {
.bgc {
height: 144rpx;
background-size: 100% 100%;
background-size: 100% 100%;
background-repeat: no-repeat;
background-repeat: no-repeat;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px -4px 10px 0px rgba(232, 232, 232, 0.95);
}
}
.pdt {
.pdt {
padding-top: 50rpx;
padding-top: 50rpx;
...
...
src/component/tabSort/tabSort.js
View file @
9a99d539
...
@@ -3,7 +3,6 @@ var app = getApp()
...
@@ -3,7 +3,6 @@ var app = getApp()
const
wxService
=
require
(
'../../utils/wxService'
)
const
wxService
=
require
(
'../../utils/wxService'
)
const
utils
=
require
(
'../../utils/util'
)
const
utils
=
require
(
'../../utils/util'
)
const
envInfo
=
require
(
'../../config/index'
).
envInfo
const
envInfo
=
require
(
'../../config/index'
).
envInfo
var
order
=
[
'red'
,
'yellow'
,
'blue'
,
'green'
,
'red'
]
Component
({
Component
({
/**
/**
...
@@ -28,6 +27,9 @@ Component({
...
@@ -28,6 +27,9 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
handelToVipCode
()
{
wxService
.
router
(
`/pages/memberOfOwn/memberOfOwn`
)
},
// 设置tab active
// 设置tab active
switchNav
(
event
)
{
switchNav
(
event
)
{
const
ev
=
event
.
currentTarget
.
dataset
;
const
ev
=
event
.
currentTarget
.
dataset
;
...
...
src/component/tabSort/tabSort.wxml
View file @
9a99d539
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</view>
</view>
</block>
</block>
</scroll-view>
</scroll-view>
<view class="scroll-view-right">
<view class="scroll-view-right"
bindtap="handelToVipCode"
>
<image class="right-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
<image class="right-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text>
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text>
</view>
</view>
...
...
src/pages/userCenter/userCenter.js
View file @
9a99d539
...
@@ -86,9 +86,9 @@ wxService.page({
...
@@ -86,9 +86,9 @@ wxService.page({
isAuthorization
:
false
isAuthorization
:
false
},()
=>
{
},()
=>
{
// 积分数量
// 积分数量
this
.
getMemberPointInfo
()
//
this.getMemberPointInfo()
// 优惠券数量
// 优惠券数量
this
.
getMemberCouponInfo
()
//
this.getMemberCouponInfo()
})
})
}
}
else
if
(
!
baseUserInfo
&&
reLoginErrFlag
){
else
if
(
!
baseUserInfo
&&
reLoginErrFlag
){
...
@@ -154,6 +154,9 @@ wxService.page({
...
@@ -154,6 +154,9 @@ wxService.page({
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
title
:
data
.
page
.
title
title
:
data
.
page
.
title
})
})
// tabBar
const
currentTabBar
=
data
.
paragraphs
.
filter
(
item
=>
item
.
type
==
5
)
console
.
log
(
'---'
,
currentTabBar
)
// 段落
// 段落
const
products
=
data
.
paragraphs
const
products
=
data
.
paragraphs
const
filterResult
=
products
.
map
((
res
,
index
)
=>
{
const
filterResult
=
products
.
map
((
res
,
index
)
=>
{
...
...
src/pages/userCenter/userCenter.wxml
View file @
9a99d539
...
@@ -2,38 +2,39 @@
...
@@ -2,38 +2,39 @@
<view class='user-center' style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};min-height: {{outoHeigth}}px">
<view class='user-center' style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};min-height: {{outoHeigth}}px">
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部左划 5 底部 Tab 6 公告 7 分类 8 关注公众号 9 plus(9/5-权重高)-->
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部左划 5 底部 Tab 6 公告 7 分类 8 关注公众号 9 plus(9/5-权重高)-->
<block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem">
<block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem">
{{pItem.type}}
<view wx:if="{{pItem.type == 1}}">
<view wx:if="{{pItem.type == 1}}">
<image-swiper image-data="{{pItem.rotationchart.images}}"/>
<image-swiper image-data="{{pItem.rotationchart.images}}"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 2}}">
<view class="" wx:if="{{pItem.type == 2}}">
<person-center person-data="{{pItem.customer}}"/>
<person-center person-data="{{pItem.customer}}"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 3}}">
<view class="" wx:if="{{pItem.type == 3}}">
<pic-nav pic-nav="{{pItem.navigation.images}}"/>
<pic-nav pic-nav="{{pItem.navigation.images}}"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 4}}">
<view class="" wx:if="{{pItem.type == 4}}">
<bottom bottom="{{pItem.bottom}}" />
<bottom bottom="{{pItem.bottom}}" />
</view>
</view>
<view class="" wx:if="{{pItem.type == 5}}">
<!--<view class="" wx:if="{{pItem.type == 5}}">
<bottom-tabs tabBar="{{pItem.tabBar}}"/>
<bottom-tabs tab-bar="{{pItem.tabBar}}" />
</view>-->
<view class="" wx:if="{{ pItem.type == 9 ? pItem.type == 9 : pItem.type == 5}}">
<attention wx:if="{{pItem.type == 9}}" />
<bottom-tabs wx:else tab-bar="{{pItem.tabBar}}" />
</view>
</view>
<view class="" wx:if="{{pItem.type == 6}}">
<view class="" wx:if="{{pItem.type == 6}}">
<announcement notice="{{pItem.notice}}"/>
<announcement notice="{{pItem.notice}}"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 7}}">
<view class="" wx:if="{{pItem.type == 7}}">
<tab-sort categorys="{{pItem.categoryType.categorys}}"/>
<tab-sort categorys="{{pItem.categoryType.categorys}}"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 8}}">
<view class="" wx:if="{{pItem.type == 8}}">
<attention focus-wx="{{pItem.focusWx}}"/>
<attention focus-wx="{{pItem.focusWx}}"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 9}}">
<!--
<view class="" wx:if="{{pItem.type == 9}}">
<attention/>
<attention/>
</view>
</view>
-->
</block>
</block>
<!--
<!--
<tab-sort/>
<tab-sort/>
<view class="page-bgc">
<view class="page-bgc">
...
@@ -84,4 +85,3 @@
...
@@ -84,4 +85,3 @@
<!--<authorization-modal isAuthorization='{{isAuthorization}}' />-->
<!--<authorization-modal isAuthorization='{{isAuthorization}}' />-->
<guide-page-modal show="{{guidePageModalShow}}" />
<guide-page-modal show="{{guidePageModalShow}}" />
src/project.config.json
View file @
9a99d539
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"autoAudits"
:
false
"autoAudits"
:
false
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.
6.6
"
,
"libVersion"
:
"2.
8.1
"
,
"appid"
:
"wxc3b64b09b1d3dfc2"
,
"appid"
:
"wxc3b64b09b1d3dfc2"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"debugOptions"
:
{
...
...
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