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
1ce2156e
Commit
1ce2156e
authored
Sep 09, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的授权限制
parent
9e23d16d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
5 deletions
+44
-5
picNav.js
src/component/picNav/picNav.js
+2
-0
tabSort.js
src/component/tabSort/tabSort.js
+9
-0
tabSort.wxml
src/component/tabSort/tabSort.wxml
+31
-2
userCenter.js
src/pages/userCenter/userCenter.js
+0
-1
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+2
-2
No files found.
src/component/picNav/picNav.js
View file @
1ce2156e
...
...
@@ -40,7 +40,9 @@ Component({
*/
methods
:
{
_getUserInfo
(
res
=
{})
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'getAuth'
,
res
);
})
},
imageLoad
(
e
)
{
let
imageSize
=
utils
.
imageUtil
(
e
)
...
...
src/component/tabSort/tabSort.js
View file @
1ce2156e
...
...
@@ -9,6 +9,10 @@ Component({
* 组件的属性列表
*/
properties
:
{
currentHasUserInfo
:{
type
:
Boolean
,
type
:
false
},
categoryType
:
{
type
:
Object
,
value
:
null
...
...
@@ -45,6 +49,11 @@ Component({
* 组件的方法列表
*/
methods
:
{
_getUserInfo
(
res
=
{})
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'getAuth'
,
res
);
})
},
handelToVipCode
()
{
wxService
.
router
(
`/pages/memberOfOwn/memberOfOwn`
)
},
...
...
src/component/tabSort/tabSort.wxml
View file @
1ce2156e
...
...
@@ -12,7 +12,7 @@
style="width:{{navItemWidth}}%"
data-current="{{idx}}"
data-redirectId="{{navItem.redirectId}}"
data-item
="{{navItem}}"
data-item="{{navItem}}"
bindtap="switchNav"
>
<view>{{navItem.title}}</view>
...
...
@@ -21,7 +21,26 @@
</scroll-view>
<!-- showQrcode 2 购物车 1 会员码 0 隐藏 -->
<view class="scroll-view-right" bindtap="handelToVipCode" wx:if="{{categoryType.showQrcode == 1}}">
<button
wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary df'
hover-class="btn-hover"
style="height:100%"
>
<image
class="right-img"
src="/assets/imgs/7_1_0/scancode.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</button>
<image
wx:if="{{currentHasUserInfo}}"
class="right-img"
src="/assets/imgs/7_1_0/scancode.png"
mode="widthFix"
...
...
@@ -29,10 +48,21 @@
binderror=""
bindload=""
/>
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text>
</view>
<view class="scroll-view-right" bindtap="handelToCart" wx:if="{{categoryType.showQrcode == 2}}">
<button
wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary df'
hover-class="btn-hover"
style="height:100%"
/>
<image
wx:if="{{currentHasUserInfo}}"
class="right-img"
src="/assets/imgs/7_1_0/08_22/cart_point.png"
mode="widthFix"
...
...
@@ -43,4 +73,3 @@
</view>
</view>
src/pages/userCenter/userCenter.js
View file @
1ce2156e
...
...
@@ -75,7 +75,6 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
()
{
// 取会员卡号
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
cardMember
=
wx
.
getStorageSync
(
'_cardMember'
)
...
...
src/pages/userCenter/userCenter.wxml
View file @
1ce2156e
...
...
@@ -18,10 +18,10 @@
<bottom-tabs currHomePageId="{{currHomePageId}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" tab-bar="{{pItem.tabBar}}" bind:updatePage="updatePage"/>
</view>
<view class="" wx:if="{{pItem.type == 6}}">
<announcement notice="{{pItem.notice}}"
/>
<announcement notice="{{pItem.notice}}"/>
</view>
<view class="" wx:if="{{pItem.type == 7}}">
<tab-sort category-type="{{pItem.categoryType}}" />
<tab-sort category-type="{{pItem.categoryType}}"
bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}"
/>
</view>
<view class="" wx:if="{{pItem.type == 8}}">
<attention focus-wx="{{pItem.focusWx}}" />
...
...
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