Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
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
wangxuelai
biz.qingxiao.com
Commits
3c68df05
Commit
3c68df05
authored
Jan 16, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
cd18f742
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
12 deletions
+46
-12
crm.js
src/models/crm.js
+15
-0
index.js
src/pages/crmdetail/index.js
+31
-12
No files found.
src/models/crm.js
View file @
3c68df05
...
...
@@ -220,6 +220,7 @@ export default {
},
*
sureBindSjdAccount
({
payload
},
{
call
,
put
,
select
})
{
const
{
bindSjdAccountSubmitting
}
=
yield
select
(
state
=>
state
.
crm
);
const
{
userInfo
}
=
yield
select
(
state
=>
state
.
webapp
);
const
{
mobile
,
code
,
callback
}
=
payload
;
if
(
bindSjdAccountSubmitting
)
{
return
;
...
...
@@ -245,9 +246,23 @@ export default {
const
{
code
:
ajaxcode
,
data
}
=
bindData
;
if
(
ajaxcode
==
200
)
{
message
.
success
(
'绑定成功'
,
1
);
userInfo
.
bind_member_id
=
data
.
bind_member_id
;
LocalStorage
.
setItem
(
'user'
,
userInfo
);
if
(
callback
&&
(
typeof
callback
==
'function'
))
{
callback
();
}
yield
put
({
type
:
'queryCrmList'
,
payload
:
{
params
:
{},
},
});
yield
put
({
type
:
'webapp/updateState'
,
payload
:
{
userInfo
:
{
...
userInfo
},
},
});
yield
put
({
type
:
'updateState'
,
payload
:
{
...
...
src/pages/crmdetail/index.js
View file @
3c68df05
...
...
@@ -234,7 +234,7 @@ class Crm extends React.Component {
key
:
'address'
,
render
(
text
,
record
)
{
const
detail
=
JSON
.
parse
(
record
.
detail
);
console
.
log
(
detail
,
'detail'
);
//
console.log(detail, 'detail');
return
(
<
div
>
{
detail
.
new_form_joiners
&&
// 换肤版微报名
...
...
@@ -264,16 +264,35 @@ class Crm extends React.Component {
}
{
detail
.
new_group_order
&&
// 多商品拼团
<
div
>
<
div
>
姓名:
{
detail
.
new_group_order
.
name
}
<
/div
>
<
div
>
身份:
{
detail
.
new_group_order
.
is_leader
==
1
?
'团长'
:
'团员'
}
<
/div
>
<
div
>
购买商品:
{
detail
.
new_group_order
.
group_good
&&
detail
.
new_group_order
.
group_good
.
name
}
<
/div
>
{
detail
.
new_group_order
.
other1
!=
''
&&
{
detail
.
new_group_order
.
map
(
ele
=>
(
<
div
>
<
div
>
姓名:
{
ele
.
name
}
<
/div
>
<
div
>
购买商品:
{
ele
.
group_good
.
name
}
<
/div
>
<
div
>
身份:
{
ele
.
is_leader
==
1
?
'团长'
:
'团员'
}
<
/div
>
{
ele
.
other1
!=
''
&&
<
div
>
{
detail
.
activity
&&
detail
.
activity
.
join_customize
&&
detail
.
activity
.
join_customize
.
customize_1
&&
detail
.
activity
.
join_customize
.
customize_1
.
name
}
:
{
ele
.
other1
}
<
/div
>
}
{
ele
.
other2
!=
''
&&
<
div
>
{
detail
.
activity
&&
detail
.
activity
.
join_customize
&&
detail
.
activity
.
join_customize
.
customize_2
&&
detail
.
activity
.
join_customize
.
customize_2
.
name
}
:
{
ele
.
other2
}
<
/div
>
}
{
ele
.
other3
!=
''
&&
<
div
>
{
detail
.
activity
&&
detail
.
activity
.
join_customize
&&
detail
.
activity
.
join_customize
.
customize_3
&&
detail
.
activity
.
join_customize
.
customize_3
.
name
}
:
{
ele
.
other3
}
<
/div
>
}
<
/div
>
))}
{
/* {detail.new_group_order.other1 != '' &&
<div>
{detail.activity && detail.activity.join_customize && detail.activity.join_customize.customize_1 && detail.activity.join_customize.customize_1.name}: {detail.new_group_order.other1}
</div>
...
...
@@ -287,7 +306,7 @@ class Crm extends React.Component {
<div>
{detail.activity && detail.activity.join_customize && detail.activity.join_customize.customize_3 && detail.activity.join_customize.customize_3.name}: {detail.new_group_order.other3}
</div>
}
}
*/
}
<
/div
>
}
{
detail
.
joiners
&&
// 微报名普通版
...
...
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