Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
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
Email Patches
Plain Diff
Browse Files
Authored by
aozhe.zhu
7 years ago
Commit
65a7d54118dff8e8acafbdbb3a47e29c2e06481b
1 parent
41ffff56
修复分享bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
js/groupPurchase/containers/GroupPurchaseContainer.js
js/groupPurchase/reducers/app/appActions.js
js/groupPurchase/reducers/app/appInitialState.js
js/groupPurchase/containers/GroupPurchaseContainer.js
View file @
65a7d54
...
...
@@ -112,7 +112,7 @@ class GroupPurchaseContainer extends Component {
if
(
!
resource
)
{
return
;
}
let
miniProgramPath
=
'/pages/groupPurchase/groupPurchase?activity
_i
d='
+
activityId
;
let
miniProgramPath
=
'/pages/groupPurchase/groupPurchase?activity
I
d='
+
activityId
;
let
fromPage
=
'GroupPurchase'
;
let
bigImage
=
shareCodeInfo
.
get
(
'bigImage'
);
let
productIcon
=
bigImage
?
getSlicedUrl
(
bigImage
,
150
*
DEVICE_WIDTH_RATIO
,
120
*
DEVICE_WIDTH_RATIO
,
2
)
:
''
;
...
...
js/groupPurchase/reducers/app/appActions.js
View file @
65a7d54
...
...
@@ -13,9 +13,14 @@ import { fetchShareCodeInfo } from '../groupPurchase/groupPurchaseActions';
export
function
getUid
()
{
return
async
dispatch
=>
{
let
uid
=
await
NativeModules
.
YH_CommonHelper
.
uid
();
dispatch
(
setUid
(
uid
));
dispatch
(
fetchShareCodeInfo
());
NativeModules
.
YH_CommonHelper
.
uid
()
.
then
(
uid
=>
{
dispatch
(
setUid
(
uid
));
dispatch
(
fetchShareCodeInfo
());
})
.
catch
(
error
=>
{
dispatch
(
fetchShareCodeInfo
());
});
}
}
...
...
@@ -28,8 +33,12 @@ export function setUid(uid) {
export
function
getUnionType
()
{
return
async
dispatch
=>
{
let
unionType
=
await
NativeModules
.
YH_CommonHelper
.
unionType
();;
dispatch
(
setUnionType
(
unionType
))
NativeModules
.
YH_CommonHelper
.
unionType
()
.
then
(
unionType
=>
{
dispatch
(
setUnionType
(
unionType
))
})
.
catch
(
error
=>
{
});
}
}
...
...
js/groupPurchase/reducers/app/appInitialState.js
View file @
65a7d54
...
...
@@ -7,7 +7,7 @@ let InitialState = Record({
host
:
'http://api.yoho.cn'
,
serviceHost
:
'http://api.yoho.cn'
,
unionType
:
''
,
uid
:
''
,
uid
:
0
,
});
export
default
InitialState
;
...
...
Please
register
or
login
to post a comment