Commit 3c68df05 authored by wangxuelai's avatar wangxuelai

'最新代码提交'

parent cd18f742
......@@ -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: {
......
......@@ -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 && // 微报名普通版
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment