[关闭]
@caijinlin 2015-12-14T03:48:15.000000Z 字数 25325 阅读 607

清华与众筹比较

lingxi

清华与众筹页面模块比较

清华 众筹
1.detail(包含 pay_form)
2.donate_success
1.detail (包含 pay_form)
2.donate_success
3.donator_list => donators
4.index => project_list
5.together_detail
6.together_user_list=>crowd_users_list
7.fundraising
8.userbind(bind)
9.dashboard(donator_list, footprint, user_project_list)
10.share (share_donate_cerficate)

清华与众筹模块比较

清华多于众筹

1. custom_style_script字段option_value值修改(不再用info.alert)

  1. INSERT INTO `lingxi_config`.`crowdfunding_options` (`id`, `key_id`, `team_id`, `subdomain`, `project_id`, `option_value`, `update_time`, `create_time`) VALUES (NULL, '34', '0', '', '0', '<style>.content .modal .message{padding:0 5px}.content .modal .list_display li{padding:5px}.content .modal .list_display #li_name{width:100%;display:inline-block}.content .modal .list_display #li_name .control-group{float:left;width:100%}.content .modal .list_display #li_name .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_name .control-group .radio{display:inline-block}.content .modal .list_display #li_name .control-group .controls{position:relative}.content .modal .list_display #li_name .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_name .control-group .span6{width:70%}.content .modal .list_display #li_email{width:100%;display:inline-block}.content .modal .list_display #li_email .control-group{float:left;width:100%}.content .modal .list_display #li_email .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_email .control-group .radio{display:inline-block}.content .modal .list_display #li_email .control-group .controls{position:relative}.content .modal .list_display #li_email .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_email .control-group .span6{width:70%}.content .modal .list_display #li_mobile{width:100%;display:inline-block}.content .modal .list_display #li_mobile .control-group{float:left;width:100%}.content .modal .list_display #li_mobile .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_mobile .control-group .radio{display:inline-block}.content .modal .list_display #li_mobile .control-group .controls{position:relative}.content .modal .list_display #li_mobile .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_mobile .control-group .span6{width:70%}.content .modal .list_display #li_gender{width:100%;display:inline-block}.content .modal .list_display #li_gender .control-group{float:left;width:100%}.content .modal .list_display #li_gender .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_gender .control-group .radio{display:inline-block}.content .modal .list_display #li_gender .control-group .controls{position:relative}.content .modal .list_display #li_gender .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_gender .control-group .span6{width:70%}.content .modal .list_display #li_gender .radio{width:50px;margin:5px 2px}.content .modal .list_display #li_address select{float:left;margin-right:4px}.content .modal .list_display #li_new_item_1{display:inline-block;width:100%}.content .modal .list_display #li_new_item_1 .control-group{float:left;width:100%}.content .modal .list_display #li_new_item_1 .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_new_item_1 .control-group .radio{display:inline-block}.content .modal .list_display #li_new_item_1 .control-group .controls{position:relative}.content .modal .list_display #li_new_item_1 .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_new_item_1 .control-group .span6{width:70%}.content .modal .list_display #li_new_item_1 .radio{width:50px;margin:5px 2px}.content .modal .list_display #li_new_item_1 .radio{width:50px}.content .modal .list_display #li_new_item_2{width:100%;display:inline-block;width:50%}.content .modal .list_display #li_new_item_2 .control-group{float:left;width:100%}.content .modal .list_display #li_new_item_2 .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_new_item_2 .control-group .radio{display:inline-block}.content .modal .list_display #li_new_item_2 .control-group .controls{position:relative}.content .modal .list_display #li_new_item_2 .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_new_item_2 .control-group .span6{width:70%}.content .modal .list_display #li_new_item_2 .control-group input.span6{width:40%}.content .modal .list_display #li_new_item_3{width:100%;display:inline-block;width:50%}.content .modal .list_display #li_new_item_3 .control-group{float:left;width:100%}.content .modal .list_display #li_new_item_3 .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_new_item_3 .control-group .radio{display:inline-block}.content .modal .list_display #li_new_item_3 .control-group .controls{position:relative}.content .modal .list_display #li_new_item_3 .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_new_item_3 .control-group .span6{width:70%}.content .modal .list_display #li_new_item_3 .control-group input.span6{width:40%}.content .modal .list_display #li_new_item_4{display:inline-block;width:100%}.content .modal .list_display #li_new_item_4 .control-group{float:left;width:100%}.content .modal .list_display #li_new_item_4 .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_new_item_4 .control-group .radio{display:inline-block}.content .modal .list_display #li_new_item_4 .control-group .controls{position:relative}.content .modal .list_display #li_new_item_4 .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_new_item_4 .control-group .span6{width:70%}.content .modal .list_display #li_new_item_4 .control-group input.span6{width:70%}.content .modal .list_display #li_new_item_5 .radio.inline4{width:100%}.content .modal .list_display #li_new_item_5 .text-muted{font-size:12px}.content .modal .list_display #li_new_item_5 .errorTip{top:0}.content .modal .list_display #li_new_item_6{width:100%;display:inline-block}.content .modal .list_display #li_new_item_6 .control-group{float:left;width:100%}.content .modal .list_display #li_new_item_6 .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_new_item_6 .control-group .radio{display:inline-block}.content .modal .list_display #li_new_item_6 .control-group .controls{position:relative}.content .modal .list_display #li_new_item_6 .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_new_item_6 .control-group .span6{width:70%}.content .modal .list_display #li_new_item_6 .radio{width:80px;margin:5px 2px}.content .modal .list_display #li_amount{display:inline-block;width:100%}.content .modal .list_display #li_amount .control-group{float:left;width:100%}.content .modal .list_display #li_amount .control-group .control-label{width:70px;float:left;padding:7px 0}.content .modal .list_display #li_amount .control-group .radio{display:inline-block}.content .modal .list_display #li_amount .control-group .controls{position:relative}.content .modal .list_display #li_amount .control-group .controls span.errorTip{position:absolute !important;right:25px !important;top:8px}.content .modal .list_display #li_amount .control-group .span6{width:70%}.content .modal .list_display #li_amount .control-group input.span6{width:70%}</style>
  2. <script type="text/javascript">
  3. $(function() {
  4. setTimeout(function() {
  5. $(''#form_cf_donater_info .radio input[name="new_item_1"]'').change(function() {
  6. toggleIsXiaoyou();
  7. })
  8. $(''#form_cf_donater_info .radio input[name="new_item_5"]'').change(function() {
  9. toggleInvoiceAddress();
  10. })
  11. $(''#form_cf_donater_info .radio input[name="new_item_6"]'').change(function() {
  12. toggleContactColumn();
  13. })
  14. toggleIsXiaoyou();
  15. toggleInvoiceAddress();
  16. toggleContactColumn();
  17. $(''#li_email .control-label'').append('' <span style="color:red">*</span>'');
  18. $(''#li_mobile .control-label'').append('' <span style="color:red">*</span>'');
  19. }, 1100);
  20. $("#li_amount").parent().append($("#li_new_item_5"));
  21. $("#li_new_item_5").parent().append($("#li_address"));
  22. var invoice_yes = $(''#li_new_item_5 .controls label'').first();
  23. var invoice_no = $(''#li_new_item_5 .controls label'').last();
  24. invoice_yes.html(invoice_yes.html() + "<span class=''text-muted invoice_tip''> (请填妥您的联系地址,以便发票准确到达您的手中)</span>");
  25. invoice_no.html(invoice_no.html() + "<span class=''text-muted invoice_tip''> (基金会将为您保管发票,保管时间为一年)</span>");
  26. $("#form_cf_donater_info").bind(''submit'', function(e) {
  27. if ($.fn.validateForm('''', this)) {
  28. if ($(''#form_cf_donater_info .radio input[name="new_item_5"]:checked'').val() == ''否'') {
  29. $(''#li_address'').remove();
  30. }
  31. }
  32. });
  33. })
  34. function toggleContactColumn()
  35. {
  36. if ($(''#form_cf_donater_info .radio input[name="new_item_6"]:checked'').val() == ''移动电话'') {
  37. $(''#li_email'').hide();
  38. $(''#li_mobile'').show();
  39. } else {
  40. $(''#li_mobile'').hide();
  41. $(''#li_email'').show();
  42. }
  43. }
  44. function toggleInvoiceAddress()
  45. {
  46. if ($(''#form_cf_donater_info .radio input[name="new_item_5"]:checked'').val() == ''是'') {
  47. $(''#li_address'').show();
  48. } else {
  49. $(''#li_address'').hide();
  50. }
  51. }
  52. function toggleIsXiaoyou()
  53. {
  54. if ($(''#form_cf_donater_info .radio input[name="new_item_1"]:checked'').val() == ''是'') {
  55. $(''#li_new_item_2'').show();
  56. $(''#li_new_item_3'').show();
  57. } else {
  58. $(''#li_new_item_2'').hide();
  59. $(''#li_new_item_3'').hide();
  60. }
  61. }
  62. function custom_submit_check_handler() {
  63. if ($(''#form_cf_donater_info .radio input[name="new_item_6"]:checked'').val() == ''移动电话'') {
  64. if (!validator.checkDatatype($("#form_cf_donater_info input[name=''mobile'']"), ''mobile'')) {
  65. $("#form_cf_donater_info input[name=''mobile'']").focus();
  66. notify(''请填写正确的移动电话'', ''danger'');
  67. return false;
  68. }
  69. } else {
  70. if (!validator.checkDatatype($("#form_cf_donater_info input[name=''email'']"), ''email'')) {
  71. $("#form_cf_donater_info input[name=''email'']").focus();
  72. notify(''请填写正确的电子邮箱'', ''danger'');
  73. return false;
  74. }
  75. }
  76. return true;
  77. }
  78. </script>', NULL, NULL);

2. cutomeoptions增加一个配置,是否可以发起一起捐

  1. INSERT INTO `custom_options` (`id`, `option_name`, `option_value`, `display_name`, `autoload`) VALUES (NULL, 'enable_together_fundraising', '1', NULL, 'Y');

3. pay_success_page_style 的默认值修改为如下(带有一起捐分享)

  1. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '{"is_enabled":1,"share_btn_text":"\\u5206\\u4eab\\u51fa\\u53bb","share_btn_color":"#ff6811","share_modal_img":"\\/dist\\/images\\/crowdfund\\/wx_share.png","share_words_text":"[#nickname#]\\u652f\\u6301\\u4e86[#project_name#],\\u4f60\\u8fd8\\u4e0d\\u8fc7\\u6765\\u770b\\u770b\\uff1f","share_words_desc":"[#nickname#]\\u6b22\\u8fce\\u5927\\u5bb6\\u6350\\u8d60","project_share_text":"\\u5feb\\u6765\\uff0c\\u4e00\\u8d77\\u6350\\u8d60[#project_name#]\\u5427","project_share_desc":"\\u6709\\u7231\\u6350\\u8d60\\uff0c\\u4f5c\\u5feb\\u4e50\\u516c\\u76ca\\u4eba\\uff01","together_share_text":"[#nickname#]\\u9080\\u4f60\\u4e00\\u8d77\\u6350\\uff0c\\u52a9\\u529b\\u6e05\\u534e\\u53d1\\u5c55","together_share_desc":"\\u54ce\\u5466\\u4e0d\\u9519\\uff0c\\u5feb\\u8ddf\\u6211\\u4e00\\u8d77\\u4f5c\\u5feb\\u4e50\\u516c\\u76ca\\u4eba\\u5427\\uff01","fund_share_text":"[#nickname#]\\u9080\\u4f60\\u4e00\\u8d77\\uff0c\\u4f5c\\u5feb\\u4e50\\u516c\\u76ca\\u4eba\\uff01","fund_share_desc":"\\u6709\\u7231\\u6350\\u8d60\\uff0c\\u52a9\\u529b\\u6e05\\u534e\\u53d1\\u5c55","self_share_text":"[#nickname#]\\u6652\\u51fa\\u4ed6\\u7684\\u7b54\\u5377\\uff0c\\u4f60\\u5462","self_share_desc":""}' WHERE `crowdfunding_options`.`key_id` = 117 and `crowdfunding_options`.`team_id` = 0;

4. 清华上线后,确保一起捐分享没有问题后,删除以下配置

  1. wx_fund_share_title 首页分享标题
  2. wx_fund_share_desc 首页分享描述
  3. wx_together_project_share_title 一起捐项目分享标题
  4. wx_together_project_share_desc 一起捐项目分享描述
  5. wx_project_share_title 项目分享标题
  6. wx_project_share_desc 项目分享描述
  7. self_donate_share_title 自己分享标题
  8. self_donate_share_content
  9. wx_payment_api_key
  10. wx_payment_api_secret
  11. sms_user
  12. sms_pass
  13. sms_type
  14. sms_beian
  15. weixin_notify_template_id
  16. weixin_notify_template_data

5. 修改原先的几个type

  1. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `type` = 'crowdfunding,together' WHERE `crowdfunding_option_keys`.`id` = 117;
  2. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `type` = 'crowdfunding,together' WHERE `crowdfunding_option_keys`.`id` = 116;
  3. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `type` = 'crowdfunding,together' WHERE `crowdfunding_option_keys`.`id` = 115;
  4. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `type` = 'crowdfunding,together' WHERE `crowdfunding_option_keys`.`id` = 110;

6. 确保所有项目创建者使用create_user_id, 后面可以删了user_id

  1. UPDATE `lingxi_config`.`crowdfunding_projects` SET `create_user_id` = `user_id`

7. 一起捐默认留言together_reason_default待确认还是否需要

8. 增加一起捐项目默认值

  1. INSERT INTO `lingxi_config`.`crowdfunding_projects` (`id`, `type`, `team_id`, `subdomain`, `user_group_id`, `user_id`, `title`, `summary`, `desc`, `parent_id`, `is_donatable`, `is_followable`, `is_together_donatable`, `is_special`, `goal`, `end_time`, `pay_account_groups`, `donator_info_form`, `preview_image`, `sequence`, `css`, `theme_id`, `edit_step_num`, `status`, `create_time`, `update_time`, `create_user_id`, `update_user_id`) VALUES (NULL, 'together', '0', '', '0', 0, '建议12个字以内,情真意切,吸引眼球', '这里是项目简介', '<p style="margin-top: 0px; margin-bottom: 10px; color: rgb(34, 34, 34); font-family: &#39;Helvetica Neue&#39;, Arial, &#39;Microsoft Yahei&#39;, arial, sans-serif; font-size: 13px; line-height: 20px; white-space: normal; ">
  2. <strong>关于项目</strong>
  3. </p>
  4. <p style="margin-top: 0px; margin-bottom: 10px; color: rgb(34, 34, 34); font-family: &#39;Helvetica Neue&#39;, Arial, &#39;Microsoft Yahei&#39;, arial, sans-serif; font-size: 13px; line-height: 20px; white-space: normal;">
  5. (简短介绍项目详情,让支持者能够在最短时间内了解你的项目)
  6. </p>', '0', '1', '0', '1', '0', '0', NULL, NULL, NULL, '/cf_default/cf_demo_project_img.jpg', '0', NULL, '0', '0', 'published', NULL, NULL, 0, 0)
  7. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `scope` = '0' WHERE `crowdfunding_option_keys`.`id` = 5;
  8. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `scope` = '1' WHERE `crowdfunding_option_keys`.`id` = 32;
  9. UPDATE `lingxi_config`.`crowdfunding_option_keys` SET `scope` = '1' WHERE `crowdfunding_option_keys`.`id` = 37;

9. 捐赠留言

  1. INSERT INTO `lingxi_config`.`crowdfunding_option_keys` (`id`, `type`, `scope`, `option_name`, `display_name`, `is_required`, `max_num`, `desc`, `append_tip`, `column_type`, `class`, `update_time`, `create_time`) VALUES (NULL, 'crowdfunding,together', '0', 'is_enable_donate_message', NULL, '0', '0', NULL, '是否显示捐赠留言', 'input', NULL, NULL, NULL);
  2. INSERT INTO `lingxi_config`.`crowdfunding_option_keys` (`id`, `type`, `scope`, `option_name`, `display_name`, `is_required`, `max_num`, `desc`, `append_tip`, `column_type`, `class`, `update_time`, `create_time`) VALUES (NULL, 'crowdfunding,together', '0', 'donate_message_required', NULL, '0', '0', NULL, '筹款留言是否必填', 'input', NULL, NULL, NULL);
  3. INSERT INTO `lingxi_config`.`crowdfunding_option_keys` (`id`, `type`, `scope`, `option_name`, `display_name`, `is_required`, `max_num`, `desc`, `append_tip`, `column_type`, `class`, `update_time`, `create_time`) VALUES (NULL, 'crowdfunding,together', '0', 'is_donate_message_required', NULL, '0', '0', NULL, '默认捐赠留言', 'input', NULL, NULL, NULL);
  4. INSERT INTO `lingxi_config`.`crowdfunding_option_keys` (`id`, `type`, `scope`, `option_name`, `display_name`, `is_required`, `max_num`, `desc`, `append_tip`, `column_type`, `class`, `update_time`, `create_time`) VALUES (NULL, 'crowdfunding,together', '0', 'donate_message_title', '留言选项标题', '0', '0', NULL, NULL, 'input', NULL, NULL, NULL);
  5. INSERT INTO `lingxi_config`.`crowdfunding_options` (`id`, `key_id`, `team_id`, `subdomain`, `project_id`, `option_value`, `update_time`, `create_time`) VALUES (NULL, '123', '0', '', '0', '0', NULL, NULL);
  6. INSERT INTO `lingxi_config`.`crowdfunding_options` (`id`, `key_id`, `team_id`, `subdomain`, `project_id`, `option_value`, `update_time`, `create_time`) VALUES (NULL, '124', '0', '', '0', '0', NULL, NULL);
  7. INSERT INTO `lingxi_config`.`crowdfunding_options` (`id`, `key_id`, `team_id`, `subdomain`, `project_id`, `option_value`, `update_time`, `create_time`) VALUES (NULL, '125', '0', '', '0', '匆匆四年,我们一起奋斗我们一起长大。饮水思源,助力母校让更多的师弟师妹茁壮成长。加油,希望大家支持我们的母校', NULL, NULL);
  8. INSERT INTO `lingxi_config`.`crowdfunding_options` (`id`, `key_id`, `team_id`, `subdomain`, `project_id`, `option_value`, `update_time`, `create_time`) VALUES (NULL, '126', '0', '', '0', '您有什么想和我们说', NULL, NULL);

10. step_num修改,兼容以前的项目

  1. UPDATE `crowdfunding_projects` set edit_step_num = 50 WHERE edit_step_num = 40

update crowdfunding_option_keys set option_name = 'is_donate_message_required' where option_name = 'donate_message_required'

11. icon路径更改(todo: 确定dashboard_footer_logo_url,dashboard_header_logo_url可以访问)

  1. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/head_logo.jpg' WHERE `crowdfunding_options`.`id` = 4 and `crowdfunding_options`.`team_id` = 0;;
  2. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/fund_raising_number.png' WHERE `crowdfunding_options`.`id` = 7 and `crowdfunding_options`.`team_id` = 0;;
  3. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/fund_donate_amount.png' WHERE `crowdfunding_options`.`id` = 8 and `crowdfunding_options`.`team_id` = 0;;
  4. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/fund_refer_people.png' WHERE `crowdfunding_options`.`id` = 9 and `crowdfunding_options`.`team_id` = 0;;
  5. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/finish.png' WHERE `crowdfunding_options`.`id` = 10 and `crowdfunding_options`.`team_id` = 0;;
  6. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/crowd_fund.png' WHERE `crowdfunding_options`.`id` = 11 and `crowdfunding_options`.`team_id` = 0;;
  7. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/fund_raise_goal.png' WHERE `crowdfunding_options`.`id` = 12 and `crowdfunding_options`.`team_id` = 0;
  8. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/crowd_fund_no_title.png' WHERE `crowdfunding_options`.`id` = 13 and `crowdfunding_options`.`team_id` = 0
  9. UPDATE `lingxi_config`.`crowdfunding_options` SET `option_value` = '/dist/images/crowdfund/fund_honor_bg.png' WHERE `crowdfunding_options`.`id` = 14 and `crowdfunding_options`.`team_id` = 0;

key_id=117的所有图片路径更改

12.gamma上/uploads/dist/images/cr_success_default_header_wx_header_img.jpg不见了,把cr_success_default_header.img复制过去

  1. CFC('pay_success_page_style', 'share_modal_img')确认路径没有问题

13

  1. UPDATE `crowdfunding_options` SET `option_value` ='{"after_submit_action":"text","header_image":"/dist/images/crowdfund/fund_honor_bg.png","thank_text":"\\u611f\\u8c22\\u60a8\\u7684\\u4fe1\\u4efb\\u4e0e\\u652f\\u6301","after_submit_link":"http:\\/\\/\\\\\\/"}'WHERE `crowdfunding_options`.`team_id` = 12 and `crowdfunding_options`.`subdomain` = 'tuef1994'

14.加入字段

  1. ALTER TABLE `crowdfunding_projects` ADD `is_achieved_donatable` TINYINT NOT NULL DEFAULT '1' AFTER `is_together_donatable`;
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注