Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-luck
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
李奇
2018-12-27 16:53:43 +0800
Commit
fca0739329f7b166f0f8ab791ac06c7ea3e0eb54
2 parents
743404c2
afefdd33
Merge branch 'hotfix/skan-qrcode' into 'master'
Hotfix/skan qrcode See merge request
!4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
10 deletions
.gitignore
app.js
pages/zeroSell/components/action-bar.js
pages/zeroSell/detail.js
pages/zeroSell/detail.wxml
pages/zeroSell/index.js
.gitignore
View file @
fca0739
.DS_Store
.idea
...
...
app.js
View file @
fca0739
...
...
@@ -27,6 +27,7 @@ import { logEvent,
YB_AWAKE_MP
,
YB_SERVICE_PUSH
}
from
'./libs/analytics.js'
;
import
router
from
'./pages/zeroSell/router/router'
;
App
({
...
...
@@ -101,6 +102,9 @@ App({
},
1000
);
this
.
mtainit
(
options
);
await
wxLogin
();
event
.
on
(
'wechat-login-error'
,
()
=>
{
router
.
go
(
'bindPhoneNumber'
);
});
event
.
on
(
'user-is-login'
,
({
logged
,
loginSuccess
})
=>
{
const
userInfo
=
wx
.
getStorageSync
(
'userInfo'
);
console
.
log
(
userInfo
);
...
...
pages/zeroSell/components/action-bar.js
View file @
fca0739
...
...
@@ -51,11 +51,6 @@ Component({
*/
methods
:
{
fetchCode
()
{
if
(
!
app
.
getUid
())
{
this
.
triggerEvent
(
'requireauth'
);
return
;
}
wx
.
showLoading
({
mask
:
true
});
...
...
pages/zeroSell/detail.js
View file @
fca0739
...
...
@@ -439,9 +439,9 @@ Page(Object.assign({
},
requireAuth
()
{
this
.
setData
({
showAuth
:
true
})
// this.setData({
// showAuth: true
// })
},
_jumpBanner
()
{
if
(
this
.
data
.
bannerUrl
==
null
)
{
...
...
pages/zeroSell/detail.wxml
View file @
fca0739
...
...
@@ -32,7 +32,7 @@
</group-recommend>
<view class="action-bar">
<action-bar wx:if="{{isLogin}}" status="{{actionStatus}}" num="{{myPrizeCount}}" share-uid="{{shareUid}}" act-prize-id="{{actPrizeId}}" bindgetcode="changeActionStatus" bindshare="share"
bind:requireauth="requireAuth"
<action-bar wx:if="{{isLogin}}" status="{{actionStatus}}" num="{{myPrizeCount}}" share-uid="{{shareUid}}" act-prize-id="{{actPrizeId}}" bindgetcode="changeActionStatus" bindshare="share"
></action-bar>
<block wx:else>
...
...
pages/zeroSell/index.js
View file @
fca0739
...
...
@@ -86,7 +86,6 @@ Page(Object.assign({
event
.
on
(
'wechat-login-success'
,
this
.
loginSuccess
);
event
.
on
(
'wechat-login-callback'
,
this
.
loginCallback
);
event
.
on
(
'wechat-login-change-status'
,
this
.
loginChangeStatus
);
event
.
on
(
'wechat-login-error'
,
this
.
loginError
);
this
.
service
=
new
ZeroSellService
();
this
.
commonService
=
new
CommonService
();
...
...
Please
register
or
login
to post a comment