Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[platform] uniquewaychina 提交组件改动:mip-uniqueway-form #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion mip-uniqueway-form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mip-uniqueway-form Uniqueway表单组件
<textarea name="comment" placeholder="留下您想告知顾问的话(非必填)" pattern="\d+" label="备注"></textarea>
<input type="button" data-submit="true" class="button" value="提交需求" data-track-event="consult,success,alert_form" data-stats-baidu-obj='{"type":"click", "data":["_trackEvent", "consult", "click", "alert_form"]}'>
</mip-uniqueway-form>

```

## 属性
Expand Down
7 changes: 4 additions & 3 deletions mip-uniqueway-form/mip-uniqueway-form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @file mip-uniqueway-form 组件
* @author
Expand Down Expand Up @@ -96,11 +95,13 @@ define(function (require) {
$('#MIP-LLIGTBOX-MASK').hide();
$('html').removeClass('mip-no-scroll');
storage.set('mip-uniqueway-timing-' + lightboxId, true);
} else {
alert('我们已经收到您的咨询。 10分钟内有【无二之旅客服小秘书】添加您的微信,请注意通过哦');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新提交的代码不允许使用 alert,请使用 mip-toast 官方组件代替

}

if (trackEvent) {
window._hmt && window._hmt.push(trackEvent);
}
alert('提交成功,顾问会尽快与你联系');
return true;
} else {
window._hmt && window._hmt.push(['_trackEvent', 'submit_error', response.msg]);
Expand All @@ -120,4 +121,4 @@ define(function (require) {
};

return customElement;
});
});
5 changes: 0 additions & 5 deletions mip-uniqueway-form/package-lock.json

This file was deleted.